Académique Documents
Professionnel Documents
Culture Documents
Carrier-Class Router
ZTE CORPORATION
NO. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: +86-755-26771900
Fax: +86-755-26770801
URL: http://ensupport.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION
Copyright 2011 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or
distribution of this document or any portion of this document, in any form by any means, without the prior written
consent of ZTE CORPORATION is prohibited.
Revision History
Revision No.
Revision Date
Revision Reason
R2.1
2011-05-10
PIM-SM Configuration
MSDP Configuration
R2.0
2011-01-15
R1.0
2010-09-30
First release
Contents
About This Manual ......................................................................................... I
Chapter 1 Safety Instruction...................................................................... 1-1
1.1 Safety Instruction ............................................................................................... 1-1
1.2 Safety Signs ...................................................................................................... 1-1
Figures............................................................................................................. I
Glossary ........................................................................................................ III
IV
Intended Audience
This manual is intended for the following engineers:
l
l
l
Summary
Configuration
Chapter
Summary
Configuration
Configuration
Configuration
Conventions
ZTE documents employ the following typographical conventions.
Typeface
Meaning
Italics
Variables in commands. It may also refers to other related manuals and documents.
Bold
Menus, menu options, function names, input fields, option button names, check boxes,
drop-down lists, dialog box names, window names, parameters and commands.
CAPS
Constant
Text that you type, program codes, filenames, directory names, function names.
width
[]
Optional parameters.
{}
Mandatory parameters.
Danger: Indicates an imminently hazardous situation, which if not avoided, will result in
death or serious injury.
Warning: Indicates a hazard that, if not avoided, could result in serious injuries,
equipment damages or interruptions of major services.
Caution: Indicates a potential hazard that, if not avoided, could result in moderate
injuries, equipment damages or partial service interruption.
Note: Provides additional information about a certain topic.
II
Typeface
Meaning
Checkpoint: Indicates that a particular step needs to be checked before proceeding
further.
Tip: Indicates a suggestion or hint to make things easier or more productive for the
reader.
III
IV
Chapter 1
Safety Instruction
Table of Contents
Safety Instruction .......................................................................................................1-1
Safety Signs ...............................................................................................................1-1
Warning!
Indicates the matters needing close attention. If this is ignored, serious injury accidents
may happen or devices may be damaged.
Caution!
Indicates the matters needing attention during configuration.
1-1
SJ-20110504161056-014|2010-05-10 (R2.1)
Note:
Indicates the description, hint, tip, and so on for configuration operations.
1-2
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 2
IP Multicast Principle
Table of Contents
IP Multicasting Overview ............................................................................................2-1
Configuring Public IP Multicast ...................................................................................2-3
There are two types of multicast trees, source tree and shared tree.
1. Source tree
The source tree is also called the Shortest Path Tree (SPT). It constructs a spanning
tree to all receivers for each source. This spanning tree takes the source as the
root node. It reaches the subnets to which the receivers belong. A multicast group
may contain several multicast sources. Each source or each pair of (S, G) has a
corresponding multicast tree.
The method to construct a source tree is Reverse Path Forwarding (RPF). Each
router can find the shortest path to the source and the corresponding egress interface
according to unicast route. When a router receives a multicast packet, it checks
whether the ingress interface that the packet reaches is the egress interface to the
source with the shortest unicast path. If it is, the router forwards the multicast packet
according to the multicast routes. Otherwise, the router discards the multicast packet.
The ingress interface from which the router receives the multicast packets is called a
parent link. The egress interface on which the router sends the multicast packets is
called a child link.
2. Shared tree
The shared tree constructs a multicast route tree for each multicast group. A multicast
group is shared by all group members. That is, the tree is shared by the group (*,
G) instead of every pair of (S, G). Each member that wants to receive the multicast
packets from the group should be added to the shared tree explicitly.
A shared tree uses one or a group of routers as the center of the tree. Multicast
packets from all sources in this group to the receivers are sent to the center. Then
these packets are forwarded in multicasting mode along the tree from the center.
Command
Function
ZXR10(config)#ip multicast-routing
ZXR10(config)#no ip multicast-routing
ZXR10(config-mcast)#router pimsm
ZXR10(config-pimsm)#exit
of an instance.
table.
10
2-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
11
ZXR10#show ip mdt
12
13
Description
< vrf-name>
VRF name
Description
< intf_name>
Interface name
Description
< group-address>
2-4
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 3
IGMP Configuration
Table of Contents
IGMP Overview ..........................................................................................................3-1
IGMP Principle ...........................................................................................................3-1
Configuring IGMP.......................................................................................................3-2
IGMP Maintenance.....................................................................................................3-6
IGMP Configuration Examples ...................................................................................3-7
IGMP Fault Handling ................................................................................................3-17
hosts to know which specific group members exist in the connected subnets. The hosts
returns group member report packets, reporting the multicast group which they belong to.
When a host joins a new group, it will send a Join packet immediately instead of waiting
for a query in case that the host is the first member of that group and it fails to receive any
multicast packet.
When a host starts to receive packets as a member of a group, the multicast router will
query the group periodically to check whether there is any other member of the group on
the network. If there is any, the multicast router continues to forward data.
When the host leaves the group, the multicast router will receive a leaving packet and then
it will immediately query whether there are still active group members in the group. If there
is any, the multicast router will continue to forward data. If there is no member, it will not
forward data.
At present, there are three versions of IGMP.
l
l
l
IGMPv1 (Request For Comments (RFC) 1112) defines basic query and report
procedure of a group member.
IGMPv2 (RFC 2236) adds the mechanisms group member leaving, on the basis of
IGMPv1.
IGMPv3 (RFC 3376) adds the ability of a member to select the multicast source. This
is to support Source Specific Multicast (SSM).
Command
Function
ZXR10(config-mcast)#router igmp
source-address>
3-2
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
ZXR10(config-igmp-if)#no immediate-leave
immediate leave.
Description
< interface-name>
Interface name
Description
< access-list-number>
Access list name for the SSM group, with 1-31 characters
Description
all
The IGMP function of ZXR10 M6000 is on the base of PIM interface. IGMP function is
enabled automatically on the interfaces on which PIM is enabled.
3-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
access-list-number> ]
3-4
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
3-5
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
Function
ZXR10#show ip igmp groups [ vrf < vrf-name> ] [ summary vrf < vrf-name>
information on an interface.
information on an interface.
ZXR10#clear ip igmp groups [ < interface-name> ]
Parameter descriptions:
Parameter
Description
< interface-name>
Interface name
3-6
SJ-20110504161056-014|2010-05-10 (R2.1)
An example of the ZXR10#show ip igmp groups [ vrf < vrf-name> ] [ < interface-name> ] [ <
group-addr> ] [ deatil] command output is shown below.
ZXR10#show ip igmp groups fei-0/1/0/3
IGMP Connected Group Membership
Group addr
Interface
Present
Expire
Last Reporter
233.1.1.4
fei-0/1/0/3
01:07:49
never
30.1.1.43
233.1.1.147
fei-0/1/0/3
01:07:49
00:03:05
30.1.1.42
233.1.4.21
fei-0/1/0/3
01:07:49
00:03:05
30.1.1.42
Description
Group addr
Group address
Interface
Interface
Present
Expire
The remaining time of the time-out timer. Never means there is a static
group and the timer is not enabled.
Last Reporter
The address of the host that reports the group member relation last time
3-7
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1. Configure the interface IP addresses in interface configuration mode. The address of
R1 is smaller than that of R2.
2. Configure ip multicast-routing to enable IP multicast.
3. Enter PIM-SM route configuration mode and then enter the specific interface.
4. Enable PIM-SM in interface configuration mode.
Configuration Commands
The configuration of R1:
R1(config)#interface fei-0/1/0/1
R1(config-if)#ip address 10.0.0.1 255.255.255.0
R1(config-if)#exit
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)#interface fei-0/1/0/1
R1(config-pimsm-if)#pimsm
Configuration Verification
Check the configuration result on R1, as shown below.
R1#show ip igmp interface fei-0/1/0/1
fei-0/1/0/1
Internet address is 10.0.0.1, subnet mask is 255.255.255.0
IGMP is enabled on interface
Current IGMP version is 2
/*IGMP version information*/
IGMP query interval is 125 seconds
/*Query interval*/
IGMP last member query interval is 1 seconds
/*The last member query interval*/
IGMP query max response time is 10 seconds
/*Maximum response time*/
IGMP querier timeout period is 255 seconds
/*Querier time-out*/
IGMP robustness variable is 2
3-8
SJ-20110504161056-014|2010-05-10 (R2.1)
3-9
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1.
2.
3.
4.
5.
Configuration Commands
The configuration of R1:
R1(config)#interface fei-0/1/0/1
R1(config-if)#ip address 10.0.0.1 255.255.255.0
R1(config-if)#exit
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)# interface fei-0/1/0/1
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
R1(config-pimsm)#exit
R1(config-mcast)#router igmp
R1(config-igmp)#interface fei-0/1/0/1
R1(config-igmp-if)#static-group 225.1.1.1 source 20.1.1.1
Configuration Verification
Check IGMP interface configuration information on R1, as shown below.
R1#show ip igmp interface fei-0/1/0/1
fei-0/1/0/1
Internet address is 10.0.0.1, subnet mask is 255.255.255.0
IGMP is enabled on interface
Current IGMP version is 2
IGMP query interval is 125 seconds
IGMP last member query interval is 1 seconds
IGMP query max response time is 10 seconds
IGMP querier timeout period is 255 seconds
3-10
SJ-20110504161056-014|2010-05-10 (R2.1)
Check the detailed information of the groups on the interface of R1, as shown below.
R1(config-igmp-if)#show ip igmp groups fei-0/1/0/1 detail
Flags: S - Static Group, SSM - SSM Group, M - MDT Group
Interface:
Group:
fei-0/1/0/1
225.1.1.1
Flags:
Uptime:
00:05:12
Group mode:
100.17.21.2
fei-0/1/0/1
Group:
225.1.1.2
Flags:
Uptime:
00:01:16
Group mode:
INCLUDE
Last reporter:
10.0.0.1
3-11
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1. Enter multicast configuration mode and enable interface IGMP function.
2. Configure fast leaving from all groups on the interface.
Configuration Commands
The configuration of R1:
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)#interface fei-0/1/0/1
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
R1(config-pimsm)#exit
R1(config-mcast)#router igmp
R1(config-igmp)#interface fei-0/1/0/1
R1(config-igmp-if)#immediate-leave all
R1(config-igmp-if)#version 2
R1(config-igmp-if)#exit
R1(config-igmp)#exit
R1(config-mcast)#exit
R1(config)#
Configuration Verification
Configure group joining and leaving on fei-0/1/0/1. Then check the configuration result, as
shown below.
ZXR10#show running-config multicast
! <MULTICAST>
ip multicast-routing
router pimsm
3-12
SJ-20110504161056-014|2010-05-10 (R2.1)
all
version 2
$
$
! </MULTICAST>
Interface
Present
Expire
Last Reporter
225.0.0.0
fei-0/1/0/1
00:00:06
00:04:14
33.33.0.12
Interface
Present
Expire
Last Reporter
3-13
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1. Configure a group filter rule
2. Enter multicast configuration mode and enable interface IGMP function.
3. Configure fast leaving from a specified group on the interface.
Configuration Commands
The configuration of R1:
R1(config)#ipv4-access-list groupfilter
R1(config-ipv4-acl)#rule 1 permit 225.0.0.0
R1(config-ipv4-acl)#rule 2 deny any
R1(config-ipv4-acl)#exit
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)#interface fei-0/1/0/1
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
R1(config-pimsm)#exit
R1(config-mcast)#router igmp
R1(config-igmp)#interface fei-0/1/0/1
R1(config-igmp-if)#immediate-leave groupfilter
R1(config-igmp-if)#version 2
R1(config-igmp-if)#exit
R1(config-igmp)#exit
3-14
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
Configure group joining and leaving on fei-0/1/0/1. Then check the configuration result, as
shown below.
ZXR10(config)#show running-config ipv4-acl
! <ACL>
ipv4-access-list groupfilter
rule 1 permit 225.0.0.0 0.0.0.0
rule 2 deny any
$
! </ACL>
3-15
SJ-20110504161056-014|2010-05-10 (R2.1)
Interface
Present
Expire
Last Reporter
225.0.0.0
fei-0/1/0/1
00:00:11
00:04:09
33.33.0.12
225.0.0.1
fei-0/1/0/1
00:00:06
00:04:14
33.33.0.12
ZXR10#
ZXR10 0/20/CPU0 2010-7-27 09:58:32
igmp : Receive IGMP packet from 33.33.0.12 on interface
fei-0/1/0/1
ZXR10 0/20/CPU0 2010-7-27 09:58:32
igmp : Received packet is IGMP v2 leave message (225.0.0.0)
ZXR10 0/20/CPU0 2010-7-27 09:58:32
igmp : Membership (225.0.0.0) immediately leaves on
fei-0/1/0/1
ZXR10 0/20/CPU0 2010-7-27 09:58:32
igmp : Delete group 225.0.0.0 on fei-0/1/0/1
ZXR10 0/20/CPU0 2010-7-27 09:58:33
igmp : Receive IGMP packet from 33.33.0.12 on interface
fei-0/1/0/1
ZXR10 0/20/CPU0 2010-7-27 09:58:33
igmp : Received packet is IGMP v2 leave message (225.0.0.1)
ZXR10 0/20/CPU0 2010-7-27 09:58:33
igmp : Send IGMPv2 specific query(225.0.0.1) on fei-0/1/0/1
ZXR10 0/20/CPU0 2010-7-27 09:58:34
igmp : Send IGMPv2 specific query(225.0.0.1) on fei-0/1/0/1
ZXR10 0/20/CPU0 2010-7-27 09:58:35
igmp : Delete group 225.0.0.1 on fei-0/1/0/1
Interface
Present
Expire
Last Reporter
ZXR10#
3-16
SJ-20110504161056-014|2010-05-10 (R2.1)
3-17
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 4
PIM-DM Configuration
Table of Contents
PIM-DM Overview ......................................................................................................4-1
PIM-DM Principle .......................................................................................................4-1
Configuring PIM-DM...................................................................................................4-1
PIM-DM Maintenance.................................................................................................4-2
PIM-DM Configuration Example .................................................................................4-4
PIM-DM Fault Handling ..............................................................................................4-5
4-1
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
ZXR10(config-mcast)#router pimdm
ZXR10(config-pimdm-if)#pimdm
interface.
Function
routing table.
Parameter descriptions:
Parameter
Description
summary
Summary information
Interface
State Nbr
1.1.1.2
fei-0/1/0/1
Up
Coun
0
Query
DR
Intvl
30
DR
Priority
1.1.1.2
Description
Address
Interface address
Interface
Interface name
4-2
SJ-20110504161056-014|2010-05-10 (R2.1)
Command Output
Description
NbrCount
Number of neighbors
State
QueryIntvl
DR Priority
Description
Connected
Pruned
Forward
Uptime/Expires
flag
Incoming interface
Incoming interface
RPF nbr
Assert flag
Interface
DR Priority
Uptime
Expires
Ver
Description
Neighbor Address
Interface
Interface name
DR Priority
Uptime
Expires
4-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration thought
1.
2.
3.
4.
Configuration Commands
The configuration of R1:
R1(config)#interface gei-0/2/0/3
R1(config-if)#ip address 199.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface gei-0/2/0/4
R1(config-if)#ip address 33.1.1.1
255.255.255.0
R1(config-if)#exit
R1(config)#ip multicast-routing
R1(config-mcast)#router pimdm
R1(config-pimdm)#interface gei-0/2/0/3
R1(config-pimdm-if)#pimdm
R1(config-pimdm)#interface gei-0/2/0/4
R1(config-pimdm-if)#pimdm
4-4
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
Use the show ip pimdm neighbor command on R1 to check the neighbor state, as shown
below.
R1(config)#show ip pimdm neighbor
Neighbor
Interface
DR
Address
199.1.1.2
Uptime
Expires
Ver
00:09:14
00:01:36
V2
Priority
gei-0/2/0/3
Use the show ip pimdm interface command on R1 to check interface state, as shown below.
R1(config)#show ip pimdm interface
Address
Interface
State
Nbr
Query
Count
Intvl
DR
DR
Priority
199.1.1.1
gei-0/2/0/3
Up
30
199.1.1.2
33.1.1.1
gei-0/2/0/4
Up
30
33.1.1.1
Use the show ip mroute command on R1 to check the state of the IP multicast routing table,
as shown below.
R1#show ip mroute
IP Multicast Routing Table
(33.1.1.2, 225.10.0.1), RP: 0.0.0.0, TYPE: DYNAMIC, FLAGS:
Incoming interface: gei-0/2/0/4, flags:
Outgoing interface list:
gei-0/2/0/3, flags:
4-5
SJ-20110504161056-014|2010-05-10 (R2.1)
4-6
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 5
PIM-SM Configuration
Table of Contents
PIM-SM Overview ......................................................................................................5-1
PIM-SM Principle .......................................................................................................5-1
Configuring PIM-SM ...................................................................................................5-3
PIM-SM Maintenance .................................................................................................5-5
PIM-SM Configuration Examples..............................................................................5-11
PIM-SM Fault Handling ............................................................................................5-20
PIM-SM does not depend on a specific unicast routing protocol. PIM-SM assumes that all
routers on a shared segment do not need to send multicast packets. The routers only can
receive and send multicast packets after they request to join a multicast group on their own
initiative. PIM-SM advertises the multicast information to all routers supporting PIM-SM
through a Rendezvous Point (RP). In PIM-SM, a router joins or leaves the multicast group
explicitly. This reduces the number of packets and the bandwidth used by the control
packets.
The
5-1
SJ-20110504161056-014|2010-05-10 (R2.1)
In PIM-SMv2, some PIM-SM routers are manually set to work as candidate Bootstrap
Routers (BSRs). The candidate BSR with the highest priority will be elected as the formal
BSR.
The BSR is responsible for collecting the candidate RP information on the multicast routers
in the group to find out the candidate RPs in the multicast domain. It notifies the candidate
RPs to all the PIM routers in the PIM domain in a unified way. The PIM routers elect a
formal RP from the candidate RP set according to rule the same as that of RP election.
Candidate RPs are configured manually.
The PIM-SM routers discover each other and maintain the neighbor relationship by
exchanging Hello messages. On the multi-access network, the Hello messages also
contain the priority information of routers. The Designate Router (DR) is elected according
to this parameter.
After receiving a multicast packet from the direct-connected source, the multicast source
or the first-hop router (the DR connecting to the source directly) encapsulates the packet in
a Register message, and then sends it to the RP through a unicast router. When receiving
the Register message, the RP de-encapsulates the messages to take out the packet, and
then sends the packet to the receivers of the group along the shared multicast tree.
Each host acting as a receiver joins the multicast group through the IGMP member report
message. The last-hop router (or the DP on the multi-access network) sends the received
Join message to the RP level by level. After receiving the Join message, the intermediate
router checks whether it has already had the routes of the group. If it has, the intermediate
router adds the downstream request router to the shared multicast tree as a branch. If it
does not, it creates a route and continues to send the Join message to the RP.
When the RP or the multicast router connects to a receiver directly, it can switch to the
SPT from the shared tree. When the RP receives a Register message sent from a new
multicast source, the RP will return a Join message to the DR directly connecting to the
multicast source. Thus, the SPT from the source to the RP is constructed.
After a DR or a router directly connecting to multicast members receives the first multicast
packet from the multicast group, or the received packets reaches a threshold, it can switch
to the SPT from the shared tree. Once the handover occurs, the router will send a Prune
message to the upstream neighbor and request to leave the shared tree.
In PIM-SM, there are the following types of messages.
l
Hello message: The router interfaces on which PIM-SM runs send Hello messages
periodically to the neighbor interfaces in the same segment to establish neighbor
relationship. Hello messages are also used for routers running IGMPv1 to elect the
DR.
Register message: When receiving a multicast packet sent by a multicast source on
the local network, the DR will encapsulate the packet in a Register message and send
it to the RP through unicast. The source address in the IP header of the Register
message is the address of the DR, and the destination address is the address of the
RP.
5-2
SJ-20110504161056-014|2010-05-10 (R2.1)
l
l
Command
Function
ZXR10(config-mcast)#router pimsm
ZXR10(config-pimsm)#no static-rp
ZXR10(config-pimsm)#static-rp override
static RP.
This deletes the overriding of a static
RP.
ZXR10(config-pimsm)#interface < interface-name>
ZXR10(config-pimsm)#no bsr-candidate
5-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
prefix-list-name > ]
ZXR10(config-pimsm)#accept-register < access-list-name >
ZXR10(config-pimsm)#no accept-register
Register messages.
ZXR10(config-pimsm)#accept-rp < access-list-name>
ZXR10(config-pimsm)#no accept-rp
RP addresses.
ZXR10(config-pimsm)#dr-switchback-delay < seconds>
ZXR10(config-pimsm)#no dr-switchback-delay
ZXR10(config-pimsm-if)#pimsm
interface.
This disables PIM-SM on an
ZXR10(config-pimsm-if)#no pimsm
interface.
ZXR10(config-pimsm-if)#dr-priority < priority>
ZXR10(config-pimsm-if)#no dr-priority
ZXR10(config-pimsm-if)#bsr-border
ZXR10(config-pimsm-if)#no bsr-border
PIM domain.
ZXR10(config-pimsm-if)#hello-interval < seconds>
ZXR10(config-pimsm-if)#no hello-interval
5-4
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
ZXR10(config-pimsm-if)#no neighbor-filter
ZXR10(config-pimsm-if)#assert-disable
on an interface.
This recovers the asserting function
ZXR10(config-pimsm-if)#no assert-disable
on an interface.
ZXR10(config-pimsm-if)#bfd-enable
ZXR10(config-pimsm-if)#no bfd-enable
Description
< ip-address>
< prifix-list-name>
< hash-mask-length>
< access-list-name>
Description
< seconds>
Function
source-address> ]
This shows the summary information of
5-5
SJ-20110504161056-014|2010-05-10 (R2.1)
Command
Function
information.
ZXR10#show ip pimsm rpf < source-address>
Parameter descriptions:
Parameter
Description
< group-address>
< source-address>
< interface-name>
Interface name
LocalIn
ImoXG
LocalIn
ImoXG
5-6
SJ-20110504161056-014|2010-05-10 (R2.1)
LocalIn
ImoXG
Description
Connected
Pruned
RP-bit set
Register flag
SPT-bit set
Indicates that this route entity receives multicast packets from the SPT
Up Send
Join SPT
Uptime/Expires
RP
flag
Incoming interface
Incoming interface
RPF nbr
5-7
SJ-20110504161056-014|2010-05-10 (R2.1)
Description
BSR address
Uptime
BSR Priority
Expires
Priority
CRP
Group(s): 0.0.0.0/0(NOUSED)
Description
Group
RP address
BSR address
uptime
expire
5-8
SJ-20110504161056-014|2010-05-10 (R2.1)
Description
RP address
Interface
State Nbr
Hello
Count
Period
DR
DR
Priority
1.1.1.10
fei-0/1/0/1
Up
30
1.1.1.10
2.2.2.10
fei-0/1/0/2
Up
30
2.2.2.10
Description
Address
Interface address
Interface
Interface name
NbrCount
Number of neighbors
State
Interface state
Hello Period
DR Priority
DR
Interface
DR
Uptime
Expires
Ver
00:15:08
00:01:24
V2
Priority
1.1.1.1
fei-0/1/0/1
Description
Neighbor Address
Interface
Interface name
DR Priority
Uptime
Expires
Ver
Version
(00:02:59)
Nexthop:1.1.2.1
(00:03:27)
Type:. . . .U. .
Metric:
Preference:
Nexthop address:
Nexthop port:
Description
Next-hop Address
Type
Metric
Preference
Next-hop port
Description
RPF interface
RPF neighbor
RPF metric
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1.
2.
3.
4.
5.
6.
Configuration Commands
The configuration of R1:
R1(config)#interface gei-0/2/0/3
R1(config-if)#ip address 199.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if)#ip address 33.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)#interface gei-0/2/0/3
R1(config-pimsm-if)#pimsm
R1(config-pimsm)#interface gei-0/2/0/7
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#dr-priority 20
R1(config)#ip route 5.5.5.35 255.255.255.255 199.1.1.2
5-11
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
Use the show ip pimsm interface command on R1 to check the interface state, as shown
below.
R1(config)#show ip pimsm interface
Address
Interface
State
Nbr
Hello
Count
Period
DR
DR
Priority
33.1.1.1
gei-0/2/0/7
Up
30
20
33.1..1.1
199.1.1.1
gei-0/2/0/3
Up
30
199.1.1.2
Use the show ip pimsm neighbor command on R1 to check the neighbor state, as shown
below.
R1(config)#show ip pimsm neighbor
Neighbor Address
Interface
DR
Uptime
Expires
Ver
00:01:23
V2
Priority
199.1.1.2
gei-0/2/0/3
00:07:48
Use the show ip pimsm bsr command on R1 to check the BSR state, as shown below.
5-12
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1.
2.
3.
4.
5.
Configuration Commands
The configuration of R1:
R1(config)#interface gei-0/2/0/3
R1(config-if)#ip address 199.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if)#ip address 33.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#ip multicast-routing
5-13
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
Use the show ip pimsm interface command on R1 to check the interface state, as shown
below.
Interface
State
33.1.1.1
gei-0/2/0/7
Up
199.1.1.1
gei-0/2/0/3
Up
Nbr
Hello
DR
DR
Count
Period
Priority
30
20
33.1..1.1
30
199.1.1.2
Use the show ip pimsm neighbor command on R1 to check the neighbor state, as shown
below.
R1(config)#show ip pimsm neighbor
Neighbor Address
Interface
DR
Uptime
Expires
Ver
5-14
SJ-20110504161056-014|2010-05-10 (R2.1)
gei-0/2/0/3
00:07:48
00:01:23
V2
Use the show ip pimsm rp mapping command on R1 to check the RP state, as shown
below.
R1(config)#show ip pimsm rp mapping
Static RP is overriding in group-set!
Group(s): 224.0.0.0/4(SM)
RP: 5.5.5.35, Static, Priority:192
Group(s): 0.0.0.0/0(NOUSED)
Configuration Thought
1. Configure source filter on the first-hop router.
2. Configure source register filter on the RP.
5-15
SJ-20110504161056-014|2010-05-10 (R2.1)
Note:
The illegal source control policy consists of the source filter configured on the first-hop
router and the source register filter configured on the RP. The source filter configured on
the first-hop router can prevent illegal sources from sending multicast data to the network
as early as possible. The source register filter configured on the RP can prevent illegal
sources from registering on the RP. It is easy to configure and manage if the method that
configuring source register filter on the RP is used. However, the traffic sent by the illegal
sources is still transmitted between the first-hop router and the RP, and the users on the
first-hop router still can receive the illegal multicast data. In practical applications, the two
methods are used together, which can improve the management efficiency and network
security.
Configuration Commands
Configure IP addresses on the interfaces of R1 and R2 according to the following table to
ensure the IP connectivity on the network.
Router
Interface
IP Address
Mask
R1
gei-0/15/0/1
172.1.3.44
255.255.255.0
R1
gei-0/15/0/2
172.2.3.44
255.255.255.0
R1
gei-0/15/0/3
172.3.3.44
255.255.255.0
R1
gei-0/15/1/3
172.1.7.44
255.255.255.0
R1
loopback63
44.63.1.1
255.255.255.255
R2
gei-0/3/1/8
172.1.5.46
255.255.255.0
R2
gei-0/6/0/2
172.1.7.46
255.255.255.0
R2
loopback63
46.63.1.1
255.255.255.255
Configure a multicast protocol on R1 and R2 to establish a multicast tree from the source
to the user. Here take PIM-SM as an example.
The configuration of R1 (enable PIM-SM on the interfaces, and configure a BSR on
loopback63 interface):
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)#interface gei-0/15/0/1
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
R1(config-pimsm)#interface gei-0/15/0/2
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
5-16
SJ-20110504161056-014|2010-05-10 (R2.1)
R1(config-pimsm)#data-filter aclUnwantedSource
R2(config-pimsm)#accept-register aclWantedSource
Configuration Verification
Use the show ip mroute command on R1 and R2 to check the multicast routes. Because
control policies are configured on R1 and R2, only multicast data sent by the legal source
can be forwarded to the user. The multicast traffic received by the user does not include
the data sent by the illegal sources.
According to the above configurations, there is still a route of Source 3. However, because
illegal source register filter policy for Source 3 is configured on the RP, the multicast traffic
from Source cannot reach the user.
5-17
SJ-20110504161056-014|2010-05-10 (R2.1)
5-18
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1. Configure OSPF on RA, RB and RC. RA and RB can communicate through unicast
routes. RA and RC can communicate through unicast routes.
2. Configure PIMSM on RB and RC, and configure an anycast-RP.
Configuration Commands
The configuration of RB:
ZXR10(config)#interface gei-0/0/0/1
ZXR10(config-if)#ip address 11.1.1.2 255.255.255.0
ZXR10(config)#interface gei-0/0/0/2
ZXR10(config-if)#ip address 32.1.1.1 255.255.255.0
ZXR10(config)#router ospf 1
ZXR10(config-ospfv2)#network 11.1.1.0 0.0.0.255 area 0
ZXR10(config-ospfv2)#network 12.1.1.0 0.0.0.255 area 0
ZXR10(config)#interface loopback64
ZXR10(config-if)#ip address 64.1.1.1 255.255.255.255
ZXR10(config)#ip multicast-routing
ZXR10(config-mcast)#router pimsm
ZXR10(config-pimsm)#rp-candidate loopback64
ZXR10(config-pimsm)#bsr-candidate loopback64
ZXR10(config-pimsm)#anycast-rp-local loopback64
/*Configure an anycast-RP*/
ZXR10(config-pimsm)#anycast-rp-peer 64.1.1.1
5-19
SJ-20110504161056-014|2010-05-10 (R2.1)
For the configuration of the switch, please refer to the configuration of RB and RC. It is
necessary to enable PIM-SM.
Configuration Verification
The receiver joins the IP multicast group. An RP is chosen randomly between RB and
RC to forward the Register message. If the chosen link is down, traffic will be forwarded
through the other link.
5-20
SJ-20110504161056-014|2010-05-10 (R2.1)
5-21
SJ-20110504161056-014|2010-05-10 (R2.1)
5-22
SJ-20110504161056-014|2010-05-10 (R2.1)
1. Check whether the physical links are up. Change the cables and optical modules if
necessary. If the fault is not solved, change the line card or the interface board. If the
fault is still not solved, please consult the hardware development engineers.
2. Check whether the IP addresses are configured correctly, and whether the addresses
can be pinged successfully.
3. Check whether PIM-SM is enabled on corresponding interfaces, and whether PIM-SM
neighbor relationship can be established properly.
4. Check whether the BSR and the candidate RP are configured correctly. If static RP
is used, check whether it is configured on each router and whether static-override is
configured.
5. Use the show ip pimsm nexthop command to check whether the unicast routes are
configured correctly, including the unicast routes to the multicast source, RP, BSR,
and so on.
6. Check whether the first-hop and the last-hop routers are DRs. If they are not, modify
the DR priorities to make the DR as the first-hop and the last-hop routers.
7. Check whether filter is configured on interfaces and in multicast configuration. If it is
configured, modify the filter conditions or delete the filter configuration.
8. Use the debug ip pimsm command to analyze the fault.
If the fault cannot be solved according to the steps above, please ask for technical support.
5-23
SJ-20110504161056-014|2010-05-10 (R2.1)
5-24
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 6
PIM-SSM Configuration
Table of Contents
PIM-SSM Overview ....................................................................................................6-1
PIM-SSM Principle .....................................................................................................6-1
Configuring PIM-SSM.................................................................................................6-1
PIM-SSM Configuration Example ...............................................................................6-2
PIM-SSM Fault Handling ............................................................................................6-4
Command
Dunction
ZXR10(config-pimsm)#ssm enable
Parameter
Description
Configuration Thought
1. In interface configuration mode, configure interface addresses on gei-0/1/0/1 and
gei-0/1/0/2 of R1.
2. Enable IP multicast function with ip multicast-routing command.
3. Enter PIM-SM route configuration mode to configure ssm enable and ssm range default.
4. Enter the interfaces gei-0/1/0/1 and gei-0/1/0/2 to enable PIM-SM.
5. Enter IGMP route configuration mode and then enter the corresponding interfaces.
Configure IGMP v3 on the interfaces.
6. Send dynamic group Join messages to specific source on the receiving group.
7. Configure a static route on the router. The destination of the route is the source
address gateway, and the next hop is the address of the interface connecting to
gei-0/1/0/2 directly on the receiving group.
Configuration Commands
The configuration of R1:
R1(config)#interface gei-0/1/0/1
R1(config-if)#ip address 10.0.0.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface gei-0/1/0/2
R1(config-if)#ip address 30.0.0.1 255.255.255.0
6-2
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
Check the configuration on R1, as shown below.
R1#show running-config multicast
! <MULTICAST>
ip multicast-routing
router pimsm
ssm enable
ssm range default
interface gei-0/1/0/2
pimsm
$
interface gei-0/1/0/1
pimsm
$
$
router igmp
interface gei-0/1/0/1
version 3
$
$
! </MULTICAST>
6-3
SJ-20110504161056-014|2010-05-10 (R2.1)
6-4
SJ-20110504161056-014|2010-05-10 (R2.1)
6-5
SJ-20110504161056-014|2010-05-10 (R2.1)
6-6
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 7
7-1
SJ-20110504161056-014|2010-05-10 (R2.1)
To solve the problem described above, L3 multicast load sharing solution is introduced.
Function
ZXR10(config-mcast)#multipath
ZXR10(config-mcast)#no mulpath
Function
Parameter descriptions:
Parameter
Description
< destination-address>
vrf< vrf-name>
SJ-20110504161056-014|2010-05-10 (R2.1)
Flag : /U/UR/UG
Flag : /U
Metric: 0, Preference: 1
Ecmp list:
Nexthop: 1.1.1.4, Oif: fei-0/1/0/1
Nexthop: 123.1.1.2, Oif: fei-0/1/0/1.1
Nexthop: 123.2.1.2, Oif: fei-0/1/0/1.2
Nexthop: 123.3.1.2, Oif: fei-0/1/0/1.3
Description
FLAG of ECMP
Assume that the two routes are equal-cost for R2, that is, the two routes are equal-cost
routes between R2 and the source. Multicast load sharing can be configured on R2 to
make the multicast traffic reach the user along the two paths.
7-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1. Configure PIM-SM, BSR and RP on the routers to make the user can receive the
multicast traffic sent by the source properly.
2. Configure multicast load sharing on the downstream router.
Configuration Commands
Router
Interface
IP Address
Mask
R1
gei-0/15/0/1
172.1.3.44
255.255.255.0
R1
gei-0/15/1/3
172.1.7.44
255.255.255.0
R1
gei-0/15/1/10
172.1.13.44
255.255.255.0
R1
loopback63
44.63.1.1
255.255.255.255
R2
gei-0/3/1/2
172.1.13.46
255.255.255.0
R2
gei-0/3/1/8
172.1.5.46
255.255.255.0
R2
gei-0/6/0/2
172.1.7.46
255.255.255.0
Configure multicast protocol on R and R2 to create a multicast tree. Here take PIM-SM as
an example.
The configuration of R1 (enable PIM-SM on the interfaces, and configure BSR and RP on
loopback63 interface):
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)#interface gei-0/15/0/1
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
R1(config-pimsm)#interface gei-0/15/1/3
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
R1(config-pimsm)#interface gei-0/15/1/10
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#exit
R1(config-pimsm)#bsr-candidate loopback63
R1(config-pimsm)#rp-candidate loopback63
7-4
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
When the user starts to receive the multicast traffic sent from the source, check the routing
tables on R1 and R2. Pay attention to the ingress and egress of the routes.
The multicast routing table on R1 is shown below:
R1#show ip mroute
(*, 238.255.255.0), RP: 44.63.1.1, TYPE: DYNAMIC, FLAGS:
Incoming interface: NULL, flags:
Outgoing interface list:
gei-0/15/1/3, flags: F
(172.1.3.49, 238.255.255.0), RP: 44.63.1.1, TYPE: DYNAMIC, FLAGS:
Incoming interface: gei-0/15/0/1, flags:
Outgoing interface list:
gei-0/15/1/10, flags: F
(*, 238.255.255.1), RP: 44.63.1.1, TYPE: DYNAMIC, FLAGS:
Incoming interface: NULL, flags:
Outgoing interface list:
gei-0/15/1/3, flags: F
(172.1.3.49, 238.255.255.1), RP: 44.63.1.1, TYPE: DYNAMIC, FLAGS:
Incoming interface: gei-0/15/0/1, flags:
Outgoing interface list:
gei-0/15/1/3, flags: F
7-5
SJ-20110504161056-014|2010-05-10 (R2.1)
7-7
SJ-20110504161056-014|2010-05-10 (R2.1)
Flag : /U
Metric: 0, Preference: 1
Ecmp list:
Nexthop: 172.1.7.44, Oif: gei-0/6/0/2
Nexthop: 172.234.7.44, Oif: gei-0/6/0/2.3962
Dest address: 172.1.3.49
Owner: PIMSM
Flag : /U
Metric: 0, Preference: 1
Ecmp list:
Nexthop: 172.1.7.44, Oif: gei-0/6/0/2
Nexthop: 172.1.13.44, Oif: gei-0/3/1
If the fault cannot be solved according to the steps above, please ask for technical support.
7-8
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 8
Static Multicast
Configuration
Table of Contents
Static Multicast Overview ...........................................................................................8-1
Static Multicast Principle.............................................................................................8-1
Configuring Static Multicast ........................................................................................8-2
Static Multicast Maintenance ......................................................................................8-3
Static Multicast Configuration Example.......................................................................8-4
Static Fault Malfunction Handling ...............................................................................8-5
8-1
SJ-20110504161056-014|2010-05-10 (R2.1)
When creating multicast route entities, multicast routing protocols use RPF check
mechanism to make sure that multicast packets are transmitted along the correct path and
prevent loops caused by different reasons. RPF mechanism uses the multicast source
address as the destination and selects an optimal route from the unicast routing table,
the MBGP routing table and the static multicast routing table respectively. If the longest
matching rule is configured, RPF mechanism will select the route that meets the longest
matching rule among the three routes. If the masks are the same, RPF mechanism will
select the route with the highest priority among the three routes. If the priorities are the
same, RPF mechanism will select the route in the order of static multicast route, MBGP
route and unicast route. The selected route is used as the RPF route, and RPF interfaces
and neighbors will be selected.
Command
Function
ZXR10(config-mcast)#ip multicast-static-start
ZXR10(config-mcast)#no ip multicast-static-start
< sg-limit>
entities.
ZXR10(config-mcast)#no ip multicast-static-limit
route entity.
entity.
static multicast.
multicast.
Description
< xg-limit>
< sg-limit>
Parameter
Description
< group-address>
< source-address>
< iif-name>
< oif-index>
Description
< index>
< interface-name>
Function
< source-address> ]
table.
8-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1.
2.
3.
4.
5.
6.
Configuration Commands
The configuration of R1:
R1(config)#ip multicast-routing
R1(config-mcast)#ip multicast-static-start
R1(config-mcast)#ip multicast-static-limit xg 1024 sg 1024
R1(config-mcast)#ip multicast-static-interface index 2 interface
gei-0/3/0/6
R1(config-mcast)#ip multicast-static-route 33.1.1.2 225.10.1.2
iif gei-0/3/0/7 oif 2
Configuration Verification
Check the static multicast information on R1 with the show ip multicast-static-interface
command, as shown below.
R1(config)#show ip multicast-static-interface
STATIC-MULTICAST OUT PORT INDEX 100:
Outgoing Interface:
gei-0/3/0/6
8-4
SJ-20110504161056-014|2010-05-10 (R2.1)
8-5
SJ-20110504161056-014|2010-05-10 (R2.1)
8-6
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 9
MSDP Configuration
Table of Contents
MSDP Overview.........................................................................................................9-1
MSDP Principle ..........................................................................................................9-1
Configuring MSDP......................................................................................................9-2
MSDP Maintenance ...................................................................................................9-5
MSDP Configuration Examples ..................................................................................9-7
MSDP Fault Handling ...............................................................................................9-14
9-1
SJ-20110504161056-014|2010-05-10 (R2.1)
Function
ZXR10(config-mcast)#router msdp
Command
Function
This configures an MSDP neighbor
and enters PEER configuration
mode. The parameter <
peer-address> is the IP address
of the MSDP neighbor.
access-list-name> ]
ZXR10(config-msdp-peer)#shutdown
Step
Command
Function
Description
< peer-address>
< desc-text>
Description
< interface-name>
Interface name
Description
Description
< ttl-value>
9-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
Command
Function
9-4
SJ-20110504161056-014|2010-05-10 (R2.1)
Function
MSDP neighbors.
This the count of sources/multicast
Parameter descriptions:
Parameter
Description
< peer-address>
< group-address>
< source-address>
Description
MSDP Peer
State
SJ-20110504161056-014|2010-05-10 (R2.1)
Command Output
Description
Connection source
Uptime(Downtime)
The uptime (downtime) of this MSDP neighbor. If this time is less than 24
hours, it is displayed in the format of hour: minute: second.
Messages sent/received
The count of SA messages that are sent to or received from this MSDP
neighbor
SA Filtering
The count of SA messages that are received from this MSDP neighbor
in the SA cache
SAs limit
Description
(101.101.101.101, 224.1.1.1)
The packets sent to the second address (the multicast group) by the first
address (the source)
RP 49.4.4.4
00:21:45/ 00:05:57
This cache has been established by this router for 21 minutes 45 seconds.
If this SA message has not been received until 5 minutes 57 seconds, the
cache will be deleted.
State
Count
Uptime/
Reset
SA
Count
Up
1d10h
Up
Up
14:24:00
12:36:17
20
10
Description
Peer Address
SJ-20110504161056-014|2010-05-10 (R2.1)
Command Output
Description
State
Uptime/Downtime
The uptime (downtime) of this MSDP neighbor. If this time is less than 24
hours, it is displayed in the format of hour: minute: second.
Reset Count
SA Count
The count of SA messages that are received from this MSDP neighbor
in the SA cache
Total entries: 32
Description
101.1.1.1: 2
The IP address means the MSDP neighbor with this address. The count
of SA messages that are received from this MSDP neighbor in the SA
cache is 2.
Total entries 32
The count of SA messages that are received from all MSDP neighbors in
the SA cache is 32.
9-7
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1. Enable PIM-SM and configure the candidate BSR and the RP.
2. Configure OSPF to make provide the routes between the two domains.
3. Enable MSDP and establish peer relationship. The multicast source sends multicast
flows. When the multicast receiver sends a multicast group Join message, the
multicast source and the multicast receiver can communicate with each other.
Configuration Commands
The configuration of R1:
R1(config)#interface loopback1
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#exit
R1(config)#ip multicast-routing
R1(config-mcast)#router pimsm
R1(config-pimsm)#rp-candidate loopback1 priority 10
R1(config-pimsm)#bsr-candidate loopback1 10 10
R1(config-pimsm)#exit
R1(config-mcast)#exit
R1(config)#interface gei-0/1/0/1
R1(config-if)#ip address 10.10.10.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface gei-0/1/0/2
R1(config-if)#ip address 10.10.20.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface gei-0/1/0/3
R1(config-if)#ip address 10.10.30.1 255.255.255.0
9-8
SJ-20110504161056-014|2010-05-10 (R2.1)
R1(config)#router ospf 1
R1(config-ospfv2)#network 10.10.10.0 0.0.0.255 area 0
R1(config-ospfv2)#network 10.10.20.0 0.0.0.255 area 0
R1(config-ospfv2)#network 10.10.30.0 0.0.0.255 area 0
R1(config-ospfv2)#network 1.1.1.1 0.0.0.0 area 0
R1(config-ospfv2)#exit
R1(config)#ip multicast-routing
R1(config-mcast)#router msdp
R1(config-msdp)#connect-source gei-0/1/0/2
R1(config-msdp)#peer 10.10.20.2
R1(config-msdp-peer)#exit
R1(config-msdp)#peer 10.10.30.2
R1(config-msdp-peer)#exit
R1(config-mcast)#router pimsm
R1(config-pimsm)#interface gei-0/1/0/1
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#bsr-border
R1(config-pimsm-if)#exit
R1(config-pimsm)#interface gei-0/1/0/2
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#bsr-border
R1(config-pimsm-if)#exit
R1(config-pimsm)#interface gei-0/1/0/3
R1(config-pimsm-if)#pimsm
R1(config-pimsm-if)#bsr-border
R1(config-pimsm-if)#exit
R2(config)#interface gei-0/2/0/1
R2(config-if)#ip address 10.10.20.2 255.255.255.0
R2(config-if)#exit
R2(config)#interface gei-0/2/0/2
9-9
SJ-20110504161056-014|2010-05-10 (R2.1)
R2(config)#router ospf 1
R2(config-ospfv2)#network 10.10.20.0 0.0.0.255 area 0
R2(config-ospfv2)#network 10.10.40.0 0.0.0.255 area 0
R2(config-ospfv2)#network 10.10.50.0 0.0.0.255 area 0
R2(config-ospfv2)#network 2.2.2.2 0.0.0.0 area 0
R2(config-ospfv2)#exit
R2(config)#ip multicast-routing
R2(config-mcast)#router msdp
R2(config-msdp)#connect-source gei-0/2/0/1
R2(config-msdp)#peer 10.10.20.1
R2(config-msdp-peer)#exit
R2(config-msdp)#peer 10.10.40.2
R2(config-msdp-peer)#exit
R2(config-msdp)#default-peer 10.10.20.1
R2(config-msdp)#exit
R2(config-mcast)#router pimsm
R2(config-pimsm)#interface gei-0/2/0/1
R2(config-pimsm-if)#pimsm
R2(config-pimsm-if)#bsr-border
R2(config-pimsm-if)#exit
R2(config-pimsm)#interface gei-0/2/0/2
R2(config-pimsm-if)#pimsm
R2(config-pimsm-if)#bsr-border
R2(config-pimsm-if)#exit
R2(config-pimsm)#interface gei-0/2/0/3
R2(config-pimsm-if)#pimsm
R2(config-pimsm-if)#bsr-border
R2(config-pimsm-if)#exit
9-10
SJ-20110504161056-014|2010-05-10 (R2.1)
R3(config)#interface gei-0/3/0/1
R3(config-if)#ip address 10.10.30.2 255.255.255.0
R3(config-if)#exit
R3(config)#interface gei-0/3/0/2
R3(config-if)#ip address 10.10.40.2 255.255.255.0
R3(config-if)#exit
R3(config)#router ospf 1
R3(config-ospfv2)#network 10.10.30.0 0.0.0.255 area 0
R3(config-ospfv2)#network 10.10.40.0 0.0.0.255 area 0
R3(config-ospfv2)#network 3.3.3.3 0.0.0.0 area 0
R3(config-ospfv2)#exit
R3(config)#ip multicast-routing
R3(config-mcast)#router msdp
R3(config-msdp)#connect-source gei-0/3/0/1
R3(config-msdp)#peer 10.10.30.1
R3(config-msdp-peer)#exit
R3(config-msdp)#peer 10.10.40.1
R3(config-msdp-peer)#exit
R3(config-msdp)#exit
R3(config-mcast)#router pimsm
R3(config-pimsm)#interface gei-0/3/0/1
R3(config-pimsm-if)#pimsm
R3(config-pimsm-if)#bsr-border
R3(config-pimsm-if)#exit
R3(config-pimsm)#interface gei-0/3/0/2
R3(config-pimsm-if)#pimsm
R3(config-pimsm-if)#bsr-border
R3(config-pimsm-if)#exit
R3(config-pimsm)#interface gei-0/3/0/3
R3(config-pimsm-if)#pimsm
R3(config-pimsm-if)#bsr-border
R3(config-pimsm-if)#end
Configuration Verification
Execute the show ip msdp summary command on R1 to check the establishment of MSDP
peer relationship.
R1#show ip msdp summary
MSDP Peer Status Summary
Peer Address
State
Uptime/
Reset
Downtime
Count
SA
Count
9-11
SJ-20110504161056-014|2010-05-10 (R2.1)
up
00:05:34
10.10.30.2
up
00:06:45
State
Uptime/
Reset
*10.10.20.1
up
10.10.40.2
up
00:08:45
SA
Downtime
Count
00:07:34
Count
State
Uptime/
Reset
Downtime
Count
SA
Count
10.10.30.1
up
00:09:34
10.10.40.1
up
00:10:45
9-12
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1.
2.
3.
4.
Configure OSPF to provides routes between RA and RB and between RA and RC.
Enable PIM-SM and configure an RP.
Configure MSDP between RB and RC.
The receiver joins the multicast group. The multicast source sends flows.
Configuration Commands
The configuration of RB:
ZXR10(config)interface gei-0/0/0/1
ZXR10(config-if)#ip address 11.1.1.2 255.255.255.0
ZXR10(config)#interface gei-0/0/0/2
ZXR10(config-if)#ip address 32.1.1.1 255.255.255.0
ZXR10(config-if)#exit
ZXR10(config)#router ospf 1
ZXR10(config-ospfv2)#network 11.1.1.0 0.0.0.255 area 0
ZXR10(config-ospfv2)#network 12.1.1.0 0.0.0.255 area 0
ZXR10(config-ospfv2)#exit
ZXR10(config)#interface loopback1
ZXR10(config-if)#ip address 64.1.1.1 255.255.255.255
ZXR10(config-if)#exit
ZXR10(config)#interface loopback2
ZXR10(config-if)#ip address 64.1.1.10 255.255.255.255
ZXR10(config-if)#exit
ZXR10(config)#ip multicast-routing
ZXR10(config-mcast)#router pimsm
ZXR10(config-pimsm)#rp-candidate loopback1
ZXR10(config-mcast)#router msdp
ZXR10(config-msdp)#originator-id loopback2
ZXR10(config-msdp)#peer 10.0.0.3
ZXR10(config-msdp-peer)#connect-source loopback2
/*Configure MSDP*/
ZXR10(config)#router ospf 1
ZXR10(config-ospfv2)#network 11.1.1.0 0.0.0.255 area 0
9-13
SJ-20110504161056-014|2010-05-10 (R2.1)
ZXR10(config)#interface loopback1
ZXR10(config-if)#ip address 64.1.1.1 255.255.255.255
ZXR10(config-if)#exit
ZXR10(config)#interface loopback2
ZXR10(config-if)#ip address 64.1.1.11 255.255.255.255
ZXR10(config-if)#exit
ZXR10(config)#ip multicast-routing
ZXR10(config-mcast)#router pimsm
ZXR10(config-pimsm)#rp-candidate loopback1
/*Loopback1 works as an RP. The address is the same as that on RA.*/
ZXR10(config-mcast)#router msdp
ZXR10(config-msdp)#originator-id loopback2
ZXR10(config-msdp)#peer 10.0.0.2
ZXR10(config-msdp-peer)#connect-source loopback2
/*Configure MSDP*/
Configuration Verification
The receiver joins the IP multicast group. An RP is chosen randomly between RB and
RC to forward the Register message. If the chosen link is down, traffic will be forwarded
through the other link.
9-14
SJ-20110504161056-014|2010-05-10 (R2.1)
9-15
SJ-20110504161056-014|2010-05-10 (R2.1)
9-16
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 10
IGMP Snooping
Configuration
Table of Contents
IGMP Snooping Overview ........................................................................................10-1
IGMP Snooping Principle .........................................................................................10-1
Configuring IGMP Snooping .....................................................................................10-1
IGMP Snooping Maintenance...................................................................................10-5
IGMP Snooping Configuration Example ...................................................................10-6
IGMP Snooping Fault Handling ................................................................................10-9
Command
Function
ZXR10(config-igmpsnoop)#igmp snooping
10-1
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
< interval>
in IGMPSNOOP-VFI configuration
mode.
IGMPSNOOP-VFI configuration
mode. The < port-name > parameter
is the name of a port.
10
11
port-name>
configuration mode.
10-2
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
12
< time>
13
14
< version> ]
15
ip-address>
16
ip-address>
17
18
time>
10-3
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
19
Description
Description
Description
< ip-address>
< num>
Description
< ip-address>
Description
interface< port-name>
Port name
Description
< ip-address>
number< number>
SJ-20110504161056-014|2010-05-10 (R2.1)
Description
< ip-address>
interface< port-name>
Port name
Function
Group
-------------------------------------------------------------------1
vbui1
225.1.1.9
D:fei-0/1/0/1
vbui1
225.1.1.8
D:fei-0/1/0/1
vbui1
225.1.1.7
D:fei-0/1/0/1
vbui1
225.1.1.6
D:fei-0/1/0/1
vbui1
225.1.1.5
D:fei-0/1/0/1
vbui1
225.1.1.4
D:fei-0/1/0/1
vbui1
225.1.1.3
D:fei-0/1/0/1
vbui1
225.1.1.2
D:fei-0/1/0/1
vbui1
225.1.1.1
D:fei-0/1/0/1
ZXR10(config)#
Description
Index
VpnId
SJ-20110504161056-014|2010-05-10 (R2.1)
Command Output
Description
VLAN
VBUI
Group
Drop
Prejoin
MaxHost
Ports
Configuration Thought
1.
2.
3.
4.
10-6
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Commands
The configuration of PE1:
PE1(config)#interface gei-0/1/0/1
PE1(config-if)#ip address 2.2.2.1 255.255.255.0
PE1(config-if)#no shutdown
PE1(config-if)#exit
PE1(config)#interface loopback1
PE1(config-if)#ip address 1.1.1.1 255.255.255.255
PE1(config-if)#no shutdown
PE1(config-if)#exit
PE1(config)#router ospf 200
PE1(config-ospfv2)#network 2.2.2.0 0.0.0.255 area 0.0.0.0
PE1(config-ospfv2)#network 1.1.1.1 0.0.0.0 area 0.0.0.0
PE1(config-ospfv2)#exit
PE1(config)#mpls ldp instance 100
PE1(config-ldp)#router-id loopback1
PE1(config-ldp)#interface gei-0/1/0/1
PE1(config-ldp-if)#exit
PE1(config-ldp)#exit
PE1(config)#sdu sdu3
PE1(config)#mpls l2vpn enable
PE1(config)#vpls vpls_zte2
PE1(config-vpls)#sdu sdu3
PE1(config-vpls-sdu)#neighbour 1.1.1.3 40
PE1(config-vpls-sdu-pw)#control-word unused
PE1(config-vpls-sdu-pw)#signal dynamic
PE1(config-vpls-sdu-pw)#encapsulation raw
PE1(config-vpls-sdu-pw)#tunnel-policy auto
PE1(config-vpls-sdu-pw)#exit
PE1(config-vpls-sdu)#exit
PE1(config-vpls)#sac gei-0/1/0/2
PE1(config-vpls-sac)#service-define ethernet
PE1(config-vpls-sac-sd)#exit
PE1(config-vpls-sac)#exit
PE1(config-vpls)#exit
PE1(config)#igmpsnoop
PE1(config-igmpsnoop)#igmp snooping
PE1(config-igmpsnoop)#vpls zte2
PE1(config-igmpsnoop-vfi)#igmp snooping
PE1(config-igmpsnoop-vfi)#exit
PE1(config-igmpsnoop)#exit
10-7
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
After the configurations, a VPLS PW is established successfully. CE1 joins a group. Check
the entities generated on PE1 and PE2.
l
10-8
SJ-20110504161056-014|2010-05-10 (R2.1)
configure/maximum
VPLS
1/8000
VPWS
0/8000
MSPW
0/8000
VLSS
0/8000
Source
Group
Dr P MH
Ports
------------------------------------------------------------1
NULL
0.0.0.0
225.1.1.1
0 0
D:gei-0/1/0/2
Source
Group
Dr P MH
Ports
------------------------------------------------------------1
NULL
0.0.0.0
225.1.1.1
0 0
D:sdu100
10-9
SJ-20110504161056-014|2010-05-10 (R2.1)
10-10
SJ-20110504161056-014|2010-05-10 (R2.1)
Chapter 11
Command
ZXR10(config)#pimsnoop
Function
This enters PIM snooping global
configuration mode.
ZXR10(config-pimsnoop)#pim snooping
11-1
SJ-20110504161056-014|2010-05-10 (R2.1)
Step
Command
Function
ZXR10(config-pimsnoop-vfi)#pim snooping
Function
An example of the show ip pim snooping port-info vpls zte command output is shown below.
ZXR10#show ip pim snooping port-info vpls zte
PIM Snooping is globally enabled.
PIM Snooping is enabled in this VPLS.
Index
VPLS
Source-ip
Group-ip
Ports
RemainTime
--------------------------------------------------------------1
192.168.100.111
224.1.1.1
fei-0/1/0/1
207
ZXR10#
Description
Index
VPLS
Source-ip
Group-ip
Ports
RemainTime
11-2
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Thought
1.
2.
3.
4.
Configuration Commands
The configuration of PE1:
PE1(config)#interface gei-0/1/0/1
PE1(config-if)#ip address 2.2.2.1 255.255.255.0
PE1(config-if)#no shutdown
PE1(config-if)#exit
PE1(config)#interface loopback1
PE1(config-if)#ip address 1.1.1.1 255.255.255.255
PE1(config-if)#no shutdown
PE1(config-if)#exit
PE1(config)#router ospf 200
PE1(config-ospfv2)#network 2.2.2.0 0.0.0.255 area 0.0.0.0
PE1(config-ospfv2)#network 1.1.1.1 0.0.0.0 area 0.0.0.0
PE1(config-ospfv2)#exit
PE1(config)#mpls ldp instance 100
PE1(config-ldp)#router-id loopback1
PE1(config-ldp)#interface gei-0/1/0/1
PE1(config-ldp-if)#exit
PE1(config-ldp)#exit
PE1(config)#sdu sdu3
PE1(config)#mpls l2vpn enable
PE1(config)#vpls vpls_zte2
11-3
SJ-20110504161056-014|2010-05-10 (R2.1)
11-4
SJ-20110504161056-014|2010-05-10 (R2.1)
Configuration Verification
After the configurations, a VPLS PW is established successfully. CE1 is a multicast router
and it joins a group. Check the entities generated on PE1 and PE2.
l
The neighbor information and the route to the group member on PE1 are shown below.
PE1(config)#show l2vpn summary
The summary information about configured L2VPN:
vpn type
configure/maximum
VPLS
1/8000
VPWS
0/8000
MSPW
0/8000
VLSS
0/8000
Port
VLAN
VPLS
Neighbor-ip
RemainTime
-----------------------------------------------------------1
gei-0/1/0/2
35.35.0.12
102
zte
VPLS
Source-ip
Group-ip
Ports
RemainTime
-------------------------------------------------------------1
1.2.3.4
227.0.0.4
gei-0/1/0/2
146
The neighbor information and the route to the group member on PE2 are shown below.
PE2(config)#show ip pim snooping neighbor-info
Index
Port
VLAN
VPLS
Neighbor-ip
RemainTime
--------------------------------------------------------1
sdu100
ZXR10(config)#show ip
35.35.0.12
170
11-5
SJ-20110504161056-014|2010-05-10 (R2.1)
Index
VPLS
Source-ip
Group-ip
Ports
RemainTime
--------------------------------------------------------------1
1.2.3.4
227.0.0.4
sdu100
232
11-6
SJ-20110504161056-014|2010-05-10 (R2.1)
11-7
SJ-20110504161056-014|2010-05-10 (R2.1)
11-8
SJ-20110504161056-014|2010-05-10 (R2.1)
Figures
Figure 3-1 IGMP Querier Election ............................................................................. 3-7
Figure 3-2 Joining of IGMP Dynamic Group and Static Group................................. 3-10
Figure 3-3 IGMP Fast Leave Form All Groups ........................................................ 3-12
Figure 3-4 IGMP Fast Leaving Form a Specified Group .......................................... 3-14
Figure 3-5 Network Topology of an IGMP Fault....................................................... 3-17
Figure 3-6 Flow to Handle an IGMP Fault ............................................................... 3-18
Figure 4-1 PIM-DM Configuration Example............................................................... 4-4
Figure 4-2 Network Topology of a PIM-DM Fault ....................................................... 4-5
Figure 4-3 Flow to Handle a PIM-DM Fault ............................................................... 4-6
Figure 5-1 Forwarding Multicast Flow through PIM-SM (Dynamic RP) .................... 5-11
Figure 5-2 Forwarding Multicast Flow through PIM-SM (Static RP) ......................... 5-13
Figure 5-3 Illegal Multicast Source Control.............................................................. 5-15
Figure 5-4 Anycast-RP Configuration Example ....................................................... 5-19
Figure 5-5 Network Topology of a PIM-SM Fault ..................................................... 5-21
Figure 5-6 Flow to Handle a PIM-SM Fault ............................................................. 5-22
Figure 6-1
II
Glossary
BSR
- Bootstrap Router
DR
- Designate Router
DVMRP
- Distance Vector Multicast Routing Protocol
ECMP
- Equal-Cost Muti-Path routing
IGMP
- Internet Group Management Protocol
IP
- Internet Protocol
LAN
- Local Area Network
MSDP
- Multicast Source Discovery Protocol
NE
- Network Element
PIM-DM
- Protocol Independent Multicast - Dense Mode
PIM-SM
- Protocol Independent Multicast - Sparse Mode
RFC
- Request For Comments
RP
- Rendezvous Point
RPF
- Reverse Path Forwarding
SA
- Source Active
SPT
- Shortest Path Tree
SSM
- Source Specific Multicast
III
TCP
- Transfer Control Protocol
TCP/IP
- Transfer Control Protocol/Internet Protocol
VPLS
- Virtual Private LAN Service
VRF
- Virtual Route Forwarding
IV