请教一个网络路由的问题
Tofloor
poster avatar
137******30
deepin
2018-12-04 23:44
Author
有一台linux双网卡网关,网卡1是连接外网固定ip地址,网卡2是连接两个局域网。

网卡2的配置大概如下:

auto eth1
iface eth1 inet static
address 192.168.100.11
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255

auto eth1:0
iface eth1:0 inet static
address 192.168.101.1
netmask 255.255.255.0
network 192.168.101.0
broadcast 192.168.101.255


系统路由表大概如下:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0                x.x.x.x          0.0.0.0              UG    0      0        0 eth0
192.168.100.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.101.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
x.x.x.x                 0.0.0.0         255.255.255.0   U     0      0        0 eth0


在 192.168.100.0 网段的主机 ping 192.168.100.11 可以ping通

在 192.168.101.0 网段的主机 ping 192.168.101.1 也可以ping通

出现问题如下:

1、在这个网关上面 ping 192.168.100.0 网段的主机无法ping通,但是 ping 192.168.101.0 网段的主机就可以ping通。


请教一下大神们,这个问题该如何解决呢?让网关可以ping通两个网段的主机。

感谢,感谢!!
Reply Favorite View the author
All Replies

No replies yet