eth0

Rick Stevens rstevens at vitalstream.com
Wed May 4 21:33:32 UTC 2005


Les Mikesell wrote:
> On Wed, 2005-05-04 at 14:08, Rick Stevens wrote:
> 
>>>[root at advanced root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
>>>DEVICE=eth0
>>>ONBOOT=yes
>>>BOOTPROTO=static
>>>IPADDR=203.208.228.*
>>>NETMASK=255.255.255.0
>>>GATEWAY=203.208.228.129
>>
>>You shouldn't have that line in
>>/etc/sysconfig/network-scripts/ifcfg-eth0.  It should be in
>>/etc/sysconfig/network...right after the "HOSTNAME=" line.
>>
> 
> That depends...  If you only have one possible gateway you should
> have it in /etc/sysconfig/network.  If you have different interfaces
> that could use different gateways you would want them in the
> ifcfg-xxx files so that they become active/disabled along with the
> matching interface.

True, but the problem is that the ones in ifcfg-ethx are specific to
the subnet that the interface is on...they don't become the _default_
gateway, which is why his stuff wasn't working.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-          Consciousness: that annoying time between naps.           -
----------------------------------------------------------------------




More information about the fedora-list mailing list