在终端中输入
sudo pppoeconf
设置完宽带上网后——
问 题:系统启动的时候网卡都没自动激活,每次都要到 系统--联网 —-激活eth0…
解决方案:看看/etc/network/interfaces是不是像这样的:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0
# The primary network interface
iface eth0 inet dhcp
–
把/etc/network/interfaces文件末尾多的一条命令那行去掉,我的是多了这么一行:
pre-up /sbin/ifconfig eth0 up
# line maintained by pppoeconf
删掉之后系统就能自动激活eth0了。
然后再在终端里输入:
sudo ln -s /etc/ppp/pppoe_on_boot /etc/ppp/ppp_on_boot
pppoeconf也能自动拨号了。
教你一招 自动激活网卡以及开机自动拨号上网
转载请注明出处:服务器评测 » 教你一招 自动激活网卡以及开机自动拨号上网
相关推荐
- AMD 锐龙服务器的最优惠价格 |纽约、洛杉矶和迈阿密 |1 Gbps 不限流量带宽
- AMD 锐龙服务器的最优惠价格 |纽约、洛杉矶和迈阿密 |1 Gbps 不限流量带宽
- 热卖!RackNerd 的专用服务器促销!SSD、NVMe 和 HIGH STORGAGE DEDIS 59 美元/月起
- *最高性能、低成本 – 集群特别、微云和 800Gbps 优惠!
- *Limestone Networks 本月最佳交易:新加坡 (SIN1)
- *MechanicWeb : 美国/欧盟/英国/亚太地区 – Ryzen 9950X 托管型和非托管型 – PCIE 5.0 NVMe |10 Gbps
- *最便宜的强大专用服务器,仅 100 美元起,cPanel 和管理服务准备就绪!!
- *399 美元/月 RYZEN 9 5950x + 128GB RAM + 2x 1TB NVMe + 2TB 备份 + 30TB @ 10Gbps 新!
服务器评测





