星期四, 十二月 04, 2008

单网卡,n个IP地址绑定

/etc/network/interfaces文件如下:


# The loopback network interface

auto lo
iface lo inet loopback
pre-up iptables-restore < /etc/firewall-rules

auto eth1
iface eth1 inet static
address 192.168.1.9
netmask 255.255.255.0
gateway 192.168.1.254

auto eth1:1
iface eth1:1 inet static
address 192.168.0.9
netmask 255.255.255.0
gateway 192.168.0.254

没有评论: