Re: Netstat -nr Problem

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

 



Chris Miller wrote:

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?


Yes, it is right. By default each alias inherits the settings of base interface unless overridden.
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





[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux