CHANGE只能用于修改网关和跃点数 route CHANGE 10.35.10.0 MASK 255.255.255

时间:2021-08-29 05:36:03

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 interface route 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 : 强制使用ipv6 command PRINT : 打印路由 ADD : 添加路由 DELETE : 删除路由 CHANGE : 改削现有路由 destination : 方针主机 MASK : 指定下一个参数为网络掩码值 netmask : 指定掩码值,如果未指定,默认为 255.255.255.255 gateway : 指定网关 interface : 指定路由的接标语码 METRIC : 指定跃点数,例如方针的本钱