Archlinux如何路由器上网?
- Sundial
- 帖子: 45
- 注册时间: 2009-02-10 21:06
- ibear
- 帖子: 787
- 注册时间: 2006-10-19 8:43
- 来自: 长江口
Re: Archlinux如何路由器上网?
rc.conf:
代码: 全选
eth0="eth0 192.168.0.11 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.10"
ROUTES=(gateway)
好好地做一个碌碌无为的人
- skyx
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
Re: Archlinux如何路由器上网?
ibear 写了:rc.conf:代码: 全选
eth0="eth0 192.168.0.11 netmask 255.255.255.0 broadcast 192.168.0.255" INTERFACES=(eth0) gateway="default gw 192.168.0.10" ROUTES=(gateway)
代码: 全选
cat /etc/resolv.conf
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
nameserver 208.67.220.220
nameserver 208.67.222.222
最简单的办法是:
代码: 全选
#eth0="dhcp"
改为
代码: 全选
eth0="dhcp"
no security measure is worth anything if an attacker has physical access to the machine
- HuntXu
- 帖子: 5776
- 注册时间: 2007-09-29 3:09