|
北南南北急救:我的网关有2个ip地址,1个为合法外部ip,1个为内部ip.为什么ping外部ip时老用源地址为内部ip去ping
?????????????
我的网关有2个ip地址,
1个为合法外部ip:202.114.165.48,
1个为内部ip:192.168.20.1.
[root@wjcnetserver wjc]# /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref se Iface
202.114.165.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.114.165.2 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 202.114.165.2 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 202.114.165.2 0.0.0.0 UG 1 0 0 eth0
[root@wjcnetserver wjc]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:02:55:56:55:18
inet addr:202.114.165.48 Bcast:202.114.165.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6889 errors:0 dropped:0 overruns:0 frame:0
TX packets:223 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:6120578 (5.8 Mb) TX bytes:29534 (28.8 Kb)
Interrupt:10
eth0:0 Link encap:Ethernet HWaddr 00:02:55:56:55:18
inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10
lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6820 (6.6 Kb) TX bytes:6820 (6.6 Kb)
为什么ping外部地址时老用源地址为内部ip去ping外部ip,结果上不了网呀?
[root@wjcnetserver wjc]# ping 202.114.88.22
PING 202.114.88.22 (202.114.88.22) from 192.168.20.1 : 56(84) bytes of data.
急救,在线等待!!!请斑竹帮忙,谢谢! |
|