debian; ubuntu; kali / 未分类 · 2012年3月7日

debian的单网卡配置多IP

evan@evandebian:~$ cat /etc/network/interfaces
########## by evan
auto eth0
iface eth0 inet dhcp
## second
auto eth0:0
iface eth0:0 inet static
address 192.168.1.110
netmask 255.255.255.0
### for wlan by evan
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless-essid Pie-58
wireless-key lailailai