Re: How to set default gw not by route command in linux?
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: 23 Nov 2006 16:27:05 GMT
"ChaoZhang" <chaozh@xxxxxxxxxx> writes:
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
Why do you set gateways for both? Gateways are for default routes. You can
only have one default route. The last one set.
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!
Get rid of the GATEWAY option for the address you do not want.
.
- Follow-Ups:
- Re: How to set default gw not by route command in linux?
- From: Floyd L. Davidson
- Re: How to set default gw not by route command in linux?
- References:
- How to set default gw not by route command in linux?
- From: ChaoZhang
- How to set default gw not by route command in linux?
- Prev by Date: Re: restrict file access to only one particular user who enters correct password in web
- Next by Date: Re: PPTPD connection tracking
- Previous by thread: Re: How to set default gw not by route command in linux?
- Next by thread: Re: How to set default gw not by route command in linux?
- Index(es):
Relevant Pages
|