Re: kern/106722: [net] [patch] ifconfig may not connect an interface to known network



Anton Yuzhaninov wrote:
Thursday, March 15, 2007, 7:30:54 PM, Andre Oppermann wrote:

AO> IMO when configuring a interface with an IP address and network it should
AO> kick out previous host and/or network routes matching it. Unless those
AO> are from locally configured interfaces, then it should reject the new
AO> attempt.

New route should replace existing one only if it have administrative
distance (in cisco terms) smaller than AD for existing route.

Preference of network from locally configured interface is only
particular case of this general principle.
We are obstructed by the current radix trie code only matching on destination and prefix. Adding 'administrative distance' to the FTE match is something which should seriously be considered. It is a stepping stone to equal cost multipath and would help in this situation.

It does however considerably change the semantics of the existing routing socket and its consumers would need to be updated to reflect that fact.

As I hinted at in my original response: it seems acceptable that ifconfig'ing an interface into the system should be able to clobber the overlapping routes in the meantime, but only until the architecture is fixed.

Regards,
BMS

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: Problems getting 2 NICs to work.
    ... > Below are the contents of the config files. ... The physical network in this case has nothing to do ... Running both class C's on the same interface is likewise not optimal, ... Gateway statements define default routes. ...
    (Fedora)
  • Re: Network Configuration with Jails.
    ... I run a FreeBSD Jailer and I want to have multiple jails in 2 seperate ... The server has 2 network interfaces and each of them are ... interface. ... I'm not totally sure what your static routes even accomplish. ...
    (freebsd-questions)
  • RE: Routing problems
    ... >> router. ... > address on the 193.x.x.x network even after its been ... so) without adding any routes to the 10.R.R.R router. ... I have just added the 193.x.x.x interface to it and I ...
    (freebsd-questions)
  • [PATCH 1/1] IPN: Inter Process Networking
    ... +IPN is an Inter Process Communication service. ... +interface and protocols used for networking. ... +to a "network". ... +creates a communication socket. ...
    (Linux-Kernel)
  • Re: [PATCH 1/1] IPN: Inter Process Networking
    ... +IPN is an Inter Process Communication service. ... +interface and protocols used for networking. ... +to a "network". ... +creates a communication socket. ...
    (Linux-Kernel)