LinuxSir.cn,穿越时空的Linuxsir!

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

重起后gentoo就不能上网了,具体请进(已解决!莫名其妙自动恢复正常了)

[复制链接]
发表于 2005-5-6 18:39:57 | 显示全部楼层 |阅读模式
我是adsl拨号的,网卡为8139,开始能正常上网。后来重新启动后就无法上网了,但是拨号正常,获得了公网IP,默认网关是192.168.1.1,eth0是192.168.1.2,DNS也正常。就是无法ping通外面,但是netstat -r路由有3条信息并且正确着。

很奇怪,上次也是这个问题。
发表于 2005-5-6 23:43:13 | 显示全部楼层
如果指定了网关, 去掉它看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-7 06:29:55 | 显示全部楼层
去掉就无法拨号了,现在只能在猫里开路由模式上网了
回复 支持 反对

使用道具 举报

发表于 2005-5-7 11:26:10 | 显示全部楼层
应该去掉网关,还是贴出来你的设置吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-7 11:43:44 | 显示全部楼层
这是拨号时候的配置:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0"
#iface_eth0="up"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
#gateway="eth0/192.168.1.1"
回复 支持 反对

使用道具 举报

发表于 2005-5-7 23:11:34 | 显示全部楼层
把gateway 注释掉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-7 23:17:06 | 显示全部楼层
去掉#根本就无法拨号的,本来正常的。


忍了,今天早上起来什么都正常了,什么也没改,搞笑。
回复 支持 反对

使用道具 举报

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

本版积分规则

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