The following example shows how to configure MVPN MLDP over GRE:
Router> enable
Router# configure terminal
Router(config)# mpls MLDP
Router(config)# vrf definition blue
Router(config-vrf)# rd 200:2
Router(config-vrf)# vpn id 200:2
Router(config-vrf)# address-family ipv4
Router(config-vrf-af)# mdt default mpls MLDP 1.1.1.1
Router(config-vrf-af)# mdt default mpls MLDP 1.1.1.2
Router(config-vrf-af)# mdt data mpls MLDP 20
Router(config-vrf-af)# mdt data threshold 1
Router(config-vrf-af)# route-target export 200:2
Router(config-vrf-af)# route-target import 200:2
Router(config-vrf-af)# exit
Router(config-vrf)# address-family ipv6
Router(config-vrf-af)# mdt default mpls MLDP 1.1.1.1
Router(config-vrf-af)# mdt default mpls MLDP 1.1.1.2
Router(config-vrf-af)# mdt data mpls MLDP 20
Router(config-vrf-af)# mdt data threshold 1
Router(config-vrf-af)# route-target export 200:2
Router(config-vrf-af)# route-target import 200:2
Router(config-vrf-af)# exit
Router(config-if)# exit
Router(config)# interface gi0/0/0
Router(config-if)# vrf forwarding blue
Router(config-if)# ip address 30.2.0.1 255.255.255.0
Router(config-if)# ip pim sparse-mode
Router(config-if)# ipv6 address 32002:30:2::1/64
Router(config-if)# ospfv3100 ipv6 area 0
Router(config)# end
Router(config)# ip multicast-routing vrf blue distributed
Router(config)# ipv6 multicast-routing vrf blue
Router(config-if)# exit
Router(config)# end
The following example shows how to configure MVPNv4 MLDP over GRE on router PE1:
Router# enable
Router# configure terminal
Router(config)# vrf definition VRF_blue
Router(config-vrf)# rd 1:1
Router(config-vrf)# vpn id 1:1
Router(config-vrf)# address-family ipv4
Router(config-vrf-af)# mdt default mpls mldp 1.1.1.1
Router(config-vrf-af)# mdt data mpls mldp 100
Router(config-vrf-af)# mdt data threshold 4000000
Router(config-vrf-af)# route-target export 1:1
Router(config-vrf-af)# route-target import 1:1
Router(config-vrf-af)# exit
Router(config-vrf)# exit
Router(config)# ip multicast-routing vrf blue distributed
Router(config)# interface Loopback 0
Router(config-if)# ip address 1.1.1.1 255.255.255.0
Router(config-if)# exit
Router(config)# interface Loopback 1
Router(config-if)# vrf forwarding blue
Router(config-if)# ip address 192.0.100.1 255.255.255.0
Router(config-if)# ip pim sparse-mode
Router(config-if)# exit
Router(config)# interface GigabitEthernet 0/0/0
Router(config-if)# ip address 10.0.0.21 255.255.255.0
Router(config-if)# exit
Router(config)# interface Tunnel 100
Router(config-if)# ip address 10.0.0.1 255.255.255.0
Router(config-if)# mpls ip
Router(config-if)# tunnel source 10.0.0.21
Router(config-if)# tunnel destination 10.0.0.22
Router(config-if)# exit
Router(config-if)# end
The following example shows how to configure MVPNv4 MLDP over GRE on router PE2:
Router# enable
Router# configure terminal
Router(config)# vrf definition VRF_blue
Router(config-vrf)# rd 1:1
Router(config-vrf)# vpn id 1:1
Router(config-vrf)# address-family ipv4
Router(config-vrf-af)# mdt default mpls mldp 1.1.1.1
Router(config-vrf-af)# mdt data mpls mldp 100
Router(config-vrf-af)# mdt data threshold 1000
Router(config-vrf-af)# route-target export 1:1
Router(config-vrf-af)# route-target import 1:1
Router(config-vrf-af)# exit
Router(config-vrf)# exit
Router(config)# ip multicast-routing vrf blue distributed
Router(config)# interface Loopback 0
Router(config-if)# ip address 2.2.2.2 255.255.255.0
Router(config-if)# exit
Router(config)# interface Loopback 1
Router(config-if)# vrf forwarding blue
Router(config-if)# ip address 192.0.100.20 255.255.255.0
Router(config-if)# ip pim sparse-mode
Router(config-if)# exit
Router(config)# interface GigabitEthernet 0/0/0
Router(config-if)# ip address 10.0.0.22 255.255.255.0
Router(config-if)# exit
Router(config)# interface Tunnel 100
Router(config-if)# ip address 10.0.0.5 255.255.255.0
Router(config-if)# mpls ip
Router(config-if)# tunnel source 10.0.0.22
Router(config-if)# tunnel destination 10.0.0.21
Router(config-if)# exit
Router(config-if)# end
-
To display the IPv6 neighbor information, use the show ipv6 pim vrf vrf-name neighbor command:
Router# show ipv6 pim vrf vrf blue neighbor
PIM Neighbor Table
Mode: B - Bidir Capable, G - GenID Capable
Neighbor Address Interface Uptime Expires Mode DR pri
::FFFF:1.1.1.1 Lspvif 3w0d 00:01:17 B G 1
Here, 1.1.1.1 is the loopback IP address of another PE on the other end of GRE tunnel, and ::FFFF:x.x.x.x is IPv4-mapped IPv6 IP address.
-
To display the IPv4 neighbor information, use the show ip pim vrf vrf-name neighbor command:
Router# show ip pim vrf blue neighbor
PIM Neighbor Table
Mode: B - Bidir Capable, DR - Designated Router, N - Default DR Priority,
P - Proxy Capable, S - State Refresh Capable, G - GenID Capable
Neighbor Interface Uptime/Expires Ver DR
Address Prio/Mode
30.2.0.3 Gi0/0/1.3900 2w0d/00:01:37 v2 0 / G
1.1.1.1 Lspvif 7w0d/00:01:18 v2 1 / B S P G
-
To display the IPv6 multicast routing table, use the show ipv mroute vrf vrf-name command:
Router# show ipv mroute vrf vrf blue
Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group,
C - Connected, L - Local, I - Received Source Specific Host Report,
P - Pruned, R - RP-bit set, F - Register flag, T - SPT-bit set,
J - Join SPT, Y - Joined MDT-data group,
y - Sending to MDT-data group
g - BGP signal originated, G - BGP Signal received,
N - BGP Shared-Tree Prune received, n - BGP C-Mroute suppressed,
q - BGP Src-Active originated, Q - BGP Src-Active received
E - Extranet
Timers: Uptime/Expires
Interface state: Interface, State
(2002:30::100, FF33:0:3::4000:1), 00:01:06/00:02:53, flags: sT
Incoming interface: Lspvif1
RPF nbr: ::FFFF:1.1.1.2
Immediate Outgoing interface list:
GigabitEthernet0/0/1.3900, Forward, 00:01:06/00:02:53
-
To display the IPv4 multicast routing table, use the show ip mroute vrf-name command:
Router# show ip mroute vrf blue
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route,
x - VxLAN group
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(30.0.0.100, 232.0.0.1), 1w0d/00:01:47, flags: sT
Incoming interface: Null, RPF nbr 1.1.1.1
Outgoing interface list:
Gi0/0/1.3900, Forward/Sparse, 1w0d/00:01:47
-
To display the multicast routing counter for IPv6, use the show ipv6 mroute vrf vrf-name counter command:
Router# show ipv6 mroute vrf vrf blue counter
Forwarding Counts: Pkt Count/Pkts per second/Avg Pkt Size/Kilobits per second
Other counts: Total/RPF failed/Other drops(OIF-null, rate-limit etc)
VRF vrf blue
5057 routes, 11 (*,G)s, 46 (*,G/m)s
Group: FF00::/8
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
Group: FF00::/15
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
Group: FF02::/16
RP-tree,
SW Forwarding: 0/0/0/0, Other: 3/3/0
Group: FF10::/15
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
Group: FF12::/16
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
Group: FF20::/15
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
Group: FF22::/16
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
Group: FF30::/15
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
Group: FF32::/16
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
Group: FF33::/32
RP-tree,
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA ------- from the first entry to this, all of these are default entries in IPv6 Mroute table
Group: FF33:0:3::4000:1 ------- from this entry, all entries below are user entries learnt via PIM6 or MLD protocol
Source: 2002:30::100,
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
-
To display the multicast routing counter for IPv4, use the show ip mroute vrf vrf-name counter command:
Router# show ip mroute vrf blue counter
Use "show ip mfib count" to get better response time for a large number of mroutes.
IP Multicast Statistics
5001 routes using 3706920 bytes of memory
101 groups, 49.50 average sources per group
Forwarding Counts: Pkt Count/Pkts per second/Avg Pkt Size/Kilobits per second
Other counts: Total/RPF failed/Other drops(OIF-null, rate-limit etc)
Group: 232.0.0.1, Source count: 50, Packets forwarded: 0, Packets received: 0
Source: 30.0.0.149/32, Forwarding: 0/0/0/0, Other: 0/0/0
-
To display the MPLS information, use the show mpls forwarding-table labels <local label> detail command:
Router# show mpls forwarding-table labels 10333 detail
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
10333 No Label [mdt 200:1 0][V] 0 aggregate/vrf-name
MAC/Encaps=0/0, MRU=0, Label Stack{}, via Ls1
VPN route: vrf blue
No output feature configured
Broadcast
Router# show mpls forwarding-table labels
1715
detail
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
1715 No Label [mdt 200:1 0][V] 0 aggregate/vpn200
MAC/Encaps=0/0, MRU=0, Label Stack{}, via Ls1
VPN route: vpn200
No output feature configured
Broadcast
-
To display the MFIB table, use the show mfib <vrf_name> verbose command:
Router# show ip mfib vrf blue verbose
Entry Flags: C - Directly Connected, S - Signal, IA - Inherit A flag,
ET - Data Rate Exceeds Threshold, K - Keepalive
DDE - Data Driven Event, HW - Hardware Installed
ME - MoFRR ECMP entry, MNE - MoFRR Non-ECMP entry, MP - MFIB
MoFRR Primary, RP - MRIB MoFRR Primary, P - MoFRR Primary
MS - MoFRR Entry in Sync, MC - MoFRR entry in MoFRR Client.
I/O Item Flags: IC - Internal Copy, NP - Not platform switched,
NS - Negate Signalling, SP - Signal Present,
A - Accept, F - Forward, RA - MRIB Accept, RF - MRIB Forward,
MA - MFIB Accept, A2 - Accept backup,
RA2 - MRIB Accept backup, MA2 - MFIB Accept backup
Forwarding Counts: Pkt Count/Pkts per second/Avg Pkt Size/Kbits per second
Other counts: Total/RPF failed/Other drops
I/O Item Counts: FS Pkt Count/PS Pkt Count
VRF vpn200
(*,224.0.0.0/4) Flags: K HW
0x9A2 OIF-IC count: 0, OIF-A count: 0
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
(*,224.0.1.40) Flags: C K HW
0x9A4 OIF-IC count: 1, OIF-A count: 0
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
Loopback200 Flags: RF F IC NS
CEF: Special OCE (discard)
Pkts: 0/0
(*,232.0.0.0/8) Flags: K HW
0x9A3 OIF-IC count: 0, OIF-A count: 0
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
(30.0.0.100,232.0.0.1) Flags: K HW
0x5C98 OIF-IC count: 0, OIF-A count: 0
SW Forwarding: 0/0/0/0, Other: 0/0/0
HW Forwarding: NA/NA/NA/NA, Other: NA/NA/NA
GigabitEthernet0/0/1.3900 Flags: RF F NS
CEF: Adjacency with MAC: 01005E000001503DE5974F0181000F3C0800
Pkts: 0/0