Re: Which way -- Gateway
- From: Bit Twister <BitTwister@xxxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 14:55:53 -0600
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.
.
- References:
- Which way -- Gateway
- From: delphinuscadmus@xxxxxxxxx
- Which way -- Gateway
- Prev by Date: Which way -- Gateway
- Previous by thread: Which way -- Gateway
- Index(es):
Relevant Pages
|