红联Linux门户
Linux帮助

archlinux下ipv6设置

发布时间:2011-09-20 15:59:43来源:红联作者:Apate
[i=s] 本帖最后由 Apate 于 2011-9-20 16:03 编辑 [/i]

[code]sudo pacman -S miredo[/code]改DNS:[code]sudo vim /etc/resolv.conf[/code]添加上:
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 2001:470:20::2

改Hosts文件:[code]sudo vim /etc/hosts[/code]列表在这里

重启网络:[code]sudo /etc/init.d/networking restart[/code]执行以下命令锁定 /etc/resolv.conf 文件,使得它不能每次重启被覆盖:[code]sudo chattr +i /etc/resolv.conf[/code]
文章评论

共有 4 条评论

  1. bobo3223 于 2011-10-09 22:54:16发表:

    呵呵

  2. Action 于 2011-09-21 08:51:03发表:

    学习了

  3. Apate 于 2011-09-20 16:46:56发表:

    其实各种版本都行
    我是因为不知道把它发在哪里合适 于是放在“发行版”区了= =

  4. uoices 于 2011-09-20 16:12:01发表:

    其它版本都能行吧