Chris Miller wrote:
Yes, it is right. By default each alias inherits the settings of base interface unless overridden.Hi,
I seem to have a problem with the network scripts. If I have ifcfg-eth0
, ifcfg-eth0:100 and ifcfg-eth0:243. When the interfaces are uped if
you do a netstat -nr I will have 3 default gateways all being the
gateway in ifcfg-eth0. Ifcfg-eth0:100 and ifcfg-eth0:243 do not have
gateways but yet they get added as the one in ifcfg-eth0. Even if
ifcfg-eth0 is in a different network. Is that right?
To prevent this for the gateway setting add the following to the base interface configuration ifcfg-eth0:
NO_ALIASROUTING=yes
Chris
-- ----------------------------------------------------------- "Spend less! Do more! Go Open Source..." -- Dirigo.net Chris Johnson, RHCE #807000448202021