LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2003, 08:25 AM   #1
Olusegun
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 - 200.200.200.111 (eth0)
10/100/1000 - 200.200.200.112 (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, 09:43 PM   #2
mychl
Member
 
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....

HTH
 
Old 02-13-2003, 01:15 AM   #3
thanhnx
Member
 
Registered: Jan 2003
Posts: 36

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

Rep: Reputation: 15
then
route add [−net|−host] target [netmask Nm] [gw Gw] dev eth0
 
Old 02-13-2003, 03:52 AM   #5
Darin
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

Quote:
Originally posted by Olusegun

10/100 - 200.200.200.111 (eth0)
10/100/1000 - 200.200.200.112 (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, 05:01 AM   #6
thanhnx
Member
 
Registered: Jan 2003
Posts: 36

Rep: Reputation: 15
Darin right!
 
  


Reply



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 09:46 PM
Network problems in RedHat 9.0 / Determination of IP addresses ... failed smaisnie Linux - Networking 14 05-04-2004 12:11 AM
Network not pinging any more. duffboygrim Linux - Networking 2 03-30-2004 05:05 PM
Problems networking Linux and Windows. Pinging does not work. ElijahLofgren Linux - Networking 29 02-11-2004 11:10 PM
PPP Problems - Pinging and Browsing bfloeagle Linux - Newbie 6 09-27-2000 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:50 AM.

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