linux - 能dhcp获取到ip,但是ping不通网关。求指导!
大家讲道理
大家讲道理 2017-04-17 13:07:18
0
2
543

具体情况是这样的:192.168.0.0/24网段为主网段,下面有一台服务器192.168.0.171
还有几个AP,其中两个ap的网段为10.10.16.0/24,另一个ap的网段为192.168.0.0/24(这个ap的网段跟主网段的冲突,别人设置的,我也不太清楚为什么可以用)

192.168.0.171这台服务器一直跑着都ok,在一个时间点有人连接上了192.168.0.0/24这个网段的ap,同一时间我在这台服务器上正常安装了kvm,对网卡做了网桥等设置。之后192.168.0.171这台服务器就ping不通网关了。。

具体是什么原因导致的,我也不太清楚。所以就做了以下尝试:
1.停掉kvm相关的一切进程,删除br。
2.服务器上arp命令输出192.168.0.1后面没有MAC地址,于是arp -s加了网关的MAC地址。
3.重启网关。
4.给服务器静态ip。

以上4个操作之后,问题还是存在。于是重启服务器,惊喜降临了。。。问题解决了。

虽然问题解决了。。但是不知道原因,所以想请大神们帮我分析一下。。。谢谢!

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (2)
PHPzhong

The network segment of another ap is 192.168.0.0/24 (the network segment of this ap conflicts with the main network segment. It was set by someone else. I am not sure why it can be used)AP is originally It can be on the same network segment as the main network segment, as long as the IP does not conflict!
The final problem must be that there is a problem with your KVM bridge configuration, causing the server and gateway to be blocked. In the meantime, you have done 4 units, which is actually equivalent to service network restart on 171

    大家讲道理

    Is it because of the address resolution cache problem?

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!