如何建立备份路由链路知识总结
如何建立备份路由链路知识总结
思路:
1.建立eNSP模型
2.基本配置(IP地址,vlan)
3.路由配置及preference配置
1.建立eNSP模型
2.基本配置(IP地址,vlan)
交换机配置
[SW1]interface GigabitEthernet 0/0/2
[SW1-GigabitEthernet0/0/2]port link-type access
[SW1-GigabitEthernet0/0/2]port default vlan 10
[SW1]interface GigabitEthernet0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
[SW2]interface GigabitEthernet 0/0/2
[SW2-GigabitEthernet0/0/2]port link-type access
[SW2-GigabitEthernet0/0/2]port default vlan 40
[SW2]interface GigabitEthernet 0/0/1
[SW2-GigabitEthernet0/0/1]port link-type access
[SW2-GigabitEthernet0/0/1]port default vlan 40
路由器配置
[R1]interface GigabitEthernet 2/0/0
[R1-GigabitEthernet2/0/0]ip address 192.168.10.254 24
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.2.1 /24
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.3.1 24
[R2]interface g2/0/0
[R2-GigabitEthernet2/0/0]ip address 192.168.40.254 24
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip address 192.168.3.2 24
3.路由配置及preference配置
[R1]ip route-static 192.168.40.0 24 192.168.3.2 preference 80 //默认值为60,越大级别越低,即为备份链路
[R1]ip route-static 192.168.40.0 24 192.168.2.2
[R2]ip route-static 192.168.10.0 24 192.168.3.1 preference 80
[R2]ip route-static 192.168.10.0 24 192.168.2.1