|
楼主 |
发表于 2005-5-11 22:08:24
|
显示全部楼层
Post by diony
听你的意思,是局域网通过网关上网吧。
注意rc.conf里下面这一段:
- #
- # 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"
- [color=red][b]eth0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"[/b][/color]
- INTERFACES=(lo [color=red][b]eth0[/b][/color])
- #
- # 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)
- #
- [color=red][b]gateway="default gw 192.168.1.1"
- ROUTES=(gateway)[/b][/color]
复制代码
就是这样的啊,设置好了的,但是ping 什么的都不通
说network没有打开,真是纳闷。。。。 |
|