Layer 3OLT A, OLT B and OLT C adopt OSPF protocol to perform interconnection. Receiver receives VOD information via multicast. User-pc1 and User-PC2 receive different video information.
108
In this network, it adopts PIM -SM protocol to realize the allocation of multicast data. In addition, it dynamically elects the RP via bootstrapping mechanism. It configures the static RP to avoid communication outage due to the dynamic RP faults.
Network diagram is shown as follow
Network Diagram of PIM –SM Configuration
二、Configuration steps
#OLTA configurations (1) Enable multicast routing
OPTIWAY(config)#ip multicast-routing
(2) Configure each interface as well as the interface address, and then enable PIM -SM. OPTIWAY(config)#vlan 2-4
OPTIWAY(config-if-vlan)#interface ethernet 0/1
OPTIWAY(config-if-ethernet-0/1)#switchport default vlan 4 OPTIWAY(config-if-ethernet-0/1)#interface ethernet 0/5 OPTIWAY(config-if-ethernet-0/5)#switchport default vlan 3 OPTIWAY(config-if-ethernet-0/5)#interface ethernet 0/3 OPTIWAY(config-if-ethernet-0/3)#switchport default vlan 2 OPTIWAY(config-if-ethernet-0/3)#exit
OPTIWAY(config)#interface vlan-interface 4
OPTIWAY(config-if-vlanInterface-4)#ip address 192.168.7.1 255.255.255.0 OPTIWAY(config-if-vlanInterface-4)#ip pim sparse-mode
OPTIWAY(config-if-vlanInterface-4)#exit OPTIWAY(config)#interface vlan-interface 2
OPTIWAY(config-if-vlanInterface-2)#ip address 192.168.1.1 255.255.255.0 OPTIWAY(config-if-vlanInterface-2)#ip pim sparse-mode
OPTIWAY(config-if-vlanInterface-2)#exit OPTIWAY(config)#interface vlan-interface 3
OPTIWAY(config-if-vlanInterface-3)#ip address 192.168.2.1 255.255.255.0 OPTIWAY(config-if-vlanInterface-3)# ip pim sparse-mode
109
(3) Configure C-RP and static RP. Specify the IP address of 2 VLAN interface to be C-BSR and C-RP; specify the IP address of interface 3 to be static RP.
OPTIWAY(config)#mroute pim
OPTIWAY(config-router-pim)#bsr-candidate vlan-interface 2 8 OPTIWAY(config-router-pim)#rp-candidate vlan-interface 2 OPTIWAY (config-router-pim)#static-rp 192.168.2.2 OPTIWAY(config-router-pim)#
(4) Configure the unitcast routing protocol so as to establish the correct unicast routing table. OPTIWAY(config)#router ospf
OPTIWAY(config-router-ospf)#network 192.168.7.1 0.0.0.255 area 0 OPTIWAY(config-router-ospf)#network 192.168.1.1 0.0.0.255 area 0 OPTIWAY(config-router-ospf)#network 192.168.2.1 0.0.0.255 area 0 #OLTBconfigurations
(1) Enable multicast routing
OptiWay (config)#ip multicast-routing
(2) configure each interface as well as the interface address, and then enable PIM -SM. In addition, interface 5 enables IGMP protocol.
OptiWay#c t OptiWay(config)#vlan 2 OptiWay(config-if-vlan)#vlan 4 OptiWay(config-if-vlan)#vlan 5 OptiWay(config-if-vlan)#exit OptiWay(config)#interface ethernet 0/2
OptiWay(config-if-ethernet-0/2)#switchport default vlan 2 OptiWay(config-if-ethernet-0/2)#interface ethernet 0/3 OptiWay(config-if-vlan)#interface ethernet 0/3
OptiWay(config-if-ethernet-0/3)#switchport default vlan 4 OptiWay(config)#interface ethernet 0/6
OptiWay(config-if-ethernet-0/6)#switchport default vlan 5 OptiWay(config-if-ethernet-0/6)#
OptiWay(config)#interface vlan-interface 2
OptiWay(config-if-vlanInterface-2)#ip address 192.168.1.2 255.255.255.0 OptiWay(config-if-vlanInterface-2)#ip pim sparse-mode
OptiWay(config-if-vlanInterface-2)#interface vlan-interface 4
OptiWay(config-if-vlanInterface-4)#ip address 192.168.3.1 255.255.255.0 OptiWay(config-if-vlanInterface-4)#ip pim sparse-mode
OptiWay(config-if-vlanInterface-4)#interface vlan-interface 5
OptiWay(config-if-vlanInterface-5)#ip address 192.168.5.1 255.255.255.0 OptiWay(config-if-vlanInterface-5)#ip pim sparse-mode
OptiWay(config-if-vlanInterface-5)#ip igmp
(3) configure static RP. Specify the IP address of 13 VLAN interface to be the IP address of static RP; Specify the IP address of 4 VLAN interface to be C-BSR and C-RP; Specify the IP address of 3 VLAN interface in OLT C to be the IP address of static RP.
OptiWay(config)#mroute pim
OptiWay(config-router-pim)#bsr-candidate vlan-interface 4 8 OptiWay(config-router-pim)#rp-candidate vlan-interface 4 OptiWay(config-router-pim)#static-rp 192.168.2.2
110 OptiWay(config)#router ospf OptiWay(config-router-ospf)#network 192.168.1.2 0.0.0.255 area 0 OptiWay(config-router-ospf)#network 192.168.3.1 0.0.0.255 area 0 OptiWay(config-router-ospf)#network 192.168.5.1 0.0.0.255 area 0 #OLTC configurations
(1) Enable multicast routing OptiWay(config)#ip multicast-routing
(2) Configure each interface as well as the interface address, and then enable PIM -SM. In addition, interface 6 enables IGMP protocol.
OptiWay(config)#vlan 3 OptiWay(config-if-vlan)#vlan 4 OptiWay(config-if-vlan)#vlan 6 OptiWay(config-if-vlan)#exit
OptiWay(config)#interface ethernet 0/2
OptiWay(config-if-ethernet-0/2)# witchport default vlan 3 OptiWay(config-if-ethernet-0/2)#interface ethernet 0/3 OptiWay(config-if-ethernet-0/3)#switchport default vlan 4 OptiWay(config-if-ethernet-0/3)#interface ethernet 0/6 OptiWay(config-if-ethernet-0/6)#switchport default vlan 6 OptiWay(config-if-ethernet-0/6)#exit
OptiWay(config)#interface vlan-interface 3
OptiWay(config-if-vlanInterface-3)#ip address 192.168.2.2 255.255.255.0 OptiWay(config-if-vlanInterface-3)#ip pim sparse-mode
OptiWay(config-if-vlanInterface-3)#interface vlan-interface 4 OptiWay(config-if-vlanInterface-4)#ip pim sparse-mode
OptiWay(config-if-vlanInterface-4)#ip address 192.168.3.2 255.255.255.0 OptiWay(config-if-vlanInterface-4)#interface vlan-interface 6
OptiWay(config-if-vlanInterface-6)#ip address 192.168.6.1 255.255.255.0 OptiWay(config-if-vlanInterface-6)#ip pim sparse-mode
OptiWay(config-if-vlanInterface-6)#ip igmp
(3) Configure static RP. Specify the IP address of 13 VLAN interface to be the IP address of static RP.
[OptiWay(config)#mroute pim
OptiWay(config-router-pim)#static-rp 192.168.2.2
(4) Configure the unicast routing protocol so as to establish the correct unicast routing table. OptiWay(config)#router ospf
OptiWay(config-router-ospf)#network 192.168.2.2 0.0.0.255 area 0 OptiWay(config-router-ospf)#network 192.168.3.2 0.0.0.255 area 0 OptiWay(config-router-ospf)#network 192.168.6.1 0.0.0.255 area 0 三、Configuration Validation
Each pair of OLT A, OLT B and OLT C had established PIM neighbor relationship. OptiWay(config)#show ip pim neighbor
Neighbor Address Interface Uptime Expires 192.168.1.2 VLAN-IF2 00:03:57 00:01:22 192.168.2.2 VLAN-IF3 00:03:33 00:01:42 Total Neighbors 2.
111
Neighbor Address Interface Uptime Expires 192.168.1.1 VLAN-IF2 00:05:19 00:01:26 192.168.3.2 VLAN-IF4 00:10:17 00:01:28 Total Neighbors 2.
OptiWay(config)#show ip pim neighbor
Neighbor Address Interface Uptime Expires 192.168.2.1 VLAN-IF3 00:01:24 00:01:21 192.168.3.1 VLAN-IF4 00:09:54 00:01:18 Total Neighbors 2.
Display the RP information of PIM -SM domain via the command of “show ip pim rp-info”. OptiWay(config)#show ip pim rp-info
GroupAddress GroupMaskLen RPAddress ExpiryTime 224.0.0.0 4 192.168.3.1 00:01:36
224.0.0.0 4 192.168.1.1 00:01:36 Static RP is 192.168.2.2.
PC1 is added into225.0.1.2, OLTB adds port6 to be the member interface of 225.0.1.2. OptiWay(config)#show ip igmp groups
IGMP Connected Group Membership Group Address: 225.0.1.2
Vlan: 5, port: 0/6, Uptime: 00:00:08
Expires: 00:04:12, Last Reporter: 192.168.5.2
V1 Expires: 00:00:00, V2 Expires: 00:04:12, Self: False FilterMode: EXCLUDE, Static: False
SourceList(0):
Current State(IGMP_MS_NORMAL2) Total Groups: 1, Total group members: 1
Multicast source server forwards the multicast video streams with the IP as 225.0.1.2 to check the PIM routing table information of OLT B. And then it will display the detailed information of(S,G) item, (*,G) item ,(S,G)item, PIM mode, inbound interface, upstream neighbors, RPF neighbors, downstream interface, etc. At the same time, PC1 can be able to receive the video.
OptiWay(config)#show ip mroute IP Multicast Routing Table
Flags: D - Dense, S - Sparse, s - SSM Group, C - Connected, L - Local, P - Pruned, R - RP-bit set, F - Register flag, T - SPT-bit set, J - Join SPT, O - SRM originator, H - Hardware switched K - Static entry
Timers: Uptime/Expires, Interface state: State/Mode
(*, 225.0.1.2), 00:01:58/00:03:28, RP 192.168.2.2, flags: SCJ Incoming interface: VLAN-IF2, RPF nbr: 192.168.1.1 Outgoing interface list:
VLAN-IF5, 0/6, Forward/Sparse, 00:01:58/00:01:33 (192.168.7.2, 225.0.1.2), 00:01:57/00:01:52, flags: SCTJ Incoming interface: VLAN-IF2, RPF nbr: 192.168.1.1 Outgoing interface list:
VLAN-IF5, 0/6, Forward/Sparse, 00:01:57/00:01:33 Total dynamic entries 2. Total static entries 0.
112
Total ip multicast entries 2.
OptiWay(config)#SHOW IP mroute IP Multicast Routing Table
Flags: D - Dense, S - Sparse, s - SSM Group, C - Connected, L - Local, P - Pruned, R - RP-bit set, F - Register flag, T - SPT-bit set, J - Join SPT, O - SRM originator, H - Hardware switched K - Static entry
Timers: Uptime/Expires, Interface state: State/Mode (*, 225.0.1.2), 00:00:47/00:03:33, RP 192.168.2.2, flags: SJ Incoming interface: VLAN-IF3, RPF nbr: 192.168.2.2 Outgoing interface list:
VLAN-IF2, 0/3, Forward/Sparse, 00:00:47/00:02:43 (192.168.7.2, 225.0.1.2), 00:01:01/00:03:06, flags: SO Incoming interface: VLAN-IF4, RPF nbr: 0.0.0.0 Outgoing interface list:
VLAN-IF2, 0/3, Forward/Sparse, 00:00:47/00:02:43 Total dynamic entries 2. Total static entries 0. Total ip multicast entries 2.
113