routing errors

I’ve configured a bonded interface (bond0) and connected it to the LAN:

[CODE]san2:~ # ifconfig bond0
bond0 Link encap:Ethernet HWaddr 00:30:48:94:AD:D2
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:1001 errors:0 dropped:36 overruns:0 frame:0
TX packets:1831 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:816744 (797.6 Kb) TX bytes:207034 (202.1 Kb)

san2:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 bond0[/CODE]
The bonded interface (bond0 - 192.168.1.2) is ping’able but packets sent out the interface to the LAN segment seem to be routed to the default gateway instead of being sent directly to the neighboring host:

san2:~ # ping san1.example.com PING san1.example.com (191.168.1.1) 56(84) bytes of data. From 66-76-232-17.tyrd.suddenlink.net (66.76.232.17): icmp_seq=1 Time to live exceeded From 66-76-232-17.tyrd.suddenlink.net (66.76.232.17) icmp_seq=1 Time to live exceeded From 66-76-232-17.tyrd.suddenlink.net (66.76.232.17) icmp_seq=2 Time to live exceeded ^C --- san1.example.com ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
What’s causing this? :confused:

Eric Pretorious
Truckee, CA

Rebooting the system has improved the behavior but not fixed it completely:

[CODE]san2:~ # ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.165 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.115 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.121 ms
^C
— 192.168.1.1 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.115/0.133/0.165/0.025 ms

san2:~ # ping -c3 san1.example.com
PING san1.example.com (191.168.1.1) 56(84) bytes of data.
From 66-76-232-17.tyrd.suddenlink.net (66.76.232.17): icmp_seq=1 Time to live exceeded
From 66-76-232-17.tyrd.suddenlink.net (66.76.232.17) icmp_seq=1 Time to live exceeded
From 66-76-232-17.tyrd.suddenlink.net (66.76.232.17) icmp_seq=2 Time to live exceeded

san1.example.com ping statistics —
2 packets transmitted, 0 received, +3 errors, 100% packet loss, time 999ms[/CODE]
i.e., When resovling the hostname san1.example.com (192.168.1.1) the packets are routed via the default gateway instead of being sent to the neighboring host.

WTF? :confused:

Eric Pretorious
Truckee, CA

Perhaps lets get some more data:

SLES version including SPs?
Have you done this before and had it work?
Is there just the one device (eth2) in the bond?
What do you get as output to the following commands?

ip addr
ip route
ip -s link

It may also be interesting to look in /var/log/firewall or
/var/log/messages during your ping tests, though I kind of doubt it…
just trying to get as much information as possible to help.

Good luck.

Hi Eric,

i.e., When resovling the hostname san1.example.com (192.168.1.1) the packets are routed via the default gateway instead of being sent to the neighboring host.

WTF? :confused:

whoever set up DNS (or is it resolved locally via /etc/hosts?) should correct the typo. :smiley:

san2:~ # ping -c3 san1.example.com > PING san1.example.com (19[SIZE=5]1[/SIZE].168.1.1) 56(84) bytes of data.

Regards,
Jens

[QUOTE=jmozdzen;10795]Hi Eric,

whoever set up DNS (or is it resolved locally via /etc/hosts?) should correct the typo. :smiley:

san2:~ # ping -c3 san1.example.com > PING san1.example.com (19[SIZE=5]1[/SIZE].168.1.1) 56(84) bytes of data.[/QUOTE]

Good catch, Jens! I fixed the entry in /etc/hosts and the problem has been resolved:

[CODE]san2:~ # ping -c3 san1.example.com
PING san1.example.com (192.168.1.1) 56(84) bytes of data.
64 bytes from san1.example.com (192.168.1.1): icmp_seq=1 ttl=64 time=0.165 ms
64 bytes from san1.example.com (192.168.1.1): icmp_seq=2 ttl=64 time=0.119 ms
64 bytes from san1.example.com (192.168.1.1): icmp_seq=3 ttl=64 time=0.114 ms

san1.example.com ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.114/0.132/0.165/0.026 ms
[/CODE]
Many thanks! :smiley:

Eric Pretorious
Truckee, CA