|
|

楼主 |
发表于 2006-4-14 11:56:24
|
显示全部楼层
如下
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
iface eth0 inet static
address 172.16.2.111
netmask 255.255.255.0
network 172.16.2.0
broadcast 172.16.2.255
gateway 172.16.2.100
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.106.0.20
dns-nameservers 202.106.196.115
dns-search localdomain
就是不能加载它。必须每次通过
ifconfig eth0 172.16.2.111 netmask 255.255.255.0 up
route add -net 0.0.0.0 netmask 0.0.0.0 gw 172.16.2.100
命令手工加上去才能上网。 |
|