I need help simplifying our network configuration. We are using policy based routing and have our configuration in scripts (Network Manager is disabled). The routing is achieved by the standard:
<subnet> via <router's link local address> dev <interface name>
My challenge is that upon replacement of the router, my router's link local fe80:: address change and I need to update many, many hosts. So, I tried to figure out a better way. In IPv4 the gateway address is the IP address of the routers interface. When I try this with IPv6, routing does not work and I get (from /var/log/messages log):
Code: Select all
network: Error: either "to" is duplicate, or "2600:xxxx:xxxx:xxxx:0000:0000:0000:0001" is a garbage.
Code: Select all
2600:xxxx:xxxx:xxxx::/64 dev vlan19 src 2600:xxxx:xxxx:xxxx::87 table lan metric 1
#2600:xxxx:xxxx:xxxx::/61 via fe80::xxxx:xxxx:xxxx:xxxxc dev vlan19 table lan metric 1
2600:xxxx:xxxx:xxxx::/61 via 2600:xxxx:xxxx:xxxx:0000:0000:0000:0001 dev vlan19 table lan metric 1
#2602:xxxx:xxxx:xxxx::/60 via fe80::xxxx:xxxx:xxxx:xxxxc dev vlan19 table lan metric 1
2602:xxxx:xxxx:xxxx::/60 dev via 2600:xxxx:xxxx:xxxx:0000:0000:0000:0001 vlan19 table lan metric 1
#2600:xxxx:xxxx:xxxx::/61 via fe80::xxxx:xxxx:xxxx:xxxxc dev vlan19 metric 1
2600:xxxx:xxxx:xxxx::/61 dev via 2600:xxxx:xxxx:xxxx:0000:0000:0000:0001 vlan19 metric 1
#2602:xxxx:xxxx:xxxx::/60 via fe80::xxxx:xxxx:xxxx:xxxxc dev vlan19 metric 1
2602:xxxx:xxxx:xxxx::/60 via 2600:xxxx:xxxx:xxxx:0000:0000:0000:0001 dev vlan19 metric 1