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 --> O : OK
A --> B : OK
A --> C : OK
A --> D : 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
Better On-line Solutions
 
Voice: +972 (04) 9907561
Fax: +972 (04) 9990334
[EMAIL PROTECTED]
http://www.boscom.com/


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to