|
发表于 2006-3-6 19:40:46
|
显示全部楼层
Post by dajun
我把etc/network/interfaces 修改了,但是不行
iface eth0 inet static
address 192.168.2.3
netmask 255.255.255.0
broadcast 255.255.255.255
gateway 192.168.2.25
我记得以前可以用明令改的~,想不起来了,安装的时候检测到DHCP就不给我机会配置了:beat
根据你的情况应该在/etc/network/interfaces中这样写:
auto eth0
iface eth0 inet static
address 192.168.2.3
netmask 255.255.255.0
gateway 192.168.2.25
如果是手动调整的话就这样:
#ifconfig eth0 down
#ifconfig eth0 192.168.2.3
#ifconfig eht0 up
#route add default gw 192.168.2.25
就可以了。 |
|