LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 09-26-2005, 11:14 PM   #1
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 56

Rep: Reputation: 15
ping on wrong interface despite route


I have a fedora core 4 box with 2 NIC's. eth0 is on 172.31.254.x and eth1 is on 172.31.253.x. A third network 172.31.250.x is reachable via eth0.

Whenever I trying to ping 172.31.250.2 from my box, it is going out eth1 - when it should be using eth0. Here is my routing table:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.31.250.0 * 255.255.255.0 U 0 0 0 eth0
172.31.254.0 * 255.255.255.0 U 0 0 0 eth0
172.31.253.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 172.31.253.1 0.0.0.0 UG 0 0 0 eth1

Here is the dmesg confirming the pings are going out the wrong interface.

IN= OUT=eth1 SRC=172.31.253.4 DST=172.31.250.2 LEN=84 TOS=0x00 PREC=0x00 TTL=64 ID=4 DF PROTO=ICMP TYPE=8 CODE=0 ID=42317 SEQ=4

Why is ping not using the right interface? (why using eth1 not eth0)

Thanks,
MD
 
Old 09-26-2005, 11:23 PM   #2
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 56

Original Poster
Rep: Reputation: 15
Just to add to the question...when I reboot all of my custom routes are lost. How do I make them permanent?
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a route to a usb0 interface? cmisip Linux - Networking 13 03-01-2007 11:07 PM
can't route/ping between networks ender03 Linux - Networking 21 02-01-2005 06:14 AM
What went wrong? Can ping IP cannot ping TLDs. etegration Linux - Networking 5 11-22-2004 10:38 AM
Route all traffic of a given type to an interface tsweatt Linux - Networking 0 09-01-2003 12:24 PM
Adding default route breaks ping howlie Linux - Networking 4 07-29-2003 10:18 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration