Re: [CentOS] How to specify the default route?

2010-06-24 Thread Jason Pyeron
-Original Message- From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf Of Dominik Zyla Sent: Wednesday, June 23, 2010 13:55 To: centos@centos.org Subject: Re: [CentOS] How to specify the default route? On Mon, Jun 21, 2010 at 07:57:13PM -0400, Rick Thomas

Re: [CentOS] How to specify the default route?

2010-06-23 Thread Dominik Zyla
On Mon, Jun 21, 2010 at 07:57:13PM -0400, Rick Thomas wrote: I have a machine with two net interfaces. it seems to always pick the wrong one (eth1) as the default route. I can change it with route del default route add default eth0 after it's up (or in rc.local, of

Re: [CentOS] How to specify the default route?

2010-06-22 Thread Enrique Verdes
El lun, 21-06-2010 a las 19:57 -0400, Rick Thomas escribió: I have a machine with two net interfaces. it seems to always pick the wrong one (eth1) as the default route. I can change it with route del default route add default eth0 after it's up (or in rc.local, of

Re: [CentOS] How to specify the default route?

2010-06-22 Thread Rick Thomas
Thanks! to all who replied. I solved it by putting identical GATEWAY= clauses in each of /etc/sysconfig/networking/devices/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth1 This works without error, even though the gateway IP address in question is not accessible from

Re: [CentOS] How to specify the default route?

2010-06-22 Thread Les Mikesell
On 6/22/2010 1:51 PM, Rick Thomas wrote: Thanks! to all who replied. I solved it by putting identical GATEWAY= clauses in each of /etc/sysconfig/networking/devices/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth1 This works without error, even though the gateway IP

Re: [CentOS] How to specify the default route?

2010-06-22 Thread Rick Thomas
So I tried moving the GATEWAY clause into etc/sysconfig/network and out of the individual ifcfg-eth? files. It works. So I guess that's the preferred solution, because it puts the information in a single place. There's no need to make sure two or more places are synchronized if anything

[CentOS] How to specify the default route?

2010-06-21 Thread Rick Thomas
I have a machine with two net interfaces. it seems to always pick the wrong one (eth1) as the default route. I can change it with route del default route add default eth0 after it's up (or in rc.local, of course), but I'd like to figure out what I need to do this the CentOS

Re: [CentOS] How to specify the default route?

2010-06-21 Thread Whit Blauvelt
It's getting set from /etc/sysconfig/network-scripts/ifup-eth, line 285 and following - although I haven't traced out the logic it's using to begin to say why it's coming to the wrong conclusion in your case. Whit On Mon, Jun 21, 2010 at 07:57:13PM -0400, Rick Thomas wrote: I have a machine

Re: [CentOS] How to specify the default route?

2010-06-21 Thread Whit Blauvelt
On the other hand, which interface is listed in the /etc/sysconfig/network file? Is it your desired default? Whit On Mon, Jun 21, 2010 at 07:57:13PM -0400, Rick Thomas wrote: I have a machine with two net interfaces. it seems to always pick the wrong one (eth1) as the default route.

Re: [CentOS] How to specify the default route?

2010-06-21 Thread ken
On 06/21/2010 07:57 PM Rick Thomas wrote: I have a machine with two net interfaces. it seems to always pick the wrong one (eth1) as the default route. ... after it's up (or in rc.local, of course), but I'd like to figure out what I need to do this the CentOS way (e.g. edit some