LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-07-2009, 11:17 AM   #1
etherag
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Rep: Reputation: 0
2 NICs, everything accessible over 1, "No Route to Host" on the other.


Ok, in the Server farm I manage, I'm having a weird issue.

The Basics:
Dell PE1850
CentOS 4.4 x86
Kernel 2.6.9-42
2x e1000 network cards

eth0 is on the main network, and it works fine. I can reach all internal, DMZ, and internet resources through it without issue.

eth1 is on a second network, which is only used for iscsi connections. It's on the 10.3.1.0 subnet. There is a routing table entry that looks right to me, yet when I try pinging the anything on the 10.3.1.0 subnet, I get the following:

Code:
# ping 10.3.1.100
PING 10.3.1.100 (10.3.1.100) 56(84) bytes of data.
From 10.3.1.46 icmp_seq=0 Destination Host Unreachable
From 10.3.1.46 icmp_seq=1 Destination Host Unreachable
From 10.3.1.46 icmp_seq=2 Destination Host Unreachable
From 10.3.1.46 icmp_seq=4 Destination Host Unreachable
From 10.3.1.46 icmp_seq=5 Destination Host Unreachable
From 10.3.1.46 icmp_seq=6 Destination Host Unreachable

--- 10.3.1.100 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6000ms
, pipe 4

I've pinged around with a number of other systems on this subnet, and that should definitely work. I've tried different ports on the switch, and different cables. so I don't think that's the issue.

Does anyone have any idea what I'm missing?



Interfaces:
Code:
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:43:E2:CA:50  
          inet addr:10.0.1.171  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:43ff:fee2:ca50/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6474907 errors:0 dropped:0 overruns:0 frame:0
          TX packets:187283 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:818220154 (780.3 MiB)  TX bytes:16267010 (15.5 MiB)
          Base address:0xecc0 Memory:fe6e0000-fe700000 

eth1      Link encap:Ethernet  HWaddr 00:11:43:E2:CA:51  
          inet addr:10.3.1.46  Bcast:10.3.1.255  Mask:255.255.255.0
          inet6 addr: fe80::211:43ff:fee2:ca51/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:90201 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:12450877 (11.8 MiB)  TX bytes:1952 (1.9 KiB)
          Base address:0xdcc0 Memory:fe4e0000-fe500000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24609 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24609 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8707379 (8.3 MiB)  TX bytes:8707379 (8.3 MiB)
Routing Tables:
Code:
# netstat -r -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.1.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.3.1.0        0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         10.0.1.1        0.0.0.0         UG        0 0          0 eth0
Firewall (empty, but here it is so no one asks for it...)
Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Also, interestingly, I can see a small amount of traffic on that interace from other systems:
Code:
# tcpdump -i eth1 -n
12:12:07.835922 IP 10.3.1.11.netbios-dgm > 10.3.1.255.netbios-dgm: NBT UDP PACKET(138)
12:12:12.751935 00:1b:3f:5b:06:0d > 01:80:c2:00:00:0e, ethertype Unknown (0x88cc), length 168:
        0x0000:  0207 0400 1b3f 5b06 0004 0307 3139 0602  .....?[.....19..
        0x0010:  0078 0802 3139 0a14 5072 6f43 7572 7665  .x..19..ProCurve
        0x0020:  2053 7769 7463 6820 3238 3234 0c56 5072  .Switch.2824.VPr
        0x0030:  6f43 7572 7665 204a 3439 3033 4120 5377  oCurve.J4903A.Sw
        0x0040:  6974 6368 2032 3832 342c 2072 6576 6973  itch.2824,.revis
        0x0050:  696f                                     io
12:12:34.581845 IP 10.3.1.11.netbios-ns > 10.3.1.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
And even more interestingly, if I ping that IP from another system, I can see the arp packets coming from the problem box, but no response ever comes...

Code:
# tcpdump -i eth1 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
12:15:47.696148 arp who-has 10.3.1.46 tell 10.3.1.212
12:15:48.696036 arp who-has 10.3.1.46 tell 10.3.1.212
12:15:49.696079 arp who-has 10.3.1.46 tell 10.3.1.212
12:15:50.715986 arp who-has 10.3.1.46 tell 10.3.1.212
12:15:51.716028 arp who-has 10.3.1.46 tell 10.3.1.212
12:15:52.711948 arp who-has 10.3.1.46 tell 10.3.1.212
 
Old 05-08-2009, 01:03 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Read this post: http://www.linuxquestions.org/questi...1/#post3439953
 
Old 05-08-2009, 04:04 PM   #3
etherag
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
I'm going to give iproute2 a try on monday, but I don't think that's the issue. iproute2 has more to do with balancing inbound and outbound connections via 2 gateways/interfaces.

I'm dealing with a much smaller issue, where all traffic should go out the primary interface except for a single subnet, which should always go in and out the secondary interface. A single static route should be all that's necessary, however, the route is simply not working right.

Anyway, I'll try it monday and report back, but I'm not optimistic. Either way, thanks for the link/input.
 
Old 05-08-2009, 04:28 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by etherag
iproute2 has more to do with balancing inbound and outbound connections via 2 gateways/interfaces.

I'm dealing with a much smaller issue, where all traffic should go out the primary interface except for a single subnet, which should always go in and out the secondary interface. A single static route should be all that's necessary, however, the route is simply not working right.
Actually, I disagree. On RHEL-family distros, using route to set up a multi-homed server simply does not work properly. Maybe you didn't look at the short script I wrote in that post, but (assuming I am understanding you correctly) source-based routing sounds like the solution in your case.
 
Old 05-11-2009, 03:10 PM   #5
etherag
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
Actually, I disagree. On RHEL-family distros, using route to set up a multi-homed server simply does not work properly. Maybe you didn't look at the short script I wrote in that post, but (assuming I am understanding you correctly) source-based routing sounds like the solution in your case.
Well... I ended up doing what I should have done in the first place... ran full updates and rebooted. And the problem disappeared. My stubborn "linux doesn't need to reboot" ethos got in the way of solving the problem I guess.

Thanks for the help anyway.
 
Old 05-11-2009, 03:33 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
the one thing that caught my eye was the 169.254 Address on eth1.. I don't believe it should have been there in your routing table..

Now that things are working for you, I'm curious if that entry is still showing in your routing table..
 
Old 05-11-2009, 04:00 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@etherag: If you're interested in following up on this thread further, I'm also curious to see what you find while analyzing traffic (i.e. using tcpdump) during active tcp sessions. I suspect you are going to see traffic to eth1 enter eth1 and then exit eth0 and/or other strange behavior.
 
Old 05-12-2009, 11:35 AM   #8
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Quote:
Originally Posted by anomie View Post
Actually, I disagree. On RHEL-family distros, using route to set up a multi-homed server simply does not work properly. Maybe you didn't look at the short script I wrote in that post, but (assuming I am understanding you correctly) source-based routing sounds like the solution in your case.
One doesn't need source based routing unless there are NATs, firewalls or conflicting addresses involved.
 
Old 05-12-2009, 03:37 PM   #9
etherag
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
the one thing that caught my eye was the 169.254 Address on eth1.. I don't believe it should have been there in your routing table..

Now that things are working for you, I'm curious if that entry is still showing in your routing table..
Yup, that entry is still in the routing table. I'm not sure why either, but it's not hurting anything, so I'm leaving it.


Quote:
Originally Posted by anomie View Post
@etherag: If you're interested in following up on this thread further, I'm also curious to see what you find while analyzing traffic (i.e. using tcpdump) during active tcp sessions. I suspect you are going to see traffic to eth1 enter eth1 and then exit eth0 and/or other strange behavior.
I've seen the errors you're talking about before, but when I was having this problem, I had tcpdumps on all three interfaces (eth0, eth1, lo), and that wasn't happening. When I pinged 10.3.1.x, the packets didn't seem to go anywhere. It was extremely odd.

I think TimothyEBaldwin is correct in this case, the problem you're referring to happens when there's NAT/masquerading involved.
 
Old 05-12-2009, 05:15 PM   #10
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
@etherag: I don't want to belabor the point, but the problem I have seen repeatedly occurred with RHEL4 when set up as a multi-homed server. It had nothing to do with NAT/masquerading.

In any case, even though my experiences don't seem to match yours, I'm glad you got it working.
 
Old 05-13-2009, 01:39 PM   #11
etherag
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
@etherag: I don't want to belabor the point, but the problem I have seen repeatedly occurred with RHEL4 when set up as a multi-homed server. It had nothing to do with NAT/masquerading.

In any case, even though my experiences don't seem to match yours, I'm glad you got it working.
Hmmm... My last thought as to why it worked for me but not for you is that in my specific situation, there's no gateway on the 10.3.1.0 subnet, so there's no more complex routes. The 10.3.1.0 subnet can only be accessed via the second NIC, and nothing else can be routed through there. The situation in the links you posted had much more complicated routing issues because they were dealing with having multiple gateways available.

Either way, I'm glad it's working, and am glad for everyone's help.
 
Old 05-13-2009, 01:46 PM   #12
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by etherag
The 10.3.1.0 subnet can only be accessed via the second NIC, and nothing else can be routed through there. The situation in the links you posted had much more complicated routing issues because they were dealing with having multiple gateways available.
That makes sense. The problem scenarios I described (and posted a solution for) all involved two NICs on separate subnets, with separate default routers.

Thanks for following up with those details. It's extremely dissatisfying to me to walk away from a problem without understanding what transpired, and/or why an unexpected fix worked.
 
  


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
Handling a "No route to host" message in a script kaujot Programming 2 03-27-2008 06:14 PM
shorewall routing issue: "no route to host" from dmz spargonaut Linux - Networking 0 06-07-2007 10:09 AM
a/p connected, route correct, ping router: "Destination Host Unreachable". DebianEtch shinyblue Linux - Wireless Networking 1 08-29-2006 09:34 PM
could "no route to host" be caused by non-crossover cable? brandonweinberg Linux - Networking 13 01-31-2004 09:47 AM
Permanently set "route add" -host and default gw sacants Linux - Newbie 1 07-18-2003 04:04 AM

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

All times are GMT -5. The time now is 09:21 PM.

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