moneyslow.com

how to know my export IPv6 address 出口ip地址

IPv6 基础知识

IPv6 基础知识

多个命令可以获取出口IPv6地址:

root@moneyslow:~# dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com
"2001:470:c:12c::2"
root@moneyslow:~# dig -t aaaa +short myip.opendns.com @resolver1.opendns.com
2001:470:c:12c::2
root@moneyslow:~# curl -6 https://ifconfig.co
2001:470:c:12c::2
root@moneyslow:~# curl -6 https://ipv6.icanhazip.com
2001:470:c:12c::2
root@moneyslow:~# telnet -6 ipv6.telnetmyip.com
Trying 2600:1f16:227:6200::100...
Connected to ipv6.telnetmyip.com.
Escape character is '^]'.
{
"comment": "##     Your IP Address is 2001:470:c:12c::2 (44280)     ##",
"family": "ipv6",
"ip": "2001:470:c:12c::2",
"port": "44280",
"protocol": "telnet",
"version": "v1.3.0",
"website": "https://github.com/packetsar/checkmyip",
"sponsor": "Sponsored by ConvergeOne, https://www.convergeone.com/"
}
Connection closed by foreign host.
root@moneyslow:~# ssh -6 sshmyip.com
The authenticity of host 'sshmyip.com (2600:1f16:227:6200::100)' can't be established.
RSA key fingerprint is SHA256:OhNL391d/beeFnxxg18AwWVYTAHww+D4djEE7Co0Yng.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'sshmyip.com' (RSA) to the list of known hosts.
{
"comment": "##     Your IP Address is 2001:470:c:12c::2 (54770)     ##",
"family": "ipv6",
"ip": "2001:470:c:12c::2",
"port": "54770",
"protocol": "ssh",
"version": "v1.3.0",
"website": "https://github.com/packetsar/checkmyip",
"sponsor": "Sponsored by ConvergeOne, https://www.convergeone.com/"
}
 Connection to sshmyip.com closed by remote host.
Connection to sshmyip.com closed.
root@moneyslow:~# curl https://api64.ipify.org
2001:470:c:12c::2root@moneyslow:~# 
root@moneyslow:~# curl -6 https://ifconfig.co/ip
2001:470:c:12c::2
root@moneyslow:~# curl -6 ip.sb
2001:470:c:12c::2
root@moneyslow:~# dig -6 TXT +short o-o.myaddr.l.google.com @ns1.google.com | sed 's|"||g'
2001:470:c:12c::2

Exit mobile version