1、设置里允许启用多个网络连接
vim /etc/network/interfaces
vim /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth0:0 iface eth0:0 inet static address 172.16.74.221 netmask 255.255.255.0 gateway 172.16.74.1 auto eth0:1 iface eth0:1 inet static address 192.168.0.221 netmask 255.255.255.0 gateway 192.168.0.13、重启 原文链接:https://www.f2er.com/ubuntu/351116.html