Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
请教一个网络路由的问题
Apps Section
461
views ·
0
replies ·
To
floor
Go
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
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Update driver for my computer
Copying folder - Not enough disk space?
Popular Events
More
网卡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通两个网段的主机。