首页 > 其他分享 >三十三、配置 BGP 备份 RR 实验组网

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

时间:2024-01-03 23:01:26浏览次数:40  
标签:1.1 RR default 0.0 BGP peer interface 2.2 组网

1、实验拓扑图

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

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不分主备

标签:1.1,RR,default,0.0,BGP,peer,interface,2.2,组网
From: https://blog.51cto.com/u_13560030/9090064

相关文章

  • windows下logstash从文件中读数据写入es报错 Error: No such file or directory - :/d
    [2023-12-22T17:26:50,327][ERROR][logstash.javapipeline][main][897a6c7006446c97daa2ee44df7541701882ceece289ce428fcfac8aa982a0c5]Apluginhadanunrecoverableerror.Willrestartthisplugin.Pipeline_id:mainPlugin:<LogStash::Inputs::Filestar......
  • 十七、配置 IS-IS 通告缺省路由实验组网
    1、实验拓扑图2、实验目的R1、R2、R3之间构建LEVEL-1关系,R3、R4、R5之间构建LEVEL-S关系,R3为LEVEL-1-2路由器(边界路由器);默认情况下,R3产生ATT置位为1的LSP,另LEVEL-1路由器收到ATT为1的LSP后产生下一跳指向R3的缺省路由;之后再验证对ATT比特位进行手动配置产生的后续结果3、配置[r3]di......
  • 【Log4j2】Log4j2最佳实践:Log4j2配置超过7天压缩,超过3个月删除文件的滚动日志,分别定义
    目录Log4j2配置springboot多环境日志配置参考资料Log4j2配置如果你想要在控制台输出美化的日志信息,你可以使用Log4j2的ConsoleAppender和AnsiColorConverter来实现。下面是相应的配置示例:<Configurationstatus="WARN"><Properties><Propertyname="logPath">/path/t......
  • 【JDK源码】ArrayList的代码实现
    JDK版本:1.8.0_271基础介绍ArrayList底层数据结构就是一个数组:index表示数组下标,从0开始计数,elementDatda表示数组本身DEFAULT_CAPACITY表示数组的初始化大小,默认是10size表示数组的大小,int类型,没有使用volatile修饰,非线程安全modCount统计当前数组被修改的版本次数,数......
  • kali官方博客 --- Kali Linux 2023.4 发布(云 ARM64、Vagrant Hyper-V 和 Raspberry Pi
     2023年即将结束,在假期开始之前,我们认为今天是发布Kali2023.4的好时机。虽然这次发布的最终用户功能可能不是最多的,但我们提供了许多新的平台,幕后也发生了许多变化,这些变化产生了积极的连锁反应,使每个人都受益匪浅。撇开新闻、平台和功能不谈,如果我们的软件包(包括新工具和......
  • 如何安装 macOS Big Sur 11.0 Beta 虚机,解决 “BiErrorDomain Error 3.” 报错
    作者:https://sysin.org1.获取官方的macOSBeta软件包官网直接下载,双击直接安装:点击下载Betaprofile,通过软件更新下载上述两种方式,都会将InstallmacOSBeta.app放置于/Applications(应用程序)下面。2.安装方式1.升级安装,下载后直接点击“InstallmacOSBeta”2.在当前系统......
  • python -m pip fatal error
    https://zhuanlan.zhihu.com/p/91120727Python中-m的典型用法、原理解析与发展演变解决Windows环境中Python:pip安装出现Fatalerrorinlauncher:Unabletocreateprocessusing'"'问题————————————————版权声明:本文为CSDN博主「专攻数学的文科生」的原创......
  • CF121E Lucky Array
    题意给定一个序列,维护下列操作。区间加区间查询数中只包含\(4,7\)数的个数。所有数前后不超过\(1e4\)。Sol块块版。\(1e4\),发现满足条件的数的个数只有\(30\)个。对于每个块开一个桶,记录每种数有多少个。查询时暴力枚举\(30\)个数,暴力判断即可。修改是平凡的......
  • ZIMP - Unit Test error
     ===RUNTestTransferTxstore_test.go:87: ErrorTrace: /home/runner/work/zimplebank/zimplebank/db/sqlc/store_test.go:87 Error: Notequal: expected:20 actual:19.9999999999999......
  • Installed Build Tools revision 34.0.0 is corrupted
    解决方案:根据构建报错信息"31.0.0版本的构建工具缺少了DX文件"发现,31.0.0版本的构建工具缺少了"dx.bat"和"dx.jar"这两文件,正确的做法就是复制对应路径的"d8.bat"和"d8.jar"这两文件创建副本,并分别改名为"dx.bat"和"dx.jar"【该方法同样适用于34.0.0版本问题】,"d8.bat"和&qu......