|
|

楼主 |
发表于 2005-3-30 13:58:00
|
显示全部楼层
单网卡多IP地址设置
编辑/etc/network/interfaces文件,如下:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation# (network, broadcast and gateway are optional)
auto eth0 eth0:0 (你还可以加eth0:2 eth0:3等等)
iface eth0 inet static
address 192.168.9.11
netmask 255.255.0.0
network 192.168.0.0
broadcast 192.168.255.255
gateway 192.168.9.70
iface eth0:0 inet static(static或者DHCP自动获取)
address 192.168.9.22
netmask 255.255.0.0
network 192.168.0.0
broadcast 192.168.255.255
gateway 192.168.9.70 |
|