How to stop 2 default gateways? - Mandriva

This is a discussion on How to stop 2 default gateways? - Mandriva ; I have two network cards, one is on a 71.252.x network and one on a
192.168.x network. I would like my default gateway to be the 71.252.x
with only 192.168.x traffic going through that particualr card. When I
setup /etc/network-scripts/ifcfg-eth0 ...

How to stop 2 default gateways?

I have two network cards, one is on a 71.252.x network and one on a
192.168.x network. I would like my default gateway to be the 71.252.x
with only 192.168.x traffic going through that particualr card. When I
setup /etc/network-scripts/ifcfg-eth0 and eth1 then ifup I get two
0.0.0.0 gateways - How can I stop Mandriva doing that?

Any idea how I can fix this using the scripts or should I write my own
to start eth0 after eth1 if configured?

Re: How to stop 2 default gateways?

On Thu, 19 Jun 2008 02:50:02 GMT, nigel@sysadmininc.com wrote:
> I have two network cards, one is on a 71.252.x network and one on a
> 192.168.x network. I would like my default gateway to be the 71.252.x
> with only 192.168.x traffic going through that particualr card. When I
> setup /etc/network-scripts/ifcfg-eth0 and eth1 then ifup I get two
> 0.0.0.0 gateways - How can I stop Mandriva doing that?
>
> The device below should ONLY route to 192.168.168.254
> [root@cartman network-scripts]# more ifcfg-eth0
> DEVICE=eth0
> BOOTPROTO=static
> IPADDR=192.168.168.9
> NETMASK=255.255.255.0
> GATEWAY=192.168.168.254

Re: How to stop 2 default gateways?

Bit Twister wrote:
> You may also want to add a zeroconf line to /etc/sysconfig/network

Thanks, I'll give that a try.

Re: How to stop 2 default gateways?

On Wed, 18 Jun 2008 22:50:02 -0400, wrote:
> I have two network cards, one is on a 71.252.x network and one on a
> 192.168.x network. I would like my default gateway to be the 71.252.x
> with only 192.168.x traffic going through that particualr card. When I
> setup /etc/network-scripts/ifcfg-eth0 and eth1 then ifup I get two
> 0.0.0.0 gateways - How can I stop Mandriva doing that?
>
> The device below should ONLY route to 192.168.168.254
> [root@cartman network-scripts]# more ifcfg-eth0
> DEVICE=eth0
> BOOTPROTO=static
> IPADDR=192.168.168.9
> NETMASK=255.255.255.0
> GATEWAY=192.168.168.254

Try removing the above line.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)

Re: How to stop 2 default gateways?

My some odd freak of computing, whenever I traceroute a site it goes out
the 71.x network card and only 192.168.x does out that particular card.
Quite unexpected but works for me, not a proper solution tho.