![]()
下面是針對 Linux 下 IP V6 常用的指令做說明
- 
#dhclient
DHCP Client IPV6
[root@benjr ~]# dhclient -6 -d
 - 
#ip
IPV6 Routing table
[root@benjr ~]# ip -6 route show
 - 
#route
IPV6 Routing table
[root@benjr ~]# route -A inet6
 - 
#tcpdump
tcp dump IPV6
[root@benjr ~]# tcpdump -i eth0 -vv ip6
 - 
#ping6
Ping IPV6
[root@benjr ~]# ping6 3ffe:501:ffff:100::100
如果是 Link Local 時需要在 ping6 IPv6 後面的參數加上 network_device_name 如下:
[root@benjr ~]# ping6 fe80::20c:29ff:fef6:4d73%eth0
更多關於 IPV6 ping6 請參考 https://benjr.tw/94783
 - 
#iptables
IPV6 firewall
[root@benjr ~]# ip6tables -L
 - 
#host
Host to IPV6
[root@benjr ~]# host -t AAAA www.google.com www.google.com has IPv6 address 2404:6800:4008:c06::68
 - 
#wget
wget IPV6
[root@benjr ~]# wget -6 http://[3ffe:501:ffff:100::100]/test
 - 
#curl
curl IPV6
[root@benjr ~]# curl -g -6 http://[3ffe:501:ffff:100::100]/
 
沒有解決問題,試試搜尋本站其他內容