In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to realize the automatic configuration script of adsl dialing in linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Find a shell script that has been written to automatically configure dialing when using a dynamic vps server, eliminating the trouble of manual configuration. The code is as follows
#! / bin/shPATH=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/binLog=/var/log/pppoe.logsed-I'/ ^ GATEWAY/d' / etc/sysconfig/network-scripts/ifcfg-eth0sed-I'/ ^ DNS1/d' / etc/sysconfig/network-scripts/ifcfg-eth0sed-I'/ ^ DNS2/d' / etc/sysconfig/network- Scripts/ifcfg-eth0echo "del ifcfg-eth0 Gateway. Success "> $Logecho" del ifcfg-eth0 DNS1. Success "> > $Logecho" del ifcfg-eth0 DNS2. Success "> > $Logread-p" Please enter the ADSL account number: "idread-p" Please enter the ADSL password: "pssed-I's Greg / etc/ppp/chap-secretssed-I's Universe Greater Greater G' / etc/ppp/chap-secretsecho" MOdify chap-secrets. Success "> > $Logsed-I's Modify ifcfg-ppp0 Greater Greater G'/ etc/ppp/pap-secretssed-I's Grey 12345 Grey Root Placement Modify ifcfg-ppp0 G'/ etc/ppp/pap-secretsecho" Modify pap-secrets. Success "> > $Logsed-I's Grey Root Plus Modify ifcfg-ppp0 Modify ifcfg-ppp0. Success > > $Root 114.114.114.114 > > / etc/resolv.confecho nameserver 8 .8.8.8 > > / etc/resolv.confsystemctl restart network.service cat $Logexit on "how to implement an automatic configuration script for adsl dialing in linux" ends here Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.