[Bug 1830641] [NEW] User-defined IPv4 routing tables are not created when using DHCP and setting use_routes to false

Lars Erik Pedersen pedersen.larserik at gmail.com
Mon May 27 17:56:06 UTC 2019


Public bug reported:

Using netplan.io 0.97-0ubuntu1~18.04.1 with this configuration:

network:
    ethernets:
        eth0:
            dhcp4: true
            dhcp4-overrides:
                    use-routes: false
            routes:
                    - to: 0.0.0.0/0
                      via: 192.168.0.1
                      table: 1
                    - to: 192.168.0.1/24
                      via: 192.168.0.1
                      table: 1
            routing-policy:
                    - to: 0.0.0.0/0
                      from: 192.168.0.1/24
                      table: 1

        eth1:
            dhcp4: true
            dhcp4-overrides:
                    use-routes: false
            routes:
                    - to: 0.0.0.0/0
                      via: 192.168.30.1
                      table: 2
                    - to: 192.168.30.1/24
                      via: 192.168.30.1
                      table: 2
            routing-policy:
                    - to: 0.0.0.0/0
                      from: 192.168.30.1/24
                      table: 2
    version: 2

I understand from the documentation that netplan should discard the
routes recived from DHCP, and add my defined routes. In my configuration
I want so setup source routing, and I expect netplan to create table 1
and table 2 from this configuration.

But, with this config. None of the tables is actually created:
root at bunt:~# ip -4 rule list
0:	from all lookup local 
0:	from 192.168.30.1/24 lookup 2 
0:	from 192.168.0.1/24 lookup 1 
32766:	from all lookup main 
32767:	from all lookup default

root at bunt:~# ip -4 route show table 1
root at bunt:~# ip -4 route show table 2

The rules are in place, but the routing tables are empty/non-existing.

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1830641

Title:
  User-defined IPv4 routing tables are not created when using DHCP and
  setting use_routes to false

Status in netplan.io package in Ubuntu:
  New

Bug description:
  Using netplan.io 0.97-0ubuntu1~18.04.1 with this configuration:

  network:
      ethernets:
          eth0:
              dhcp4: true
              dhcp4-overrides:
                      use-routes: false
              routes:
                      - to: 0.0.0.0/0
                        via: 192.168.0.1
                        table: 1
                      - to: 192.168.0.1/24
                        via: 192.168.0.1
                        table: 1
              routing-policy:
                      - to: 0.0.0.0/0
                        from: 192.168.0.1/24
                        table: 1

          eth1:
              dhcp4: true
              dhcp4-overrides:
                      use-routes: false
              routes:
                      - to: 0.0.0.0/0
                        via: 192.168.30.1
                        table: 2
                      - to: 192.168.30.1/24
                        via: 192.168.30.1
                        table: 2
              routing-policy:
                      - to: 0.0.0.0/0
                        from: 192.168.30.1/24
                        table: 2
      version: 2

  I understand from the documentation that netplan should discard the
  routes recived from DHCP, and add my defined routes. In my
  configuration I want so setup source routing, and I expect netplan to
  create table 1 and table 2 from this configuration.

  But, with this config. None of the tables is actually created:
  root at bunt:~# ip -4 rule list
  0:	from all lookup local 
  0:	from 192.168.30.1/24 lookup 2 
  0:	from 192.168.0.1/24 lookup 1 
  32766:	from all lookup main 
  32767:	from all lookup default

  root at bunt:~# ip -4 route show table 1
  root at bunt:~# ip -4 route show table 2

  The rules are in place, but the routing tables are empty/non-existing.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1830641/+subscriptions



More information about the foundations-bugs mailing list