首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >试图配置回送网络接口,但它不起作用

试图配置回送网络接口,但它不起作用
EN

Ask Ubuntu用户
提问于 2016-01-29 21:36:40
回答 1查看 198关注 0票数 0

我读过另一个posts..however,我还没有修复我的接口。我有以下几点:

代码语言:javascript
复制
# 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

有什么建议吗?

EN

回答 1

Ask Ubuntu用户

发布于 2016-01-31 20:19:34

谢谢,我找到了解决办法:

代码语言:javascript
复制
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
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/727321

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档