总结:先配环回,进接口配地址,进子接口,该封装,配地址,s口用帧中继,配完以后宣告,宣告后看邻居有没有少,进行排错,最后修改cost值来进行主备区分。
采取分流互备的方式
实验规划
配置:
R1:
r1#show running-config
Building configuration…
Current configuration : 2141 bytes
!
! Last configuration change at 21:03:40 CST
Sun Jan 20 2019
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
clock timezone CST 8 0
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
ip auth-proxy max-login-attempts 5
ip admission max-login-attempts 5
!
!
!
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip
address 1.1.1.1 255.255.255.255
!
interface Loopback88
ip
address 10.88.1.1 255.255.255.255
ip
ospf network point-to-point
ip
ospf 1 area 1
!
interface Loopback99
ip
address 10.99.1.1 255.255.255.255
ip
ospf network point-to-point
ip
ospf 1 area 2
!
interface Ethernet0/0
no
ip address
!
interface Ethernet0/0.1
encapsulation dot1Q 1 native
ip
address 10.12.1.1 255.255.255.0
!
interface Ethernet0/0.2
encapsulation dot1Q 2
ip
address 10.12.2.1 255.255.255.0
!
interface Ethernet0/1
ip
address 10.13.1.1 255.255.255.0
!
interface Ethernet0/2
no
ip address
!
interface Ethernet0/2.1
encapsulation dot1Q 1 native
ip
address 10.14.1.1 255.255.255.0
!
interface Ethernet0/2.2
encapsulation dot1Q 2
ip
address 10.14.2.1 255.255.255.0
!
interface Ethernet0/3
no
ip address
shutdown
!
interface Serial1/0
no
ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
no
ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no
ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no
ip address
shutdown
serial restart-delay 0
!
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 1
network 10.12.1.0 0.0.0.255 area 1
network 10.12.2.0 0.0.0.255 area 2
network 10.13.1.0 0.0.0.255 area 1
network 10.14.1.0 0.0.0.255 area 1
network 10.14.2.0 0.0.0.255 area 2
!
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
!
!
!
!
control-plane
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0</