修改/etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.6.6
netmask 255.255.0.0
gateway 192.168.6.1
auto eth0:1
iface eth0:1 inet static
address 192.168.10.6
netmask 255.255.0.0
gateway 192.168.10.1
dns-nameservers 114.114.114.114
重启网络
systemctl restart networking