Re: Option 121 Classless Static Routes
Roy Marples
Thu Apr 05 16:22:38 2018
On 05/04/18 13:31, Roy Marples wrote:
Notice I swapped the routes a bit so the host route to the router
appears before the subnet route via it.
Here's the output from dhcpcd-6.9.1:
lp6s0: adding IP address 10.73.2.30/24
wlp6s0: using Classless Static Routes
wlp6s0: router 192.168.2.2 requires a host route
wlp6s0: adding route to 10.73.2.0/24
wlp6s0: adding host route to 192.168.10.1
wlp6s0: adding route to 192.168.10.0/24 via 192.168.10.1
wlp6s0: adding host route to 192.168.20.1
wlp6s0: adding route to 192.168.20.0/24 via 192.168.20.1
wlp6s0: adding host route to 192.168.2.2
wlp6s0: adding default route via 192.168.2.2
$ ip r
default via 192.168.2.2 dev wlp6s0 metric 303
10.73.2.0/24 dev wlp6s0 proto kernel scope link src 10.73.2.30 metric 303
192.168.2.2 dev wlp6s0 scope link metric 303
192.168.10.0/24 via 192.168.10.1 dev wlp6s0 metric 303
192.168.10.1 dev wlp6s0 scope link metric 303
192.168.20.0/24 via 192.168.20.1 dev wlp6s0 metric 303
192.168.20.1 dev wlp6s0 scope link metric 303
So it should work fine for you also if you ensure the routing is in the
correct order.
Roy
Archive administrator: postmaster@marples.name