Debian下一張網卡綁定多個ip(NetDC)
修改/etc/network/interfaces
auto eth0
iface eth0 inet static
address 140.138.150.51
netmask 255.255.255.0
network 140.138.150.0
broadcast 140.138.150.255
gateway 140.138.150.254
auto eth0:1
iface eth0:1 inet static
address 140.138.150.111
netmask 255.255.255.0
network 140.138.150.0
broadcast 1140.138.150.255
修改/etc/network/ifstate
lo=lo
eth0=eth0
eth0:1=eth0:1
然後/etc/init.d/networking restart就可以了。