主、备网络,静态路由和HSRP,实现了主、备并BGP互接,另外冗余也正常,经测试属于可行并且简洁可靠方案。
R0#SH RUN
Building configuration...
Current configuration : 979 bytes
!
version 16.6.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface GigabitEthernet0/0/0
ip address 100.0.0.2 255.255.255.0
duplex auto
speed auto
standby 100 ip 100.0.0.1
standby 100 priority 120
standby 100 preempt
!
interface GigabitEthernet0/0/1
ip address 200.0.0.3 255.255.255.0
duplex auto
speed auto
standby 200 ip 200.0.0.1
standby 200 priority 90
standby 200 preempt
!
interface GigabitEthernet0/0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 10.0.0.0 255.255.255.0 100.0.0.254
ip route 10.1.0.0 255.255.255.0 100.0.0.254
!
ip flow-export version 9
R1#sh run
Building configuration...
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface GigabitEthernet0/0/0
ip address 200.0.0.2 255.255.255.0
duplex auto
speed auto
standby 200 ip 200.0.0.1
standby 200 priority 120
standby 200 preempt
!
interface GigabitEthernet0/0/1
ip address 100.0.0.3 255