08

file:/etc/network/interface

auto eth0
auto eth0:1
auto eth0:2

iface eth0 inet static
address 192.168.1.201
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255

iface eth0:1 inet static
address 192.168.83.201
netmask 255.255.255.0
gateway 192.168.83.1
network 192.168.83.0
broadcast 192.168.83.255

iface eth0:2 inet static
address 192.168.115.201
netmask 255.255.255.0
gateway 192.168.115.1
network 192.168.115.0
broadcast 192.168.115.255

当然还可以用ifconfig设置,不过reboot后会失效。
以后不用连上Lan,也可以方便地和vmware里的linux通信了:)

Leave a Reply

preload preload preload