- 论坛徽章:
- 0
|
在我一台LINUX机器上,我的ROUTE的输出如下:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
132.213.0.0 * 255.255.0.0 U 0 0 0 eth0
如上,我有三个网卡口,
fconfig eth0
eth0 Link encap:Ethernet HWaddr 00:E0:6C:40:15:C2
inet addr:60.18.162.102 Bcast:60.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1604 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:96240 (93.9 kiB) TX bytes:0 (0.0 iB)
Interrupt:12 Base address:0xc000
# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:E0:6C:40:15:C1
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 iB) TX bytes:0 (0.0 iB)
Interrupt:10 Base address:0xe000
# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:E0:6C:40:15:C0
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:330594 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:32568672 (31.0 MiB) TX bytes:360 (360.0 iB)
Interrupt:11
但是我的使用PING命令时,
ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
PING 192.168.2.1 (192.168.2.1): 56 data bytes
这是什么原因? |
|