61
Linux IPv6 Check
source link: https://likfe.com/2018/07/17/linux-ipv6-check/?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
近段时间发现使用的服务器商免费支持了 IPv6,于是尝试开通了,下面记录下网络测试相关的笔记。
0x00 测试环境
测试环境:
Distributor ID: Debian Description: Debian GNU/Linux 8.10 (jessie) Release: 8.10 Codename: jessie Linux version: 4.10.15-041015-generic (kernel@gomeisa)
0x01 IPv6 相关
-
查看网络配置信息:
ifconfig -a
,如果有inet6
相关信息,则说明分配了相关的 IPv6 -
查看路由表:
netstat -r
; -
查看分配的 IPv6地址:
ip -6 addr show
; -
查看 IPv6 的路由表:
ip -6 route
,其中default via
后面非fe80
开头的为公网网关地址。
可通过 ping6 网关地址
来测试网关是否正常。
直接测试:
ping6 ipv6.google.com traceroute6 ipv6.google.com
在线测试: https://test-ipv6.com
0x02 查看系统信息
-
# uname -a
(查看版本当前操作系统内核信息) -
# cat /etc/issue
或cat /etc/redhat-release
(查看版本当前操作系统发行版信息) -
# getconf LONG_BIT
(查看当前CPU运行模式:32bit or 64bit) -
# lsb_release -a
查看详细发行信息
参考: How To Configure Tools to Use IPv6 on a Linux VPS
PS:你可以通过下面的方式和我联系
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK