This is a discussion on Routing problem within the Linux Networking forums, part of the Linux Forums category; Hi, I'm trying to use Linux as a small router but it is probably not my day :) this is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'm trying to use Linux as a small router but it is probably not my day :) this is the configuration I have: +------+ | O | +------+ |172.17.2.3 | | |172.17.2.30 Masquerade t this interface +--------------+ | A - Linux | +--------------+ |172.16.0.1 | | +------+172.16.0.2 | 172.16.0.10+------+172.30.0.1 172.30.0.10+------+ | B |--------------------------| C |--------------------------| D | +------+ 255.255.0.0 +------+ 255.255.0.0 +------+ interface I have: eth0 Link encap:Ethernet HWaddr 00:E0:72:A0:03:1F inet addr:172.17.2.30 Bcast:172.17.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:821 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:75201 (73.4 kiB) TX bytes:1306 (1.2 kiB) Base address:0x8500 eth1 Link encap:Ethernet HWaddr 00:E0:72:A0:03:10 inet addr:172.16.0.1 Bcast:0.0.0.0 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:58 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:9209 (8.9 kiB) TX bytes:0 (0.0 iB) Base address:0x8400 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:283 errors:0 dropped:0 overruns:0 frame:0 TX packets:283 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:82004 (80.0 kiB) TX bytes:82004 (80.0 kiB) this is the perliminary routing table I had: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth1 172.17.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0 0.0.0.0 172.17.1.10 0.0.0.0 UG 40 0 0 eth0 I add the next route: route add -net 172.30.0.0 netmask 255.255.0.0 gw 172.16.0.10 so now I have the next routing table: Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.30.0.0 172.16.0.10 255.255.0.0 UG 40 0 0 eth1 172.16.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth1 172.17.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0 0.0.0.0 172.17.1.10 0.0.0.0 UG 40 0 0 eth0 Connection test using ping: A --> loopbak : OK A --> O : OK A --> B : OK A --> C : OK A --> D : OK - C --> *All* : OK - B --> A : OK B --> O : OK B --> C(172.16.0.10) : OK B --> C(172.30.0.1) : Fail B --> D : Fail 1. The default router for B is A. 2. All the stations except A are Win2K/Win9X Any idea what I should do so that B can get to D? Best Regards Yehoram Ben-Yaacov yben@boscom.com |
|
|||
|
On 9 Sep 2003 05:14:23 -0700, Yehoram B.Y. <yben@boscom.com> wrote:
> Hi, > > I'm trying to use Linux as a small router but it is probably not my day :) > this is the configuration I have: > > +------+ > | O | > +------+ > |172.17.2.3 > | > | > |172.17.2.30 Masquerade t this interface > +--------------+ > | A - Linux | > +--------------+ > |172.16.0.1 > | > | > +------+172.16.0.2 | 172.16.0.10+------+172.30.0.1 172.30.0.10+------+ >| B |--------------------------| C |--------------------------| D | > +------+ 255.255.0.0 +------+ 255.255.0.0 +------+ > > interface I have: > eth0 Link encap:Ethernet HWaddr 00:E0:72:A0:03:1F > inet addr:172.17.2.30 Bcast:172.17.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:821 errors:0 dropped:0 overruns:0 frame:0 > TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:75201 (73.4 kiB) TX bytes:1306 (1.2 kiB) > Base address:0x8500 > > eth1 Link encap:Ethernet HWaddr 00:E0:72:A0:03:10 > inet addr:172.16.0.1 Bcast:0.0.0.0 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:58 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > RX bytes:9209 (8.9 kiB) TX bytes:0 (0.0 iB) > Base address:0x8400 eth1 broadcast is wrong, should be 172.16.255.255 > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:283 errors:0 dropped:0 overruns:0 frame:0 > TX packets:283 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:82004 (80.0 kiB) TX bytes:82004 (80.0 kiB) > > > this is the perliminary routing table I had: > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt Iface > 172.16.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth1 > 172.17.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0 > 0.0.0.0 172.17.1.10 0.0.0.0 UG 40 0 0 eth0 > > I add the next route: > route add -net 172.30.0.0 netmask 255.255.0.0 gw 172.16.0.10 > > so now I have the next routing table: > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt Iface > 172.30.0.0 172.16.0.10 255.255.0.0 UG 40 0 0 eth1 > 172.16.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth1 > 172.17.0.0 0.0.0.0 255.255.0.0 U 40 0 0 eth0 > 0.0.0.0 172.17.1.10 0.0.0.0 UG 40 0 0 eth0 > > > Connection test using ping: > A --> loopbak : OK > A --> O : OK > A --> B : OK > A --> C : OK > A --> D : OK > - > C --> *All* : OK > - > B --> A : OK > B --> O : OK > B --> C(172.16.0.10) : OK > B --> C(172.30.0.1) : Fail > B --> D : Fail > > 1. The default router for B is A. > 2. All the stations except A are Win2K/Win9X > > > Any idea what I should do so that B can get to D? B would need a gw to 172.16.0.10 for 172.30.0.0/16 network. Or since some Win versions are not too specific maybe you just need to add 172.16.0.10 to its list of gateways. Otherwise B would not know what to try if 172.16.0.1 gateway fails. -- David Efflandt - All spam ignored http://www.de-srv.com/ http://www.autox.chicago.il.us/ http://www.berniesfloral.net/ http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/ |
|
|||
|
yben@boscom.com (Yehoram B.Y.) wrote in
news:4149929c.0309090414.57a4c2c@posting.google.co m: > Hi, > <SNIP> > > Any idea what I should do so that B can get to D? > Do a traceroute to the 172.30.x.x address and see where it is falling over. L. > Best Regards > > Yehoram Ben-Yaacov > yben@boscom.com |