`
liubin2010
  • 浏览: 301618 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

电信用户如何用ubuntu系统ADSL(pppoe)拨号上网

阅读更多


目前在中国大部分装ubuntu系统上网的用户为电信宽带的ADSL用户,可能有的用户会在windows下拨号上网。但是在ubuntu下,就不知道如何拨号上网了。

下面我给大家将一下如何在ubuntu下拨号上网。

配置 ADSL

打开应用程序菜单,依次选择附件 - 终端。

输入命令:sudo pppoeconf

依照步骤提示进行,在输入用户名的时候注意把username清空後输入,否则可能会出现usernameXXXXX的现象。

防止 ADSL 掉线

在终端内输入命令:sudo gedit /etc/network/interfaces

把下面的一段文字复制进去

# /etc/network/interfaces
# 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

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1

# The primary network interface
iface eth1 inet static
address 10.0.0.139
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 211.162.32.1 211.162.32.20

注意dns-nameservers 是你的dns服务器地址,如果有路由器的同志可以打开路由器设置看看,把路由器上的默认dns服务器贴上。

ADSL命令

拨号 ADSL  命令:sudo pon dsl-provider

断开 ADSL  命令:sudo poff

查看拨号日志 命令:sudo plog

对于 拨号 ADSL 和 断开 ADSL 可以在菜单编辑器中依照以上命令行建立相应的快捷方式以方便拨号。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics