Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
eth0 interface of T60 machine has IP address 10.10.10.2/24. I would like to ping 10.10.11.2 and T60 machine should use 10.10.10.1 gateway for this according to routing table:
Any ideas what might cause this? Looks like T60 ignores the routing table. In addition, sometimes if I ping 10.10.11.2 I receive following strange "Redirect Host" message from my router:
Code:
T60:~ # ping 10.10.11.2
PING 10.10.11.2 (10.10.11.2) 56(84) bytes of data.
64 bytes from 10.10.11.2: icmp_seq=1 ttl=63 time=0.259 ms
From 10.10.10.1: icmp_seq=1 Redirect Host(New nexthop: 10.10.11.2)
From 10.10.10.2 icmp_seq=2 Destination Host Unreachable
From 10.10.10.2 icmp_seq=3 Destination Host Unreachable
..and at the same time see following in tcpdump output:
to me it looks like it's the router being weird, not the host. it's apparently the router that's giving back the ICMP redirect telling the client that the remote box is actually local. I've never dealt with ICMP redirects, but presumably they will be kept by the client for a while and then timeout (as it's not a connection orientated protocol things need to be cached with brute force rules rather than a subtler implicit approach), which is when you'd get the redirect again.
It might be a little more useful to also look at the mac addresses of the boxes in the tcpdump, add an -e to the command and verify that the L2 conversation is only between the client and the router.
to me it looks like it's the router being weird, not the host. it's apparently the router that's giving back the ICMP redirect telling the client that the remote box is actually local. I've never dealt with ICMP redirects, but presumably they will be kept by the client for a while and then timeout (as it's not a connection orientated protocol things need to be cached with brute force rules rather than a subtler implicit approach), which is when you'd get the redirect again.
It might be a little more useful to also look at the mac addresses of the boxes in the tcpdump, add an -e to the command and verify that the L2 conversation is only between the client and the router.
Yes, to me it looks the same. Looks like the information received by ICMP Redirect Message -s are not put to the kernel Forwarding Information Base(route -n), but it's put to the kernel routing cache(route -nC) and as you said, it seems to time out after 600s.
The "ICMP redirect" message is sent by the router interface according to "tcpdump -nei eth0" in T60 machine and conversation is only between T60 and my gateway.
Since you have only one interface,and it's connected to one router, you don't need specific routing entry for any particular network I guess. In any case you should be able to ping your router first, if it is your default gateway. The other networks come second. If your router(the default gateway) is set up correctly, it would know which traffic where to send. It seems the traffic can go out only and can't return. Configure a default gateway and see.
It is a Juniper M10i with JUNOS 10.4R9.2. I did not find exact JUNOS problem report(PR), but there has been few related to ICMP redirect messages. For example:
Code:
No ICMP host redirect messages are generated when there are multiple VLANs configured on an interface (multiple logical interfaces on a single physical interface).[PR/559317]
Hmm, yeah I wondered if there could be some nasty vlan misconfiguration. I don't see JunOS doing this without due cause.
If you have two IPs on different subnets but the same interface, then the connection is going to enter and leave on the same interface, and a firewall isn't going to like that at all, so here is telling the client to not go via it in the first place. one subnet = one vlan.
Last edited by acid_kewpie; 11-09-2012 at 02:16 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.