- 论坛徽章:
- 0
|
ip a的结果如下:\r\n1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue \r\n link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n inet 127.0.0.1/8 brd 127.255.255.255 scope host lo\r\n2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000\r\n link/ether 00:0c:29:bb:0a:86 brd ff:ff:ff:ff:ff:ff\r\n inet 211.100.10.1/24 brd 211.100.10.255 scope global eth0\r\n3: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000\r\n link/ether 00:0c:29:bb:0a:90 brd ff:ff:ff:ff:ff:ff\r\n inet 192.168.134.55/24 brd 192.168.134.255 scope global eth1\r\n4: eth2: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000\r\n link/ether 00:0c:29:bb:0a:9a brd ff:ff:ff:ff:ff:ff\r\n inet 192.168.10.3/24 brd 192.168.10.255 scope global eth2\r\nip r的结果如子:\r\n127.0.0.1 dev lo scope link \r\n192.168.134.55 dev eth1 scope link \r\n192.168.134.0/24 dev eth1 proto kernel scope link src 192.168.134.55 \r\n211.100.10.0/24 dev eth0 proto kernel scope link src 211.100.10.1 \r\n192.168.10.0/24 dev eth2 proto kernel scope link src 192.168.10.3 \r\n127.0.0.0/8 dev lo scope link \r\ndefault via 211.100.10.2 dev eth0 \r\n为什么没有192.168.10.3和211.100.10.1这两个主机地址的路由,而只有192.168.134.55的主机路由 ? |
|