This section provides examples to configure an MVPN service with SR P2MP policies for SPMSIs and IPMSIs.
The following network is used in the configuration examples:
Root-(100.101.1.x/24)---P-(101.102.1.x/24)----Leaf-1
|--(101.103.1.x/24)----Leaf-2
where Root is 100.0.0.100, P is 100.0.0.101, Leaf-1 is 100.0.0.102, and Leaf-2 is 100.0.0.103.
Example: Configuring a reserved label block
A reserved label block must be configured (in this example, ‟treeSID”), from which tree SID labels are allocated:
A:root>config>router>mpls-labels# info
----------------------------------------------
reserved-label-block "treeSID"
start-label 30000 end-label 30999
exit
Example: Enabling reserved label block
The configured reserved label block must be enabled in the config>router> p2mp-sr-tree context:
A:swsim100>configure>router>p2mp-sr-tree# info
----------------------------------------------
reserved-lbl-block "treeSID"
Example: Creating a P2MP policy on root node
On the root PE, a P2MP policy must be created with a tree IExample: Creating a P2MP policy on root nodeD and its associated CP and path instance. In the following example, two policies are created, one for an IPMSI and one for an SPMSI:
A:root>config>router>p2mp-sr-tree# info
----------------------------------------------
p2mp-policy "IPMSI-VPRN1"
root-address 100.0.0.100
root-tree-id 9000
p2mp-candidate-path "Primary-path"
preference 1000
instances
instance 1 instance-value 1000
exit
active-instance 1
no shutdown
exit
no shutdown
exit
p2mp-policy "SPMSI-VPRN1"
root-address 100.0.0.100
root-tree-id 9001
p2mp-candidate-path "Primary-path"
preference 1000
instances
instance 1 instance-value 1000
exit
active-instance 1
no shutdown
exit
no shutdown
exit
On the root, the P2MP policies can be assigned to NG-MVPN, as shown in the following configuration example. BGP must be established between the root and leaf routers using IPv4/IPv6 MVPN Assured Forwarding (AF).
The tree ID configured in the P2MP policies is used to advertise in the BGP Provider Tunnel Attribute (PTA) field.
A:swsim103>config>service>vprn# info
----------------------------------------------
route-distinguisher 70:70
auto-bind-tunnel
resolution-filter
sr-isis
exit
resolution filter
exit
vrf-target target:70:70
interface "to14" create
exit
…
pim
rp
static
exit
bsr-candidate
shutdown
exit
rp-candidate
shutdown
exit
exit
no shutdown
exit
mvpn
auto-discovery default
c-mcast-signaling bgp
provider-tunnel
inclusive
p2mp-sr
static-policy " IPMSI-VPRN1"
no shutdown
exit
exit
selective
p2mp-sr
static-policy " SPMSI-VPRN1"
no shutdown
exit
data-threshold 231.0.0.0/24 10
exit
exit
vrf-target unicast
exit
exit
no shutdown
The corresponding replication segment and forwarding instructions must be created on the root, transit, and leaf nodes for the P2MP policies. An example of the replication segment on the root follows:
A:root>configure>router>p2mp-sr-tree# info
----------------------------------------------
replication-segment "IPMSI-VPRN1-Root"
root-address 100.0.0.100
root-tree-id 9000
sid-action push
instance-id 1000
next-hop-id "1"
next-hop-address 100.101.1.2
replication-sid 30000
no shutdown
exit
no shutdown
exit
replication-segment "SPMSI-VPRN1-Root"
root-address 100.0.0.100
root-tree-id 9001
sid-action push
instance-id 1000
next-hop-id "1"
next-hop-address 100.101.1.2
replication-sid 30001
no shutdown
exit
no shutdown
exit
An example of the replication segment for IPMSI on the P router follows. The SPMSI replication router on the P router is configured in the same way, but with a tree ID of 9001 and an incoming SID of 30001.
A:SwSim101>configure>router>p2mp-sr-tree# info
----------------------------------------------
reserved-lbl-block "treeSID"
replication-segment "rs-IPMSI-VPRN1-100.0.0.100"
root-address 100.0.0.100
root-tree-id 9000
sid-action swap
incoming-sid 30000
instance-id 1000
next-hop-id "1"
next-hop-address 101.102.1.2 //to leaf-1
replication-sid 30000
no shutdown
exit
next-hop-id "2"
next-hop-address 101.103.1.2//to leaf-2
replication-sid 30000
no shutdown
exit
no shutdown
exit
The following example shows the replication segment on the Leaf-1 router:
A:swsim103>configure>router>p2mp-sr-tree# info
----------------------------------------------
reserved-lbl-block "treeSID"
replication-segment "rs-IPMSI-VPRN1-100.0.0.100"
root-address 100.0.0.100
root-tree-id 9000
sid-action pop
incoming-sid 30000
instance-id 1000
no shutdown
exit
The following example shows the replication segment on the Leaf-2 router:
A:swsim103>configure>router>p2mp-sr-tree# info
----------------------------------------------
reserved-lbl-block "treeSID"
replication-segment "rs-IPMSI-VPRN1-100.0.0.100"
root-address 100.0.0.100
root-tree-id 9000
sid-action pop
incoming-sid 30000
instance-id 1000
no shutdown
exit