ip route 目标网段 目标网段的子网掩码 下一跳地址(或者是本地出口) 优先级(1-255)
优先级如果一样,(浮动路由,负载均衡)
两个路由同时在用,A数据走第一个路由,b数据走第二个路由。。。。
ip route 0.0.0.0 0.0.0.0 目标为8个0的。就是默认路由(最后一跳路由)
静态路由:
>en
#conf t
#int e0/0
#ip add 192.168.1.2 255.255.255.0
#no shutdown
#ip route 10.0.0.0 255.0.0.0(目标网络) 下一跳地址
#show ip route
#把没有的网段加上
#ctrl+Z
动态路由:
>en
#conf t
#router rip
#version 2
#nerwork 10.0.0.0 ....
#no auto-summary
#
路由器配置备份
Router#copy run tftp
Address or name of remote host []? 192.168.1.100(备份的地址IP)
Destination filename [m1-confg]? 回车
.!!!
428 bytes copied in 0.031 secs (13806 bytes/sec)
m1#
路由配置恢复
Router#copy tftp run
Address or name of remote host []? 192.168.1.100(备份的地址IP)
Destination filename [m1-confg]? 回车
Destination filename [running-config]?
Loading m1-confg from 192.168.1.100: .!!!
[OK - 428 bytes]
428 bytes copied in 0.031 secs (13806 bytes/sec)
远程登录路由器
(路由器设置好IP地址,并开启远程端口)
pc>telnet 192.168.1.1(路由器地址)
user Access verification
password:
Router>en
password:
Router#
路由系统备份
Router#copy flash tftp
Source filename[]?C2800NM-ADVIPSERVICESK9-MZ.124-15.T1.bin
Address or name of remote host []? 192.168.1.2
路由系统恢复
Router#copy tftp flash
Address or name of remote host []? 192.168.1.2
Source filename[]?C2800NM-ADVIPSERVICESK9-MZ.124-15.T1.bin
路由器密码恢复
1、重启 按键盘上的“ctrl+break”,进入ROMMON救援模式
2. rommon>confreg 0x2142 跳过配置文件
3. rommon>reset 重启
4. 重新配置
5. copy running-config startup-config 覆盖保存配置
转载于:https://blog.51cto.com/fuming/421009