Hi.
I got a problem with sequential routing over two default routes, might bee that it?s just
due to my misunderstanding of routing basics. Given the following situation:
Host connections:
jocker (dhcp) 192.168.61.100—> sugoman, eth2 (fix) 192.168.61.20
sugoman, eth0 (dhcp) 192.168.20.107 —> troll, eth0 (fix) 192.168.20.21
troll, eth2 (dhcp) —> DSL-Router
DSL-Router —> Internet
Ping:
Jocker <----> sugoman = ok
Jocker <----> troll = not ok
Sugoman <----> troll = ok
Sugoman -----> Internet = ok
Host Troll is connected to a Unitymedia DSL-Router.
To my understanding a ping-request from the windows xp host jocker to the suse
10.2 based host troll is first routed via default gw to the suse 11.3 based host
sugoman. The ping-request doesn?t match any static routes there and should bee
therefore send finally via default gw to host troll. This does NOT happen, though ip-
forwarding on host sugoman and troll is on! See below.
Host: Jocker
Os: Wxp sp3
Windows Firewall is not active!
D:>\ipconfig
Windows-IP-Konfiguration
Ethernetadapter LAN-Verbindung:
Verbindungsspezifisches DNS-Suffix: oben.zuhause.
IP-Adresse. . . . . . . . . . . . : 192.168.61.100
Subnetzmaske. . . . . . . . . . . : 255.255.255.0
IP-Adresse. . . . . . . . . . . . : fe80::2c0:dfff:fe13:600b%4
Standardgateway . . . . . . . . . : 192.168.61.20
Tunneladapter Teredo Tunneling Pseudo-Interface:
Verbindungsspezifisches DNS-Suffix:
IP-Adresse. . . . . . . . . . . . : fe80::ffff:ffff:fffd%5
Standardgateway . . . . . . . . . :
Tunneladapter Automatic Tunneling Pseudo-Interface:
Verbindungsspezifisches DNS-Suffix: oben.zuhause.
IP-Adresse. . . . . . . . . . . . : fe80::5efe:192.168.61.100%2
Standardgateway . . . . . . . . . :
D:> racert 192.168.20.21
Routenverfolgung zu troll.fm.ib-mitlehner.de [192.168.20.21] ?ber maximal
30 Abschnitte:
1 <1 ms <1 ms <1 ms 192.168.61.20
2 192.168.61.20 meldet: Zielprotokoll nicht erreichbar.
Ablaufverfolgung beendet.
D:>\
Host: Sugoman
Os: suse 11.3
Susefirewall2 is on, eth0, eth2 are set to internal zune.
Masquerading is off
sugoman:~ # route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.60.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.61.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.20.21 0.0.0.0 UG 0 0 0 eth0
sugoman:~ # cat /proc/sys/net/ipv4/ip_forward
1
sugoman:~ # ifconfig
eth0 Link encap:Ethernet Hardware Adresse 00:25:22:42:07:57
inet Adresse:192.168.20.107 Bcast:192.168.20.255 Maske:255.255.255.0
inet6 Adresse: fe80::225:22ff:fe42:757/64 Gltigkeitsbereich:
Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4441 errors:0 dropped:0 overruns:0 frame:0
TX packets:1087 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 SendewarteschlangenlÇÏnge:1000
RX bytes:988653 (965.4 Kb) TX bytes:107193 (104.6 Kb)
Interrupt:20 Basisadresse:0xc000
eth2 Link encap:Ethernet Hardware Adresse 00:E0:4C:68:69:B6
inet Adresse:192.168.61.20 Bcast:192.168.61.255 Maske:255.255.255.0
inet6 Adresse: fe80::2e0:4cff:fe68:69b6/64 Gltigkeitsbereich:
Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1241 errors:0 dropped:0 overruns:0 frame:0
TX packets:1006 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 SendewarteschlangenlÇÏnge:1000
RX bytes:105895 (103.4 Kb) TX bytes:174378 (170.2 Kb)
Interrupt:31 Basisadresse:0xe000
sugoman:~ #
Host: Troll
Os: suse 10.2
Susefirewall2 is on, eth0 is set to internal, eth2 to external zone.
Masquerading is on
troll:~ # route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
178.200.xx.0 0.0.0.0 255.255.254.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 178.200.xx.xx 0.0.0.0 UG 0 0 0 eth2
troll:~ # cat /proc/sys/net/ipv4/ip_forward
1
troll:~ # ifconfig
eth0 Link encap:Ethernet Hardware Adresse 00:21:85:6F:B8:78
inet Adresse:192.168.20.21 Bcast:192.168.20.255 Maske:255.255.255.0
inet6 Adresse: fe80::221:85ff:fe6f:b878/64 Gltigkeitsbereich:
Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:294831527 errors:0 dropped:0 overruns:0 frame:0
TX packets:592615642 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 SendewarteschlangenlÇÏnge:100
RX bytes:26647733167 (25413.2 Mb) TX bytes:357248659526 (340698.8 Mb)
Speicher:fdde0000-fde00000
eth2 Link encap:Ethernet Hardware Adresse 00:10:5A:42:62:E5
inet Adresse:178.200.xx.xx Bcast:255.255.255.255 Maske:255.255.254.0
UP BROADCAST RUNNING MULTICAST MTU:576 Metric:1
RX packets:663823938 errors:14 dropped:0 overruns:8709 frame:22
TX packets:272566099 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 SendewarteschlangenlÇÏnge:1000
RX bytes:318772700649 (304005.3 Mb) TX bytes:22416962500 (21378.4 Mb)
Interrupt:17 Basisadresse:0x8000
troll:~ #
I?m googeling for weeks now and I tried a lot of strange things. Till yet I didn?t find a
solution to this problem unfortunately.
So help me please! Thank you in advance.
PS.
Output of ifconfig is reduced to eth0 and eth2 by editing.