|
发表于 2006-11-5 13:43:06
|
显示全部楼层
局域网上网很简单,按照楼上的方式修改,你的本来是如下:
[php]
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo
eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="defaults gw 192.168.18.1"
ROUTES=(!gateway)
[/php]
改成
[php]
lo="lo 127.0.0.1"
eth0="eth0 192.168.18.2 netmask 255.255.255.0 broadcast 192.168.18.255"
INTERFACES=(lo
eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="defaults gw 192.168.18.1"
ROUTES=(gateway)
[/php]
然后ping 192.168.18.2 能ping说明网卡已经工作了,这时候100%能ping192.168.18.1了,再去设置一下DNS就已经联网咯~~
不能ping 192.168.18.2 就是网卡没有加载,先把网卡弄好再说~~~用hwd 查看网卡的模块名,然后手动加载这个模块~ |
|