ubuntu网卡增加ip案例

root@ubuntu:~# vi /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

# The primary network interface
auto eth0
iface eth0 inet static
address 180.97.220.161
netmask 255.255.255.0
gateway 180.97.220.254

auto eth0:1
iface etth0:1 inet static
address 103.56.63.111
netmask 255.255.255.0
gateway 103.56.63.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 114.114.114.114

相关新闻

联系我们

全国服务热线

400-033-9553

电子邮件:admin@example.com
工作时间:09:00-17:00 周一至周五

在线客服
关注微信
关注微信
分享本页
返回顶部