安裝完Windows OS後,都要設定 network IPv4 or IPv6 Address.

用下列方法設定(Admin).

REM設定Ethernet Ip Address 192.168.1.10 mask 255.255.255.0

netsh interface ipv4 add address "Ethernet" 192.168.1.10  255.255.255.0

 

REM設定 the Ethernet Ip Gateway 192.168.1.254

netsh interface ipv4 add route 0.0.0.0/0 "Ethernet"  192.168.1.254

 

REM設定 the Ethernet Ipv6 address 2001:288:c115::3010

netsh interface ipv6 add address "Ethernet"  2001:288:c115::3010/64

 

REM設定the Ethernet Ipv6 Gateway 2001:288:c115::3002

netsh interface ipv6 add route ::/0 "Ethernet"  2001:288:c115::3002

 

也可以寫到 .bat file內,用Batch 方式設定.


arrow
arrow
    文章標籤
    WHCK Windows Tips Scripts
    全站熱搜

    frankwang945 發表在 痞客邦 留言(0) 人氣()