鍍金池/ 問答/C  Linux/ centos不同網(wǎng)段虛擬機通信

centos不同網(wǎng)段虛擬機通信

看了網(wǎng)上的教程,添加路由,也沒搞定,因此后者臉皮來請教各位大佬:
設備1的ip信息與路由信息

eth0      Link encap:Ethernet  HWaddr fe:fc:fe:3c:8d:db  
          inet addr:172.16.200.10  Bcast:172.16.203.255  Mask:255.255.252.0
          inet6 addr: fe80::fcfc:feff:fe3c:8ddb/64 Scope:Link


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.200.0    *               255.255.252.0   U     0      0        0 eth0
loopback        localhost       255.0.0.0       UG    0      0        0 lo

設備2的ip信息和路由信息

eth0      Link encap:Ethernet  HWaddr FE:FC:FE:97:0C:DC  
          inet addr:200.200.123.7  Bcast:200.200.123.255  Mask:255.255.252.0

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
200.200.120.0   *               255.255.252.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         200.200.123.254 0.0.0.0         UG    0      0        0 eth0


比如我想讓雙方能夠ping通,應該如何操作?

回答
編輯回答
墨染殤

網(wǎng)關都沒設置對啊。。A的網(wǎng)關地址設置為B,那么A就可以跟B通信。

2017年12月19日 02:42
編輯回答
拽很帥

請詳細描述虛擬機軟件及版本,虛擬網(wǎng)絡設置,主機虛擬網(wǎng)卡設置。

2017年6月14日 14:36
編輯回答
莓森

防火墻關了嗎?

2018年8月5日 12:57