Skip to content

Instantly share code, notes, and snippets.

@rdymc
Last active April 19, 2019 10:05
Show Gist options
  • Select an option

  • Save rdymc/7027feeee67f7b3bf4d4afa692e8bea1 to your computer and use it in GitHub Desktop.

Select an option

Save rdymc/7027feeee67f7b3bf4d4afa692e8bea1 to your computer and use it in GitHub Desktop.
CentOS PPPoE setting
#!/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