|
我的/etc/rc.conf里面这样
- eth0="dhcp"
- 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 10.171.32.1"
- ROUTES=(!gateway)
- #
复制代码
然后每次开机后还要手工:
dhcpcd -k&&ifconfig eth0 10.171.47.0&&dhcpcd eth0
有办法让它开机就自动设置好么?
每次都dhcp重新获得一个IP地址太慢了,影响启动速度。
怎么让它利用上次关机时dhcp里面缓存的地址? |
|