|
发表于 2008-8-7 23:03:07
|
显示全部楼层
rc.conf 网络部分
- # interfaces.
- #
- # Interfaces to start at boot-up (in this order)
- # Declare each interface then list in INTERFACES
- # - prefix an entry in INTERFACES with a ! to disable it
- # - no hyphens in your interface names - Bash doesn't like it
- #
- # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
- #
- lo="lo 127.0.0.1"
- eth0="eth0 192.168.1.37 netmask 255.255.255.0 broadcast 192.168.1.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="default gw 192.168.1.1"
- ROUTES=(gateway)
- #
- # Enable these network profiles at boot-up. These are only useful
- # if you happen to need multiple network configurations (ie, laptop users)
- # - set to 'menu' to present a menu during boot-up (dialog package required)
- # - prefix an entry with a ! to disable it
- #
- # Network profiles are found in /etc/network-profiles
复制代码
resolv.conf
- #
- # /etc/resolv.conf
- #
- #search <yourdomain.tld>
- #nameserver <ip>
- nameserver 221.7.126.68
- nameserver 221.7.136.68
- # End of file
复制代码 |
|