Sorry for pinging this old bug. I cannot seem to reproduce the issue on
a (much) newer version: 1.1.2-2ubuntu1 on Ubuntu Plucky.


Inside a LXD container (using only a single interface and table 1):
root@pp:~# cat /etc/netplan/50-cloud-init.yaml 
network:
  version: 2
  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
root@pp:~# netplan apply
root@pp:~# ip -4 rule list
0:      from all lookup local
32765:  from 192.168.0.1/24 lookup 1 proto static  # <-- here it is
32766:  from all lookup main
32767:  from all lookup default
root@pp:~# ip -4 route show table 1  # <-- defined as well, containing the 
static routes
default via 192.168.0.1 dev eth0 proto static onlink 
192.168.0.0/24 via 192.168.0.1 dev eth0 proto static onlink 


Therefore, I'm closing this bug. Please re-open if you think this is still a 
problem.

** Changed in: netplan.io (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1830641

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to