LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2122|回复: 2

内网通,外网不通,困惑两天,哪位兄弟来帮个忙

[复制链接]
发表于 2006-5-17 16:49:58 | 显示全部楼层 |阅读模式
前天装了个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 encapocal 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这样添加.不行的。怎样添加,谢谢?
发表于 2006-5-18 07:34:53 | 显示全部楼层
重做系统行吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-18 11:40:25 | 显示全部楼层
Post by 83212945
重做系统行吗?

老兄,这么轻易就放弃吗
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表