How to set default gw not by route command in linux?
- From: "ChaoZhang" <chaozh@xxxxxxxxxx>
- Date: 23 Nov 2006 07:14:48 -0800
My linux pc has two adapters, eth0 is 192.168.1.2 and eth1 is
172.16.2.100. I manually set these ip addresses in ifcfg-eth0 and
ifcfg-eth1 files. I also set 192.168.1.1 and 172.16.2.1 as gateways for
eth0 and eth1. After this, I found the default gw is 172.16.2.1 not
192.168.1.1. I know I can change it through route command. But I think
there must be another way for system to set the default gw is
192.168.1.1. Could you please tell me how to configure it? many thanks!
.
- Follow-Ups:
- Re: How to set default gw not by route command in linux?
- From: Unruh
- Re: How to set default gw not by route command in linux?
- From: Balwinder S \"bsd\" Dheeman
- Re: How to set default gw not by route command in linux?
- From: Bit Twister
- Re: How to set default gw not by route command in linux?
- Prev by Date: outgoing packets with sendto()
- Next by Date: Re: How to set default gw not by route command in linux?
- Previous by thread: outgoing packets with sendto()
- Next by thread: Re: How to set default gw not by route command in linux?
- Index(es):
Relevant Pages
|