0

我想将 ubuntu 12.04 配置为路由器。这台 ubuntu 电脑有 3 个网卡

eth0:192.168.1.203 (LAN1)
eth1:172.16.30.21 (Internet)
eth2:10.216.1.107 (LAN2)

$ route -n

Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric   Ref  Use Iface
0.0.0.0         172.16.30.1     0.0.0.0         UG    0        0    0   eth1
10.216.1.0      10.216.1.1      255.255.255.0   UG    0        0    0   eth2
10.216.1.0      0.0.0.0         255.255.255.0   U     1        0    0   eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     1000     0    0   eth2
172.16.30.0     0.0.0.0         255.255.255.0   U     1        0    0   eth1
192.168.0.0     192.168.1.3     255.255.0.0     UG    0        0    0   eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     1        0    0   eth0

如果我像这样配置其他 Windows pc (PC1):

ip:192.168.1.29
mask:255.255.255.0
gw:192.168.1.203

从这台电脑(PC1)我连接到互联网,我可以 ping 此范围 192.168.0.0/16 和此 IP 10.216.1.107 中的所有 IP。但我无法 ping 此范围 10.216.1.0/24 中的其他 IP(我可以从 ubuntu pc ping 这个范围)。

我的问题是如何修改我的路由表以确保 PC1 和 10.216.1.0/24 范围内的所有 PC 之间的连接

http://i.stack.imgur.com/JTbo4.jpg

4

1 回答 1

0

The gateway does not need any special routes for this. Do the 10.216.1.0/24 systems have a route for 192.168.1.0/24 via the gateway (10.216.1.107)?

于 2013-06-07T19:02:16.783 回答