# routing errors

**URL:** <https://forums.suse.com/t/routing-errors/23428>\
**Category:** SLES Configure-Administer\
**Created:** [December 19, 2012, 5:58am UTC](https://forums.suse.com/t/routing-errors/23428 "2012-12-19T05:58:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![epretorious](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@epretorious](https://forums.suse.com/u/epretorious)\
**Post date:** [December 19, 2012, 5:58am UTC](https://forums.suse.com/t/routing-errors/23428/1 "2012-12-19T05:58:13Z")

</div>

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? 😕

Eric Pretorious  
Truckee, CA

---

<div class="post-metadata">

**Author:** ![epretorious](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@epretorious](https://forums.suse.com/u/epretorious)\
**Post date:** [December 19, 2012, 6:42am UTC](https://forums.suse.com/t/routing-errors/23428/2 "2012-12-19T06:42:48Z")

</div>

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](http://san1.example.com)  
PING [san1.example.com](http://san1.example.com) (191.168.1.1) 56(84) bytes of data.  
From [66-76-232-17.tyrd.suddenlink.net](http://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](http://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](http://66-76-232-17.tyrd.suddenlink.net) (66.76.232.17) icmp\_seq=2 Time to live exceeded

— [san1.example.com](http://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](http://san1.example.com) (192.168.1.1) the packets are routed via the default gateway instead of being sent to the neighboring host.

WTF? 😕

Eric Pretorious  
Truckee, CA

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [December 19, 2012, 2:30pm UTC](https://forums.suse.com/t/routing-errors/23428/3 "2012-12-19T14:30:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [December 19, 2012, 6:04pm UTC](https://forums.suse.com/t/routing-errors/23428/4 "2012-12-19T18:04:43Z")

</div>

Hi Eric,

> i.e., When resovling the hostname [san1.example.com](http://san1.example.com) (192.168.1.1) the packets are routed via the default gateway instead of being sent to the neighboring host.
> 
> WTF? 😕

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

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

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![epretorious](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@epretorious](https://forums.suse.com/u/epretorious)\
**Post date:** [December 20, 2012, 4:22am UTC](https://forums.suse.com/t/routing-errors/23428/5 "2012-12-20T04:22:38Z")

</div>

[QUOTE=jmozdzen;10795]Hi Eric,

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

> san2:~ # ping -c3 [san1.example.com](http://san1.example.com) \> PING [san1.example.com](http://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](http://san1.example.com)  
PING [san1.example.com](http://san1.example.com) (192.168.1.1) 56(84) bytes of data.  
64 bytes from [san1.example.com](http://san1.example.com) (192.168.1.1): icmp\_seq=1 ttl=64 time=0.165 ms  
64 bytes from [san1.example.com](http://san1.example.com) (192.168.1.1): icmp\_seq=2 ttl=64 time=0.119 ms  
64 bytes from [san1.example.com](http://san1.example.com) (192.168.1.1): icmp\_seq=3 ttl=64 time=0.114 ms

— [san1.example.com](http://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! 😃

Eric Pretorious  
Truckee, CA
