首页 > 其他分享 >三十四、配置 BGP 多集群 RR 实验组网

三十四、配置 BGP 多集群 RR 实验组网

时间:2024-01-04 22:31:49浏览次数:28  
标签:1.1 RR 255.255 0.0 BGP peer interface 100 组网

1、实验拓扑图

三十四、配置 BGP 多集群 RR 实验组网_Time

2、实验目标

一级RR建立两两互联,RR之间为非客户机

3、核心配置

R1:

<R1>display current-configuration  

[V200R003C00]

#

sysname R1

#

board add 0/4 4GET  

#

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 15.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 13.1.1.1 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 12.1.1.1 255.255.255.0  

#

interface GigabitEthernet4/0/0

ip address 14.1.1.1 255.255.255.0  

#

interface GigabitEthernet4/0/1

#

interface GigabitEthernet4/0/2

#

interface GigabitEthernet4/0/3

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255  

#

bgp 100

router-id 1.1.1.1

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

peer 5.5.5.5 as-number 100  

peer 5.5.5.5 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 reflector cluster-id 1.1.1.1

 peer 2.2.2.2 enable

 peer 3.3.3.3 enable

 peer 4.4.4.4 enable

 peer 5.5.5.5 enable

 peer 5.5.5.5 reflect-client

#

ospf 100 router-id 1.1.1.1  

area 0.0.0.0  

 network 1.1.1.1 0.0.0.0  

 network 12.1.1.0 0.0.0.255  

 network 13.1.1.0 0.0.0.255  

 network 14.1.1.0 0.0.0.255  

 network 15.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

#

board add 0/4 4GET  

#

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 28.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 12.1.1.2 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 24.1.1.2 255.255.255.0  

#

interface GigabitEthernet4/0/0

ip address 23.1.1.2 255.255.255.0  

#

interface GigabitEthernet4/0/1

#

interface GigabitEthernet4/0/2

#

interface GigabitEthernet4/0/3

#

interface NULL0

#

interface LoopBack0

ip address 2.2.2.2 255.255.255.255  

#

bgp 100

router-id 2.2.2.2

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

peer 8.8.8.8 as-number 100  

peer 8.8.8.8 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 reflector cluster-id 2.2.2.2

 peer 1.1.1.1 enable

 peer 3.3.3.3 enable

 peer 4.4.4.4 enable

 peer 8.8.8.8 enable

 peer 8.8.8.8 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 12.1.1.0 0.0.0.255  

 network 23.1.1.0 0.0.0.255  

 network 24.1.1.0 0.0.0.255  

 network 28.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

#

board add 0/4 4GET  

#

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 36.1.1.3 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 13.1.1.3 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 34.1.1.3 255.255.255.0  

#

interface GigabitEthernet4/0/0

ip address 23.1.1.3 255.255.255.0  

#

interface GigabitEthernet4/0/1

#

interface GigabitEthernet4/0/2

#

interface GigabitEthernet4/0/3

#

interface NULL0

#

interface LoopBack0

ip address 3.3.3.3 255.255.255.255  

#

bgp 100

router-id 3.3.3.3

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 4.4.4.4 as-number 100  

peer 4.4.4.4 connect-interface LoopBack0

peer 6.6.6.6 as-number 100  

peer 6.6.6.6 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 reflector cluster-id 3.3.3.3

 peer 1.1.1.1 enable

 peer 2.2.2.2 enable

 peer 4.4.4.4 enable

 peer 6.6.6.6 enable

 peer 6.6.6.6 reflect-client

#

ospf 100 router-id 3.3.3.3  

area 0.0.0.0  

 network 3.3.3.3 0.0.0.0  

 network 13.1.1.0 0.0.0.255  

 network 23.1.1.0 0.0.0.255  

 network 34.1.1.0 0.0.0.255  

 network 36.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

#

board add 0/4 4GET  

#

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 47.1.1.4 255.255.255.0  

#

interface GigabitEthernet0/0/1

ip address 14.1.1.4 255.255.255.0  

#

interface GigabitEthernet0/0/2

ip address 34.1.1.4 255.255.255.0  

#

interface GigabitEthernet4/0/0

ip address 24.1.1.4 255.255.255.0  

#

interface GigabitEthernet4/0/1

#

interface GigabitEthernet4/0/2

#

interface GigabitEthernet4/0/3

#

interface NULL0

#

interface LoopBack0

ip address 4.4.4.4 255.255.255.255  

#

bgp 100

router-id 4.4.4.4

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 3.3.3.3 as-number 100  

peer 3.3.3.3 connect-interface LoopBack0

peer 7.7.7.7 as-number 100  

peer 7.7.7.7 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 reflector cluster-id 4.4.4.4

 peer 1.1.1.1 enable

 peer 2.2.2.2 enable

 peer 3.3.3.3 enable

 peer 7.7.7.7 enable

 peer 7.7.7.7 reflect-client

#

ospf 100 router-id 4.4.4.4  

area 0.0.0.0  

 network 4.4.4.4 0.0.0.0  

 network 14.1.1.0 0.0.0.255  

 network 24.1.1.0 0.0.0.255  

 network 34.1.1.0 0.0.0.255  

 network 47.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/R6/R7/R8

<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 15.1.1.5 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 100

router-id 5.5.5.5

peer 1.1.1.1 as-number 100  

peer 1.1.1.1 connect-interface LoopBack0

#

ipv4-family unicast

 undo synchronization

 peer 1.1.1.1 enable

#

ospf 100 router-id 5.5.5.5  

area 0.0.0.0  

 network 5.5.5.5 0.0.0.0  

 network 15.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

<R5>sy  

<R5>system-view  

Enter system view, return user view with Ctrl+Z.

[R5]int l1

[R5-LoopBack1]ip add  

[R5-LoopBack1]ip address 192.168.2.1 32

[R5-LoopBack1]q

[R5]bgp 100

[R5-bgp]net  

[R5-bgp]network 192.168.2.1 ?

 INTEGER<0-32>     Length of IP address mask

 IP_ADDR<X.X.X.X>  Specify an IPv4 network mask

 route-policy      Specify a route policy

 <cr>              Please press ENTER to execute command  

[R5-bgp]network 192.168.2.1 32

[R5-bgp]Q

[R5]DIS  

[R5]display CU  

[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 15.1.1.5 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  

#

interface LoopBack1

ip address 192.168.2.1 255.255.255.255  

#

bgp 100

router-id 5.5.5.5

peer 1.1.1.1 as-number 100  //建立对等体

peer 1.1.1.1 connect-interface LoopBack0 //使用环回接口建立关系

#

ipv4-family unicast

 undo synchronization

 network 192.168.2.1 255.255.255.255  //宣告路由

 peer 1.1.1.1 enable

#

ospf 100 router-id 5.5.5.5  

area 0.0.0.0  

 network 5.5.5.5 0.0.0.0  

 network 15.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

[R5]

4、实验结果

三十四、配置 BGP 多集群 RR 实验组网_Time_02

三十四、配置 BGP 多集群 RR 实验组网_Time_03

三十四、配置 BGP 多集群 RR 实验组网_Standard_04

标签:1.1,RR,255.255,0.0,BGP,peer,interface,100,组网
From: https://blog.51cto.com/u_13560030/9105676

相关文章

  • Uncaught SyntaxError: Invalid or unexpected token
    UncaughtSyntaxError:InvalidorunexpectedtokenJS替换空格发现患者姓名里有空格,导致转JSON的时候,多了"号,在JavaScript中,你可以使用replace()函数来替换字符串中的特定字符或模式。如果你想替换字符串中的空格,你可以这样做:letstr="这是一个含有多个空格的字符串"......
  • 三十三、配置 BGP 备份 RR 实验组网
    1、实验拓扑图2、实验目的配置R1、R2、R3和R4配置集群,R1与R2相互备份,配置相同的“reflectorcluster-id1.1.1.1”,观察结果3、实验具体配置R1[R1]displaycurrent-configuration [V200R003C00]#sysnameR1#snmp-agentlocal-engineid800007DB03000000000000snmp-agent......
  • 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\)个数,暴力判断即可。修改是平凡的......