发新话题
打印

linux、windows下IPV6测试命令

linux、windows下IPV6测试命令

cat /proc/net/if_inet6

ip -6 addr show

hostname -I

ip -6 route

ip -6 route sh table main

ping6 ::1

ping6 -I eth0 fe80::20c:29ff:ee02:e760

ping6 ipv6.google.com

ping6 2001:4860:4860::8888

traceroute6 ipv6.google.com

tracepath6 ipv6.google.com

tcptraceroute -n -f 255 -m 255 -q 1 -w 3 2606:4700:4700::1111 53

http://www.vdberg.org/~richard/tcpping
./tcpping 2606:4700:4700::1111 53

whois 2607:f8b0:4007:801::200e

tcpdump抓取ipv6地址的数据包
tcpdump -i eth0 host 240E:0067:A000:F::4D

tcpdump -t -n -i any -s 512 -vv ip6 or proto ipv6

nslookup -q=AAAA ipv6.google.com

c。url -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=ipv6.google.com&type=AAAA'

dig ipv6.google.com AAAA @1.1.1.1

dig ipv6.google.com AAAA @208.67.222.222 -p 5353

nslookup -q=AAAA ipv6.google.com 208.67.222.222 -port=5353

dig ipv6.google.com AAAA @2620:0:ccc::2 -p 443

dig ipv6.google.com @101.6.6.6 aaaa -p 5353

dig ipv6.google.com @101.7.8.9 aaaa -p 53

host -t AAAA ipv6.google.com

DNS TCP查询:
Linux 平台
$ dig www.baidu.com @208.67.222.222 -p 5353 +tcp

Windows 平台
默认nslookup是只支持53端口,所以要先端口转发再进行DNS查询.要在管理员权限下进行.
自带端口转发只支持TCP,所以查询的都是TCP,UDP非53端口暂时不知道怎么弄

$ netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=53 connectaddress=208.67.222.222 connectport=5353
$ nslookup -vc ipv6.google.com 127.0.0.1

使用完TCPDNS查询记得取消端口转发
$ netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=53


telnet 2607:f8b0:4007:804::200e 80

ssh -6 -oPort=34567 ::1

sftp不能连接IPV6 IP,只能用scp代替:
scp -6 -P 3322 ./zstdai_v3.tgz root@[200:666:0:233::1]:/file

c。url -6 ipv6.google.com
c。url "http://\[2001:200:dff:fff1:216:3eff:feb1:44d7\]"
c。url -g [2001:200:dff:fff1:216:3eff:feb1:44d7]

w。get -6 ipv6.google.com
w。get http://[2001:200:dff:fff1:216:3eff:feb1:44d7]

浏览器访问
http://[2001:200:dff:fff1:216:3eff:feb1:44d7]

Windows CMD命令窗口:

查看IPV6路由:
netsh interface ipv6 show route
netstat -nr

ping检查IPV6地址:
ping -6 demo.trustcomputing.com.cn

tracert检查IPV6地址:
tracert -d -6 demo.trustcomputing.com.cn

查询IPV6域名:
nslookup -q=aaaa demo.trustcomputing.com.cn

查询自己的IPv6地址:
TELNET: telnet -6 ipv6.telnetmyip.com
SSH: ssh  -oStrictHostKeyChecking=no -oUser=ssh1 ipv6.sshmyip.com
CURL: curl ipv6.telnetmyip.com
WGET: wget -qO- ipv6.telnetmyip.com


参考:
IPV6路由操作:
http://linux.org.tw/CLDP/OLD/Linux-IPv6-HOWTO-7.html

Linux IPv6 HOWTO:
https://mirrors.deepspace6.net/howtos/Linux+IPv6-HOWTO.html

IPV6 IP信息:
http://www.deepspace6.net/projects/ipv6calc.html

https://blog.csdn.net/ttyttytty12/article/details/7410529

firefox启用IPV6域名解析:
先在地址栏输入:about:config
找到以下两项做相应修改:
network.dns.disableIPv6 设置成 false
network.http.fast-fallback-to-IPv4 设置成 false


IPV6资源搜集:
http://www.trustcomputing.com.cn/bbs/viewthread.php?tid=1381

中神通大地云控IPV6功能说明:
http://www.trustcomputing.com.cn/bbs/viewthread.php?tid=1406

[ 本帖最后由 linda 于 2022-10-31 16:53 编辑 ]

TOP

发新话题