ubuntu12.04宽带链接 以及 宽带链接后 再上局域网时出现的问题

编辑器加载中...一、检测pppoeconf软件是否安装 $ dpkg -s pppoeconf 出现如下说明已安装: {{ Package: pppoeconf Status: install ok installed Priority: optional Section: net Installed-Size: 340 Maintainer: Ubuntu Developers Architecture: all Version: 1.19ubuntu1 Depends: whiptail-provider | whiptail, ppp (>= 2.4.2+20040428-2) | pppoe (>= 3.0), ppp (>= 2.4.1.uus2-4), gettext-base (>= 0.13), sed (>= 3.95) Recommends: locales Suggests: xdialog Description: configures PPPoE/ADSL connections User-friendly tool for initial configuration of a DSL (PPPoE) connection. Original-Maintainer: Gregory Colpart }} 二、如没有安装执行如下进行安装 $ sudo apt-get install pppoeconf 注:一般系统以自带安装了。 三、pppoeconf软件设置 $ sudo pppoeconf 注:之后的操作就是除提示输入用户也密码时输入你的用户名与密码个,其它都选YES。 四、开启宽带连接 $ sudo pon dsl-provider 五、关闭宽带连接 $ sudo poff dsl-provider 到这里就设置好了。可以上网了。 问题解决: 1、如只按上面设置可以会出现在频繁掉线,这时只要修改如下文件即可。 $ sudo vim /etc/ppp/options 修改如下: {{ lcp-echo-interval 30 lcp-echo-failure 4 }} 改为如下: {{ lcp-echo-interval 30 lcp-echo-failure 20 }} -----------------------------------------设置宽带后再上LAN时出现的问题----------------------------------- 设置宽带链接后, /etc/network/interfaces内的配置信息发生变化,再上LAN时出现以下问题: ~$ uname -a Linux shadowwalker-A8Se 3.2.0-32-generic-pae #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012 i686 i686 i386 GNU/Linux when reboot 在ubuntu logo 处出现: wait for network configuration , and then, waiting up to 60 more seconds for network configuration . when it's up, network doesn't work. SOLUTION: modify /etc/network/interfaces file, mine is # The loopback network interface auto lo iface lo inet loopback # auto dsl-provider # iface dsl-provider inet ppp # pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf # provider dsl-provider auto eth0 # iface eth0 inet manual iface eth0 inet static address 192.168.108.217 netmask 255.255.255.0 network 192.168.108.0 broadcast 192.168.108.255 gateway 192.168.108.254 dns-nameservers 221.228.255.1 then done !
posted @ 2012-11-09 10:09  Mr.Shadow  阅读(213)  评论(0编辑  收藏  举报