- 论坛徽章:
- 0
|
主机A上的路由配置信息:\r\n# netstat -rn\r\n\r\nRouting Table: IPv4\r\n Destination Gateway Flags Ref Use Interface \r\n-------------------- -------------------- ----- ----- ---------- --------- \r\ndefault 192.168.2.1 UG 1 2 \r\n192.168.2.0 192.168.2.111 U 1 1 pcn1 \r\n127.0.0.1 127.0.0.1 UH 4 198 lo0 \r\n# ifconfig -a\r\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1\r\n inet 127.0.0.1 netmask ff000000 \r\npcn1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3\r\n inet 192.168.2.111 netmask ffffff00 broadcast 192.168.2.255\r\n ether 0:c:29:2e:76:c8 \r\n\r\n主机B上的路由信息:\r\n# ifconfig -a\r\nlo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1\r\n inet 127.0.0.1 netmask ff000000 \r\nvmxnet0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2\r\n inet 192.168.1.120 netmask ffffff00 broadcast 192.168.1.255\r\n ether 0:c:29:e1:86:d2 \r\nvmxnet1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3\r\n inet 192.168.2.1 netmask ffffff00 broadcast 192.168.2.255\r\n ether 0:c:29:e1:86:dc \r\n# netstat -rn\r\n\r\nRouting Table: IPv4\r\n Destination Gateway Flags Ref Use Interface \r\n-------------------- -------------------- ----- ----- ---------- --------- \r\ndefault 192.168.1.1 UG 1 15 \r\n192.168.1.0 192.168.1.120 U 1 3 vmxnet0 \r\n192.168.2.0 192.168.2.1 U 1 1 vmxnet1 \r\n224.0.0.0 192.168.1.120 U 1 0 vmxnet0 \r\n127.0.0.1 127.0.0.1 UH 4 233 lo0 \r\n\r\n怎么样配置能让192.168.2.111 ping通192.168.1.1\r\n现在192.168.2.111 ping 192.168.1.120正常\r\n谢谢! |
|