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
    就解决了上面的问题
  • 相关阅读:
    Oracle 函数
    Oracle select into from 和 insert into select
    SQL 子查询
    Java ThreadLocal 学习
    Structs 2
    Spring知识点
    java循环HashMap两种方法的效率比较
    Spring 面试复习
    Hibernate 知识点复习
    java 面试 复习 II
  • 原文地址:https://www.cnblogs.com/bass6/p/6069521.html
Copyright © 2011-2022 走看看