BrianSidebotham
April 20th, 2016, 06:04 PM
Hi everyone,
I'm trying to use nmcli (0.9.10) to try and setup eth0 to have a DHCP and link-local address, but they appear to be mutually exclusive through nmcli.
Through
/etc/network/interfaces I used to do:
iface eth0 inet dhcp
# Make sure eth0 is always the preferred route
metric 0
# Add link local route for link-local traffic
pre-up ip route add 169.254.0.0/16 dev $IFACE
# Add our link local address for technician laptop communication
pre-up ip addr add 169.254.127.100/16 broadcast 169.254.255.255 dev $IFACE label $IFACE:0
# Do the reverse for rip-down
pre-down ip addr del 169.254.127.100/16 dev $IFACE label $IFACE:0
pre-down ip route del 169.254.0.0/16 dev $IFACE
Which worked as intended (although with a static IP address for the link-local). Is there anyway of doing this through nmcli, and in particular is there a way of doing this with the link-local
ipv4.method property so
avahi can be used to grab a good ipv4 link local address?
It's a shame ipv6 link local addresses are not browser-compatible!
I'm trying to use nmcli (0.9.10) to try and setup eth0 to have a DHCP and link-local address, but they appear to be mutually exclusive through nmcli.
Through
/etc/network/interfaces I used to do:
iface eth0 inet dhcp
# Make sure eth0 is always the preferred route
metric 0
# Add link local route for link-local traffic
pre-up ip route add 169.254.0.0/16 dev $IFACE
# Add our link local address for technician laptop communication
pre-up ip addr add 169.254.127.100/16 broadcast 169.254.255.255 dev $IFACE label $IFACE:0
# Do the reverse for rip-down
pre-down ip addr del 169.254.127.100/16 dev $IFACE label $IFACE:0
pre-down ip route del 169.254.0.0/16 dev $IFACE
Which worked as intended (although with a static IP address for the link-local). Is there anyway of doing this through nmcli, and in particular is there a way of doing this with the link-local
ipv4.method property so
avahi can be used to grab a good ipv4 link local address?
It's a shame ipv6 link local addresses are not browser-compatible!