{"id":18368,"date":"2014-07-16T06:37:31","date_gmt":"2014-07-15T22:37:31","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/07\/16\/%e9%97%9c%e9%96%89-centos-7-%e4%b8%8a%e7%9a%84-ipv6\/"},"modified":"2014-07-16T06:37:31","modified_gmt":"2014-07-15T22:37:31","slug":"%e9%97%9c%e9%96%89-centos-7-%e4%b8%8a%e7%9a%84-ipv6","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/07\/16\/%e9%97%9c%e9%96%89-centos-7-%e4%b8%8a%e7%9a%84-ipv6\/","title":{"rendered":"\u95dc\u9589 CentOS 7 \u4e0a\u7684 IPv6"},"content":{"rendered":"<p>\u56e0\u70ba\u6e2c\u8a66\u7684 CentOS 7 \u662f\u5728\u5bb6\u88e1\u4f7f\u7528\uff0c\u6240\u4ee5 IPv6 \u61c9\u8a72\u662f\u4f7f\u7528\u4e0d\u5230\u7684<br \/># <span style=\"color: #ff0000;\">ifconfig eth0<\/span><br \/><span style=\"color: #0000ff;\">eth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;\u00a0 mtu 1500<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 inet 192.168.1.109\u00a0 netmask 255.255.255.0\u00a0 broadcast 192.168.1.255<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span style=\"color: #ff0000;\">\u00a0 inet6 fe80::20c:29ff:fea6:2215\u00a0 prefixlen 64\u00a0 scopeid 0x20&lt;link&gt;<\/span><\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ether 00:0c:29:a6:22:15\u00a0 txqueuelen 1000\u00a0 (Ethernet)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX packets 462\u00a0 bytes 41942 (40.9 KiB)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX errors 0\u00a0 dropped 0\u00a0 overruns 0\u00a0 frame 0<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX packets 356\u00a0 bytes 46939 (45.8 KiB)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX errors 0\u00a0 dropped 0 overruns 0\u00a0 carrier 0\u00a0 collisions 0<\/span><br \/>[@more@]\u4fee\u6539\u65b9\u5f0f<br \/>\u4fee\u6539<span style=\"color: #0000ff;\"> \/etc\/default\/grub<\/span><br \/>\u5728<span style=\"color: #0000ff;\"> GRUB_CMDLINE_LINUX<\/span> \u5f8c\u52a0\u4e0a <span style=\"color: #0000ff;\"><span style=\"color: #ff0000;\">ipv6.disable=1<\/span><\/span><br \/># <span style=\"color: #ff0000;\">vim \/etc\/default\/grub<\/span><br \/><span style=\"color: #0000ff;\">GRUB_TIMEOUT=5<\/span><br \/><span style=\"color: #0000ff;\">GRUB_DISTRIBUTOR=&#8221;$(sed &#8216;s, release .*$,,g&#8217; \/etc\/system-release)&#8221;<\/span><br \/><span style=\"color: #0000ff;\">GRUB_DEFAULT=saved<\/span><br \/><span style=\"color: #0000ff;\">GRUB_DISABLE_SUBMENU=true<\/span><br \/><span style=\"color: #0000ff;\">GRUB_TERMINAL_OUTPUT=&#8221;console&#8221;<\/span><br \/><span style=\"color: #0000ff;\">GRUB_CMDLINE_LINUX=&#8221;rd.lvm.lv=centos\/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos\/root crashkernel=auto\u00a0 vconsole.keymap=us rhgb quiet net.ifnames=0 biosdevname=0 <span style=\"color: #ff0000;\">ipv6.disable=1<\/span>&#8220;<\/span><br \/><span style=\"color: #0000ff;\">GRUB_DISABLE_RECOVERY=&#8221;true&#8221;<\/span><\/p>\n<p>\u7522\u751f\u65b0\u7684 grub \u8a2d\u5b9a\u6a94<br \/># <span style=\"color: #ff0000;\">grub2-mkconfig -o \/boot\/grub2\/grub.cfg<br \/><span style=\"color: #0000ff;\">Generating grub configuration file &#8230;<\/span><br \/><span style=\"color: #0000ff;\">Found linux image: \/boot\/vmlinuz-3.10.0-123.el7.x86_64<\/span><br \/><span style=\"color: #0000ff;\">Found initrd image: \/boot\/initramfs-3.10.0-123.el7.x86_64.img<\/span><br \/><span style=\"color: #0000ff;\">Warning: Please don&#8217;t use old title `CentOS Linux, with Linux 3.10.0-123.el7.x86_64&#8242; for GRUB_DEFAULT, use `Advanced options for CentOS Linux&gt;CentOS Linux, with Linux 3.10.0-123.el7.x86_64&#8242; (for versions before 2.00) or `gnulinux-advanced-caeda11c-71b9-4cc4-961b-b4541b247804&gt;gnulinux-3.10.0-123.el7.x86_64-advanced-caeda11c-71b9-4cc4-961b-b4541b247804&#8242; (for 2.00 or later)<\/span><br \/><span style=\"color: #0000ff;\">Found linux image: \/boot\/vmlinuz-0-rescue-07f9be0c0fc843ce885a7539150c8e55<\/span><br \/><span style=\"color: #0000ff;\">Found initrd image: \/boot\/initramfs-0-rescue-07f9be0c0fc843ce885a7539150c8e55.img<\/span><br \/><span style=\"color: #0000ff;\">done<\/span><\/p>\n<p><\/span>\u91cd\u65b0\u958b\u6a5f<br \/># <span style=\"color: #ff0000;\">sync;sync;sync;sync;shutdown -r<\/span><\/p>\n<p>IPv6 \u5df2\u7d93\u95dc\u9589<br \/># <span style=\"color: #ff0000;\">ifconfig eth0<\/span><br \/><span style=\"color: #0000ff;\">eth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;\u00a0 mtu 1500<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 inet 192.168.1.109\u00a0 netmask 255.255.255.0\u00a0 broadcast 192.168.1.255<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ether 00:0c:29:a6:22:15\u00a0 txqueuelen 1000\u00a0 (Ethernet)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX packets 83\u00a0 bytes 8436 (8.2 KiB)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RX errors 0\u00a0 dropped 0\u00a0 overruns 0\u00a0 frame 0<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX packets 73\u00a0 bytes 10238 (9.9 KiB)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TX errors 0\u00a0 dropped 0 overruns 0\u00a0 carrier 0\u00a0 collisions 0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u70ba\u6e2c\u8a66\u7684 CentOS 7 \u662f\u5728\u5bb6\u88e1\u4f7f\u7528\uff0c\u6240\u4ee5 IPv6 \u61c9\u8a72\u662f\u4f7f\u7528\u4e0d\u5230\u7684# ifconfig eth0et &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2014\/07\/16\/%e9%97%9c%e9%96%89-centos-7-%e4%b8%8a%e7%9a%84-ipv6\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u95dc\u9589 CentOS 7 \u4e0a\u7684 IPv6\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,113],"tags":[],"class_list":["post-18368","post","type-post","status-publish","format-standard","hentry","category-c-78462","category-c-77170"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["511824"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18368"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=18368"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/18368\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=18368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=18368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=18368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}