广域网中的高可用性网络
拓扑图
Multi-ppp
R5配置
[R5]dis cu
Now create configuration...
Current configuration
!
version 1.74
sysname R5
firewall enable
aaa-enable
aaa accounting-scheme optional
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.2.254 255.255.255.0
!
interface Ethernet1
!
interface Serial0
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
!
interface Serial1
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
!
interface Async0
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async1
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async2
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async3
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async4
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async5
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async6
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async7
physical-mode async
async mode protocol
link-protocol ppp
!
interface Virtual-Template1
link-protocol ppp
ip address 192.168.100.1 255.255.255.0
!
voice-setup
!
subscriber-line 0
!
subscriber-line 1
!
quit
!
quit
ip route-static 192.168.1.0 255.255.255.0 192.168.100.2 preference 60
!
Return
R7配置
[R7]dis cu
Now create configuration...
Current configuration
!
version 1.74
sysname R7
firewall enable
aaa-enable
aaa accounting-scheme optional
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.1.254 255.255.255.0
!
interface Ethernet1
!
interface Serial0
clock DTECLK1
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
!
interface Serial1
clock DTECLK1
link-protocol ppp
ppp mp
ppp mp interface Virtual-Template1
!
interface Async0
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async1
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async2
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async3
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async4
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async5
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async6
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async7
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async8
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async9
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async10
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async11
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async12
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async13
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async14
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async15
physical-mode async
async mode protocol
link-protocol ppp
!
interface Virtual-Template1
link-protocol ppp
ip address 192.168.100.2 255.255.255.0
!
voice-setup
!
subscriber-line 0
!
subscriber-line 1
!
quit
!
quit
ip route-static 192.168.2.0 255.255.255.0 192.168.100.1 preference 60
!
Return
测试结果
Standby
R5配置
[R5]dis cu
Now create configuration...
Current configuration
!
version 1.74
sysname R5
firewall enable
aaa-enable
aaa accounting-scheme optional
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.2.254 255.255.255.0
!
interface Ethernet1
!
interface Serial0
link-protocol ppp
standby interface Serial 1
standby timer enable-delay 3
standby timer disable-delay 3
ip address 192.168.3.1 255.255.255.0
!
interface Serial1
link-protocol ppp
ip address 192.168.4.1 255.255.255.0
!
interface Async0
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async1
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async2
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async3
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async4
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async5
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async6
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async7
physical-mode async
async mode protocol
link-protocol ppp
!
voice-setup
!
subscriber-line 0
!
subscriber-line 1
!
quit
!
quit
ip route-static 192.168.1.0 255.255.255.0 192.168.3.2 preference 60
ip route-static 192.168.1.0 255.255.255.0 192.168.4.2 preference 60
!
return
R7配置
[R7]dis cu
Now create configuration...
Current configuration
!
version 1.74
sysname R7
firewall enable
aaa-enable
aaa accounting-scheme optional
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.1.254 255.255.255.0
!
interface Ethernet1
!
interface Serial0
clock DTECLK1
link-protocol ppp
ip address 192.168.3.2 255.255.255.0
!
interface Serial1
clock DTECLK1
link-protocol ppp
ip address 192.168.4.2 255.255.255.0
!
interface Async0
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async1
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async2
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async3
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async4
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async5
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async6
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async7
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async8
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async9
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async10
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async11
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async12
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async13
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async14
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async15
physical-mode async
async mode protocol
link-protocol ppp
!
voice-setup
!
subscriber-line 0
!
subscriber-line 1
!
quit
!
quit
ip route-static 192.168.2.0 255.255.255.0 192.168.3.1 preference 60
ip route-static 192.168.2.0 255.255.255.0 192.168.4.1 preference 60
!
Return
测试结果
浮动路由
R5配置
[R5-Ethernet0]dis cu
Now create configuration...
Current configuration
!
version 1.74
sysname R5
firewall enable
aaa-enable
aaa accounting-scheme optional
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.2.254 255.255.255.0
ospf enable area 0.0.0.0
!
interface Ethernet1
!
interface Serial0
link-protocol ppp
ip address 192.168.3.1 255.255.255.0
ospf enable area 0.0.0.0
!
interface Serial1
link-protocol ppp
ip address 192.168.4.1 255.255.255.0
!
interface Async0
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async1
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async2
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async3
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async4
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async5
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async6
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async7
physical-mode async
async mode protocol
link-protocol ppp
!
voice-setup
!
subscriber-line 0
!
subscriber-line 1
!
quit
!
quit
ospf enable
!
quit
!
quit
ip route-static 192.168.1.0 255.255.255.0 192.168.4.2 preference 60
!
return
R7配置
[R7]dis cu
Now create configuration...
Current configuration
!
version 1.74
sysname R7
firewall enable
aaa-enable
aaa accounting-scheme optional
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.1.254 255.255.255.0
ospf enable area 0.0.0.0
!
interface Ethernet1
!
interface Serial0
clock DTECLK1
link-protocol ppp
ip address 192.168.3.2 255.255.255.0
ospf enable area 0.0.0.0
!
interface Serial1
clock DTECLK1
link-protocol ppp
ip address 192.168.4.2 255.255.255.0
!
interface Async0
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async1
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async2
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async3
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async4
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async5
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async6
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async7
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async8
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async9
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async10
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async11
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async12
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async13
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async14
physical-mode async
async mode protocol
link-protocol ppp
!
interface Async15
physical-mode async
async mode protocol
link-protocol ppp
!
voice-setup
!
subscriber-line 0
!
subscriber-line 1
!
quit
!
quit
ospf enable
!
quit
!
quit
ip route-static 192.168.2.0 255.255.255.0 192.168.4.1 preference 60
!
return
测试结果
重新复位后