您的位置:首页 > 运维架构 > Shell

route 一个很奇怪的现象:我的主机能ping通同一网段的其它主机,并也能xshell 远程其它的主机,而其它的主机不能ping通我的ip,也不能远程我和主机

2016-11-16 14:52 225 查看
一个很奇怪的现象:我的主机能ping通同一网段的其它主机,并也能xshell 远程其它的主机,而其它的主机不能ping通我的ip,也不能远程我和主机。

[root@NB Desktop]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
link-local      *               255.255.0.0     U     1004   0        0 br0
default         10.100.2.1      0.0.0.0         UG    0      0        0 br0


我的内网网段是10.100.2.0/24

解决这种问题的方式是:

[root@NB Desktop]# route add -net 10.100.2.0/24 br0
[root@NB Desktop]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
10.100.2.0      *               255.255.255.0   U     0      0        0 br0
link-local      *               255.255.0.0     U     1004   0        0 br0
default         10.100.2.1      0.0.0.0         UG    0      0        0 br0
就解决了上面的问题
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: