|
|
前天装了个linux as3,配千兆双网卡.我的配置:
root@localhost network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:56:**:**
inet addr:192.168.0.193 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1610 errors:0 dropped:0 overruns:0 frame:0
TX packets:558 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:128478 (125.4 Kb) TX bytes:86643 (84.6 Kb)
Base address:0xb800 Memory:fc9c0000-fc9e0000
eth1 Link encap:Ethernet HWaddr 00:30:48:56:**:**
inet addr:211.*.*.193 Bcast:211.*.*.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3796 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:300290 (293.2 Kb) TX bytes:2048 (2.0 Kb)
Base address:0xbc00 Memory:fc9e0000-fca00000
lo Link encap ocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:63 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5712 (5.5 Kb) TX bytes:5712 (5.5 Kb)
路由项如下:
[root@localhost network-scripts]# route|grep -v ipsec
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.*.*.0 * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 211.*.*.1 0.0.0.0 UG 0 0 0 eth1
内网段能ping通192.168.0.193,但ping外网口不通.不知为何.哪位大虾帮帮忙.以上路由项没有回环地址127.0.0.0,不知与这个有无关系?
不要告诉我route add -net 127.0.0.0这样添加.不行的。怎样添加,谢谢? |
|