Windows實用命令

來源:互聯網
上載者:User

標籤:family   close   route   interface   清除   pen   view   splay   log   

 Windows實用命令 # 統計ESTABLISHED狀態下的串連一共有多少個/c是統計行數,/i是忽略大小寫
netstat -ano|find /i "established" /c
View Code

# 統計TIME_WAIT狀態下的串連一共有多少個,通常用於判斷是否有CC攻擊等...

netstat -ano|find /i "time_wait" /c
View Code

# 重新整理DNS緩衝

ipconfig /flushdns
View Code

# 匯出ip到C盤ip.txt

netsh -c interface ip dump > c:\ip.txt
View Code

# 對192.168.0.1做路由跟蹤

tracert 192.168.0.1
View Code

# 查看本機ipv4路由表

route print -4
View Code

# 查看本機ipv6路由表

route print -6
View Code

 # 查看本機介面列表

route print interfaceroute print no interface
View Code

  # 添加路由

route ADD 10.35.10.0 MASK 255.255.255.0 10.35.10.104 [METRIC metric] [IF interface]
View Code

  # 修改路由, CHANGE只能用於修改網關和躍點數

route CHANGE 10.35.10.0 MASK 255.255.255.0 10.35.10.104 [METRIC metric] [IF interface]
View Code

  # 刪除路由

route DELETE 10.35.10.0
View Code

   # route命令格式詳解

ROUTE [-f] [-4|-6] command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface]-f : 清除所有網關的路由表。如果與某個命令結合使用,在運行該命令前,應清除路由表-4 : 強制使用ipv4-6 : 強制使用ipv6command    PRINT : 列印路由    ADD : 添加路由    DELETE : 刪除路由    CHANGE : 修改現有路由destination : 目標主機MASK : 指定下一個參數為網路遮罩值netmask :  指定掩碼值,如果未指定,預設為 255.255.255.255gateway : 指定網關interface : 指定路由的介面號碼METRIC : 指定躍點數,例如目標的成本
View Code

 

 

 

 

 

 

 

 

    

Windows實用命令

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.