- 论坛徽章:
- 0
|
ip a:
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:13:72:55:a9:70 brd ff:ff:ff:ff:ff:ff
inet 200.电信.180.157/25 brd 200.电信.180.255 scope global eth0
inet 200.网通.40.157/25 brd 200.网通.40.255 scope global eth0:1
inet6 fe80::213:72ff:fe55:a970/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:13:72:55:a9:71 brd ff:ff:ff:ff:ff:ff
inet 192.168.10.157/24 brd 192.168.10.255 scope global eth1
inet6 fe80::213:72ff:fe55:a971/64 scope link
valid_lft forever preferred_lft forever
4: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
ip r:
200.网通.40.128/25 dev eth0 proto kernel scope link src 200.网通.40.157
200.电信.180.128/25 dev eth0 proto kernel scope link src 200.电信.180.157
192.168.10.0/24 dev eth1 proto kernel scope link src 192.168.10.157
169.254.0.0/16 dev eth1 scope link
default via 200.电信.180.129 dev eth0
添加静态路由
route add -host 28. 网通.59.57 gw 200.网通.40.129
route -n
28.网通.59.57 200.网通.40.129 255.255.255.255 UGH 0 0 0 eth0
200.网通.40.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0
200.电信.180.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 200.电信.180.129 0.0.0.0 UG 0 0 0 eth0
traceroute 28. 网通.59.57
1 200.电信.180.129 (200.电信.180.129) 2.159 ms 0.638 ms 0.478 ms
2 203.86.0.30 (203.86.0.30) 0.606 ms 0.558 ms 0.480 ms
为什么第一跳还是走电信的网关?
多谢法王!
[ 本帖最后由 huifeideluotuo 于 2006-10-21 13:58 编辑 ] |
|