命令檢視IPV6的IP,路由,鄰居資訊
阿新 • • 發佈:2019-01-10
本文主要介紹如果通過linux命令新增IPV6地址,檢視新增IPV6預設路由,檢視IPV6鄰居快取
新增IPV6地址ip -6 addr add <ipv6address>/<prefixlength> dev <interface>
ip -6 addr add 2001:0db8:0:f101::1/64 dev eth0
ifconfig <interface> inet6 add <ipv6address>/<prefixlength>
ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64
新增預設路由ip -6 route add <ipv6network>/<prefixlength> via <ipv6address>
ip -6 route add default via 2001:0db8:0:f101::1
route -A inet6 add <ipv6network>/<prefixlength> gw
route -A inet6 add default gw 2001:0db8:0:f101::1
檢視路由ip -6 route show
route -A 'inet6'
route -6
windows檢視路由表route print
檢視鄰居快取ip -6 neighbor show
windows檢視鄰居快取netsh interface ipv6 show neighbors