標籤: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實用命令