1、实验拓扑图

三十三、配置 BGP 备份 RR 实验组网_ci

2、实验目的

配置R1、R2、R3和R4配置集群,R1与R2相互备份,配置相同的“reflector cluster-id 1.1.1.1”,观察结果

3、实验具体配置

R1

[R1]display current-configuration  

[V200R003C00]

#

sysname R1

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 10.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 30.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 50.1.1.1 255.255.255.0  

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255  

#

bgp 100

router-id 1.1.1.1

undo default ipv4-unicast

peer 2.2.2.2 as-number 100  

peer 2.2.2.2 connect-interface LoopBack0

peer 3.3.3.3 as-number 100  

peer 3.3.3.3 connect-interface LoopBack0

peer 4.4.4.4 as-number 100  

peer 4.4.4.4 connect-interface LoopBack0

#

ipv4-family unicast//配置ipv4-family

 undo synchronization

 reflector cluster-id 1.1.1.1

 peer 2.2.2.2 enable

 peer 2.2.2.2 reflect-client

 peer 3.3.3.3 enable

 peer 3.3.3.3 reflect-client

 peer 4.4.4.4 enable

 peer 4.4.4.4 reflect-client

#

ospf 100 router-id 1.1.1.1  //配置IGP

area 0.0.0.0  

 network 1.1.1.1 0.0.0.0  

 network 10.1.1.0 0.0.0.255  

 network 30.1.1.0 0.0.0.255  

 network 50.1.1.0 0.0.0.255  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[R1]

R2

<R2>display current-configuration  

[V200R003C00]

#

sysname R2

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 40.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 30.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 20.1.1.1 255.255.255.0  

#

interface NULL0

#

interface LoopBack0

ip address 2.2.2.2 255.255.255.255  

#

bgp 100

router-id 2.2.2.2

undo default ipv4-unicast

peer 1.1.1.1 as-number 100  

peer 1.1.1.1 connect-interface LoopBack0

peer 3.3.3.3 as-number 100  

peer 3.3.3.3 connect-interface LoopBack0

peer 4.4.4.4 as-number 100  

peer 4.4.4.4 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 reflector cluster-id 1.1.1.1

 peer 1.1.1.1 enable

 peer 1.1.1.1 reflect-client

 peer 3.3.3.3 enable

 peer 3.3.3.3 reflect-client

 peer 4.4.4.4 enable

 peer 4.4.4.4 reflect-client

#

ospf 100 router-id 2.2.2.2  

area 0.0.0.0  

 network 2.2.2.2 0.0.0.0  

 network 20.1.1.0 0.0.0.255  

 network 30.1.1.0 0.0.0.255  

 network 40.1.1.0 0.0.0.255  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<R2>

R3

<R3>display current-configuration  

[V200R003C00]

#

sysname R3

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 10.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 40.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 60.1.1.1 255.255.255.0  

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255  

#

bgp 100

router-id 3.3.3.3

undo default ipv4-unicast

peer 1.1.1.1 as-number 100  

peer 1.1.1.1 connect-interface LoopBack0

peer 2.2.2.2 as-number 100  

peer 2.2.2.2 connect-interface LoopBack0

peer 60.1.1.2 as-number 200  

peer 60.1.1.2 ebgp-max-hop 2  

#

ipv4-family unicast

 undo synchronization

 peer 1.1.1.1 enable

 peer 1.1.1.1 next-hop-local  

 peer 2.2.2.2 enable

 peer 2.2.2.2 next-hop-local  

 peer 60.1.1.2 enable

#

ipv6-family unicast

 undo synchronization

#

ospf 100 router-id 3.3.3.3  

area 0.0.0.0  

 network 3.3.3.3 0.0.0.0  

 network 10.1.1.0 0.0.0.255  

 network 40.1.1.0 0.0.0.255  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<R3>

R4

<R4>display current-configuration  

[V200R003C00]

#

sysname R4

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 50.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 20.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 4.4.4.4 255.255.255.255  

#

bgp 100

router-id 4.4.4.4

undo default ipv4-unicast

peer 1.1.1.1 as-number 100  

peer 1.1.1.1 connect-interface LoopBack0

peer 2.2.2.2 as-number 100  

peer 2.2.2.2 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 peer 1.1.1.1 enable

 peer 2.2.2.2 enable

#

ospf 100 router-id 4.4.4.4  

area 0.0.0.0  

 network 4.4.4.4 0.0.0.0  

 network 20.1.1.0 0.0.0.255  

 network 50.1.1.0 0.0.0.255  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

<R4>

R5

[R5]display current-configuration  

[V200R003C00]

#

sysname R5

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load flash:/portalpage.zip

#

drop illegal-mac alarm

#

wlan ac-global carrier id other ac id 0

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 60.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

interface LoopBack0

ip address 5.5.5.5 255.255.255.255  

#

bgp 200

router-id 5.5.5.5

undo default ipv4-unicast

peer 60.1.1.1 as-number 100  

peer 60.1.1.1 ebgp-max-hop 2  

#

ipv4-family unicast

 undo synchronization

 network 0.0.0.0  

 network 5.5.5.5 255.255.255.255  

 peer 60.1.1.1 enable

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[R5]

4、实验现象

三十三、配置 BGP 备份 RR 实验组网_Standard_02

三十三、配置 BGP 备份 RR 实验组网_ci_03

5、知识总结

1)client只与RR建立对等体

2)RR1与RR2需要统一使用一个cluster-id

3)注意区分发送与反射的区别

4)RR1与RR2不分主备