tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dhcp classless routes



On Thu, 2011-01-06 at 19:01 +0000, Patrick Welche wrote:
> That looks exactly like what I did to do the equivalent of
> 
> > >   route add -net w.x.y.z/m g.a.t.e
> 
> I don't see what you did differently for the equivalent of
> 
> > >   route add -net w.x.y.z/m g.a.t.e -iface
> 
> eg
> route add -net 10.73.2/24 10.99.99.99 -iface
> (I know that doesn't look pretty, but they are all on the same switch)
> 
> Have I missed something in your explanation?

You missed nothing.

However, dhcpcd will automatically route via the correct interface. Or
rather, the interface dhcpcd received the DHCP packet from.

With conflicting route information, dhcpcd will prefer interfaces on
metric as documented in dhcpcd.conf(5)

Thanks

Roy



Home | Main Index | Thread Index | Old Index