General discussion

Locked

Problems pinging network addresses in Li

By Niel Harper ·
I am running Red Hat Linux 7.3. I have two network cards installed and configured as follows:

10/100 - 200.200.200.111 (eth0)
10/100/1000 - 200.200.200.112 (eth1)

My problem is that when I try to ping a network address, it says host unreachable because by default the Linux box is using eth1. How can I make eth0 the default network card for data communication, especially ping?

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Problems pinging network addresses in Li

by sgt_shultz In reply to Problems pinging network ...

put the cards on different segments?

Collapse -

Problems pinging network addresses in Li

by Niel Harper In reply to Problems pinging network ...

The question was auto-closed by TechRepublic

Collapse -

Problems pinging network addresses in Li

by Jeeks In reply to Problems pinging network ...

I would like to help you with this, but I need some more info about what it is you are trying to do. I,ve setup several Linux firewall/router systems with dual NIC's but never with an address scheme like yours. What's the reasoning behind the addresses you are using? Is this a LAN/WAN configuration? Are you trying to setup a gateway? When you say "network address" what are you talking about? Example?

Collapse -

Problems pinging network addresses in Li

by Niel Harper In reply to Problems pinging network ...

The question was auto-closed by TechRepublic

Collapse -

Problems pinging network addresses in Li

by servermonkey In reply to Problems pinging network ...

On the fly, you can issue route del default to get rid of your current default route, then issue route add default eth0 .

To make the changes persist after reboot, edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add the line gateway=xxx.xxx.xxx.xxx and remove the line, if it exists from /etc/sysconfig/network-scripts/ifcfg-eth1.

However, looking at your IP addresses, I'm guessing you are using a 24 bit mask, making both interfaces on the same network. If that is the case, both interfaces should be plugged into the same network segment.

If this doesn't work, post more information about your topology.

Collapse -

Problems pinging network addresses in Li

by Niel Harper In reply to Problems pinging network ...

The question was auto-closed by TechRepublic

Collapse -

Problems pinging network addresses in Li

by Niel Harper In reply to Problems pinging network ...

This question was auto closed due to inactivity

Back to Linux Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums