斑竹急救: 我的网关有2个ip地址,1个为合法外部ip,1个为内部ip.为什么ping外部地址时老用源地址为内部ip去pi

由 wjcwjc 在 03-18-2003 21:27 发表:

斑竹急救: 我的网关有2个ip地址,1个为合法外部ip,1个为内部ip.为什么ping外部地址时老用源地址为内部ip去pi

我的网关有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 encap:Local 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:

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus