![尝试配置环回网络接口,但它不起作用](https://linux22.com/image/1054277/%E5%B0%9D%E8%AF%95%E9%85%8D%E7%BD%AE%E7%8E%AF%E5%9B%9E%E7%BD%91%E7%BB%9C%E6%8E%A5%E5%8F%A3%EF%BC%8C%E4%BD%86%E5%AE%83%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
我读过其他帖子……但是我仍未修复我的界面。我有以下问题:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
post-up /sbin/ethtool -s eth0 speed 100 duplex full autoneg off
address 109.169.67.61
netmask 255.255.255.0
gateway 109.169.67.1
dns-nameservers 87.117.198.200 87.117.237.100 87.117.196.200
auto eth0:0
allow-hotplug eth0:0
iface eth1 inet static
address 109.169.67.138
netmask 255.255.255.0
auto eth0:1
allow-hotplug eth0:1
iface eth1 inet static
address 109.169.67.139
netmask 255.255.255.0
auto eth0:2
allow-hotplug eth0:2
iface eth1 inet static
address 109.169.67.140
netmask 255.255.255.0
auto eth0:3
allow-hotplug eth0:3
iface eth1 inet static
address 109.169.67.166
netmask 255.255.255.0
有什么建议么?
答案1
谢谢,我找到了解决方案:
ifconfig eth0:0 109.169.67.138 netmask 255.255.255.0 up
ifconfig eth0:1 109.169.67.139 netmask 255.255.255.0 up
ifconfig eth0:2 109.169.67.140 netmask 255.255.255.0 up
ifconfig eth0:3 109.169.67.166 netmask 255.255.255.0 up