TypechoJoeTheme

主机评测

主机评测

专注云主机评测和优惠码发布

Linux显示IPv6路由方法

2022-04-15
/
0 评论
/
869 阅读
/
正在检测是否收录...
04/15
首先查看网卡是否配置了IPv6地址

首先,您应该检查是否已配置以及哪些 IPv6 地址已配置(可能在自动配置期间自动进行)。

使用ip命令查看系统路由

用法:

# /sbin/ip -6 route show [dev <device>]

例子:

# /sbin/ip -6 route show dev eth0
2001:0db8:0:f101::/64 proto kernel metric 256 mtu 1500 advmss 1440
fe80::/10             proto kernel metric 256 mtu 1500 advmss 1440
ff00::/8              proto kernel metric 256 mtu 1500 advmss 1440
default               proto kernel metric 256 mtu 1500 advmss 1440
使用route命令查看系统路由

用法:

# /sbin/route -A inet6 

示例(针对接口 eth0 过滤输出)。 在这里,您可以看到单个接口上不同地址的不同 IPv6 路由。

# /sbin/route -A inet6 |grep -w "eth0"
2001:0db8:0:f101 ::/64 :: UA  256 0 0 eth0 <- Interface route for global
¬ address
fe80::/10        ::       UA  256 0 0 eth0 <- Interface route for link-local
¬ address
ff00::/8         ::       UA  256 0 0 eth0 <- Interface route for all multicast
¬ addresses
::/0             ::       UDA 256 0 0 eth0 <- Automatic default route
linuxipv6route
朗读
赞 · 1
赞赏
感谢您的支持,我会继续努力哒!
打开微信扫一扫,即可进行打赏哦!
版权属于:

主机评测

本文链接:

https://www.zjpc.cc/1162.html(转载时请注明本文出处及文章链接)

评论 (0)