voxpupuli / puppet-network

Types and providers to manage network interfaces
https://forge.puppet.com/puppet/network
Apache License 2.0
66 stars 108 forks source link

IPv6 routes don't work with Ubuntu #190

Open amateo opened 7 years ago

amateo commented 7 years ago

In a ubuntu system, ipv6 routes are added to /etc/network/routes as:

2001:720:1710:600:: ffff:ffff:ffff:ffff:: 2001:720:1710:212::2 eth0 

The problem is that script provided in ifupdown-extra to read that file creating routes run:

ip route add 2001:720:1710:600::/ffff:ffff:ffff:ffff:: via 2001:720:1710:212::2 dev eth0'

and fails because the netmask is expected in inet prefix format. So the correct format for the file should be

2001:720:1710:600:: 64 2001:720:1710:212::2 eth0