LinuxSir.cn,穿越时空的Linuxsir!

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

ADSL problem [solved but need discussion]

[复制链接]
发表于 2009-1-25 21:47:39 | 显示全部楼层 |阅读模式
I haven't installed IM and pacman is working in heavy load which seems will take a long time,so...English here.

I've tried all the method but none work.
After struggles to sort out the mess,I rebooted it,and it works!

But I don't konw why it works and whether my operations are necessary,so I post my config here,and welcome to have a discussion on it.

/etc/rc.conf

lo="lo 127.0.0.1"
eth0="eth0 192.168.1.1 netmask 255.255.255.0"
INTERFACES=(lo eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

/etc/hosts

127.0.0.1     localhost.localdomain   localhost   <my host name>

/etc/resolv.conf.head

nameserver <my ISP's DNS server>
nameserver <my ISP's another server>

When asked DNS in pppoe-setup,I typed 'server'.
发表于 2009-1-26 04:24:13 | 显示全部楼层
eth0="eth0 192.168.1.7 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(eth0)

gateway="default gw 192.168.1.1"
ROUTES=(gateway)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-26 14:07:04 | 显示全部楼层
Well it come into an error if I use ROUTES=(gateway) other than ROUTES=(!gateway). I don't konw why...
回复 支持 反对

使用道具 举报

发表于 2009-1-26 14:25:14 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-26 16:18:41 | 显示全部楼层
按wiki里说的,我应该用dhcp,但是一用就无法启动network,
回复 支持 反对

使用道具 举报

发表于 2009-1-27 19:09:57 | 显示全部楼层
Post by redoak;1941543
按wiki里说的,我应该用dhcp,但是一用就无法启动network,


你不是用的指定了ip阿
回复 支持 反对

使用道具 举报

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

本版积分规则

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