Re: Netstat -nr Problem

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

 



Christopher K. Johnson wrote:

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

Or alternatively you can configure the route in an route-eth0 file within the network-scripts directory instead of as a GATEWAY= setting in the ifcfg-eth0 file, and the route specified in route-eth0 is not applied to aliases.
To set a default gateway through eth0 set the contents of route-eth0 to:
default via x.x.x.x
Where x.x.x.x is replaced with your default gateway.


Per /usr/share/doc/initscripts-7.42.2/sysconfig.txt:

/etc/sysconfig/network-scripts/route-<interface-name>


Contains lines that are arguments to "/sbin/ip route add"
For example:


192.168.2.0/24 dev ppp0


adds a network route to the 192.168.2.0 network through ppp0.


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