Last active
April 19, 2019 10:05
-
-
Save rdymc/7027feeee67f7b3bf4d4afa692e8bea1 to your computer and use it in GitHub Desktop.
CentOS PPPoE setting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| yum -y install rp-pppoe | |
| # Disable Network Manager | |
| systemctl stop NetworkManager.service | |
| systemctl disable NetworkManager.service | |
| # Enable IPv6 PPPoE | |
| echo 'ipv6 ,' >> /etc/ppp/options | |
| # Setup pppoe | |
| pppoe-setup | |
| # Config file : /etc/sysconfig/network-scripts/ifcfg-ppp0 | |
| # PEERDNS=yes | |
| # PERSIST=yes | |
| # IPV6_PEERDNS=yes | |
| # Usage | |
| # dial-up internet connection | |
| /sbin/ifup ppp0 | |
| # dial-down internet connection | |
| /sbin/ifdown ppp0 | |
| # Check PPPoE status | |
| /sbin/pppoe-status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment