標籤:ipv6 命令列 netsh windows
習慣了Linux下命令列配置網路的簡潔,在windows系統下是不是感覺很彆扭?下面分享幾個方便的命令操作。
ipconfig /release "Local Area Connection 1"
ipconfig /renew "Local Area Connection 1"
netsh interface ipv6 add/del address "Local Area Connection 1" 2001::1
netsh interface ipv6 add address "Local Area Connection 1" 3ffe:320e:213:: anycastnetsh interface ipv6 del address "Local Area Connection 1" 3ffe:320e:1:213::
netsh interface ipv6 show address
netsh interface ipv6 add/del route 2001::/64 "Local Area Connection 2" 2001::2
netsh interface ipv6 show route
netsh interface ipv6 set interface "Local Area Connection 2" disable/enable
- 配置系統遵守EUI-64規則,產生符合eui-64的Link-local地址(重啟後生效)
netsh interface ipv6 set privacy state=disabled store=activenetsh interface ipv6 set privacy state=disabled store=persistentnetsh interface ipv6 set global randomizeidentifiers=disabled store=activenetsh interface ipv6 set global randomizeidentifiers=disabled store=persistent
netsh interface set interface "本地串連 2" disablednetsh interface set interface "本地串連 2" enabled
最後再送上一個連結,中文介紹,方便查閱。這個是微軟的,也放這兒了。
作為一個有追求的並且充滿探索慾望的程式猿,不妨在命令列下自己擼一擼。
著作權聲明:本文為博主原創文章,未經博主允許不得轉載。
windows系統下使用netsh配置IPv6相關