|
|
发表于 2006-9-14 18:00:16
|
显示全部楼层
Post by 鸟儿
如题,我用debian的时间屈指可数!听闻3.1r3发表,下来一个网络安装盘安装(一百多兆的那种)。可到了用pppoeconf配置拨号脚本的时候debian总告诉我检测不到adsl连接(倒是能检测到网卡)!捣腾了一上午才找到问题所在,[color="Red"]我原来的网通送我的大猫去天堂了!我又买了个新的,新的大猫叫“阿尔卡特Home Plus 500”没注意到支持问题,还是按原来的经验配置,才走了很大的弯路,解决的办法让我都很意外,那就是:[color="RoyalBlue"]把2.4内核换成2.6版的内核!我把过程说出供大家参考参考!
现在回想原来安装debian的时候,我原来的旧猫在debian配置网络参数的dhcp时是能进行自动配置的([color="RoyalBlue"]这没什么用,如果你用的是PPPoE拨号的话通不通过都无所谓,如果通过的话还要改配置文件禁用dhcp的),而我的“Home Plus 500”在这个地方是报错的,只能手工配置网络的信息!如果这个时候我能注意到异样的话,就不会看了一上午的“pppoeconf检测到了网卡,无法与adsl 进行通信”这样类似的信息!我也是突发奇想,在要放弃的时候,用2.6.8-3-386换掉了2.4.27内核一试竟然成了。所以我断定八成是2.4版的内核对我的新猫不支持!
还有就是/etc/network/interfaces文件设置不当也可以出现问题!比如这个文件是采用dhcp方式配置的,又或者出现了网关的配置项。下面用我的文件(能成功拨号)当个参考吧:
- # This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0
- iface eth0 inet static #如果这行出现dhcp字样,用static代替
- address 192.168.1.2 #必有,根据自己情况填。
- netmask 255.255.255.0 #同上。
- network 192.168.1.0 #从这行往下,都是系统根据
- broadcast 192.168.1.255 #上面两行的信息自动添加的
- # dns-* options are implemented by the resolvconf package, if installed
- dns-search pipydog.org
- iface dsl-provider inet ppp
- provider dsl-provider
- # please do not modify the following line
- pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
- [color="Red"]注意,在上面的文件中出现“gateway xxx,xxx,xxx”的字样要注释掉
- [/color]
复制代码
说明一下,我上面所提供的文件只考虑一个人一个adsl终端的PPPoE的拨号情况,还有如果想知道adsl拨号的具体细节的话还是看精华贴子吧,我今天写的只是补充而已!如果那位前辈有教诲的话,跟贴吧:cool:
我的是这样的:
- auto lo
- iface lo inet loopback
- # The primary network interface
- #auto eth0
- #iface eth0 inet static
- # address
- # netmask
- # network
- # broadcast
- # gateway
- # dns-* options are implemented by the resolvconf package, if installed
- # dns-nameservers
- auto dsl-provider
- iface dsl-provider inet ppp
- provider dsl-provider
- auto eth0
- iface eth0 inet dhcp
复制代码
每次系统启动的时候都会自动dhcp,大概半分钟,然后显示失败,继续启动。
待会把dhcp改成static试试:) |
|