Help answer threads with 0 replies.
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 09-27-2005, 12:14 AM   #1
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 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 * U 0 0 0 eth0 * U 0 0 0 eth0 * U 0 0 0 eth1 * U 0 0 0 eth0
default UG 0 0 0 eth1

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

IN= OUT=eth1 SRC= DST= 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)

Old 09-27-2005, 12:23 AM   #2
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?


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
How to create a route to a usb0 interface? cmisip Linux - Networking 13 03-02-2007 12:07 AM
can't route/ping between networks ender03 Linux - Networking 21 02-01-2005 07:14 AM
What went wrong? Can ping IP cannot ping TLDs. etegration Linux - Networking 5 11-22-2004 11:38 AM
Route all traffic of a given type to an interface tsweatt Linux - Networking 0 09-01-2003 01:24 PM
Adding default route breaks ping howlie Linux - Networking 4 07-29-2003 11:18 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:58 AM.

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