夜间模式暗黑模式
字体
阴影
滤镜
圆角
CentOS 7 下使用rp-pppoe进行ASDL拨号上网

写在前面

本文根据个人实践编写而成,转载请注明来源。

安装 rp-pppoe

yum -y install rp-pppoe

配置 rp-pppoe

pppoe-setup
LOGIN NAME

Enter your Login Name (default root): ad12345678        # 拨号账户

INTERFACE

Enter the Ethernet interface connected to the PPPoE modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): eth0                            # 拨号使用的网卡

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped.  If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
Enter the demand value (default no): no #输入no,否则长时间连线,连线会被自动中断

DNS
Enter the DNS information here: 119.29.29.29 # DNS服务器IP

Enter the secondary DNS server address here: 114.114.114.114 # 备用DNS服务器IP

PASSWORD

Please enter your Password: # 拨号密码
Please re-enter your Password: # 重复输入一次

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes  # 普通用户是否允许拨号,选择yes

FIREWALLING

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               # 防火墙设定,默认0就行

Do you want to start this connection at boot time?
Please enter no or yes (default no):yes            # 开机自动拨号

拨号

输入 ifup ppp0 等待一会即可在 ppp0 网卡查看到分配到的IP地址

暂无评论

发送评论


				
上一篇
下一篇