您尚未登录。

#1 2014-05-23 10:30:13

hw0wei
会员
注册时间: 2014-05-20
帖子: 27

ADSL设置DSL (PPPoE)

设置DSL拨号
# pppoe-setup 
详细过程如下:

用户名:
USER NAME 
>>> Enter your PPPoE user name (default test): (ADSL用户名)

接口(网卡):
INTERFACE           
>>> Enter the Ethernet interface connected to the DSL modem 
For Solaris, this is likely to be something like /dev/hme0. 
For Linux, it will be ethn, where 'n' is a number. 
(default eth0):(这里需要输入你网卡名,使用ip link查询,不一定都是默认的eth0)

dns:
>>> Enter the DNS information here:  server

密码:
PASSWORD 
>>> Please enter your PPPoE password:     
>>> Please re-enter your PPPoE password:   

防火墙:
The firewall choices are: 
0 - NONE: This script will not set any firewall rules.  You are responsible 
for ensuring the security of your machine.  You are STRONGLY 
recommended to use some kind of firewall rules. 
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation 
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway 
for a LAN 
>>> Choose a type of firewall (0-2): 0 

保存设置:
Ethernet Interface: eth0 
User name:(ADSL用户名)
Activate-on-demand: No 
DNS:                Do not adjust 
Firewalling:        NONE 
>>> Accept these settings and adjust configuration files (y/n)? y 
Congratulations, it should be all set up! 

Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring 
it down.  Type 'pppoe-status' to see the link status.

开始拨号
# pppoe-start
connected.

查询INTERFACE
# ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: p4p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 50:e5:49:e3:c9:8f brd ff:ff:ff:ff:ff:ff
3: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 3
    link/ppp

第2个p4p1就是你的网卡名

最近编辑记录 hw0wei (2014-05-23 11:43:59)

离线

#2 2014-05-23 13:06:05

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: ADSL设置DSL (PPPoE)

嘛 幸苦LZ了,已链接。

离线

页脚