ArchLinux PPPoE dial-up connection use detailed [reprint]

Source: Internet
Author: User
Tags routeros nameserver

RouterOS 2.9.27 + archlinux 200806
RouterOS on the PPPoE server,archlinux when the PPPoE Client,archlinux has a network card eth0

Objective:
ArchLinux PPPoE Dial-up to PPPoE server


PPPoE Server Configuration
Service Name:pppoe-service
Local address:192.168.88.210
Remote address:192.168.88.211-192.168.88.220
Secret Name:test
Secret password:123456
Caller ID:
Ip-->dns-->settings
Primary dns:192.168.88.89
Seconday dns:202.100.64.68

The steps are as follows: quotation
Attention:
Two points of attention in/etc/rc.conf.
PPPoE and eth0 The original IP configuration is not related
However, PPPoE is related to the ROUTES configuration and is modified to routes= (!gateway) If you want to use PPPoE to obtain a gateway
1, install the two packages, you can first Pacman-q | grep PPP command to see if the installation

[Email protected] ~]# pacman-s PPP Rp-pppoe
2, not configured to see the next/etc/resolv.conf before PPPoE, it is recommended to back up the file

[Email protected] ~]# ls-l/etc/resolv.conf
lrw-r--r--1 root root 9 10:09/etc/resolv.conf
3. Configuring PPPoE

[Email protected] ~]# Pppoe-setup
>>>enter your PPPoE user name:test
>>>enter ETH Ethernet interface connected to the DSL modem (default eth0): eth0
>>>enter the demand value (default NO): No
>>>enter the DNS information here:server
>>>please Enter your PPPoE password:123456
>>>please Re-enter your PPPoE password:123456
>>>choose a type of firewall:2
>>>accept These settings and adjust configuration files (y/n): Y
4. Modify the PPPoE client configuration

[Email protected] ~]# vi/etc/ppp/pppoe.conf
#几个需要注意的地方
Defaultroute=yes
This is useful when #servicename如果局域网内有多个pppoe server, if the connection to the telecommunications ADSL is left blank
#具体参见http://blog.vkill.net/read.php?75
Servicename=pppoe-service
5. Open connection PPPoE, successful connection

[Email protected] ~]# Pppoe-start
. connected!
6, see the next/etc/resolv.conf again, you can see has become a symbolic connection, so before using PPPoE or backup under/etc/resolv.conf better

[Email protected] ~]# ls-l/etc/resolv.conf
lrwxrwxrwx 1 root root 9 10:09/etc/resolv.conf-/etc/ppp/resolv.conf
[Email protected] ~]# ls-l/etc/ppp/resolv.conf
-rw-r--r--1 root root 9 10:10/etc/ppp/resolv.conf
Attention:
The default Pppoe-start succeeds after the/etc/resolv.conf permission is 777,/etc/ppp/resolv.conf permission is 644
If it is found that ordinary users can not use DNS when it is possible to/etc/resolv.conf permissions issues, manual modification under the permissions can be

[Email protected] ~]# chmod 777/etc/resolv.conf
[Email protected] ~]# chmod 644/etc/ppp/resolv.conf
7, Ifconfig view, you can see more than one PPP0 connection

[Email protected] ~]# ifconfig
......
Ppp0 Link Encap:point-to-point Protocol
inet addr:192.168.88.219 p-t-p:192.168.88.210 mask:255.255.255.255
Up Pointopoint RUNNING noarp multicast mtu:1488 metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Txqueuelen:3
RX bytes:308 (308.0 b) TX bytes:227 (227.0 b)
8. View current route

[Email protected] ~]# route
Destination Gateway GEENMASK flags metric ref use Iface
......
Default * 0.0.0.0 U 0 0 0 ppp0
If you do not see the default ... ppp0 this, you need to manually create the command as follows

[[email protected] ~]# route add default Dev ppp0
9, look at the DNS, you can see that all get the

[Email protected] ~]# cat/etc/resolv.conf
NameServer 192.168.88.89
NameServer 202.100.64.68
10. Set the automatic dialing on the boot

[Email protected] ~]# vi/etc/rc.conf
#添加adsl到DAEMONS就可以了, @ is backstage
daemons= (Syslog-ng network netfs crond sshd @adsl)
11, if the PPPoE server is bound to the MAC address, how to connect?
Test when PPPoE server modifies a configuration
Secret Name:test
Secret password:123456
Caller id:00:01:23:45:67:89

First modify the/etc/rc.conf

[Email protected] ~]# vi/etc/rc.conf
......
#修改为如下设置, according to personal circumstances
eth0= "eth0 hw ether 00:01:23:45:67:89"
eth1= "Eth0 192.168.88.100"
interfaces= (eth0 eth1)
After the modification is completed, the network connection will be restarted.

[Email protected] ~]#/etc/rc.d/network restart
[Email protected] ~]#/ETC/RC.D/ADSL restart

Postscript:
The Pppoe-start command is equivalent to/ETC/RC.D/ADSL restart
The Pppoe-stop command is equivalent to/ETC/RC.D/ADSL stop

PPPoE password saved in the chap password file/etc/ppp/chap-secrets, if the PPPoE password becomes root can go directly to the file modified reprinted from Vkill ' blog http://blog.vkill.net/read.php/ 92.htm

ArchLinux PPPoE dial-up connection use detailed [reprint]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.