Re: Network and default route

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




> Marcus Carvalho spake the following on 4/7/2006 1:37 PM:
>> Edit /etc/sysconfig/network
>> add
>> GATEWAY=xxx.xxx.xxx.xxx
>>
>> 2006/4/7, Scott Silva <ssilva@xxxxxxxxxxxx
>> <mailto:ssilva@xxxxxxxxxxxx>>:
>>
>>     I have had this problem on and off since RedHat 6, and I always
>>     worked through
>>     it, but I thought I would ask.
>>     When you have multiple network interfaces, how does the system
>>     determine the
>>     default route?
>>     Or is it the first, (or last) interface that comes up?
>>
>>     On the problem systems I have to add a "route add default..."
>>     statement in
>>     some systems in the rc.local to get them to work right.

GATEWAY is a bash variable - so whoever sets it last wins.  I would 
recommend putting it in /etc/sysconfig/network .. I would also make sure 
that there are no files in /etc/sysconfig/networking or in 
/etc/sysconfig/networking/profiles/default .. these get read after the 
/etc/sysconfig/network-scripts files .. and as I mentioned before - 
whoever sets it last, wins.

Barry

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux