centos configure the ADSL dial-up configuration Ali cloud yum source

If there is a problem you can change the source yum yum source
configuration Ali cloud yum source
1) download repo file
wget http://mirrors.aliyun.com/repo/Centos-7.repo
(wget command can not directly download Centos-7 by the previous .repo FileZilla /etc/yum.repos.d/)
2) and replace the backup file system repo
CP-7.repo Centos /etc/yum.repos.d/
CD /etc/yum.repos.d /
Music Videos the CentOS-Base.repo the CentOS-Base.repo.bak
Music Videos Centos-7.repo the CentOS-Base.repo
. 3) performs the update command source yum
yum Clean All
yum makecache
yum update

 

CentOS 7 dial (ADSL & PPPoE)
 Step Overview:
1, PPPoE search software, using the I-PPPoE RP
  yum Search PPPoE
2, mounted with yum-PPPoE RP
  yum the install PPPoE -Y-RP
. 3, the configuration starts the PPPoE connection
  pppoe-setup
accounts 4, provided by your ISP
(if previously been configured, then there is ppp0 modified to press enter to modify ppp0 configuration)
5, enter the Ethernet card code, default is eth0 (Note: CentOS 7 is not the default eth0, self use the ifconfig command to find)
(input error, then enter Crtl + z start all over again)
6, configuration: If the connection time, the connection is automatically interrupted (I quit, choose NO)
7, configure the primary DNS server
8 configure secondary DNS server
9, enter the password twice to confirm the account
10, account configuration is common with internet access permissions
11, configured firewall (no special demand option 0 to the OK)
12, the configuration is automatically switched dial-up connection
13, confirmed just fill in configuration information
14, connect to the network enjoy it!
Related command @
connect to the network: / sbin / ifup ppp0
disconnect: / sbin / ifdown ppp0
View Network Status: / sbin / PPPoE Status-

IP Query command line query:
curl cip.cc

Guess you like

Origin www.cnblogs.com/fanhua999/p/11279769.html