|
|

楼主 |
发表于 2008-6-18 17:34:11
|
显示全部楼层
看我的解决办法:
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#allow-hotplug eth0
iface eth0 inet static
address 10.11.56.220
netmask 255.255.255.0
network 10.11.56.0
broadcast 10.11.56.255
gateway 10.11.56.1
# post-up ip route add 10.11.45.10/32 via 10.11.46.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.99.160.68
auto eth0:1
iface eth0:1 inet static
address 10.11.46.220
netmask 255.255.255.0
network 10.11.46.0
broadcast 10.11.46.255
post-up ip route add 10.11.45.10/32 via 10.11.46.1
# post-up ip route add 10.11.46.171/32 via 10.11.46.1
dns-nameservers 202.99.160.68 |
|