Multicast_BSR_AnycastRP_MSDP_MBGP

网友投稿 258 2022-09-23


Multicast_BSR_AnycastRP_MSDP_MBGP

​实验目的:

通过学习组播的知识,在此将组播的各个知识点进行综合运用,加深对组播的理解并能很好的掌握组播的原理。

实验要求:

采用C-BSR,C-RP的方式获取RP。 在AS之间采用域间组播发现组播源。

实验步骤:

1.配置各路由器的接口地址。

2.配置AS100,AS200各自区域内的IGP协议,实现各自内部的路由互通。

3.配置AS100,AS200各自内部的IBGP的邻居和它们之间的EBGP的邻居。

4.配置AS100,AS200各自连接的组播源,组播接收者的路由宣告进BGP。

5.配置AS100,AS200各自内部路由器的组播路由并将各自相连的接口开启组播。

6.配置AS100,AS200各自内部的C-BSR,C-RP并配置它们之间的MSDP。

具体配置:

#R1的配置

[AR1]display current-configuration

[V200R003C00]

#

sysname AR1 //给路由器重新命名

#

board add 0/1 2SA

#

snmp-agent local-engineid 800007DB03000000000000

//snmp代理本地引擎ID 80007DB03000000000000

snmp-agent

#

clock timezone China-Standard-Time minus 08:00:00 //路由器采用的时区

#

portal local-server load flash:/portalpage.zip //门户本地服务器加载flash:/portalpage.zip

#

drop illegal-mac alarm //丢弃非法mac警报

#

multicast routing-enable //开启路由器的组播功能

#

wlan ac-global carrier id other ac id 0

#

set cpu-usage threshold 80 restore 75

#

aaa //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 Serial1/0/0

link-protocol ppp //接口采用的链路协议

ip address 10.1.14.1 255.255.255.0 //接口的IP地址

pim sm //开启接口的PIMSM模式

ospf enable 1 area 0.0.0.0    //配置接口OSPF协议

#

interface Serial1/0/1

link-protocol ppp

pim sm

#

interface GigabitEthernet0/0/0

ip address 10.1.15.1 255.255.255.0 //接口IP地址

pim bsr-boundary //PIM 接口的边界

pim sm

#

interface GigabitEthernet0/0/1

ip address 10.1.13.1 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/2

ip address 10.1.12.1 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface NULL0

#

interface LoopBack0 //进入接口模式

ip address 11.1.1.1 255.255.255.255 //配置接口地址

ospf enable 1 area 0.0.0.0 //OSPF开启并在区域0内宣告

#

interface LoopBack1

ip address 1.1.1.1 255.255.255.255 //配置接口地址

pim sm

#

interface LoopBack2

ip address 12.12.12.12 255.255.255.255

pim sm

ospf enable 1 area 0.0.0.0

#

bgp 100 //开启BGP 100

peer 10.1.15.5 as-number 200 //配置对等体模式

group 100 internal //创建对等体组

peer 100 connect-interface LoopBack0 //配置BGP的起源接口

peer 22.1.1.1 as-number 100

peer 22.1.1.1 group 100

peer 33.1.1.1 as-number 100

peer 33.1.1.1 group 100

peer 44.1.1.1 as-number 100

peer 44.1.1.1 group 100

#

ipv4-family unicast

undo synchronization

network 1.1.1.1 255.255.255.255

peer 10.1.15.5 enable

peer 100 enable

peer 100 next-hop-local

peer 22.1.1.1 enable

peer 22.1.1.1 group 100

peer 33.1.1.1 enable

peer 33.1.1.1 group 100

peer 33.1.1.1 reflect-client

peer 44.1.1.1 enable

peer 44.1.1.1 group 100

peer 44.1.1.1 reflect-client

#

ipv4-family multicast

undo synchronization

peer 10.1.15.5 enable

peer 100 enable

peer 100 next-hop-local //配置对等体组的下一跳自我

peer 22.1.1.1 enable

peer 22.1.1.1 group 100

peer 33.1.1.1 enable

peer 33.1.1.1 group 100

peer 33.1.1.1 reflect-client //配置对等体路由反射器

peer 44.1.1.1 enable

peer 44.1.1.1 group 100

peer 44.1.1.1 reflect-client

#

ospf 1 router-id 1.1.1.1

silent-interface GigabitEthernet0/0/0

area 0.0.0.0

#

pim

c-bsr admin-scope //配置

c-rp advertisement-interval 6 //配置C-RP通告间隔

c-rp holdtime 15 //配置C-RP的保持时间

c-rp LoopBack2 //配置C-RP的接口地址

#

msdp //进入组播源发现协议

originating-rp LoopBack1 //起源RP的接口

peer 2.2.2.2 connect-interface LoopBack1 //配置MSDTP对等体连接接口

peer 5.5.5.5 connect-interface LoopBack1

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[AR1]

#R2的配置

display current-configuration

[V200R003C00]

#

sysname AR2

#

board add 0/1 2SA

#

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

#

multicast routing-enable //开启路由器组播

#

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 zone Local

priority 15

#

interface Serial1/0/0

link-protocol ppp

ip address 10.1.26.2 255.255.255.0 //配置接口IP地址

pim bsr-boundary

pim sm

#

interface Serial1/0/1

link-protocol ppp //链路协议为PPP

ip address 10.1.24.2 255.255.255.0

pim sm

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/0

ip address 10.1.23.2 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/1

ip address 10.1.1.254 255.255.255.0

pim sm

igmp enable

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/2

ip address 10.1.12.2 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface NULL0

#

interface LoopBack0

ip address 22.1.1.1 255.255.255.255

ospf enable 1 area 0.0.0.0

#

interface LoopBack1

ip address 2.2.2.2 255.255.255.255

pim sm

#

interface LoopBack2

ip address 12.12.12.12 255.255.255.255

pim sm

ospf enable 1 area 0.0.0.0

#

bgp 100

peer 66.1.1.1 as-number 200 //单播建立邻居

peer 66.1.1.1 ebgp-max-hop 2 //配置BGP多跳

peer 66.1.1.1 connect-interface LoopBack0 //建立对等体的发起接口

group 100 internal

peer 100 connect-interface LoopBack0

peer 11.1.1.1 as-number 100

peer 11.1.1.1 group 100

peer 33.1.1.1 as-number 100

peer 33.1.1.1 group 100

peer 44.1.1.1 as-number 100

peer 44.1.1.1 group 100

#

ipv4-family unicast

undo synchronization

network 2.2.2.2 255.255.255.255

network 10.1.1.0 255.255.255.0

peer 66.1.1.1 enable

peer 100 enable

peer 100 next-hop-local

peer 11.1.1.1 enable

peer 11.1.1.1 group 100

peer 33.1.1.1 enable

peer 33.1.1.1 group 100

peer 33.1.1.1 reflect-client

peer 44.1.1.1 enable

peer 44.1.1.1 group 100

peer 44.1.1.1 reflect-client

#

ipv4-family multicast //开启BGP IPv4组播

undo synchronization

peer 66.1.1.1 enable

peer 100 enable

peer 100 next-hop-local //针对对等体组做下一跳自我

peer 11.1.1.1 enable

peer 11.1.1.1 group 100

peer 33.1.1.1 enable

peer 33.1.1.1 group 100

peer 33.1.1.1 reflect-client //配置反向客户端

peer 44.1.1.1 enable

peer 44.1.1.1 group 100

peer 44.1.1.1 reflect-client //配置反向客户端

#

ospf 1 router-id 2.2.2.2

silent-interface GigabitEthernet0/0/1 //配置的静默接口

silent-interface Serial1/0/0

area 0.0.0.0

#

pim

c-bsr admin-scope //c-bsr管理范围

c-rp advertisement-interval 6 //c-rp通告间隔

c-rp holdtime 15 //c-rp保持时间

c-rp priority 100 //c-rp的优先级

c-rp LoopBack2 //C-RP对应的接口

spt-switch-threshold infinity //spt开关阈值无穷大

#

msdp

originating-rp LoopBack1 //发起rp环回1

peer 1.1.1.1 connect-interface LoopBack1

peer 5.5.5.5 connect-interface LoopBack1

#

ip route-static 66.1.1.1 255.255.255.255 10.1.26.6 //静态路由

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

#R3的配置

display current-configuration

[V200R003C00]

#

sysname AR3

#

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

#

multicast routing-enable

#

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 zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 10.1.23.3 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/1

ip address 10.1.13.3 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/2

ip address 10.1.34.3 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface NULL0

#

interface LoopBack0

ip address 33.1.1.1 255.255.255.255

ospf enable 1 area 0.0.0.0

#

interface LoopBack1

ip address 3.3.3.3 255.255.255.255

pim sm

#

bgp 100

group 100 internal

peer 100 connect-interface LoopBack0

peer 11.1.1.1 as-number 100

peer 11.1.1.1 group 100

peer 22.1.1.1 as-number 100

peer 22.1.1.1 group 100

#

ipv4-family unicast

undo synchronization

network 3.3.3.3 255.255.255.255

peer 100 enable

peer 11.1.1.1 enable

peer 11.1.1.1 group 100

peer 22.1.1.1 enable

peer 22.1.1.1 group 100

#

ipv4-family multicast

undo synchronization

peer 100 enable

peer 11.1.1.1 enable

peer 11.1.1.1 group 100

peer 22.1.1.1 enable

peer 22.1.1.1 group 100

#

ospf 1 router-id 3.3.3.3

silent-interface GigabitEthernet0/0/0

area 0.0.0.0

#

pim

c-bsr admin-scope

c-bsr group 239.1.1.1 255.255.255.255 priority 200

c-bsr group 239.1.1.2 255.255.255.255 priority 100

c-bsr interval 6

c-bsr holdtime 15

c-bsr hash-length 24

c-bsr LoopBack1

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

#R4的配置

display current-configuration

[V200R003C00]

#

sysname AR4

#

board add 0/1 2SA

#

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

#

multicast routing-enable

#

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 zone Local

priority 15

#

interface Serial1/0/0

link-protocol ppp

ip address 10.1.14.4 255.255.255.0

pim sm

ospf enable 1 area 0.0.0.0

#

interface Serial1/0/1

link-protocol ppp

ip address 10.1.24.4 255.255.255.0

pim sm

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/0

pim sm

#

interface GigabitEthernet0/0/1

ip address 100.1.1.254 255.255.255.0

pim sm

ospf enable 1 area 0.0.0.0

#

interface GigabitEthernet0/0/2

ip address 10.1.34.4 255.255.255.0

pim sm

ospf network-type p2p

ospf enable 1 area 0.0.0.0

#

interface NULL0

#

interface LoopBack0

ip address 44.1.1.1 255.255.255.255

ospf enable 1 area 0.0.0.0

#

interface LoopBack1

ip address 4.4.4.4 255.255.255.255

pim sm

#

bgp 100

group 100 internal

peer 100 connect-interface LoopBack0

peer 11.1.1.1 as-number 100

peer 11.1.1.1 group 100

peer 22.1.1.1 as-number 100

peer 22.1.1.1 group 100

#

ipv4-family unicast

undo synchronization

network 4.4.4.4 255.255.255.255

network 100.1.1.0 255.255.255.0

peer 100 enable

peer 11.1.1.1 enable

peer 11.1.1.1 group 100

peer 22.1.1.1 enable

peer 22.1.1.1 group 100

#

ipv4-family multicast

undo synchronization

network 100.1.1.0 255.255.255.0

peer 100 enable

peer 11.1.1.1 enable

peer 11.1.1.1 group 100

peer 22.1.1.1 enable

peer 22.1.1.1 group 100

#

ospf 1 router-id 4.4.4.4

silent-interface GigabitEthernet0/0/1

area 0.0.0.0

#

pim

c-bsr admin-scope

c-bsr group 239.1.1.1 255.255.255.255 priority 100

c-bsr group 239.1.1.2 255.255.255.255 priority 200

c-bsr interval 6

c-bsr holdtime 15

c-bsr hash-length 24

c-bsr LoopBack1

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

#R5的配置

display cu

display current-configuration

[V200R003C00]

#

sysname AR5

#

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

#

multicast routing-enable

#

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 1

is-level level-2

network-entity 4901.0000.0000.0005.00

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 10.1.15.5 255.255.255.0

pim bsr-boundary

pim sm

#

interface GigabitEthernet0/0/1

ip address 10.1.57.5 255.255.255.0

isis enable 1

pim sm

#

interface GigabitEthernet0/0/2

pim sm

#

interface NULL0

#

interface LoopBack0

ip address 55.1.1.1 255.255.255.255

isis enable 1

#

interface LoopBack1

ip address 5.5.5.5 255.255.255.255

pim sm

#

interface LoopBack2

#

bgp 200

peer 10.1.15.1 as-number 100

group 200 internal

peer 200 connect-interface LoopBack0

peer 77.1.1.1 as-number 200

peer 77.1.1.1 group 200

#

ipv4-family unicast

undo synchronization

network 5.5.5.5 255.255.255.255

peer 10.1.15.1 enable

peer 200 enable

peer 200 next-hop-local

peer 77.1.1.1 enable

peer 77.1.1.1 group 200

#

ipv4-family multicast

undo synchronization

peer 10.1.15.1 enable

peer 200 enable

peer 200 next-hop-local

peer 77.1.1.1 enable

peer 77.1.1.1 group 200

#

pim

c-bsr interval 10

c-bsr holdtime 25

c-bsr hash-length 24

c-bsr priority 10

c-bsr LoopBack1

c-rp advertisement-interval 10

c-rp holdtime 25

c-rp LoopBack1

#

msdp

originating-rp LoopBack1

peer 1.1.1.1 connect-interface LoopBack1

peer 2.2.2.2 connect-interface LoopBack1

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

#R6的配置

display current-configuration

[V200R003C00]

#

sysname AR6

#

board add 0/1 2SA

#

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

#

multicast routing-enable

#

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 1

is-level level-2

network-entity 4901.0000.0000.0006.00

#

firewall zone Local

priority 15

#

interface Serial1/0/0

link-protocol ppp

ip address 10.1.26.6 255.255.255.0

pim bsr-boundary

pim sm

#

interface Serial1/0/1

link-protocol ppp

ip address 10.1.67.6 255.255.255.0

isis enable 1

pim sm

#

interface GigabitEthernet0/0/0

pim sm

#

interface GigabitEthernet0/0/1

pim sm

#

interface GigabitEthernet0/0/2

pim sm

#

interface NULL0

#

interface LoopBack0

ip address 66.1.1.1 255.255.255.255

isis enable 1

#

interface LoopBack1

ip address 6.6.6.6 255.255.255.255

pim sm

#

bgp 200

peer 22.1.1.1 as-number 100

peer 22.1.1.1 ebgp-max-hop 2

peer 22.1.1.1 connect-interface LoopBack0

group 200 internal

peer 200 connect-interface LoopBack0

peer 77.1.1.1 as-number 200

peer 77.1.1.1 group 200

#

ipv4-family unicast

undo synchronization

network 6.6.6.6 255.255.255.255

peer 22.1.1.1 enable

peer 200 enable

peer 200 next-hop-local

peer 77.1.1.1 enable

peer 77.1.1.1 group 200

#

ipv4-family multicast

undo synchronization

peer 22.1.1.1 enable

peer 200 enable

peer 200 next-hop-local

peer 77.1.1.1 enable

peer 77.1.1.1 group 200

#

pim

c-bsr interval 10

c-bsr holdtime 25

c-bsr hash-length 24

c-bsr LoopBack1

c-rp advertisement-interval 10

c-rp holdtime 25

c-rp priority 10

c-rp LoopBack1

#

ip route-static 22.1.1.1 255.255.255.255 10.1.26.2

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

#R7的配置

display cu

display current-configuration

[V200R003C00]

#

sysname AR7

#

board add 0/1 2SA

#

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

#

multicast routing-enable

#

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 1

is-level level-2

network-entity 4901.0000.0000.0007.00

#

firewall zone Local

priority 15

#

interface Serial1/0/0

link-protocol ppp

pim sm

#

interface Serial1/0/1

link-protocol ppp

ip address 10.1.67.7 255.255.255.0

isis enable 1

pim sm

#

interface GigabitEthernet0/0/0

ip address 172.16.10.254 255.255.255.0

isis enable 1

igmp enable

#

interface GigabitEthernet0/0/1

ip address 10.1.57.7 255.255.255.0

isis enable 1

pim sm

#

interface GigabitEthernet0/0/2

pim sm

#

interface NULL0

#

interface LoopBack0

ip address 77.1.1.1 255.255.255.255

isis enable 1

#

interface LoopBack1

ip address 7.7.7.7 255.255.255.255

pim sm

#

bgp 200

group 200 internal

peer 200 connect-interface LoopBack0

peer 55.1.1.1 as-number 200

peer 55.1.1.1 group 200

peer 66.1.1.1 as-number 200

peer 66.1.1.1 group 200

#

ipv4-family unicast

undo synchronization

network 7.7.7.7 255.255.255.255

network 172.16.10.0 255.255.255.0

peer 200 enable

peer 55.1.1.1 enable

peer 55.1.1.1 group 200

peer 55.1.1.1 reflect-client

peer 66.1.1.1 enable

peer 66.1.1.1 group 200

peer 66.1.1.1 reflect-client

#

ipv4-family multicast

undo synchronization

peer 200 enable

peer 55.1.1.1 enable

peer 55.1.1.1 group 200

peer 55.1.1.1 reflect-client

peer 66.1.1.1 enable

peer 66.1.1.1 group 200

peer 66.1.1.1 reflect-client

#

pim

c-bsr interval 10

c-bsr holdtime 25

c-rp advertisement-interval 10

c-rp holdtime 25

#

ip rpf-route-static 100.1.1.0 24 5.5.5.5

#

user-interface con 0

authentication-mode password

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:PPP认证之PAP(pppoe认证中)
下一篇:聊聊DecimalFormat的用法及各符号的意义
相关文章

 发表评论

暂时没有评论,来抢沙发吧~