[Raspberry Pi 2]_讓Raspian支援IPv6
預設Raspian到撰寫本文當下,預設的情況下仍然沒有打開IPv6的支援。
打開的步驟很簡單,這裡簡單紀錄一下
- 將Kernel Module啟用v6的支援Module
sudo modprobe ipv6
第一個步驟做完,若你的網路環境已經v6 Ready,透過ifconfig指令可以看到已經正確的抓到v6的位置了
root@raspberrypi2:/home/pi# ifconfig eth0 Link encap:Ethernet HWaddr b8:27:eb:cc:17:00 inet addr:192.168.1.81 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: 2001:b011:e60d:153b:ba27:ebff:fecc:1700/64 Scope:Global inet6 addr: fe80::ba27:ebff:fecc:1700/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2073432 errors:0 dropped:0 overruns:0 frame:0 TX packets:27942 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:112661842 (107.4 MiB) TX bytes:7012284 (6.6 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:1685 errors:0 dropped:0 overruns:0 frame:0 TX packets:1685 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:89846 (87.7 KiB) TX bytes:89846 (87.7 KiB)
- 讓之後每次開機都自動載入v6的Module到Kernel內
sudo echo "ipv6" >> /etc/modules
以上簡短筆記~
thx for:
Leave a comment
很抱歉,必須登入網站才能發佈留言。