1.R1配置OSPF
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255
2.R2配置OSPF
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.255.255.255
3.R3配置OSPF
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 34.1.1.0 0.255.255.255
4.R4配置OSPF
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 34.1.1.0 0.255.255.255
[R4-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
5.R2配置BGP,与OSPF相互引入
[R2]bgp 12
[R2-bgp]router-id 2.2.2.2
[R2-bgp]peer 23.1.1.3 as
[R2-bgp]peer 23.1.1.3 as-number 34
[R2-bgp]import-route ospf 1
[R2]ospf 1
[R2-ospf-1]import-route bgp
6.R3配置BGP,与OSPF相互引入
[R3]bgp 34
[R3-bgp]peer 23.1.1.2 as-number 12
[R3-bgp]import-route ospf 1
[R3]ospf 1
[R3-ospf-1]import-route bgp
7.R1配置PIM-SM
[R1]multicast routing-enable
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]pim sm
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]pim sm
8.R2配置PIM-SM
[R2]multicast routing-enable
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]pim sm
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]pim bsr-boundary
[R2-GigabitEthernet0/0/1]pim sm
[R2]interface LoopBack 0
[R2-LoopBack0]pim sm
[R2]pim
[R2-pim]c-bsr LoopBack 0
[R2-pim]c-rp LoopBack 0
9.R3配置PIM-SM
[R3]multicast routing-enable
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]pim sm
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]pim bsr-boundary
[R3-GigabitEthernet0/0/1]pim sm
[R3]interface LoopBack 0
[R3-LoopBack0]pim sm
[R3]pim
[R3-pim]c-bsr LoopBack 0
[R3-pim]c-rp LoopBack 0
10.R4配置PIM-SM
[R4]multicast routing-enable
[R4]interface GigabitEthernet 0/0/0
[R4-GigabitEthernet0/0/0]pim sm
[R4]interface GigabitEthernet 0/0/1
[R4-GigabitEthernet0/0/1]pim sm
[R4-GigabitEthernet0/0/1]igmp enable
11.R2配置msdp
[R2]msdp
[R2-msdp]peer 23.1.1.3 connect-interface GigabitEthernet 0/0/1
12.R3配置msdp
[R3]msdp
[R3-msdp]peer 23.1.1.2 connect-interface GigabitEthernet 0/0/1
13.验证BGP对等体关系
<R2>display bgp peer
23.1.1.3 4 34 67 70 0 01:02:47 Established 3
<R3>display bgp peer
23.1.1.2 4 12 70 68 0 01:03:11 Established 3
14.验证BGP路由表
<R3>display bgp routing-table
*> 2.2.2.2/32 23.1.1.2 0 0 12?
*> 3.3.3.3/32 0.0.0.0 0 0 ?
*> 12.0.0.0 23.1.1.2 0 0 12?
*> 34.0.0.0 0.0.0.0 0 0 ?
*> 192.168.1.0 23.1.1.2 2 0 12i
*> 192.168.2.0 0.0.0.0 2 0 ?
15.验证MSDP对等体建立情况
<R2>display msdp brief
23.1.1.3 Up 01:00:45 34 0 0
16.PC1发送组播信息,查看PIM路由表
<R2>display pim routing-table
VPN-Instance: public net
Total 0 (*, G) entry; 1 (S, G) entry
(192.168.1.1, 224.1.1.1)
RP: 2.2.2.2 (local)
Protocol: pim-sm, Flag: SPT 2MSDP ACT
UpTime: 00:00:15
Upstream interface: GigabitEthernet0/0/0
Upstream neighbor: 12.1.1.1
RPF prime neighbor: 12.1.1.1
Downstream interface(s) information:
Total number of downstreams: 1
1: GigabitEthernet0/0/1
Protocol: pim-sm, UpTime: 00:00:15, Expires: 00:03:15
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容