路由器配置
ip route 23.1.1.0 255.255.255.0 12.1.1.2
目标机器网络号 目标机器子网掩码 下一跳路由地址
conf t
inter f0/0
ip add 192.168.1.1 255.255.255.0
no shut
拷贝路由器配置文件
copy running-config tftp
导入
copy tftp running-config
查看CDP
show cdp neighbors
查看路由表
show ip route
查看静态路由信息
show ip route static
查看端口的IP地址
show ip inter br
window平台打印路由表
route print
默认路由
ip route 0.0.0.0 0.0.0.0 目的路由器地址
删除路由规则
no ip route 23.1.1.0 255.255.255.0 12.1.1.2
最长子网掩码优先
管理距离最小优先
OSPF的管理距离110
RIP的管理距离120
度量值最小优先