不同的是,我是固定IP上網(wǎng),說一下固定IP怎么配置吧:
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# (prefix an interface in INTERFACES with a ! to disable it)
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#?
lo="lo 127.0.0.1"
eth0="eth0 10.70.54.30 netmask 255.255.255.0 broadcast 10.70.54.255"
#IP:10.70.54.30 netmask:255.255.255.0 broadcast 10.70.54.255
#填上自己的IP,NETMASK.....
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#?? (prefix a route in ROUTES with a ! to disable it)
#
gateway="default gw 10.70.54.254" ------>網(wǎng)關(guān):10.70.54.254
ROUTES=(gateway) ---->注意這里要去掉"!"
歡迎光臨 Chinaunix (http://72891.cn/) | Powered by Discuz! X3.2 |