修改/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.36
netmask 255.255.255.0
auto eth0:1
iface eth0:1 inet static
address 192.168.10.46
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 192.168.10.1