• 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
    就解决了上面的问题
  • 相关阅读:
    android 源码编译 问题 列表
    springboot总结
    设计模式学习笔记
    JWT入门1
    oauth2入门github
    mybatis面试题
    shiro入门
    knife4j swagger API文档
    pahole安装(编译)
    goMySql的逆向工程
  • 原文地址:https://www.cnblogs.com/bass6/p/6069521.html
Copyright © 2020-2023  润新知