Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-12-2003, 09:25 AM   #1
LQ Newbie
Registered: Oct 2002
Location: Barbados
Distribution: Red Hat
Posts: 14

Rep: Reputation: 0
Angry problems pinging network addresses

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

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

eth1 is plugged into a SPAN (monitoring) port on a Cisco Catalyst 2950 router. This SPAN port only monitors traffic and does not send any data.

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?
Old 02-12-2003, 10:43 PM   #2
Registered: Jul 2001
Location: Earth
Posts: 164

Rep: Reputation: 30
This *might* help....

Try using the route add gw command to add eth0 as your gateway. Or.... you could reset the ip's and switch the cables in the NICs....

Old 02-13-2003, 02:15 AM   #3
Registered: Jan 2003
Posts: 36

Rep: Reputation: 15
first check whether both your cards are active
ping -I eth0
Old 02-13-2003, 02:53 AM   #4
Registered: Jan 2003
Posts: 36

Rep: Reputation: 15
route add [−net|−host] target [netmask Nm] [gw Gw] dev eth0
Old 02-13-2003, 04:52 AM   #5
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Re: problems pinging network addresses

Originally posted by Olusegun

10/100 - (eth0)
10/100/1000 - (eth1)
That's two network cards on the same subnet, doesn't work unless they are configured as port trunks in the linux NIC drivers and the router.

You may be able to get away with a hack of linking the drivers to the other eth interfaces or switching the cables.
Old 02-13-2003, 06:01 AM   #6
Registered: Jan 2003
Posts: 36

Rep: Reputation: 15
Darin right!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Erratic network performance / pinging Shade Linux - Networking 0 06-30-2004 10:46 PM
Network problems in RedHat 9.0 / Determination of IP addresses ... failed smaisnie Linux - Networking 14 05-04-2004 01:11 AM
Network not pinging any more. duffboygrim Linux - Networking 2 03-30-2004 06:05 PM
Problems networking Linux and Windows. Pinging does not work. ElijahLofgren Linux - Networking 29 02-12-2004 12:10 AM
PPP Problems - Pinging and Browsing bfloeagle Linux - Newbie 6 09-27-2000 08:58 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration