zoukankan      html  css  js  c++  java
  • route 一个很奇怪的现象:我的主机能ping通同一网段的其它主机,并也能xshell 远程其它的主机,而其它的主机不能ping通我的ip,也不能远程我和主机

    一个很奇怪的现象:我的主机能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
    就解决了上面的问题
  • 相关阅读:
    exkmp
    欧拉通路、回路
    你有多久没有看过星星
    trie树模板(统计难题)
    SPFA(热浪)
    codevs1958 刺激
    洛谷1290 欧几里得的游戏
    洛谷1016 旅行家的预算
    Spfa算法模板
    Tyvj2017清北冬令营入学测试
  • 原文地址:https://www.cnblogs.com/bass6/p/6069521.html
Copyright © 2011-2022 走看看