Professional Documents
Culture Documents
Table of Contents
Table of Contents
Chapter 1 IP Multicast ................................................................................................................... 1-3 1.1 IP Multicast Overview ........................................................................................................ 1-3 1.2 Multicast Addresses........................................................................................................... 1-3 1.2.1 IP Multicast Addresses............................................................................................ 1-3 1.2.2 Ethernet Multicast MAC Addresses ........................................................................ 1-3 1.3 IP Multicast Protocols ........................................................................................................ 1-3 1.3.1 Internet Group Management Protocol..................................................................... 1-3 1.3.2 Multicast Routing Protocols..................................................................................... 1-3 1.4 IP Multicast Packet Forwarding ......................................................................................... 1-3 1.5 Application of Multicast ...................................................................................................... 1-3 Chapter 2 Common Multicast Configuration .............................................................................. 2-3 2.1 Common Multicast Configuration Overview ...................................................................... 2-3 2.2 Common Multicast Configuration....................................................................................... 2-3 2.2.1 Enabling Multicast ................................................................................................... 2-3 2.2.2 Configuring the Minimum TTL of Multicast Packets ............................................... 2-3 2.2.3 Configuring Multicast Forwarding Boundary ........................................................... 2-3 2.2.4 Configuring the Number Limit of Multicast Routing Entries .................................... 2-3 2.2.5 Clearing MFC Forwarding Entry or the Statistics.................................................... 2-3 2.2.6 Clearing Routing Entry from the Multicast Kernel Routing Table ........................... 2-3 2.3 Displaying and Debugging Common Multicast Configuration ........................................... 2-3 Chapter 3 IGMP Configuration ..................................................................................................... 3-3 3.1 IGMP Overview.................................................................................................................. 3-3 3.1.1 Introduction to IGMP ............................................................................................... 3-3 3.1.2 Introduction to IGMP Proxy ..................................................................................... 3-3 3.2 IGMP Configuration ........................................................................................................... 3-3 3.2.1 Enabling Multicast ................................................................................................... 3-3 3.2.2 Enabling IGMP on an Interface ............................................................................... 3-3 3.2.3 Configuring IGMP Proxy ......................................................................................... 3-3 3.2.4 Configuring a Router as a Group Member.............................................................. 3-3 3.2.5 Controlling the Access to IP Multicast Group.......................................................... 3-3 3.2.6 Configuring IGMP Query Interval ............................................................................ 3-3 3.2.7 Configuring IGMP Version ...................................................................................... 3-3 3.2.8 Configuring Other Querier Present Interval ............................................................ 3-3 3.2.9 Configuring IGMP Max Query Response Time....................................................... 3-3 3.2.10 Limiting the Number of IGMP Groups on an Interface.......................................... 3-3 3.2.11 Configuring Last Member Query Interval .............................................................. 3-3 3.2.12 Configuring Last Member Query Count ................................................................ 3-3
Table of Contents
3.2.13 Deleting IGMP Group from Interface .................................................................... 3-3 3.3 Displaying and Debugging IGMP....................................................................................... 3-3 3.4 Typical IGMP Configuration Example................................................................................ 3-3 Chapter 4 PIM Configuration........................................................................................................ 4-3 4.1 PIM Overview..................................................................................................................... 4-3 4.1.1 PIM-DM ................................................................................................................... 4-3 4.1.2 PIM-SM ................................................................................................................... 4-3 4.2 PIM-DM Configuration ....................................................................................................... 4-3 4.2.1 Enabling Multicast ................................................................................................... 4-3 4.2.2 Enabling IGMP on an Interface ............................................................................... 4-3 4.2.3 Enabling PIM-DM .................................................................................................... 4-3 4.2.4 Entering PIM View................................................................................................... 4-3 4.2.5 Configuring Hello Message Interval ........................................................................ 4-3 4.2.6 Configuring Multicast Source (Group) Policy .......................................................... 4-3 4.2.7 Configuring PIM Neighbor Policy ............................................................................ 4-3 4.2.8 Limiting the Number of PIM Neighbors on an Interface.......................................... 4-3 4.3 PIM-SM Configuration ....................................................................................................... 4-3 4.3.1 Enabling Multicast ................................................................................................... 4-3 4.3.2 Enabling IGMP on the Interface .............................................................................. 4-3 4.3.3 Enabling PIM-SM .................................................................................................... 4-3 4.3.4 Entering PIM View................................................................................................... 4-3 4.3.5 Configuring PIM-SM Domain Boundary.................................................................. 4-3 4.3.6 Configuring Candidate-BSR.................................................................................... 4-3 4.3.7 Configuring Candidate-RP ...................................................................................... 4-3 4.3.8 Configuring Static RP.............................................................................................. 4-3 4.3.9 Configuring Hello Message Interval ........................................................................ 4-3 4.3.10 Configuring Multicast Source (Group) Policy ........................................................ 4-3 4.3.11 Configuring PIM Neighbor Policy .......................................................................... 4-3 4.3.12 Limiting the Number of PIM Neighbors on an Interface........................................ 4-3 4.3.13 Configuring RP Register Policy............................................................................. 4-3 4.3.14 Configuring the Threshold to Switch from RPT to SPT ........................................ 4-3 4.3.15 Configuring BSR Policy......................................................................................... 4-3 4.3.16 Configuring C-RP Policy ....................................................................................... 4-3 4.3.17 Clearing PIM Routing Entries................................................................................ 4-3 4.3.18 Clearing PIM Neighbors ........................................................................................ 4-3 4.4 Displaying and Debugging PIM ......................................................................................... 4-3 4.5 PIM Configuration Example ............................................................................................... 4-3 4.5.1 PIM-DM Configuration............................................................................................. 4-3 4.5.2 PIM-SM Configuration............................................................................................. 4-3 4.6 Troubleshooting PIM.......................................................................................................... 4-3 Chapter 5 MSDP Configuration.................................................................................................... 5-3 5.1 MSDP Overview................................................................................................................. 5-3
Huawei Technologies Proprietary ii
Table of Contents
5.1.1 MSDP Working Principles ....................................................................................... 5-3 5.2 MSDP Configuration .......................................................................................................... 5-3 5.2.1 Enabling MSDP ....................................................................................................... 5-3 5.2.2 Configuring an MSDP Peer..................................................................................... 5-3 5.2.3 Configuring a Static RPF Peer ................................................................................ 5-3 5.2.4 Configuring Originating RP ..................................................................................... 5-3 5.2.5 Caching SA ............................................................................................................. 5-3 5.2.6 Configuring the Maximum Number of SAs Cached ................................................ 5-3 5.2.7 Requesting the Source Information from an MSDP Peer ....................................... 5-3 5.2.8 Controlling the Source Information Created............................................................ 5-3 5.2.9 Controlling the Source Information Forwarded ....................................................... 5-3 5.2.10 Controlling the Source Information Received ....................................................... 5-3 5.2.11 Configuring an MSDP Mesh Group ...................................................................... 5-3 5.2.12 Configuring MSDP Connection Retry Interval....................................................... 5-3 5.2.13 Disabling an MSDP Peer ...................................................................................... 5-3 5.2.14 Clearing MSDP Connection, Statistics and SA Cache ......................................... 5-3 5.3 Displaying and Debugging MSDP ..................................................................................... 5-3 5.3.1 Displaying and Debugging MSDP........................................................................... 5-3 5.3.2 Tracing the Transmission Path of an SA Message over the Network .................... 5-3 5.4 Typical MSDP Configuration Examples............................................................................. 5-3 5.4.1 Configuring Static RPF Peers ................................................................................. 5-3 5.4.2 Configuring Anycast RP .......................................................................................... 5-3 5.4.3 MSDP Integrated Networking.................................................................................. 5-3 Chapter 6 MBGP Multicast Extension Configuration ................................................................ 6-3 6.1 MBGP Multicast Extension ................................................................................................ 6-3 6.1.1 MBGP Multicast Extension Overview ..................................................................... 6-3 6.1.2 MBGP Extension Attributes for Multicast ................................................................ 6-3 6.1.3 MBGP Operating Mode and Message Type ........................................................... 6-3 6.2 MBGP Multicast Extension Configuration.......................................................................... 6-3 6.2.1 Enabling MBGP Multicast Extension Protocol ........................................................ 6-3 6.2.2 Specifying Network Route to be Advertised by MBGP Multicast Extension ........... 6-3 6.2.3 Configuring the MED Value for an AS .................................................................... 6-3 6.2.4 Comparing MED Values from Different AS Neighbor Paths ................................... 6-3 6.2.5 Configuring Local Preference.................................................................................. 6-3 6.2.6 Configuring MBGP Timer ........................................................................................ 6-3 6.2.7 Configuring MBGP Peer/Peer Group ...................................................................... 6-3 6.2.8 Configuring MBGP to Filter Routes......................................................................... 6-3 6.2.9 Configuring MBGP Route Aggregation ................................................................... 6-3 6.2.10 Configuring MBGP Route Reflector ...................................................................... 6-3 6.2.11 Configuring MBGP Community Attributes............................................................. 6-3 6.2.12 Importing IGP Routing Information into MBGP ..................................................... 6-3 6.2.13 Defining AS Path List and Routing Policy ............................................................. 6-3
Table of Contents
6.2.14 Configuring MBGP Route Filtering........................................................................ 6-3 6.2.15 Resetting BGP Connections ................................................................................. 6-3 6.3 Displaying and Debugging MBGP ..................................................................................... 6-3 6.4 Typical MBGP Multicast Extension Configuration Example .............................................. 6-3 Chapter 7 Multicast Static Route Configuration ........................................................................ 7-3 7.1 Multicast Static Route Overview ........................................................................................ 7-3 7.2 Multicast Static Route Configuration ................................................................................. 7-3 7.2.1 Configuring a Multicast Static Route ....................................................................... 7-3 7.2.2 Configuring the Multicast RPF Route Selection Policy ........................................... 7-3 7.3 Displaying and Debugging Multicast Static Route............................................................. 7-3 7.4 Typical Multicast Static Route Configuration Example ...................................................... 7-3
Chapter 1 IP Multicast
Chapter 1 IP Multicast
1.1 IP Multicast Overview
Various transmission methods can be used when the information (including data, voice and video) is to be sent to a limited number of users on the network. You can use the unicast method to establish an independent data transmission path for each user, or the broadcast method to send information to all users on the network, regardless of their need. For example, if the same information is required by 200 users on the network, the traditional solution is to send the information 200 times respectively in unicast mode so that every of these users can receive the data they need. In the broadcast mode, the data is broadcast over the entire network and whoever needs the data can get it directly from the network. Both occupy too much of the bandwidth resources. In addition, the broadcast mode decreases security and privacy of the information. IP multicast technology solves these problems. It allows the multicast source to send the information once only, and ensures that the information will not be duplicated or distributed unless it reaches a fork in the tree route established by the multicast routing protocol (see Figure 1-1). Therefore, the information can be correctly sent to whoever needs it with high efficiency.
Unicast Receiver
Receiver
Receiver Receiver
Figure 1-1 Comparison between the unicast and multicast transmission Note that a multicast source does not necessarily belong to a multicast group. It sends data to the multicast group which is not necessarily a receiver. Multiple sources can send packets to a multicast group simultaneously. If there is a router that does not support multicast, a multicast router can encapsulate the multicast packets in unicast IP packets with tunneling and send them to the
Chapter 1 IP Multicast
neighboring multicast router. The neighboring multicast router will remove the unicast IP header and continue the multicast transmission. That protects the network architecture from great change. The following are the benefits of multicast: High efficiency: It reduces network traffic, alleviating load of servers and the involved devices Optimized performance: It eliminates traffic redundancy. Distributed application: It enables multipoint application.
224.0.1.0 to 238.255.255.255
239.0.0.0 to 239.255.255.255
Chapter 1 IP Multicast
Table 1-2 Reserved multicast address list Class D address 224.0.0.0 224.0.0.1 224.0.0.2 224.0.0.3 224.0.0.4 224.0.0.5 224.0.0.6 224.0.0.7 224.0.0.8 224.0.0.9 224.0.0.10 224.0.0.11 224.0.0.12 224.0.0.13 224.0.0.14 224.0.0.15 224.0.0.16 224.0.0.17 224.0.0.18 Description Base Address (Reserved) All systems on this subnet All routers on this subnet Unassigned DVMRP routers OSPF routers OSPF DR ST routers ST hosts RIP-2 routers IGRP routers Mobile agents DHCP servers/Relay agents All PIM routers RSVP encapsulation All CBT routers Specified SBM All SBMs VRRP
Chapter 1 IP Multicast
XXXXXXXX
mapped
XXXXXXXX
XXXXXXXX
Figure 1-2 Mapping between a multicast IP address and an Ethernet MAC address Because only 23 bits of the last 28 bits of an IP multicast address are mapped to the MAC address, a single MAC address represents 32 IP multicast addresses.
Chapter 1 IP Multicast
Chapter 1 IP Multicast
stations it connects to can receive the multicast data stream. The path this join message takes through routers to the root (the RP) becomes a branch of the shared tree. Then multicast packets are sent to a RP first and then are forwarded along the shared tree which roots at this RP and stretches with "multicast member" leaves. To prevent the branches of the shared tree from being deleted before being updated, PIM sparse mode sends join messages to branches periodically to maintain the multicast distribution tree. To send data to the specified address, the sending station should register with the RP before forwarding data to the RP. When the data reaches the RP, the multicast packet is replicated and sent to receivers along the path of the distribution tree. Replication only happens at the fork of the distribution tree. This process automatically repeats until the packets reach the destination.
Chapter 1 IP Multicast
RPF (Reverse Path Forwarding) To ensure that multicast packets reach a router along the shortest path, the multicast router must check the receiving interface of multicast packets depending on the unicast routing table or a unicast routing table independently provided for multicast (such as the MBGP multicast routing table). This check mechanism is the basis for most multicast routing protocols to perform multicast forwarding, and is known as RPF (Reverse Path Forwarding) check. A multicast router uses the source address of a received multicast packet to query the unicast routing table or the independent multicast routing table to determine that the receiving interface is on the shortest path from the receiving station to the source. If a source tree is used, the source address is the address of the source host sending the multicast packet. If a shared tree is used, the source address is the RP address of the shared tree. A multicast packet arriving at the router will be forwarded according to the multicast forwarding entry if it passes the RPF check, or else, it will be discarded. Multicast policy routing Multicast policy routing complements the routing table-based packet forwarding function and allows packets to be forwarded by specified policies. . As an extension to unicast policy routing, multicast policy routing is implemented by configuring Route-policy, described by a group user-definable of IF-MATCH-APPLY statements. The IF-MATCH clauses define the matching rules, which when met, the multicast packet will be forwarded according to the actions configured by the user (described by APPLY clauses) as opposed to the usual process. For specific configuration of multicast policy routing, please refer to the "Networking Protocol" section in this manual.
Caution: Only when multicast is enabled, can other multicast configurations become effective.
By default, the number limit of multicast routing entries is the maximum value permitted by the system, which differs by the types of routers.
2.2.6 Clearing Routing Entry from the Multicast Kernel Routing Table
Perform the following command in user view. Table 2-6 Clear routing entry from the multicast kernel routing table Operation Clear routing entry from the multicast kernel routing table Command reset multicast routing-table all reset multicast routing-table group-address [ mask { group-mask | group-mask-length } ] [ source-address [ mask { source-mask | source-mask-length } ] ] [ incoming-interface interface-type interface-number ]
The forwarding entries in MFC are deleted along with the routing entries in the multicast kernel routing table.
Huawei Technologies Proprietary 2-3
Display the RPF routing information Enable multicast packet forwarding debugging Enable multicast status forwarding debugging Enable multicast kernel routing debugging
Three types of multicast routing tables are involved in the multicast implementation of VRP: individual multicast routing tables of each multicast routing protocol; a multicast kernel routing table integrating the routing information of those individual routing tables; and a multicast forwarding table in conformity with the kernel routing table and in charge of the multicast packet forwarding. Multicast forwarding table is mainly used in debugging. Generally, users can obtain required information by viewing multicast kernel routing table.
If only multicast source address is specified, the last hop address defaults to the address of a physical interface of the local router, and the group address defaults to 0.0.0.0. In that case, trace reversely hop by hop from the local router to the first hop router that connects directly to multicast source, following RPF rule. If only multicast source address and the last hop address are specified, the group address defaults to 0.0.0.0. In that case, trace reversely hop by hop from the last hop router to the first hop router that connects directly to multicast source, following RPF rule. If only source address and group address are specified, the last hop address defaults to that of a physical interface of the local router. In that case, trace reversely from the local router to the first hop router which is directly connected with multicast source, following the associated entry (S, G) in the multicast kernel routing table of each router on the path. If multicast source address, destination address and group address are all specified, trace reversely from the last hop router to the first hop router which is directly connected with multicast source following the corresponding entry (S, G) in the multicast kernel routing table of each router on the path. The trace mode is called weak trace if the group address is 0.0.0.0.
Query message General group/Group-Specific group/ IGMP join / leave message 33.33.33.1 Ethernet0/0/0 General group/ Group-Specific Query message information Exterior network
33.33.33.2
Ethernet1/0/0
Leaf network
Router B
Ethernet0/0/0 22.22.22.1
Host
Figure 3-1 Network diagram for IGMP proxy configuration Figure 3-1 is an IGMP Proxy diagram for a leaf network. First of all, configure PIM on Ethernet0/0/0 and Ethernet1/0/0 of Router B. Then on Ethernet0/0/0 configure Ethernet1/0/0 as the outbound IGMP proxy interface of Ethernet0/0/0 to external networks (by configuring the igmp proxy command). Then configure pim neighbor-policy on Ethernet0/0/0 interface of Router A to filter PIM neighbors on network segment 33.33.33.0/24. That is, Router A does not consider Router B as its PIM neighbor. In this case, when Router B of leaf network receives from Ethernet0/0/0 interface an IGMP join or IGMP leave message sent by the host, it will change the source address of the IGMP information to the outbound interface address to Router A (Ethernet 1/0/0 interface address: 33.33.33.2) and send the information to Ethernet0/0/0 interface of Router A. This works as if there is a host directed connected to Ethernet 0/0/0 interface of Router A. Similarly, when Router B receives the general group or group-specific query message from Router A, it will also change the source address of the query message to the outbound interface address of the host (Ethernet0/0/0 interface address: 22.22.22.1) and send the information from Ethernet0/0/0 interface. In Figure 3-1, Ethernet0/0/0 interface of Router B is called the client and Ethernet1/0/0 interface of Router B is called the proxy.
Enable IGMP on an interface Configure IGMP proxy Advanced configuration tasks of IGMP include: Configure a router as a group member Control the access to IP multicast group Configure IGMP query interval Configure IGMP version Configure Other querier present interval Configure IGMP Max query response time Limit the number of IGMP groups on an interface Configure Last member query interval Configure Last member query count Delete the IGMP group from the interface
Note: When running multicast, if the Ethernet interface of a router is configured with a secondary IP address, the Ethernet interfaces of other routers in the same segment must be configured with secondary IP addresses too, furthermore, all of these secondary IP address must be in the same segment.
Caution: You must enable PIM on the interface before you configure the igmp proxy command. One interface can not be the IGMP proxy interface of two or more interfaces.
By default, no filter is configured on the interface, which then permits any multicast group.
When there are multiple multicast routers on a network segment, the querier is responsible to send IGMP query messages to all the hosts on the LAN. By default, the interval is 60 seconds.
Caution: IGMP cannot convert automatically among its versions. All the routers on a subnet therefore should be configured to a same IGMP version.
By default, if a router has not received the query message for twice the query interval specified by the igmp timer query command, or for the other querier present interval if configured, it resumes the role of Querier.
Caution: The other querier present interval shall be longer than the query interval, otherwise, the querier changes too frequent, reducing network robustness.
The shorter the max response time is, the faster the router interdicts a group. Practically, the response time is an arbitrary value within configurable range (from 1 to 25 seconds), which by default is 10 seconds.
By default, the maximum number of IGMP groups on an interface is 1024. The maximum numbers of IGMP groups on interfaces differ by the router type. For a centralized router, it is 4096. If the number of IGMP groups on an interface has exceeded the specified value during configuration, no IGMP group will be deleted.
Assign interface Ethernet0/0/0 to multicast group 224.0.1.1 and use interface Ethernet1/0/0 as its IGMP proxy on Router B. (Refer to the next chapter for the PIM-DM configuration.)
Note: This example only provides the configurations of IGMP and IGMP proxy.
33.33.33.1
Ethernet0/0/0
33.33.33.2
Ethernet1/0/0
Router B
Ethernet0/0/0 22.22.22.1
Receiver
# Enable multicast.
<Quidway> system-view [Quidway] multicast routing-enable
2)
Configure Router A:
# Enable IP multicast.
<Quidway> system-view [Quidway] multicast routing-enable
3)
Configure Receiver
Receiver sets up an HTTP connection to the multicast source first, listing the current programs of the multicast source on the client software. Each of these programs is associated with a different multicast address or multicast group. When a program is selected, the client software sends automatically an IGMP message to join this multicast group. Then, Receiver can receive the multicast program.
I. Neighbor discovery
The PIM-DM router discovers neighbors by sending Hello message when it starts. Hello messages are periodically sent among network nodes to keep them in contact.
multicast packet will be discarded as a redundant one. The concerned unicast routing information can be of any unicast routing protocol such as RIP or OSPF.
Router A Router B
Receiver Router C
Figure 4-1 Assert mechanism diagram Assert mechanism helps in choosing a single forwarder in that case. By sending Assert packet, a router can find the shortest path. If two or more paths have the same priority and cost, decide by the IP address of the forwarding routers along the paths. The one with greater IP address is to be selected as the upstream neighbor of the (S, G) entry, which is responsible for forwarding the (S, G) multicast packet.
V. Grafting
When a pruned downstream node needs to be restored to the forwarding state, it may send a graft packet to the upstream node.
4.1.2 PIM-SM
PIM-SM (Protocol Independent Multicast, Sparse Mode) is a kind of multicast routing protocol mainly used in the large-scaled networks where group members are scattered sparsely. As opposed to PIM-DM, PIM-SM assumes that no host needs the multicast packets, unless there is an explicit request. PIM-SM sends multicast information to all PIM-SM routers by configuring the RP (Rendezvous Point) and the BSR (Bootstrap Router), and builds the RP-rooted shared tree (RPT) using the join/prune information of the routers to reduce the bandwidth occupied by data packets and control packets as well as the processing
Huawei Technologies Proprietary 4-2
costs. Multicast data flows along the shared tree to the network segments where the multicast group members are. When the data traffic is massive, the SPT (Shortest Path Tree) rooted on the source can be used to reduce network delay. PIM-SM depends on whichever present unicast routing table to perform the RPF check instead of an unicast routing protocol.
A leaf router locates the corresponding RP when it notices through IGMP packets that a host directly connected to it joins in the multicast group G. It then sends the join message to the upstream node towards the RP. Each router along the path between the leaf router and the RP generates a (*, G) entry in the forwarding table, covering all packets sent to the multicast group G, regardless of the sources. When receiving a packet sent to multicast group G, the RP forwards it through the established path to the leaf router and then to the host. In this way, an RP-rooted tree (RPT) is built as shown in the following figure.
The multicast source S sends a multicast packet to the multicast group G. When the PIM-SM multicast router directly connected to S receives the packet, it will encapsulate the packet into a register packet and send it to the corresponding RP in unicast form. If there are multiple PIM-SM multicast routers on a network segment, the Designated Router (DR) will be responsible to send the multicast packet. 3) SPT switching
When a multicast router detects that the multicast packet with the destination address of G from the RP is sent at a rate greater than the threshold, the multicast router will
send a join message to the node of a higher level toward the source S, which results in switching from the RPT to the SPT.
In a PIM-SM network, multiple Candidate-RPs (C-RPs) can be configured. Each C-RP is responsible for forwarding multicast packets with the destination addresses in a certain range, implementing RP load balancing. These C-RPs are equal. All multicast routers calculate the RP for a connected multicast group by the same algorithm after receiving the RP information reported by the BSR. It should be noted that one RP can serve multiple or all multicast groups, while a multicast group can have one RP at a time. 2) Configure BSR
BSR is the management kernel of the PIM-SM networks. It is responsible for collecting and broadcasting the information sent by C-RPs. There can be only one BSR in a network but multiple Candidate-BSRs (C-BSRs). In this case, if the BSR fails, a candidate can assume its role by automatic election.. 3) Configure static RP
RP is the kernel router for the multicast routing. If the dynamic RP elected by BSR mechanism fails, a static RP can be configured. As the backup of dynamic RP, static RP improves robustness and operability of the multicast network.
Only after the multicast route is enabled, can PIM-DM be valid. PIM-DM or PIM-SM are exclusive on a same interface. When the router runs in the PIM-DM domain, it is recommended to enable PIM-DM on all the interfaces of the non-border router.
Caution: Using the undo pim command clears all the configurations in PIM view.
Table 4-3 Configure the interval of Hello messages Operation Configure the Hello message interval on an interface Restore the default value of the interval Command pim timer hello seconds undo pim timer hello
If the basic access control list is configured, all the multicast data packets received will have their source addresses matched. The packets with source addresses beyond those in the list will be discarded. If the advanced access control list is configured, all the multicast data packets received will have their source and group addresses matched. The packets with source addresses and/or group addresses beyond those in the list will be discarded.
By default, the maximum number of PIM neighbors of an interface is 128. You cannot delete those PIM neighbors beyond the configured limit however, if they exist before you configure the limit.
It is noteworthy that at least one router in an entire PIM-SM domain should be configured with Candidate-RP and Candidate-BSR.
Repeat this operation to enable PIM-SM on other interfaces. Only one multicast routing protocol can be enabled on an interface at a time. Once PIM-SM is enabled on an interface, PIM-DM cannot be enabled on it, and vice versa.
messages but not other PIM packets, thus effectively dividing the network into domains using different BSRs.
C-BSRs should be configured on the routers in the backbone network. By default, no C-BSR is configured. The default value of the priority is 0.
Caution: One router can only be configured with one candidate-BSR. When a new candidate-BSR is configured on another interface, it will replace the previous one. For multicast BSR information learning through GRE-Tunnel, the multicast static route should be configured to guarantee the next hop towards BSR is a GRE interface. The multicast static route should be reasonably configured to avoid the routing loopback.
When configuring a C-RP, if the range of the served multicast groups is not specified, it will serve all multicast groups. Otherwise, it will serve only those within the specified range. It is suggested to configure C-RPs on routers over backbone network.
Caution: In this command, parameter acl-number is not used to perform match filtering, but to define the range of a group. The range of groups under permit will be broadcasted as the served group range of RP. The other choices such as deny are disabled.
If a static RP is in use, all routers in the PIM domain must adopt the same configuration. If the configured static RP address is the interface address of the local
router under UP state, the router will function as the static RP. It is unnecessary to enable PIM on the interface that functions as static RP. Basic ACL can be used to control the range of multicast group served by a static RP. When the RP elected by BSR mechanism is valid, static RP does not work.
If the entry (S, G) of a source group is denied or not defined by the ACL, or there is no ACL, the RP will send RegisterStop information to the DR to stop the registration of this multicast data stream.
Caution: Only the register packets matching the ACL permit clause will be accepted by the RP. Specifying an undefined ACL will cause the RP to deny all register packets.
By default, the threshold is 0. In that case, the last hop router turns to the shortest path tree when it receives the first multicast datagram.
Operation Create an ACL ( in system view) Define rules for a basic ACL (in basic ACL view)
Command acl number acl-number [ basic | advanced | interface ] rule [ rule-id ] { permit | deny } [ source sour-addr sour-wildcard | any ]
For the details of the crp-policy command, refer to VRP3.4 Command Manual.
Command debugging pim sm { all | mbr | register-proxy | mrt | timer | verbose | warning | { recv | send } { assert | bootstrap | crpadv | jp | reg | regstop } }
Note: The debugging pim sm register-proxy command can only be used to enable the debugging in distributed routers where the interface board substitutes the main control board to send register packets.
Note: In practice, a network may comprise routing devices of different vendors that run different routing protocols. In this example, the routing protocol is OSPF.
Serial1/0/0: 10.16.1.2 Serial1/0/0: Router A 10.16.1.1 Ethernet2/0/0: Serial1/1/0: Multicast Source10.16.3.1 10.16.2.1 Serial1/1/0: 10.16.2.2
Router B
Receiver 1
Ethernet2/0/0: 10.16.5.1
Router C
Receiver 2
# Enable multicast.
<Quidway> system-view [Quidway] multicast routing-enable
2)
Configure Router B:
# Enable multicast.
<Quidway> system-view [Quidway] multicast routing-enable
3)
Configure Router C:
# Enable multicast.
<Quidway> system-view [Quidway] multicast routing-enable
4)
On Multicast Source associate multicast programs with multicast addresses, for example, Movie Online with 224.0.1.1. 5) Configure Receiver1/2
Connect Receiver to Multicast Source using HTTP, and select the Movie Online program on the client software.
Multicast Source. On Router B, specify interface Serial1/0/0 as an RP candidate and BSR candidate.
Note: In practice, a network may comprise routing devices of different vendors that run different routing protocols. In this example, the routing protocol is OSPF.
Router B Serial1/0/0: Serial1/1/0: 10.16.3.2 10.16.5.2 Serial4/0/0: 10.16.6.2 Serial1/0/0: 10.16.7.2 Router D
# Enable PIM-SM.
<Quidway> system-view [Quidway] multicast routing-enable [Quidway] interface ethernet 0/0/0 [Quidway-Ethernet0/0/0] pim sm [Quidway-Ethernet0/0/0] igmp enable [Quidway-Ethernet0/0/0] ip address 10.16.1.1 24 [Quidway-Ethernet0/0/0] quit [Quidway] interface serial 1/0/0 [Quidway-Serial1/0/0] pim sm [Quidway-Serial1/0/0] ip address 10.16.2.1 24
# Set the threshold for a specified multicast group to switch from the shared tree to the shortest path tree to 10 kbps.
[Quidway] acl number 2005 [Quidway-acl-basic-2005] rule permit source 224.0.1.1 0.0.0.255 [Quidway-acl-basic-2005] quit [Quidway] pim [Quidway-pim] spt-switch-threshold 10 group-policy 2005
2)
Configure Router C:
# Enable PIM-SM.
<Quidway> system-view [Quidway] multicast routing-enable [Quidway] interface ethernet 0/0/0 [Quidway-Ethernet0/0/0] pim sm [Quidway-Ethernet0/0/0] ip address 10.16.4.1 24 [Quidway-Ethernet0/0/0] quit [Quidway] interface serial 1/0/0 [Quidway-Serial1/0/0] pim sm [Quidway-Ethernet0/0/0] ip address 10.16.2.2 24 [Quidway-Serial1/0/0] quit [Quidway] interface serial 1/1/0 [Quidway-Serial1/1/0] pim sm [Quidway-Ethernet0/0/0] ip address 10.16.5.1 24
3)
Configure Router B:
# Enable PIM-SM.
<Quidway> system-view [Quidway] multicast routing-enable [Quidway] interface serial 1/0/0 [Quidway-Serial1/0/0] pim sm [Quidway-Serial1/0/0] ip address 10.16.3.2 24 [Quidway-Serial1/0/0] quit [Quidway] interface serial 1/1/0 [Quidway-Serial1/1/0] pim sm [Quidway-Serial1/1/0] ip address 10.16.5.2 24 [Quidway-Serial1/1/0] quit [Quidway] interface serial 4/0/0 [Quidway-Serial4/0/0] pim sm [Quidway-Serial4/0/0] ip address 10.16.6.2 24 [Quidway-Serial4/0/0] quit
# Configure an RP candidate.
[Quidway] acl number 2005 [Quidway-acl-basic-2005] rule permit source 224.0.1.1 0 0.255.255.255 [Quidway-acl-basic-2005] quit [Quidway] pim [Quidway-pim] c-rp serial 1/0/0 group-policy 2005 [Quidway-pim] quit
4)
Configure Host A
Connect Host to Multicast Source using HTTP, and select the Movie Online program on the client software. 5) Configure Multicast Source
On Multicast Source associate multicast programs with multicast addresses, for example, Movie Online with 224.0.1.1. After you configure the boundary on interface Serial4/0/0, Router D can no longer receive BSR information from Router B as being excluded from the IPM domain. Suppose Host A is a receiver of the Movie Online program and Multicast Source sends data with the destination address of 224.0.1.1. In the beginning, Router A receives the data through Router B. When the rate of multicast data exceeds 10 kbps, Router A joins the shortest path tree and directly receives data through Router C.
3)
The RP in domain 1 decapsulates the packet and forwards it along the RPT to all the members within the domain. The domain members can choose to take the path along SPT.
4)
The RP in domain 1 generates an SA (Source Active) message for the MSDP peers (the RPs in PIM-SM domain 2 and domain 3). The SA message contains multicast source IP address, multicast group address, the RP address as well as the multicast this RP first receives.
5)
If there is any group member in the domain of an MSDP peer (in the figure, it is PIM-SM domain 3), the RP in this domain sends the multicast data encapsulated in the SA message to group members along the RPT and the join message to multicast source.
6)
After the reverse forwarding path is created, the multicast source data is sent directly to the RP in domain 3, which then RP forwards the data along the RPT. In this case, the last hop router connected with the group member in domain 3 can choose whether to switch to SPT.
PIM-SM 1 DR 1 Register 2 Group 3 Member RP&MSDP Peer 4 4 PIM-SM 2 PIM-SM 3 4 RP&MSDP Peer 5 Source 5
RP&MSDP Peer
Group Member
Figure 5-1 MSDP working principles I As shown in Figure 5-2, RTA, RTB, RTC, RTD, RTE and RTF belong to domain 1, domain 2 and domain 3 respectively. MSDP peer relationship is established between them, indicated with bi-directional arrows in the figure. Among them, Mesh Group is created among RTB, RTC and RTD. The SA message forwarding and RPF check among these MSDP peers are illustrated as follows: 1) 2) If the SA message is from an MSDP peer that is the RP of the multicast source as from RTA to RTB, it is received and forwarded to other peers. If the SA message is from an MSDP peer that has only one peer as from RTB to RTA, it is received.
3) 4) 5)
If the SA message is from a static RPF peer as from RTD to RTE, it is received and forwarded to other peers. If the SA message is from an MSDP peer in Mesh Group as from RTB to RTD, it is received and forwarded to the peers outside the Mesh Group. If the SA message is sent from an MSDP peer in a same domain, and the peer is the next hop along the optimal path to the RP in the domain of source, as in the case when the message is from RTE to ETF, it is received and forwarded to other peers.
6)
If the SA message is sent from an MSDP peer in a different domain which is the next autonomous domain along the optimal path to the RP in the domain of source, as from RTD to RTF, it is received and forwarded to other peers.
7)
RTE
RTF
Note: The router operating with MSDP must also run BGP or MBGP. It is recommended to use the same IP address of the MSDP peer with that of the BGP peer or MBGP peer. If neither BGP nor MBGP is in operation, a static RPF peer should be configured.
Command peer peer-address description text undo peer peer-address description text
The command for description is optional. If the local router is also in BGP Peer relation with an MSDP peer, the MSDP peer and the BGP peer should use the same IP address.
By default, no static RPF peer is configured. The peer command must be configured before the configuration of static-rpf-peer command. If only one MSDP peer is configured via the peer command, the MSDP peer will be regarded as the static RPF peer. To configure multiple static RPF peers at the same time, take any of the two methods: Using rp-policy parameters universally: Multiple static RPF peers take effect at the same time and SA messages are filtered by the RP addresses contained according to the configured prefix list. If multiple static RPF peers using the same rp-policy parameter are configured, any peer that receives an SA message will forward it to the other peers. Not using the rp-policy parameter universally: According to the configuration sequence, only the first static RPF peer whose connection state is UP is activated. All SA messages from the peer will be received and those from other static RPF peers will be discarded. Once the activated static RPF peer turns invalid (possibly out of configuration removed or connection interrupted), the following first static RPF peer with UP connection state according to the configuration sequence will assume its role.
By default, the RP address in SA message is the one configured by PIM. If interface specified using the originating-rp command is not configured with an IP address or it is down, the system does not send SA message. At this time if multiple RPs are configured on the device, the system will not select other RPs to send SA message. Therefore, you must ensure the validity of the specified interface; otherwise, it is considered as configuration problem.
5.2.5 Caching SA
When SA messages are cached on a router, the new join-in groups can directly access all the active sources and join the corresponding source tree, instead of waiting for the arrival of the next SA message. Perform the following configuration in MSDP view. Table 5-5 Cache SA Operation Cache SA Disable SA caching Command cache-sa-enable undo cache-sa-enable
By default, the router caches the SA state, or rather the (S, G) entry when receiving an SA message. Some memory is consumed as the join delay of groups is shortened by this configuration.
Perform the following configuration in MSDP view. Table 5-6 Configure the maximum number of SAs cached Operation Configure the maximum number of SAs cached Restore the default configuration Command peer peer-address sa-cache-maximum sa-limit undo peer peer-address sa-cache-maximum
The SA request message sent by a local RP will get the immediate response about all active sources. By default, the router does not send SA request message to its MSDP peer when receiving the join message of a group. Instead, it waits for the arrival of SA message of the next period.
Table 5-8 Filter the multicast routing entries imported Operation Advertise only the (S, G) entries permitted by the ACL Remove the above configuration Command import-source [ acl acl-number ] undo import-source
By default, only intra-domain sources are advertised in SA messages. If the import-source command without acl parameter is executed, no source is advertised in SA messages.
By default, only the routers caching SA messages can respond to SA request messages; and routers receive all the SA request messages sent by their MSDP peers. Multicast group addresses are described in ACL. If no ACL is specified, all SA request messages sent by the corresponding MSDP peer will be ignored. If ACL is specified, only SA request messages of the groups permitted by the ACL will be processed.
Forwarding only the SA messages permitted by the advanced ACL Perform the following configuration in MSDP view. Table 5-10 Use MSDP outbound filter to control the source information forwarded Operation Filter off all the SA messages to a specified MSDP peer Forward the SA messages permitted by the advanced ACL to a specified MSDP peer Cancel the filtering over the source information forwarded Command peer peer-address sa-policy export peer peer-address sa-policy export [ acl acl-number ] undo peer peer-address sa-policy export
Operation Receive the SA messages permitted by the advanced ACL from a specified MSDP peer Cancel the filtering rule over received source information
Command peer peer-address sa-policy import [ acl acl-number ] undo peer peer-address sa-policy import
Similar to MSDP outbound filter in function, MSDP inbound filter controls the received SA messages.. By default, the SA messages from all peers are accepted.
If an MSDP peer is configured into different mesh groups, only the last configuration is valid.
Table 5-17 Display and debug MSDP Operation Display the numbers of sources and groups of SA messages from a specified autonomous domain Display the details of an MSDP peer Display the (S, G) state learnt from MSDP peer Display MSDP peer state Enable MSDP debugging Command display msdp sa-count [ as-number ] display msdp peer-status [ peer-address ] display msdp sa-cache [ group-address | [ source-address ] ] [ autonomous-system-number ] display msdp brief debugging msdp { all | connect | event | packet | source-active }
Note: Only after the cache-sa-enable command is executed, will the display msdp sa-count command have output.
Information loss and configuration faults can be reduced by tracing the network path of the specified (S, G, RP) entries. Once the transmission path of SA messages is determined, correct configuration can prevent the overflow of SA messages.
SA 10.25.1.1
RTC
RTB
Note: This example focuses on the configuration of RTA and RTB. Configuration performed on RTE, RTD and RTC is omitted as it mainly concerns enabling multicast and enabling PIM-SM on the interfaces.
RTE
Loopback0 Loopback10 10.21.1.1 10.1.1.1 Loopback 0: MSDP peer address Serial1/0/0 RTA & Originating RP 10.21.2.1/24 SRC B
RTC
# Enable multicast.
<Quidway> system-view [Quidway] multicast routing-enable
# Configure OSPF.
[Quidway] ospf [Quidway-ospf-1] area 0 [Quidway-ospf-1-area-0.0.0.0] network 10.10.2.0 0.255.255.255 [Quidway-ospf-1-area-0.0.0.0] network 10.10.3.0 0.255.255.255 [Quidway-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] network 10.10.1.1 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] quit [Quidway-ospf-1] quit
2)
Configure RTA:
# Enable multicast.
[Quidway] multicast routing-enable
Enable MSDP and configure an Anycast RP in PIM-SM domain 1; establish MSDP peer relationship among RPs across PIM-SM domains; and use MBGP between domains (For commands of this part, refer to the next chapter).
Note: To present the configurations of MSDP and IGMP clearly, suppose no receivers exist in PIM-SM domain 1, and the receives added to a multicast group in domains 2 through 4 are connected to the Ethernet interfaces on the routers. For configuration of RTF, refer to the configurations of RTA and RTE. The configurations of RTC and RTD are simpler; you need only to enable multicast routing on them. For configurations of RTH and RTI, refer to the configurations of RTG.
PIM-SM domain 2 e0/0/0:20.1.1.1 Loopback0 10.28.1.1 RTG Serial1/0/0 SRC APIM-SM domain 1 Serial1/1/0 RTA Loopback10 Loopback0 10.1.1.1 10.25.1.1 Ethernet0/0/0 Ethernet: 10.25.2.0 RTB Loopback0 10.25.1.2 SRC B RTC Ethernet: 10.26.2.0 RTE Loopback10 10.1.1.1 Loopback0 10.26.1.2 Serial1/0/0 Loopback0 10.27.1.2 Serial1/0/0 Serial1/1/0 Loopback0 Loopback0 10.26.1.1 10.27.1.1 RTD SRC C
# Enable multicast.
<Quidway> system-view [Quidway] multicast routing-enable
# Configure OSPF.
[Quidway] ospf [Quidway-ospf-1] area 0 [Quidway-ospf-1-area-0.0.0.0] network 10.25.2.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] network 10.25.1.1 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] quit [Quidway-ospf-1] quit
2)
Configure RTE:
# Enable multicast.
[Quidway] multicast routing-enable
# Configure OSPF.
[Quidway] ospf [Quidway-ospf-1] area 0 [Quidway-ospf-1-area-0.0.0.0] network 10.26.2.0 0.255.255.255 [Quidway-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] network 10.26.1.2 0.0.0.0 [Quidway-ospf-1-area-0.0.0.0] quit [Quidway-ospf-1] quit
3)
Configure RTB:
# Enable multicast.
[Quidway] multicast routing-enable
4)
Configure RTG
# Enable multicast.
<Quidway> system-view [Quidway] multicast routing-enable
# Assign an IP address to interface ethernet0/0/0 and enable PIM-SM and IGMP on it.
[Quidway] interface ethernet0/0/0 [Quidway-ethernet0/0/0] ip address 20.1.1.1 255.255.255.255 [Quidway-ethernet0/0/0] pim sm [Quidway-ethernet0/0/0] igmp enable [Quidway-ethernet0/0/0] quit
5)
On Multicast Source associate multicast programs with multicast addresses, for example, Movie Online with 224.0.1.1. 6) Configure the Receivers
Connect the Receivers to Multicast Source using HTTP, and select the Movie Online program on the client software.
(Network Layer Reachability Information), with 1 for the unicast mode of NLRI, and 2 for the multicast mode of NLRI.
I. MP_REACH_NLRI attribute
MP_REACH_NLRI is an optional non-transitive attribute, and can be used to: Send the routing information to a new protocol. Send the next hop information about the new protocol with the same coding mode as that of NLRI. Enable the router to report part or all of the SNPAs (Sub-network Points of Attachment) saved in the local system.
information among peers. It consists of three parts at the most: MP_UNREACH_NLRI, Path Attributes and MP_REACH_NLRI.
Note: Only configuration tasks in IPv4 multicast sub-address family view are detailed below. Other tasks configured in BGP or system view are only briefed. For the detailed configuration, refer to the BGP Configuration and IP Routing policy" sections in Routing Protocol of this manual.
Table 6-1 Enable the MBGP multicast extension protocol Operation Enter the MBGP multicast address family view Remove the MBGP multicast address family view Command ipv4-family multicast undo ipv4-family multicast
By default, the system does not run the MBGP multicast extension protocol.
By default, no route is advertised by the local MBGP. The network command advertises only the precisely matched route, the one with prefix and mask completely conforming to the configuration. If no mask is specified, match goes by the natural network segment.
Caution: Configure the peer group under the guide of technical support engineers.
Perform the configurations in the following subsections in IPv4 multicast sub-address family view.
reflector, all the IBGP peers stay belong to a same group. Otherwise, all the route reflection clients belong to one group, and others to another. EBGP peer group members must be in a same network segment. Otherwise, the route updating packets sent from a router might be discarded by some EBGP peers. IBGP peer and EBGP peer cannot be added into one group. Table 6-3 Create a peer group and adding members Operation Create a peer group Delete the specified peer group Add a peer into the peer group Delete a peer from the peer group Reset the connection among all members in the peer group (in user view) Command group group-name undo group group-name peer peer-address group group-name undo peer peer-address group group-name reset bgp group group-name
By default, there is no route reflector in an autonomous system. It is generally unnecessary to configure this command for a peer group. This command is reserved for the occasional compatibility with the network equipments of other vendors.
V. Configuring the local address as the next hop when advertising routes
This involves removing the next hop configuration in the routing information advertised to a peer/peer group and configuring the local address as the next hop address. It is valid only for IBGP peers/peer groups. Table 6-7 Configure the local address as the next hop when advertising routes Operation Configure the local address as the next hop when advertising routing information Cancel the above configuration Command peer group-name next-hop-local undo peer group-name next-hop-local
VII. Configuring the maximum times that the local AS number can be received
You may restrict the times that the local AS number is allowed to be present in the received routing updates.
Huawei Technologies Proprietary 6-7
Perform the following configuration in IPv4 multicast subaddress family view. Table 6-9 Configure the times that the local AS number can be received Operation Configure the times that the local AS number can be received. Cancel the above configuration. Command peer { group-name | peer-address } allow-as-loop [ number ] undo peer { group-name | peer-address } allow-as-loop
Operation Disable MBGP to filter the received routes. Configure MBGP to filter the routes advertised to the specified peer or peer group based on the specified ACL. Disable MBGP to filter the advertised routes.
Command undo peer { group-name | peer-address } ip-prefix prefixname import peer group-name filter-policy acl-number export undo peer group-name filter-policy acl-number export
For the details of principles and configuration, refer to the BGP Configuration section in Routing Protocol of this manual.
By default, MBGP does not import any route of other protocols. Parameter Protocol specifies the source routing protocols of import, which can be direct, static, rip, isis, ospf, ospf-ase or ospf-nssa at present.
Display the routes permitted by the specified MBGP community list Display the routes with inconsistent source autonomous systems Display the routing information to or from a specified multicast neighbor Display the routing information advertised by MBGP Display the peer group information
Operation Display information on MBGP peers. Enable the debugging of MBGP UPDATE packets
Command display bgp multicast peer [ ip-address | verbose] debugging bgp mp-update [ receive| send | verbose ]
1.1.1.1
network 2.0.0.0 AS200 2.2.2.2 Serial1/1/0 Serial1/0/0 194.1.1.2/24 192.1.1.2/24 Serial1/0/0 RouterB Serial1/0/0 194.1.1.1/24 192.1.1.1/24 IBGP 4.4.4.4 EBGP
RouterD IBGP network EBGP 3.3.3.3 RouterA Serial1/1/0 1.0.0.0 Serial1/1/0 193.1.1.1/24 195.1.1.1/24 network Serial1/0/0 AS100 4.0.0.0 Serial1/1/0 193.1.1.2/24 195.1.1.2/24 RouterC network 3.0.0.0
<Quidway> system-view [Quidway] interface serial 1/0/0 [Quidway-Serial1/0/0] ip address 192.1.1.1 255.255.255.0 [Quidway-Serial1/0/0] quit [Quidway] interface serial 1/1/0 [Quidway-Serial1/1/0] ip address 193.1.1.1 255.255.255.0
# Enable MBGP.
[Quidway] bgp 100 [Quidway-bgp] ipv4-family multicast
# Configure the MED attribute of Router A. # Add an ACL on Router A to permit network 1.0.0.0.
[Quidway] acl number 2001 [Quidway-acl-basic-2001] rule permit ip source 1.0.0.0 0.255.255.255
# Define two routing policies: set_med_50 and set_med_100, providing two MED values for network 1.0.0.0 (50 and 100).
[Quidway] route-policy set_med_50 permit node 10 [Quidway-route-policy] if-match acl 2001 [Quidway-route-policy] apply cost 50 [Quidway-route-policy] quit [Quidway] route-policy set_med_100 permit node 10 [Quidway-route-policy] if-match acl 2001 [Quidway-route-policy] apply cost 100
# Apply the routing policy set_med_50 to the exported route updates of Router C (193.1.1.2). Apply the routing policy set_med_100 to the exported route updates of Router C (192.1.1.2).
[Quidway] bgp 100 [Quidway-bgp] ipv4-family multicast [Quidway-bgp-af-mul] peer a2 route-policy set_med_50 export
2)
Configure Router B:
<Quidway> system-view [Quidway] interface serial 1/0/0 [Quidway-Serial1/0/0] ip address 192.1.1.2 255.255.255.0 [Quidway-Serial1/0/0] quit [Quidway] interface serial 1/1/0 [Quidway-Serial1/1/0] ip address 194.1.1.2 255.255.255.0 [Quidway-Serial1/1/0] quit [Quidway] ospf [Quidway-ospf-1] area 0 [Quidway-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] network 192.1.1.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] quit [Quidway-ospf-1] quit [Quidway] bgp 200 [Quidway-bgp] undo synchronization [Quidway-bgp] group b1 external [Quidway-bgp] peer 192.1.1.1.1 group b1 as-number 100 [Quidway-bgp] group b2 internal [Quidway-bgp] peer 194.1.1.1.1 group b1 as-number 200 [Quidway-bgp] peer 195.1.1.1.2 group b1 as-number 200 [Quidway-bgp] ipv4-family multicast [Quidway-bgp-af-mul] peer b1 enable [Quidway-bgp-af-mul] peer 192.1.1.1 group b1 [Quidway-bgp-af-mul] peer b2 enable [Quidway-bgp-af-mul] peer 194.1.1.1 group b2 [Quidway-bgp-af-mul] peer 195.1.1.2 group b2
3)
Configure Router C:
<Quidway> system-view [Quidway] interface serial 1/0/0 [Quidway-Serial1/0/0] ip address 193.1.1.2 255.255.255.0 [Quidway-Serial1/0/0] quit [Quidway] interface serial 1/1/0 [Quidway-Serial1/1/0] ip address 195.1.1.2 255.255.255.0 [Quidway-Serial1/1/0] quit [Quidway] ospf [Quidway-ospf-1] area 0 [Quidway-ospf-1-area-0.0.0.0] network 193.1.1.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] quit [Quidway-ospf-1] quit [Quidway] bgp 200
[Quidway-bgp] undo synchronization [Quidway-bgp] group c1 external [Quidway-bgp] peer 193.1.1.1 group c1 as-number 100 [Quidway-bgp] group c2 internal [Quidway-bgp] peer 194.1.1.2 group c2 as-number 200 [Quidway-bgp] peer 195.1.1.1 group c2 as-number 200 [Quidway-bgp] ipv4-family multicast [Quidway-bgp-af-mul] peer c1 enable [Quidway-bgp-af-mul] peer 193.1.1.1 group c1 [Quidway-bgp-af-mul] peer c1 next-hop-local
[Quidway-bgp-af-mul] peer c2 enable [Quidway-bgp-af-mul] peer 194.1.1.2 group c2 [Quidway-bgp-af-mul] peer 195.1.1.1 group c2 [Quidway-bgp-af-mul] peer c2 next-hop-local
# Configure the local preference attribute of Router C. # Add ACL 2001 on Router C to permit network 1.0.0.0.
[Quidway] acl number 2001 [Quidway-acl-basic-2001] rule permit source 1.0.0.0 0.255.255.255 [Quidway-acl-basic-2001] quit
# Define the routing policy named "localpref". Set the local preference for the routes matching ACL 2001 to 200, and otherwise, to 100.
[Quidway] route-policy localpref permit node 10 [Quidway-route-policy] if-match acl 2001 [Quidway-route-policy] apply local-preference 200 [Quidway-route-policy] quit [Quidway] route-policy localpref permit node 20 [Quidway-route-policy] apply local-preference 100
# Apply this routing policy to the inbound traffic from BGP neighbor 193.1.1.2 (Router A).
[Quidway] bgp 200 [Quidway-bgp] ipv4-family multicast [Quidway-bgp-af-mul] peer c1 route-policy localpref import
4)
Configure Router D:
<Quidway> system-view [Quidway] interface serial 1/0/0 [Quidway-Serial1/0/0] ip address 194.1.1.1 255.255.255.0 [Quidway-Serial1/0/0] quit [Quidway] interface serial 1/1/0 [Quidway-Serial1/1/0] ip address 195.1.1.1 255.255.255.0 [Quidway-Serial1/1/0] quit [Quidway] ospf
[Quidway-ospf-1-area-0.0.0.0] network 194.1.1.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] network 195.1.1.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] network 4.0.0.0 0.0.0.255 [Quidway-ospf-1-area-0.0.0.0] quit [Quidway-ospf-1] quit [Quidway] bgp 200 [Quidway-bgp] undo synchronization [Quidway-bgp] group d1 internal [Quidway-bgp] peer 194.1.1.2 group d1 [Quidway-bgp] peer 194.1.1.2 group d1 [Quidway-bgp] ipv4-family multicast [Quidway-bgp-af-mul] peer d1 enable [Quidway-bgp-af-mul] peer 195.1.1.2 group d1 [Quidway-bgp-af-mul] peer 194.1.1.2 group d1
To make the configuration effective, the reset bgp all command on all MBGP neighbors.
Figure 7-1 Transmit a multicast datagram over a tunnel Multicast static routes only have effect on the related multicast routers and will not be advertised or imported to any other router in any way.
Note: Multiple multicast static routes on a same network segment are matched by order of configuration. It is therefore very important to ensure the correct configuration sequence.
Remove a multicast static route from the multicast static routing table Remove all the multicast static routes
source/mask, protocol and route-policy are key factors for multicast static routes. The routes are considered different if any of the three have different configurations. Check the multicast static routing tree before configuring any. If the desired already exists, modify the relevant fields as necessary (not the configuration order field); otherwise, configure to add it. Each network segment allows 8 different configurations.
Note: The multicast static route may not become effective as soon as the ip rpf-route-static is configured, once outbound interfaces cannot be iterated or the specified interface goes "DOWN". Therefore, when performing this configuration, it is recommended to use the display multicast routing-table static config command to check whether the route has been successfully configured and the display multicast routing-table static command to check whether the route becomes effective.
Table 7-2 Configure the multicast RPF route selecting policy Operation Apply the longest-match rule Restore the default configuration Command ip rpf-longest-match undo ip rpf-longest-match
Tunnel1
RT0 RT2
The first command allows the matching-rule-compliant multicast source information in the domain to pass the RPF check when it reaches RT1 through RT2. The second command allows the multicast source information outside the domain to pass the RPF check when it reaches RT1 through tunnel1.