Re: Which way -- Gateway



On 31 Mar 2006 12:37:50 -0800, delphinuscadmus@xxxxxxxxx wrote:
The gateway, I assume, can go into either of these two files.
/etc/sysconfig/network or ...
/etc/sysconfig/network-scripts/ifcfg-eth0

Why should it make a difference?
Is the only difference that the gateway should go in
/etc/sysconfig/network ...
unless you have more than one i/f with each i/f having its own gateway.
In which the gateway should be configured in
/etc/sysconfig/network-scripts/ifcfg-eth1???

I may be making some assumptions...
Can someone point me in the right direction?

I suggest putting the default gateway in /etc/sysconfig/network.
That allows you to delete/change eth0 and still not affect default
routing.

Then again, it depends on what distribution you are using and if
static or dhcp.

Your default gateway is normally where to send packets which will do not
route on your LAN. It is usually the next node on the way to the
internet.

If you want to hardcode some routing I'll suggest puting them in
/etc/sysconfig/static-routes
or /etc/sysconfig/network-scripts/route-ethX
depending on your distribution and release/verision.
.



Relevant Pages

  • Re: AIX 1.3 Failures and Fables
    ... DESTINATION GATEWAY FLGS REFCNT USE INTERFACE ... Is my interpretation of the AIX 1.3 #man route correct? ... Manually manipulates the routing tables. ... Is the destination host or network. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: AIX 1.3 Failures and Fables
    ... I don't know if 1.3 has SMIT or its equivalent but there should be some way to add a default gateway which is your router. ... is: route add 1.2.3.4 gateway ... Manually manipulates the routing tables. ... Is the destination host or network. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: AIX 1.3 Failures and Fables
    ... I don't know if 1.3 has SMIT or its equivalent but there should be some way to add a default gateway which is your router. ... Is my interpretation of the AIX 1.3 #man route correct? ... Manually manipulates the routing tables. ... Is the destination host or network. ...
    (comp.sys.ibm.ps2.hardware)
  • Re: static gateway configuration file
    ... Even happens between release levels of the same distribution. ... /var/log/messages on Redhat and Mandrake. ... Redhat and Mandrake have the gateway in /etc/sysconfig/network. ...
    (comp.os.linux.networking)
  • Re: Nitpicking
    ... >That distribution is used to prevent looping by the gateway. ... or you can have unbroken message threading. ...
    (comp.protocols.time.ntp)