Beruflich Dokumente
Kultur Dokumente
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.0
2011-08-30
First revision
R1.0
2009-01-08
First edition
Contents
About This Manual ......................................................................................... I
Chapter 1 Safety Instructions.................................................................... 1-1
1.1 Safety Introduction ............................................................................................. 1-1
1.2 Safety Description .............................................................................................. 1-1
II
Figures............................................................................................................. I
Tables ............................................................................................................ III
Glossary .........................................................................................................V
IV
Intended Audience
This manual is intended for the following engineers:
l
l
l
Summary
Configuration
Chapter 8 Load Balancing
Configuration
Chapter 9 Multicast Routing
Configuration
IP multicast
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.
II
Chapter 1
Safety Instructions
Table of Contents
Safety Introduction .....................................................................................................1-1
Safety Description ......................................................................................................1-1
Meaning
Note
Important
Result
Example
1-1
SJ-20110803091932-005|2011-08-30 (R2.0)
1-2
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 2
Function
ZXR10(config)#ip route [ vrf < vrf-name> ] < prefix> < net-mask> { <
Description
< vrf-name>
< distance-metric>
< tag>
2-1
SJ-20110803091932-005|2011-08-30 (R2.0)
Tip:
Tag is a route label. Two static routes (with different next hop IP addresses) to the same
destination network cannot have the same tag value.
Function
in protocol stack.
2-2
SJ-20110803091932-005|2011-08-30 (R2.0)
For R1 accessing the network on R3, two configuration methods are available:
l
Method One
R1(config)#ip route 192.168.5.0 255.255.255.0 192.168.4.2
R1(config)#ip route 192.168.6.0 255.255.255.0 192.168.4.2
Method Two
R1(config)#ip route 192.168.5.0 255.255.255.0 ce1_2/1.1
R1(config)#ip route 192.168.6.0 255.255.255.0 ce1_2/1.1
It is similar to method one and the only difference is that the next-hop IP address
is used in method one, while local interface is used in this configuration. That is,
all packets to 192.168.5.0/24 and 192.168.6.0/24 are sent out through CE1 interface
ce1_2/1.1 instead of being routed to logic address of the next-hop. The local interface
mode is not applicable to Ethernet interfaces.
If there are multiple paths to the same destination, a router is configured with multiple
static routes with different administrative distances. However, routing table only displays
information of the route with the minimum administrative distance. The reason is that when
router is informed of multiple competition sources to a network, the route with the minimum
administrative distance takes the precedence.
The parameter < distance-metric> in the static route configuration command ip route can
be used to change the administrative distance of a static route. Suppose that there are
two different routes from R1 to 192.168.6.0/24, which are configured as follows:
R1(config)#ip route 192.168.6.0 255.255.255.0 192.168.4.2
R1(config)#ip route 192.168.6.0 255.255.255.0 192.168.3.2 25
With the above two commands, two different static routes to the same network are
configured. The first command does not configure the administrative distance, so the
default value 1 is used. The second command sets the administrative distance to 25.
The administrative distance of the first route is less than that of the second one, the
routing table will only show information of the first route, that is, the router arrives at the
destination network 192.168.6.0/24 only through the next hop 192.168.4.2. The second
route is present in the routing table only when the first one is invalid and disappears from
the routing table.
2-3
SJ-20110803091932-005|2011-08-30 (R2.0)
As shown in Figure 2-2, R3 has two networks: 10.1.0.0/16 and 10.2.0.0/16. For R1
accessing these networks, the following two static routes are configured on R1 in usual
cases:
R1(config)#ip route 10.1.0.0 255.255.0.0 192.168.4.2
R1(config)#ip route 10.2.0.0 255.255.0.0 192.168.4.2
Suppose that R3 has been configured normally, the above configuration can be used to
complete IP connection. However, the static route summary can be used to optimize the
routing table of R1, and the following command can be used to replace the above two
commands.
R1(config)#ip route 10.0.0.0 255.0.0.0 192.168.4.2
The above command shows that all packets to the destination network 10.0.0.0/8 pass
192.168.4.2. That is, all subnet packets (here refer to 10.1.0.0/16 and 10.2.0.0/16) with
the destination to be 10.0.0.0/8 are sent to 192.168.4.2. In this way, static route is used to
summarize all subnets of main network 10.0.0.0/8.
2-4
SJ-20110803091932-005|2011-08-30 (R2.0)
As shown in Figure 2-3, R2 is connected to R3 in Internet. R2 does not record all the
network addresses in Internet, so it uses the default route to directly send unknown packets
to R3 for proper processing. The configuration of default route of R2 is as follows.
R2(config)#ip route 0.0.0.0 0.0.0.0 211.211.211.2
The configuration method of default route is completely the same with that of static route
except that its network address and subnet mask are 0.0.0.0. This can be seen in routing
table of R2.
R2#show ip route
IPv4 Routing Table:
Dest
Mask
Gw
0.0.0.0
0.0.0.0
211.211.211.2
Net
Owner
static
As shown in the routing table, the default route with the next-hop address to be
211.211.211.2 is added to the routing table as the last route.
2-5
SJ-20110803091932-005|2011-08-30 (R2.0)
When being used in routing protocol configuration, default route varies with routing
protocols.
If the default route is configured on a router running with RIP, RIP will advertise the default
route 0.0.0.0/0 to its neighbors, without redistributing route in RIP domain.
As for OSPF protocol, the router running with OSPF will not advertise the default route to
its neighbors automatically. To make OSPF send the default route to OSPF domain, the
command default-information originate must be used. If it is necessary to redistribute the
default route in OSPF domain, this advertisement is implemented by Autonomous System
Border Router (ASBR) in the OSPF domain.
2-6
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 3
RIP Configuration
Table of Contents
RIP Overview .............................................................................................................3-1
Configuring RIP..........................................................................................................3-2
Configuring RIP Maintenance and Diagnosis..............................................................3-6
RIP Configuration Example ........................................................................................3-7
RIPv2 supports Classless Inter-Domain Routing (CIDR) and Variable Length Subnet
Masks (VLSM).
The protocol packet can contain authentication data.
The protocol packet can be advertised in mode of multicast.
RIPv2 is introduced in the following part. Unless otherwise specified, RIP refers to RIPv2.
3-1
SJ-20110803091932-005|2011-08-30 (R2.0)
Update timer
Invalid timer
Holddown timer
Flush timer
Format
Function
ZXR10(config)#router rip
3-2
SJ-20110803091932-005|2011-08-30 (R2.0)
Step
Format
Function
Format
Function
Description
< update>
It is the rate of sending update packets (in seconds), in range of 1-65535 with 30
seconds to be the default value. It is a basic parameter of routing protocol.
< invalid>
It is the period (in seconds) before a route is declared to be invalid, in range of 1-65535
with 180 seconds to be the default value. This parameter is suggested to be at least
3 times larger than parameter update. Once a route is received, in case there is no
route update before the invalid period expires, the route is invalid. Now, the route is
in holddown state. If the parameter holddown is set to 0, flush timer is enabled directly.
< holddown>
It is the period (in seconds) of holding down route update, in range of 0-65535 with
180 seconds to be the default value. This parameter is suggested to be at least
3 times larger than parameter update. When the router receives the update packet
but learns that the route is unreachable, or when invalid timer expires, the route will
be invalid and enter the holddown state. The route will be marked as inaccessible in
the routing table and advertised as unreachable, but it can still be used to forward
packets. After the holddown period, router can receive the routes advertised by other
sources, and the route can be accessed again.
< flush>
It is the period (in seconds) started from a route entry getting invalid to this route being
cleared, in range of 1-65535 with 240 seconds to be the default value. The specified
time mustnt be less than the holddown time. Otherwise, the holddown period will be
improper, which causes that new routes will be received before the holddown time
expires.
3-3
SJ-20110803091932-005|2011-08-30 (R2.0)
Description
< packets>
< delay>
The delay of sending multiple RIP update packets (in milliseconds), in range of 0-100.
Format
Function
ZXR10(config)#router rip
Format
Function
Format
Function
ZXR10(config-if)#ip split-horizon
ZXR10(config-if)#ip poison-reverse
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
ZXR10(config)#router rip
Format
Function
Format
Function
ZXR10(config)#router rip
ZXR10(config-router)#version { 1 | 2}
ZXR10(config-router)#exit
3-5
SJ-20110803091932-005|2011-08-30 (R2.0)
Step
Format
Function
Function
ZXR10 ZSR also provides debug commands to debug RIP and trace relevant information,
use the following commands.
Format
Function
ZXR10#debug ip rip
Example
This example describes the output information of debug ip rip command.
ZXR10#debug ip rip
RIP protocol debugging is on
ZXR10#
11:01:28: RIP: building update entries
130.1.0.0/16 via 0.0.0.0, metric 1, tag 0
130.1.1.0/24 via 0.0.0.0, metric 1, tag 0
177.0.0.0/9 via 0.0.0.0, metric 1, tag 0
3-6
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R1:
ZXR10_R1(config)#router rip
ZXR10_R1(config-router)#network 10.1.0.0 0.0.255.255
ZXR10_R1(config-router)#network 192.168.1.0 0.0.0.255
Configuration of R2:
ZXR10_R2(config)#router rip
ZXR10_R2(config-router)#network 10.2.0.0 0.0.255.255
ZXR10_R2(config-router)#network 192.168.1.0 0.0.0.255
3-7
SJ-20110803091932-005|2011-08-30 (R2.0)
3-8
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 4
OSPF Configuration
Table of Contents
OSPF Overview .........................................................................................................4-1
Configuring OSPF ......................................................................................................4-7
Configuring OSPF Maintenance and Diagnosis ........................................................4-14
OSPF Configuration Example...................................................................................4-16
Fast Convergence
It guarantees database synchronization by means of fast flooding of link state update
packets, and calculates the routing table simultaneously.
No loop
Shortest Path First (SPF) algorithm is used to ensure that no loop is generated.
Route aggregation
It reduces the size of routing table
l
l
SJ-20110803091932-005|2011-08-30 (R2.0)
Broadcast network
Non-broadcast Multi-access (NBMA) network
Point-to-Point network
Point-to-Multipoint network
Virtual links
Hello interval
The Hello interval is an attribute of the interface, defining the interval for a router to
send Hello packets from each of its interface. The default hello interval depends on
the network type.
In the broadcast network and point-to-point network, the default hello interval is 10
seconds; in the NBMA network and point-to-multipoint network, it is 30 seconds.
The neighboring routers must agree on the hello interval to enable them to become
neighbors.
Polling Interval
It is only used in NBMA network.
Therefore, OSPF defines a Designated Router (DR) and a Backup Designated Router
(BDR). Adjacency must be established between DR/BDR and each OSPF router in the
network, and each OSPF router only establishes adjacency with DR/BDR.If DR is down,
BDR will become the DR.
Internal router
4-4
SJ-20110803091932-005|2011-08-30 (R2.0)
Backbone router
At least one interface of the router is in area 0.
LSA Name
Description
Router LSA
Router LSA is the basic type of LSA, all OSPF routers can generate this type of
No.
Type 1
LSA. It is mainly used to describe the connection status and cost of an interface
where OSPF is enabled. ABR generates one Router LSA for each area. This
type of LSA is transmitted within the entire areas it belongs to.
Type 2
Network LSA
Type 3
Network Summary
LSA
of an area that ABR belongs to, ABR searches routing table and encapsulates
each OSPF route in this area to a Network Summary LSA and send it out.
Network Summary LSA introduces the destination, mask, cost and other
information of a route. It can be distributed to all areas of ABR except for the
area where this LSA is generated.
Type 4
4-5
SJ-20110803091932-005|2011-08-30 (R2.0)
Type
LSA Name
Description
AS External LSA
No.
Type 5
mainly used to describe the route pointing to an address outside of the AS. This
type of LSA is the only type that is not related to area. This type of LSA can be
distributed over the whole AS (except STUB area).
Type 7
The operation of OSPF depends on all routers sharing the same public LSDB in one area.
Therefore, all LSAs need to be flooded through this area and the processing must be
reliable. Each router will flood the LSAs that it receives from a particular area to the other
interfaces in this area.
LSAs do not have their own packets. They are included in Link State Update (LSU) packets
and it is ok to include multiple LSAs in one LSU.
When a router receives an LSU packet, instead of forwarding it directly, the router extracts
LSAs from the packet and delivers them into its database. In addition, the router generates
its own LSU and forwards the modified LSU to its neighbors.
OSPF sends Link State Acknowledgements (LSAck) to verify if each LSA is received
by neighbors. An LSAck contains the head of verified LSA , which provides sufficient
information to identify an LSA uniquely.
When a router sends an LSA to an interface, the LSA is recorded in the
retransmission-queue of the interface. The router will wait for the maximum interval to
receive the LSAck of this LSA. If router fails to receive the LSAck within the preset time, it
will resend this LSA.
A router can send the original LSU in mode of unicast or multicast, but as for the
re-transmitted LSU, only unicast mode is available.
Format
Function
Description
< process-id>
< vrf-name>
4-7
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
Format
Function
Tip:
When network devices from different manufacturers are used together, make sure these
OSPF devices are compatible with each other. For example, all routers must use the same
algorithm to calculate interface cost.
4-8
SJ-20110803091932-005|2011-08-30 (R2.0)
Command
Function
Format
Function
non-broadcast network.
It needs to traverse all interfaces. When a neighbors IP address is in the same network
segment with interface IP address, connect the neighbor to this interface.
Format
Function
area.
Description
< area-id>
SJ-20110803091932-005|2011-08-30 (R2.0)
Parameter
Description
< metric-value>
< type>
It's the type of type 7 LSA of default route. Two types are available:
ext-1 and ext-2.
Format
Function
summary address.
Format
Function
Description
< metric-value>
SJ-20110803091932-005|2011-08-30 (R2.0)
Parameter
Description
< type>
Define the type of default route. Two types are available: ext-1
and ext-2, ext-2 by default.
< map-tag>
Define the route map name for this default route, with the length to
be 1-16 characters.
When route redistribution is configured on a router, it becomes an ASBR. ASBR does not
automatically advertise the default route over the whole OSPF area by default. When
executing corresponding command to configure a router to advertise a default route, this
router becomes an ASBR automatically.
Format
Function
Description
< area-id>
< router-id>
4-11
SJ-20110803091932-005|2011-08-30 (R2.0)
Parameter
Description
< key>
< keyid>
< cryptkey>
It is the md5 authentication key on the virtual link, with the length to
be 1-16 characters.
< time>
Format
Function
Description
< protocol>
Filter routes according to protocol. The value can be connected, static, rip,
bgp-ext, bgp-int, isis-1, isis-1-2, and isis-2.
4-12
SJ-20110803091932-005|2011-08-30 (R2.0)
Parameter
Description
< as-number>
There are two additional conditions when < protocol-value> is bgp-ext: <
as-number> and < peer-address> , where < as-number> indicates AS number of
the peer, in range of 1~65535.
< peer-address>
There are two additional conditions when < protocol-value> is bgp-ext: <
as-number> and < peer-address> , where < as-number> indicates AS number of
the peer and < peer-address> indicates IP address of the peer.
< tag-value>
< metric-value>
Set the metric value of redistributed LSA. The default metric of system is used
by default, in range of 0-16777214.
< type>
Set metric-type of LSA after redistribution. Two values are available: ext-1
and ext-2, ext-2 by default.
< map-tag>
Set the name of route map for redistribution, with the length to be 1-16
characters.
Format
Function
message-digest]
3
ZXR10(config-router)#exit
encryption.
routers that support this function and they are added to link state retransmit lists of the
neighboring routers. When link state update packet are multicasted, the neighboring
router that doesnt support this function will receive this advertisement passively an drop
it simply.
Step
Format
Function
ZXR10(config-router)#capability opaque
Format
Function
Note:
As for ZXR10 ZSR, defines administrative distances of three types of OSPF routes: internal
route, external 1 route and external 2 route. By default, administrative distance of these
three types of routes are 110 .
Function
4-14
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
neighbors.
LSDB.
Tip:
If two routers cannot communicate with each other, it is because the adjacency between
them is not established. Check if the state of neighborhood between the two OSPF routers
is FULL; FULL indicates that OSPF runs properly between the two routers.
LSDB is the source of all OSPF routes in IP routing table. Routing problems are caused
by incorrect data or data loss in LSDB.
ZXR10 ZSR also provides debug commands to debug OSPF and trace relevant
information. For example:
Format
Function
4-15
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
Configuration of R1:
ZXR10_R1(config)#router ospf 1
ZXR10_R1(config-router)#network 192.168.2.0 0.0.0.255 area 23
ZXR10_R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
Configuration of R2:
ZXR10_R2(config)#router ospf 1
ZXR10_R2(config-router)#network 192.168.3.0 0.0.0.255 area 24
ZXR10_R2(config-router)#network 192.168.1.0 0.0.0.255 area 0
4-16
SJ-20110803091932-005|2011-08-30 (R2.0)
Area 2 is a stub area and R2 is the ABR between area 2 and backbone area. In the stub
area, ABR will advertise a default route automatically.
Configuration of R2:
ZXR10_R2(config)#interface fei_1/1
ZXR10_R2(config-if)#ip address 10.0.2.1 255.255.255.252
ZXR10_R2(config-if)#exit
ZXR10_R2(config)#interface fei_1/2
4-17
SJ-20110803091932-005|2011-08-30 (R2.0)
R3 works in the backbone area 0 and is connected to other ASs through BGP. User can
manually configure R3, egress router of the whole AS, to advertise a default route to the
entire OSPF area.
Configuration of R3:
ZXR10_R3(config)#interface fei_1/1
ZXR10_R3(config-if)#ip address 10.0.0.3 255.255.255.0
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#interface fei_1/2
ZXR10_R3(config-if)#ip address 192.168.0.1 255.255.255.0
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#router ospf 1
ZXR10_R3(config-router)#network 10.0.0.0 0.0.0.255 area 0
ZXR10_R3(config-router)#notify default route always
R4 is the ASBR in area 1. Both OSPF and RIP are enabled on R4, and RIP routes can be
redistributed to OSPF.
Configuration of R4:
ZXR10_R4(config)#interface fei_1/1
ZXR10_R4(config-if)#ip address 192.168.1.1 255.255.255.0
ZXR10_R4(config-if)#exit
ZXR10_R4(config)#interface fei_1/2
ZXR10_R4(config-if)#ip address 10.0.1.2 255.255.255.252
ZXR10_R4(config-if)#exit
ZXR10_R4(config)#router ospf 1
ZXR10_R4(config-router)#network 10.0.1.0 0.0.0.3 area 1
ZXR10_R4(config-router)#area 1 nssa
ZXR10_R4(config-router)#redistribute rip metric 10
4-18
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R2:
ZXR10_R2(config)#interface fei_1/1
ZXR10_R2(config-if)#ip address 10.0.0.2 255.255.255.0
ZXR10_R2(config-if)#exit
ZXR10_R2(config)#interface fei_1/2
ZXR10_R2(config-if)#ip address 10.0.1.1 255.255.255.252
ZXR10_R2(config-if)#exit
ZXR10_R2(config)#router ospf 1
ZXR10_R2(config-router)#network 10.0.0.0 0.0.0.255 area 0
ZXR10_R2(config-router)#network 10.0.1.0 0.0.0.3 area 1
4-19
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R3:
ZXR10_R3(config)#interface fei_1/1
ZXR10_R3(config-if)#ip address 10.0.1.2 255.255.255.252
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#router ospf 1
ZXR10_R3(config-router)#network 10.0.1.0 0.0.0.3 area 1
ZXR10_R3(config-router)#area 1 virtual-link 10.0.0.2
Configuration of R2:
4-20
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R3:
ZXR10_R3(config)#interface fei_1/1
ZXR10_R3(config-if)#ip address 10.0.1.2 255.255.255.252
ZXR10_R3(config-if)#ip ospf message-digest-key 1 md5 ZXR10
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#router ospf 1
ZXR10_R3(config-router)#network 10.0.1.0 0.0.0.3 area 1
ZXR10_R3(config-router)#area 1 authentication message-digest
4-21
SJ-20110803091932-005|2011-08-30 (R2.0)
4-22
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 5
IS-IS Configuration
Table of Contents
IS-IS Overview ...........................................................................................................5-1
Configuring IS-IS ........................................................................................................5-3
Configuring IS-IS Maintenance and Diagnosis............................................................5-6
IS-IS Configuration Example ......................................................................................5-7
Hello PDU
Link State PDU (LSP)
Sequence Num PDU (SNP)
The Hello PDU is similar to Hello packet in OSPF, used to establish adjacency between
routers, discover new neighbors, and detect if any neighbor exists.
IS-IS routers exchange routing information and set up and maintain LSDB through LSPs.
An LSP contains the important data of a router, including the area and connected network.
In addition, SNPs are used to ensure reliable transmission of LSPs.
SNP contains the summary information of each LSP in the network. When a router
receives an SNP, it compares the SNP with its LSDB. If the router loses one LSP in an
SNP, it multicasts an SNP to the other routers in the network to request the LSP it needs.
Using LSP and SNP together enables IS-IS to exchange routing information reliably in a
large network.
IS-IS also uses Dijkstra SPF algorithm to calculate routes. IS-IS uses SPF algorithm to
obtain the optimal route according to LSDB and adds this route to IP routing table.
5-1
SJ-20110803091932-005|2011-08-30 (R2.0)
Routers in the backbone area have database information of the whole network.
Routers in non-backbone areas only have the information of local area.
L1 router:
It locates in non-backbone area and only exchanges routing information with L1 and
L1/L2 routers in the local area.
L2 router:
It locates in backbone area and exchanges routing information with other L2 and L1/L2
routers.
L1/L2 router:
It locates in non-backbone area and is used to exchange routing information between
local area and backbone area.
5-2
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
range-number> ]
4
ZXR10(config-router)#exit
Description
< system-id>
< range-number>
5-3
SJ-20110803091932-005|2011-08-30 (R2.0)
Tip:
In IS-IS route configuration mode, an area is required to define, and specify a router to
belong to this area. In addition, a system ID is required to define, which identifies the
router in this area. The ID is expressed by the MAC address of a routers interface.
By default, the router running with IS-IS is identified as LEVEL-1-2. To optimize the
network, command can be used to change the identification.
Command
Function
ZXR10(config-router)#disable
ZXR10(config-router)#enable
level-2]
5-4
SJ-20110803091932-005|2011-08-30 (R2.0)
Tip:
IS-IS can summarize some entries in the routing table to one summary route and advertise
it, instead of advertising all routes. The smallest metric value in the summary route is
selected as metric value of the summary route.
Format
Function
level-2-only}
4
level-2]
5-5
SJ-20110803091932-005|2011-08-30 (R2.0)
Inter-neighbor authentication
Intra-area authentication
Inter-area authentication
Inter-SNP authentication
At present ZXR10 ZSR supports simple password authentication and MD5 authentication.
Step
Format
Function
level-1 | level-2]
ZXR10(config-if)#exit
ZXR10(config-router)#enable-snp-authentication
Example
l
This example shows how to configure SNP simple password authentication with
authentication string as welcome.
ZXR10(config)#router isis
ZXR10(config-router)#authentication welcome
ZXR10(config-router)#enable-snp-authentication
This example shows how to configure L1 LSP MD5 authentication with authentication
string to as welcome.
ZXR10(config)#router isis
ZXR10(config-router)#authentication welcome level-1
ZXR10(config-router)#authentication-type md5 level-1
Format
Function
Function
5-7
SJ-20110803091932-005|2011-08-30 (R2.0)
In the above figure, R1 and R2 form Area 1 and IS-IS is enabled on the two. The detailed
configuration is shown as follows.
Configuration of R1:
ZXR10_R1(config)#router isis
ZXR10_R1(config-router)#area 01
ZXR10_R1(config-router)#system-id 00D0.D0C7.53E0
ZXR10_R1(config-router)#exit
ZXR10_R1(config)#interface fei_2/4
ZXR10_R1(config-if)#ip address 192.168.2.1 255.255.255.0
ZXR10_R1(config-if)#ip router isis
ZXR10_R1(config)#interface fei_2/6
ZXR10_R1(config-if)#ip address 192.168.1.1 255.255.255.0
ZXR10_R1(config-if)#ip router isis
Configuration of R2:
ZXR10_R2(config)#router isis
ZXR10_R2(config-router)#area 01
ZXR10_R2(config-router)#system-id 00D0.D0C7.5460
ZXR10_R2(config-router)#exit
ZXR10_R2(config)#interface fei_1/4
ZXR10_R2(config-if)#ip address 192.168.2.2 255.255.255.0
ZXR10_R2(config-if)#ip router isis
ZXR10_R2(config)#interface fei_1/3
ZXR10_R2(config-if)#ip address 192.168.6.1 255.255.255.0
ZXR10_R2(config-if)#ip router isis
5-8
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 6
BGP Configuration
Table of Contents
BGP Overview............................................................................................................6-1
Configuring BGP ........................................................................................................6-2
Configuring BGP Maintenance and Diagnosis ..........................................................6-21
BGP Configuration Example.....................................................................................6-23
Recognized attributes that must be followed: The attributes must be present in route
description.
6-1
SJ-20110803091932-005|2011-08-30 (R2.0)
AS-path
next-hop
origin
l
Optional and transferable attributes: These attributes do not need support by all BGP
implementations. When supported, the attributes can be transferred to the BGP
neighbors; if not supported by the current router, the attributes need to be transferred
to other BGP routers.
Aggregator
Community
Optional and non-transferable attributes: It indicates that the router not supporting this
kind of attributes shall delete the attributes.
Multi-exiy-discriminator (MED)
Besides the above attributes, the weight attribute (defined by CISCO) is also a common
attribute.
Format
Function
number>
of AS is 1-65535).
Example
Figure 6-1 shows an instance of BGP4 configuration. Where R1 belongs to AS 100 and
R2 belongs to AS 200.
6-2
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R1:
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#neighbor 10.1.1.1 remote-as 200
ZXR10_R1(config-router)#network 182.16.0.0 255.255.0.0
Configuration of R2:
ZXR10_R2(config)#router bgp 200
ZXR10_R2(config-router)#neighbor 10.1.1.2 remote-as 100
ZXR10_R3(config-router)#network 182.17.0.0 255.255.0.0
In the above configuration, R1 and R2 are defined as BGP neighbor of each other. Since
R1 and R2 belong to different ASs, they will set up an EBGP session. R1 advertises
network 182.16.0.0/16 and R2 advertises network 182.17.0.0/16.
Format
Function
Tip:
The use of the network command in BGP is different from that in IGP.
In the above configurations, the network command is used to advertise BGP routers.
In BGP, we can use the network command to advertise networks known by local router.
The known networks can be learned through direct, static and dynamic routes.
6-3
SJ-20110803091932-005|2011-08-30 (R2.0)
To redistribute IGP, RIP, OSPF and IS-IS) routes to BGP, execute the following commands.
Step
Format
Function
Note:
When using redistribute command, avoid redistributing the routes that IGP learns from
BGP to BGP again, and use filter commands to prevent loop if necessary.
The route source of redistributed static routes in routing table is shown as incomplete.
Example
Figure 6-2 shows an example of advertising routes to BGP by route redistribution.
Figure 6-2 BGP Route Advertisement
ZXR10_R3(config)#router ospf 1
ZXR10_R3(config-router)#network 175.220.0.0 0.0.0.255 area 0
ZXR10_R3(config-router)#exit
ZXR10_R3(config)#router bgp 200
ZXR10_R3(config-router)#neighbor 1.1.1.1 remote-as 300
ZXR10_R3(config-router)#redistribute ospf-int
6-4
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
Example
The following section shows an example of route aggregation. As shown in Figure 6-3,
routers R1 and R2 notify 170.10.0.0/16 and 170.20.0.0/16 of routes respectively. R3
aggregates the two routes into 170.0.0.0/8 and advertises it to R4. After configuring route
aggregation, the routing table of R4 can only learn the aggregate route 170.0.0.0/8.
Figure 6-3 BGP Route Aggregation
Configuration of R1:
ZXR10_R1(config)#interface fei_1/1
ZXR10_R1(config-if)#ip address 2.2.2.2 255.255.255.0
ZXR10_R1(config-if)#exit
ZXR10_R1(config)#router bgp 100
6-5
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R2:
ZXR10_R2(config)#interface fei_1/1
ZXR10_R2(config-if)#ip address 3.3.3.3 255.255.255.0
ZXR10_R2(config-if)#exit
ZXR10_R2(config)#router bgp 200
ZXR10_R2(config-router)#network 170.10.0.0 255.255.0.0
ZXR10_R2(config-router)#neighbor 3.3.3.1 remote-as 300
Configuration of R3:
ZXR10_R3(config)#interface fei_1/1
ZXR10_R3(config-if)#ip address 2.2.2.1 255.255.255.0
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#interface fei_1/2
ZXR10_R3(config-if)#ip address 3.3.3.1 255.255.255.0
ZXR10_R3(config)#interface fei_1/3
ZXR10_R3(config-if)#ip address 4.4.4.1 255.255.255.0
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#router bgp 300
ZXR10_R3(config-router)#neighbor 2.2.2.2 remote-as 100
ZXR10_R3(config-router)#neighbor 3.3.3.3 remote-as 200
ZXR10_R3(config-router)#neighbor 4.4.4.4 remote-as 400
ZXR10_R3(config-router)#aggregate-address 170.0.0.0 255.0.0.0
summary-only
R3 learns both routes 170.20.0.0 and 170.10.0.0, but it only advertises the aggregate route
170.0.0.0/8. Pay attention to the parameter summary-only in the command. Without this
parameter, R3 will advertise the detailed routes together with aggregate route.
Configuration of R4:
ZXR10_R4(config)#interface fei_1/1
ZXR10_R4(config-if)#ip address 4.4.4.4 255.0.0.0
ZXR10_R4(config-if)#exit
ZXR10_R4(config)#router bgp 400
ZXR10_R4(config-router)#neighbor 4.4.4.1 remote-as 300
to perform EBGP multihop configuration, as well as proper IGP or static route configuration
to enable intercommunication between non-direct connect neighbors.
Step
Format
Function
indirect-connect networks.
Example
As shown in Figure 6-4, router R1 needs to establish neighborhood with a non-direct
connect interface (180.225.11.1) on R2. Command neighbor ebgp-multihop is used.
Figure 6-4 BGP Multi-hop Configuration
Configuration of R1:
ZXR10_R1(config)#interface fei_1/1
ZXR10_R1(config-if)#ip address 129.213.1.2 255.255.255.0
ZXR10_R1(config-if)#exit
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#neighbor 180.225.11.1 remote-as 300
ZXR10_R1(config-router)#neighbor 180.225.11.1 ebgp-multihop
Configuration of R2:
ZXR10_R2(config)#interface fei_1/1
ZXR10_R2(config-if)#ip address 129.213.1.3 255.255.255.0
ZXR10_R2(config)#interface fei_1/2
ZXR10_R2(config-if)#ip address 180.225.11.1 255.255.255.0
ZXR10_R2(config-if)#exit
ZXR10_R2(config)#router bgp 300
ZXR10_R2(config-router)#neighbor 129.213.1.2 remote-as 100
The route map is used to control the routing information and redistribute routes between
areas by specifying conditions. The route map works with the route attributes to make
routing decisions. To use a route map, perform the following steps.
Step
Format
Function
sequence-number> ]
ZXR10(config-router)#exit
mode.
3
map-tag> { in | out}
Example
The following example shows how to configure route filtering by route map.
A route map MAP1 is defined in the above example. This route map allows to advertise
network 172.3.0.0 to AS 200 and sets its MED as 5. When using route map for route
filtering, it is uses match command and set command together. The match command
defines the match conditions and set command defines the action to be executed when
set match conditions are met.
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#neighbor 182.17.20.1 remote-as 200
ZXR10_R1(config-router)#neighbor 182.17.20.1 route-map MAP1 out
ZXR10_R1(config-router)#neighbor 182.17.20.1 send-med
ZXR10_R1(config-router)#exit
ZXR10_R1(config)#route-map MAP1 permit 10
ZXR10_R1(config-route-map)#match ip address 1
ZXR10_R1(config-route-map)#set metric 5
ZXR10_R1(config)#ip access-list standard 1
ZXR10_R1(config-std-acl)#permit 172.3.0.0 0.0.255.255
6-8
SJ-20110803091932-005|2011-08-30 (R2.0)
Example
As shown in Figure 6-5, R1 and R2 are IBGP peers; R1 and R3 are EBGP peers; and R2
and R4 are EBGP peers.
Figure 6-5 Filtering Router through NLRI
To prevent AS100 from being a transitional AS and prevent R1 from advertising the network
192.18.10.0/24 from AS300 to AS200, perform filtering on R1. Configuration is as follows:
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#no synchronization
ZXR10_R1(config-router)#neighbor 182.17.1.2
ZXR10_R1(config-router)#neighbor 182.17.20.1
remote-as 100
remote-as 200
In this example, commands route-map and access-list are used to prevent R1 from
advertising routes with prefix 192.18.10.0/24 to AS200.
Use the following command to set a new ACL for imported and exported route updates
based on AS path attribute.
Step
Format
Function
Example
Use AS path-based route filtering to prevent R1 from advertising the network
192.18.10.0/24 from AS300 to AS200. Configuration is as follows:
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#no synchronization
ZXR10_R1(config-router)#neighbor 182.17.1.2
remote-as 100
ZXR10_R1(config-router)#neighbor 182.17.20.1
remote-as 200
ZXR10_R1(config-router)#neighbor 182.17.20.1
ZXR10_R1(config-router)#exit
ZXR10_R1(config)#route-map MAP1 permit 10
ZXR10_R1(config-route-map)#match as-path 1
ZXR10_R1(config)#ip as-path access-list 1 permit ^$
In above configuration, with AS-path based ACL, R1 only advertises the networks
originating from AS100 to AS200, so that routes of network 192.18.10.0/24 can be filtered.
Format
Function
When two IBGP routers in one AS learn external routes to the same destination
simultaneously, their Local preference values are compared. The route with larger value
is preferential. The default value of Local-preference is 100.
Example
As shown in Figure 6-6, R3 and R4 learn routes to 170.10.0.0 simultaneously. Since the
Local preference value of R4 is larger than that of R3, packets sent from AS256 interior to
the destination prefer to be forwarded through interface of R4.
6-10
SJ-20110803091932-005|2011-08-30 (R2.0)
The following two modes are used to configure the LOCAL_PREF attribute.
l
Configuration of R4:
ZXR10_R4(config)#router bgp 256
ZXR10_R4(config-router)#neighbor 3.3.3.2 remote-as 300
ZXR10_R4(config-router)#neighbor 128.213.11.1 remote-as 256
ZXR10_R4(config-router)#bgp default local-preference 200
6-11
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
ZXR10(config-router)#bgp always-compare-med
The Metric value is 0 by default. Smaller Metric value is preferred. The Metric value is not
delivered to the third AS. That is, when receiving an update packet with the Metric value,
the update packet will be delivered to the third AS with the default Metric.
Example
As shown in Figure 6-7, R1 receives the update packets of 180.10.0.0 from R2, R3 and
R4 at the same time. Only Metric values of neighbors R3 and R4 (in the same AS) are
compared by default; the Metric value of R3 is smaller than that of R4. Therefore, for
180.10.0.0 update packets, R1 prefers to use the value of R3.
Figure 6-7 Configure MED Attribute
The following shows how to set MED value with command route-map.
Configuration of R1:
6-12
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R3:
ZXR10_R3(config)#router bgp 300
ZXR10_R3(config-router)#neighbor 2.2.2.2 remote-as 100
ZXR10_R3(config-router)#neighbor 2.2.2.2 route-map setmetricout out
ZXR10_R3(config-router)#neighbor 1.1.1.2 remote-as 300
ZXR10_R3(config-router)#exit
ZXR10_R3(config)#route-map setmetricout permit 10
ZXR10_R3(config-route-map)#set metric 120
Configuration of R4:
ZXR10_R4(config)#router bgp 300
ZXR10_R4(config-router)#neighbor 3.3.3.1 remote-as 100
ZXR10_R4(config-router)#neighbor 3.3.3.1 route-map setmetricout out
ZXR10_R4(config-router)#neighbor 1.1.1.1 remote-as 300
ZXR10_R4(config-router)#exit
ZXR10_R4(config)#route-map setmetricout permit 10
ZXR10_R4(config-route-map)#set metric 200
Configuration of R2:
ZXR10_R2(config)#router bgp 400
ZXR10_R2(config-router)#neighbor 4.4.4.2 remote-as 100
ZXR10_R2(config-router)#neighbor 4.4.4.2 route-map setmetricout out
ZXR10_R2(config-router)#exit
ZXR10_R2(config)#route-map setmetricout permit 10
ZXR10_R2(config-route-map)#set metric 50
6-13
SJ-20110803091932-005|2011-08-30 (R2.0)
In addition, ZXR10 ZSR supports the community attribute to have an ordinary value. There
are two types of community attribute formats with ordinary value:
l
l
Where aa:nn format is converted to a longer integer through the expression aa x 65536 +
nn. For example:
set community 1000:1 equals to set community 65536001
The route-map command is used to define community attribute. The community attribute
is not sent to neighbor by default. It can be sent to neighbor when advertising routes to
neighbor.
Step
Format
Function
Example
This example shows how to configure route-map and to set community attribute to 1000:1
(that is 65536001):
ZXR10(config)#route-map setcomm
ZXR10(config-route-map)#set community ?
<1-4294967295>
Community number
<1-65535>:<0-65535>
additive
no-advertise
no-export
no-export-subconfed
none
No community attribute
6-14
SJ-20110803091932-005|2011-08-30 (R2.0)
ZXR10 ZSR supports the community attribute with ordinary value and expands community
attribute-based filtering function.
In the following configuration, R1 will advertise the routes to its neighbors. It is forbidden
to advertise routes of 192.166.1.0/24 to other EBGP neighbors.
Configuration of R1:
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#neighbor 3.3.3.3 remote-as 300
ZXR10_R1(config-router)#neighbor 3.3.3.3 send-community
ZXR10_R1(config-router)#neighbor 3.3.3.3 route-map setcomm out
ZXR10_R1(config)#route-map setcomm permit 10
ZXR10_R1(config-route-map)#match ip address 1
ZXR10_R1(config-route-map)#set community no-export
ZXR10_R1(config)#route-map setcomm permit 20
ZXR10_R1(config)#ip access-list standard 1
ZXR10_R1(config-std-acl)#permit 192.166.1.0 0.0.0.255
6-15
SJ-20110803091932-005|2011-08-30 (R2.0)
R1 learns a route pointing to 170.10.0.0 from AS300 and advertises it to R2 through IBGP
connection.
BGP synchronization rule is: Before a route learned from IBGP neighbor is redistributed
into IGP routing table or advertised to a BGP peer, BGP router must learn this route through
IGP.
According to BGP synchronization rule, before R2 advertises this route to R4, it fails to
discover route pointing to 170.10.0.0 through IGP. Therefore, it will not advertise the route
to R4.
The synchronization function is enabled by default.
There are two ways to solve this problem:
l
l
6-16
SJ-20110803091932-005|2011-08-30 (R2.0)
n (n-1)/2 (n indicates the number of IBGP routers). Router reflector and confederation are
used to reduce the job of maintenance and configuration.
For IBGP routers inside the AS, select one as the Router Reflector (RR) and take other
IBGP routers as clients, which only establishes adjacency with RR. All clients reflect routes
through RR. Number of neighbors decreases to n-1.
To set neighbors as RR clients, execute the following commands.
Step
Format
Function
ient
group as RR client.
Example
As shown in Figure 6-9, AS100 has two router reflectors: R3 and R4. Among them, clients
of R4 are R5 and R6 and clients of R3 are R1 and R2.
6-17
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R3:
ZXR10_R3(config)#interface loopback1
ZXR10_R3(config-if)#ip address 3.3.3.3 255.255.255.255
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#router bgp 100
ZXR10_R3(config-router)#neighbor 2.2.2.2 remote-as 100
ZXR10_R3(config-router)#neighbor 2.2.2.2 route-reflector-client
ZXR10_R3(config-router)#neighbor 1.1.1.1 remote-as 100
ZXR10_R3(config-router)#neighbor 1.1.1.1 route-reflector-client
ZXR10_R3(config-router)#neighbor 7.7.7.7 remote-as 100
ZXR10_R3(config-router)#neighbor 4.4.4.4 remote-as 100
ZXR10_R3(config-router)#neighbor 1.1.1.1 update-source loopback1
ZXR10_R3(config-router)#neighbor 2.2.2.2 update-source loopback1
Configuration of R2:
ZXR10_R2(config)#interface loopback1
ZXR10_R2(config-if)#ip address 2.2.2.2 255.255.255.255
ZXR10_R2(config-if)#exit
ZXR10_R2(config)#router bgp 100
6-18
SJ-20110803091932-005|2011-08-30 (R2.0)
When one route is received by RR, it will reflect according to types of different peers.
l
l
l
If the route comes from non-client peer, it is reflected to all client peers.
If the route comes from a peer client, it is reflected to all non-client peers and client
peers.
If the route comes from a EBGP peer, it is reflected to all non-client peers and client
peers.
In case of multiple RRs available in one AS, the multiple RRs in the AS are incorporated
into one cluster. There can be multiple clusters inside one AS and one cluster must contain
one RR at least.
Format
Function
]
4
Example
The following example shows the application of route confederation.
As shown in Figure 6-10, there are five BGP routers in AS200, which is divided into two
sub-ASs. One is defined as AS65010 (consists of routers R3, R5 and R6) and the other
is defined as AS65020 (consists of routers R4 and R7).
6-19
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R3:
ZXR10_R3(config)#interface loopback1
ZXR10_R3(config-if)#ip address 210.61.30.1 255.255.255.255
ZXR10_R3(config-if)#exit
ZXR10_R3(config)#router bgp 65010
ZXR10_R3(config-router)#bgp confederation identifier 200
ZXR10_R3(config-router)#bgp confederation peers 65020
ZXR10_R3(config-router)#neighbor 210.61.10.1 remote-as 65010
ZXR10_R3(config-router)#neighbor 210.61.20.1 remote-as 65010
ZXR10_R3(config-router)#neighbor 210.61.19.2 remote-as 65020
ZXR10_R3(config-router)#neighbor 2.2.2.2 remote-as 100
ZXR10_R3(config-router)#neighbor 210.61.10.1 update-source loopback1
ZXR10_R3(config-router)#neighbor 210.61.20.1 update-source loopback1
Configuration of R5:
ZXR10_R5(config)#interface loopback1
ZXR10_R5(config-if)#ip address 210.61.10.1 255.255.255.255
ZXR10_R5(config-if)#exit
ZXR10_R5(config)#router bgp 65010
ZXR10_R5(config-router)#bgp confederation identifier 200
ZXR10_R5(config-router)#neighbor 210.61.30.1 remote-as 65010
ZXR10_R5(config-router)#neighbor 210.61.20.1 remote-as 65010
ZXR10_R5(config-router)#neighbor 210.61.30.1 update-source loopback1
ZXR10_R5(config-router)#neighbor 210.61.20.1 update-source loopback1
6-20
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
l
l
l
l
Example
This example describes how to enable route dampening function on a router:
ZXR10(config)#router bgp 100
ZXR10(config-router)#bgp dampening 15 750 2000 60
Format
Function
Besides show command, debug command is also used to view the BGP adjacency process,
route update process and so on.
Format
Function
ZXR10#debug ip bgp in
Example
The following example shows how to trace the state transition of BGP with debug ip bgp
events command.
ZXR10#debug ip bgp events
BGP events debugging is on
ZXR10#
04:10:07: BGP: 192.168.1.2 reset due to Erroneous BGP Open received
04:10:07: BGP: 192.168.1.2 went from Connect to Idle
04:10:08: BGP: 192.168.1.2 went from Idle to Connect
04:10:13: BGP: 192.168.1.2 went from Connect to OpenSent
04:10:13: BGP: 192.168.1.2 went from OpenSent to OpenConfirm
04:10:13: BGP: 192.168.1.2 went from OpenConfirm to Established
6-22
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R4:
ZXR10_R4(config)#router bgp 2
ZXR10_R4(config-router)#redistribute static
ZXR10_R4(config-router)#neighbor 172.16.20.2 remote-as 1
ZXR10_R4(config-router)#aggregate-address 192.16.0.0 255.255.0.0
count 0 as-set summary-only
ZXR10_R4(config-router)#neighbor 172.16.20.2 route-map torouter1 out
ZXR10_R4(config-router)#exit
ZXR10_R4(config)#ip access-list standard 1
ZXR10_R4(config-std-acl)#permit 172.16.10.0 0.0.0.255
ZXR10_R4(config-std-acl)#exit
ZXR10_R4(config)#route-map torouter1 deny 10
ZXR10_R4(config-route-map)#match ip address 1
ZXR10_R4(config-route-map)#exit
6-23
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R1:
ZXR10_R1(config)#router bgp 1
ZXR10_R1(config-router)#no synchronization
ZXR10_R1(config-router)#neighbor 172.16.1.2 remote-as 1
ZXR10_R1(config-router)#neighbor 172.16.1.2 next-hop-self
ZXR10_R1(config-router)#neighbor 172.16.20.1 remote-as 2
Configuration of R2:
ZXR10_R2(config)#ip route 183.16.0.0 255.255.0.0 173.16.20.1
ZXR10_R2(config)#router bgp 1
ZXR10_R2(config-router)#no synchronization
ZXR10_R2(config-router)#neighbor 172.16.1.1 remote-as 1
ZXR10_R2(config-router)#neighbor 172.16.1.1 next-hop-self
ZXR10_R2(config-router)#neighbor 183.16.20.2 remote-as 3
ZXR10_R2(config-router)#neighbor 183.16.20.2 ebgp-multihop ttl 2
Configuration of R5:
ZXR10_R5(config)#ip route 173.16.0.0 255.255.0.0 183.16.20.1
ZXR10_R5(config)#router bgp 3
ZXR10_R5(config-router)#neighbor 173.16.20.2 remote-as 1
ZXR10_R5(config-router)#neighbor 173.16.20.2 ebgp-multihop ttl 2
6-24
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 7
7-1
SJ-20110803091932-005|2011-08-30 (R2.0)
7-2
SJ-20110803091932-005|2011-08-30 (R2.0)
Note:
On ZXR10 ZSR, the path selection modes for packet forwarding are prioritized as policy
routing>normal routing>default routing.
Format
Function
sequence-number> ]
7-3
SJ-20110803091932-005|2011-08-30 (R2.0)
Step
Format
Function
ip-address> ]
interface-name> ]
< ip-address> ]
< interface-name> ]
ZXR10(config-route-map)#exit
mode.
8
7-4
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of ZXR10:
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#ip address 10.10.0.254 255.255.255.0
ZXR10(config-if)#ip policy route-map source-ip
ZXR10(config-if)#exit
ZXR10(config)#interface fei_1/2
ZXR10(config-if)#ip address 11.11.0.254 255.255.255.0
ZXR10(config-if)#ip policy route-map source-ip
ZXR10(config-if)#exit
ZXR10(config)#interface fei_2/1
ZXR10(config-if)#ip address 100.1.1.2 255.255.255.252
ZXR10(config-if)#exit
ZXR10(config)#interface fei_2/2
ZXR10(config-if)#description To ISP2
ZXR10(config-if)#ip address 200.1.1.2 255.255.255.252
ZXR10(config-if)#exit
7-5
SJ-20110803091932-005|2011-08-30 (R2.0)
When both ISP1 and ISP2 egresses are in normal state, services of users belonging
to 10.10.0.0/24 and 11.11.0.0/24 subnets are forwarded through ISP1 and ISP2;
When ISP1 is normal but ISP2 is abnormal, all services of users belonging to
10.10.0.0/24 and 11.11.0.0/24 subnets are forwarded through ISP1 and now the
default route is adopted for services of users in 11.11.0.0/24 subnet;
When ISP1 is abnormal and ISP2 is normal, services of users in 11.11.0.0/24 subnet
are normal, while those in 10.10.0.0/24 subnet are interrupted.
Configuration of ZXR10:
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#ip address 192.168.1.1 255.255.255.252
ZXR10(config-if)#ip policy route-map source-ip
ZXR10(config-if)#exit
ZXR10(config)#interface fei_2/1
ZXR10(config-if)#ip address 100.1.1.2 255.255.255.252
ZXR10(config-if)#exit
ZXR10(config)#interface fei_2/2
ZXR10(config-if)#ip address 200.1.1.2 255.255.255.252
7-6
SJ-20110803091932-005|2011-08-30 (R2.0)
In this instance, two ISP egresses are mutually backup. There are two cases for service
connection:
l
l
When both ISP1 and ISP2 egresses are in normal state, services of users belonging
to 10.10.0.0/24 and 11.11.0.0/24 subnets are forwarded through ISP1 and ISP2;
When one egress is down, services of users in corresponding subnet will be forwarded
through the standby egress. Therefore, the services will not be interrupted as long two
egresses are not down at the same time.
7-7
SJ-20110803091932-005|2011-08-30 (R2.0)
7-8
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 8
Load Balancing
Configuration
Table of Contents
Load Balancing Overview...........................................................................................8-1
Configuring Load Balancing........................................................................................8-2
Configuring Load Balancing Maintenance and Diagnosis ...........................................8-3
Load Sharing Configuration Example .........................................................................8-4
Default Load Balancing Configuration Example ..........................................................8-8
Dynamic Load Balancing Configuration Example .....................................................8-14
The algorithm used to dynamically select main link among load sharing links is:
l
l
l
If load sharing links have different priorities, the link with the highest priority will be
selected as the main link.
If load sharing links have the same priority, the link with the largest bandwidth will be
selected as the main link.
If load sharing links have the same priority and bandwidth, the main link will be
selected at random.
8-1
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
| isis}
2
ZXR10(config-router)#exit
ZXR10(config-if)#exit
mode.
10
8-2
SJ-20110803091932-005|2011-08-30 (R2.0)
Note:
As for step 6, in case port rate limit is also configured on this link, the smallest value among
physical rate of the interface, port rate limit, and bandwidth of load sharing will be used for
selecting the main link for dynamic load sharing.
As for step 8, if all links in dynamic load sharing have the same priority, the link with the
largest bandwidth will be selected as main link. If load sharing links have the same priority
and bandwidth, the main link will be selected at random.
At present ZXR10 ZSR supports load sharing of BGP, OSPF, IS-IS, RIP and static routes.
Load sharing is configured on outgoing interface It is perdestination by default.
Only when all interfaces are configured to be in per-packet mode, the mode of load sharing
is per-packet.
Example
l
Function
SJ-20110803091932-005|2011-08-30 (R2.0)
As shown in Figure 8-1, there are two 100Mbps links between R1 and R2. Take BGP load
sharing for example and the configurations of two routers are as follows:
Router
Link1
Link2
AS
R1
fei_1/712.0.0.1
fei_1/812.0.1.1
100
R2
fei_1/112.0.0.2
fei_1/212.0.1.2
200
Configuration of R1:
R1(config)#interface fei_1/7
R1(config-if)#ip address 12.0.0.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface fei_1/8
R1(config-if)#ip address 12.0.1.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface gei_0/1
R1(config-if)#ip address 120.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#router bgp 100
R1(config-router)#neighbor 12.0.0.2 remote-as 200
R1(config-router)#neighbor 12.0.1.2 remote-as 200
R1(config-router)#network 120.1.1.0 255.255.255.0
R1(config-router)#maximum-paths 8
R1(config-router)#exit
Configuration of R2:
R2(config)#interface fei_1/1
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)# ip load-sharing per-packet
R2(config-if)#exit
8-4
SJ-20110803091932-005|2011-08-30 (R2.0)
Mask
Gw
Interface Owner
pri metric
bgp
20
bgp
20
Mask
Gw
Interface Owner
pri metric
bgp
20
bgp
20
Link1
Link2
R1
fei_1/7 12.0.0.1
fei_1/8 12.0.1.1
R2
fei_1/1 12.0.0.2
fei_1/2 12.0.1.2
Configuration of R1:
R1(config)#interface fei_1/7
R1(config-if)#ip address 12.0.0.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface fei_1/8
8-5
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R2:
R2(config)#interface fei_1/1
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#exit
R2(config)#interface fei_1/2
R2(config-if)#ip address 12.0.1.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#exit
R2(config)#interface gei_0/1
R2(config-if)#ip address 120.1.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#router ospf 200
R2(config-router)#network 12.0.0.0 0.0.0.255 area 0
R2(config-router)#network 12.0.1.0 0.0.0.255 area 0
R2(config-router)#network 120.1.2.0 0.0.0.255 area 0
R2(config-router)#maximum-paths 8
Mask
Gw
Interface Owner
pri metric
120.1.2.0
255.255.255.0
12.0.1.2 fei_1/8
ospf
110
120.1.2.0
255.255.255.0
12.0.0.2 fei_1/7
ospf
110
Mask
Gw
Interface Owner
120.1.1.0
255.255.255.0
12.0.1.1 fei_1/2
ospf
pri metric
110
8-6
SJ-20110803091932-005|2011-08-30 (R2.0)
255.255.255.0
12.0.0.1 fei_1/1
ospf
110
Link1
Link2
R1
fei_1/7 12.0.0.1
fei_1/8 12.0.1.1
R2
fei_1/1 12.0.0.2
fei_1/2 12.0.1.2
Configuration of R1:
R1(config)#router isis
R1(config-router)#area 01
R1(config-router)#system-id 00D0.D0C7.53E0
R1(config-router)#maximum-paths 8
R1(config-router)#exit
R1(config)#interface fei_1/7
R1(config-if)#ip address 12.0.0.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#ip router isis
R1(config-if)#exit
R1(config)#interface fei_1/8
R1(config-if)#ip address 12.0.1.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#ip router isis
R1(config-if)#exit
R1(config)#interface gei_0/1
R1(config-if)#ip address 120.1.1.1 255.255.255.0
R1(config-if)#ip router isis
R1(config-if)#exit
Configuration of R2:
R2(config)#router isis
R2(config-router)#area 01
R2(config-router)#system-id 00D0.D0C7.5460
R2(config-router)#maximum-paths 8
R2(config-router)#exit
R2(config)#interface fei_1/1
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#ip router isis
R2(config-if)#exit
8-7
SJ-20110803091932-005|2011-08-30 (R2.0)
Mask
Gw
Interface Owner
pri metric
isis-l1 115
20
isis-l1 115
20
Mask
Gw
Interface Owner
pri metric
isis-l1 115
20
isis-l1 115
20
Link1
Link2
R1
fei_1/7 12.0.0.1
fei_1/8 12.0.1.1
R2
fei_1/1 12.0.0.2
fei_1/2 12.0.1.2
Configuration of R1:
R1(config)#interface fei_1/7
R1(config-if)#ip address 12.0.0.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface fei_1/8
R1(config-if)#ip address 12.0.1.1 255.255.255.0
8-8
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R2:
R2(config)#interface fei_1/1
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#exit
R2(config)#interface fei_1/2
R2(config-if)#ip address 12.0.1.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#exit
R2(config)#interface gei_0/1
R2(config-if)#ip address 120.1.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#ip route 0.0.0.0 0.0.0.0 12.0.0.1 tag 150
R2(config)#ip route 0.0.0.0 0.0.0.0 12.0.1.1 tag 160
Mask
Gw
Interface
Owner
pri
metric
0.0.0.0
0.0.0.0
12.0.1.2
fei_1/8
static
0.0.0.0
0.0.0.0
12.0.0.2
fei_1/7
static
Mask
Gw
Interface
Owner
pri
metric
0.0.0.0
0.0.0.0
12.0.1.1
fei_1/2
static
0.0.0.0
0.0.0.0
12.0.0.1
fei_1/1
static
8-9
SJ-20110803091932-005|2011-08-30 (R2.0)
Router
Link1
Link2
R1
fei_1/7, 12.0.0.1
fei_1/8, 12.0.1.1
R2
fei_1/1, 12.0.0.2
fei_1/2, 12.0.1.2
Configuration of R1:
R1(config)#interface fei_1/7
R1(config-if)#ip address 12.0.0.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface fei_1/8
R1(config-if)#ip address 12.0.1.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface gei_0/1
R1(config-if)#ip address 120.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#router ospf 100
R1(config-router)#network 12.0.0.0 0.0.0.255 area 1
R1(config-router)#network 12.0.1.0 0.0.0.255 area 1
R1(config-router)#network 120.1.1.0 0.0.0.255 area 1
R1(config-router)#maximum-paths 8
R1(config-router)#area 1 stub
R1(config-router)#exit
Configuration of R2:
R2(config)#interface fei_1/1
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#exit
R2(config)#interface fei_1/2
R2(config-if)#ip address 12.0.1.2 255.255.255.0
R2(config-if)# ip load-sharing per-packet
R2(config-if)#exit
R2(config)#interface gei_0/1
R2(config-if)#ip address 120.1.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#router ospf 200
R2(config-router)#network 12.0.0.0 0.0.0.255 area 1
R2(config-router)#network 12.0.1.0 0.0.0.255 area 1
R2(config-router)#network 120.1.2.0 0.0.0.255 area 1
R2(config-router)#network 12.0.2.0 0.0.0.255 area 0
R2(config-router)#maximum-paths 8
R2(config-router)#area 1 stub no-summary
8-10
SJ-20110803091932-005|2011-08-30 (R2.0)
Mask
Gw
Interface
Owner
pri
metric
0.0.0.0
0.0.0.0
12.0.1.2
fei_1/8
ospf
110
0.0.0.0
0.0.0.0
12.0.0.2
fei_1/7
ospf
110
Router
Link1
Link2
Link3
R1
fei_1/712.0.0.1
fei_1/812.0.1.1
R2
fei_1/112.0.0.2
fei_1/212.0.1.2
R3
gei_0/1, 12.0.2.2
gei_0/1, 12.0.2.1
Configuration of R1:
R1(config)#router isis
R1(config-router)#area 01
R1(config-router)#system-id 00D0.D0C7.53E0
R1(config-router)#maximum-paths 8
R1(config-router)#is-type level-1
R1(config-router)#exit
R1(config)#interface fei_1/7
R1(config-if)#ip address 12.0.0.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#ip router isis
R1(config-if)#isis circuit-type level-1
8-11
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R2:
R2(config)#router isis
R2(config-router)#area 01
R2(config-router)#system-id 00D0.D0C7.5460
R2(config-router)#maximum-paths 8
R2(config-router)#exit
R2(config)#interface fei_1/1
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#ip router isis
R2(config-if)#exit
R2(config)#interface fei_1/2
R2(config-if)#ip address 12.0.1.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#ip router isis
R2(config-if)#exit
R2(config)#interface gei_0/1
R2(config-if)#ip address 12.0.2.2 255.255.255.0
R2(config-if)#ip router isis
Configuration of R3:
R3(config)#router isis
R3(config-router)#area 02
R3(config-router)#system-id 00D0.D0C7.5461
R3(config-router)#exit
R3(config)#interface gei_0/1
R3(config-if)#ip address 12.0.2.1 255.255.255.0
R3(config-if)#ip router isis
Mask
Gw
Interface
Owner
pri
metric
0.0.0.0
0.0.0.0
12.0.1.2
fei_1/8
isis-l1
115
10
0.0.0.0
0.0.0.0
12.0.0.2
fei_1/7
isis-l1
115
10
Link1
Link2
AS
R1
fei_1/712.0.0.1
fei_1/812.0.1.1
100
R2
fei_1/112.0.0.2
fei_1/212.0.1.2
200
Configuration of R1:
R1(config)#interface fei_1/7
R1(config-if)#ip address 12.0.0.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface fei_1/8
R1(config-if)#ip address 12.0.1.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface gei_0/1
R1(config-if)#ip address 120.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#router bgp 100
R1(config-router)#neighbor 12.0.0.2 remote-as 200
R1(config-router)#neighbor 12.0.1.2 remote-as 200
R1(config-router)#network 120.1.1.0 255.255.255.0
R1(config-router)#maximum-paths 8
Configuration of R2:
R2(config)#interface fei_1/1
R2(config-if)#ip address 12.0.0.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#exit
R2(config)#interface fei_1/2
R2(config-if)#ip address 12.0.1.2 255.255.255.0
R2(config-if)#ip load-sharing per-packet
R2(config-if)#exit
8-13
SJ-20110803091932-005|2011-08-30 (R2.0)
Mask
Gw
Interface
Owner
pri
metric
0.0.0.0
0.0.0.0
12.0.1.2
fei_1/8
bgp
20
0.0.0.0
0.0.0.0
12.0.0.2
fei_1/7
bgp
20
Take OSPF load sharing for example and the configurations of two routers are as follows:
Router
Link1
Link2
Link3
R1
CE1_1/1.1
CE1_1/2.1
CE1_1/3.1
fei_7/1, destination
13.1.1.2/24
address: 14.1.1.2/24
fei_7/1, destination
13.1.1.2/24
address: 14.1.1.2/24
R2
CE1_1/1.1
CE1_1/2.1
CE1_1/3.1
8-14
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R1:
R1(config)#interface ce1_1/1.1
R1(config-if)#ip address 12.0.1.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface ce1_1/2.1
R1(config-if)#ip address 12.0.2.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#exit
R1(config)#interface ce1_1/3.1
R1(config-if)#ip address 12.0.3.1 255.255.255.0
R1(config-if)#ip load-sharing per-packet
R1(config-if)#load-sharing bandwidth 1000
R1(config-if)#exit
R1(config)#interface fei_7/1
R1(config-if)#ip address 120.1.1.1 255.255.255.0
R1(config-if)#exit
R1(config)#interface fei_8/1
R1(config-if)#ip address 120.1.2.1 255.255.255.0
R1(config-if)#exit
R1(config)#router ospf 100
R1(config-router)#network 12.0.1.0 0.0.0.255 area 0
R1(config-router)#network 12.0.2.0 0.0.0.255 area 0
R1(config-router)#network 12.0.3.0 0.0.0.255 area 0
R1(config-router)#network 120.1.2.0 0.0.0.255 area 0
R1(config-router)#maximum-paths 8
R1(config-router)#exit
R1(config)#ip route 14.1.1.0 255.255.255.0 12.0.3.2
R1(config)#ip load-sharing dynamic enable
Configuration of R2:
R2(config)#interface ce1_1/1.1
R2(config-if)#ip address 12.0.1.2 255.255.255.0
R2(config-if)#exit
R2(config)#interface ce1_1/2.1
R2(config-if)#ip address 12.0.2.2 255.255.255.0
R2(config-if)#exit
R2(config)#interface ce1_1/3.1
R2(config-if)#ip address 12.0.3.2 255.255.255.0
R2(config-if)#exit
R2(config)#interface fei_7/1
R2(config-if)#ip address 120.1.1.2 255.255.255.0
R2(config-if)#exit
R2(config)# interface fei_8/1
8-15
SJ-20110803091932-005|2011-08-30 (R2.0)
Mask
13.1.1.0
13.1.1.0
Gw
Interface
Owner
pri metric
255.255.255.0 12.0.1.2
ce1_1/1.1
ospf
110
255.255.255.0 12.0.2.2
ce1_1/2.1
ospf
110
13.1.1.0
255.255.255.0 12.0.3.2
ce1_1/3.1
ospf
110
14.1.1.0
255.255.255.0 12.0.3.2
ce1_1/3.1
static 1
Firstly forward special data flow and common data flow at the same time and keep the
bandwidth for special data flow not more than 1M. Now link 3 is not only used to forward all
packets of special data flow but also forward partial packets of common data flow. Increase
the bandwidth for special data flow to 1M. Now link 3 only forward all packets of special
data flow and not forward partial packets of common data flow any more. With increasing
of traffics, the state maintains. When the bandwidth occupied by special data flow falls to
less than 1M, link 3 will detect the bandwidth occupation change dynamically and then it
again forwards partial packets of common data flow.
8-16
SJ-20110803091932-005|2011-08-30 (R2.0)
Chapter 9
Multicast Routing
Configuration
Table of Contents
Multicast Overview .....................................................................................................9-1
Enabling IP Multicast..................................................................................................9-6
Configuring IGMP.......................................................................................................9-6
Configuring Static Multicast ........................................................................................9-8
Configuring PIM-SM ...................................................................................................9-8
Configuring MSDP....................................................................................................9-11
Configuring Multicast Maintenance and Diagnosis....................................................9-13
Multicast Configuration Example ..............................................................................9-17
9-1
SJ-20110803091932-005|2011-08-30 (R2.0)
9.1.2 IGMP
When a host wants to receive the multicast packet sent to a specific group, it needs to
listen to all packets sent to that specific group. To solve the problem of selecting route for
multicast packets, host needs to notify multicast routers in other sub-nets to join or leave
one group.
In multicast, Internet Group Management Protocol (IGMP) is used to accomplish this task.
Thus multicast router can learn multicast group members in network and thus decides
whether to forward multicast packets to the subnets where these members locate. When
one multicast router receives one multicast packet, it checks the multicast destination
address of the packet. Only when a group member is found on this interface, the router
will forward the packet.
IGMP provides information needed at the last stage of forwarding a multicast packet to
the destination. Multicast router exchanges information with the host that receives the
multicast packet. These information is collected from group members of host that is directly
connected to the multicast router.
IGMP is used by multicast router to learn the information of multicast group members.
Two types of packets are used for IGMP: group member query packet and group member
report packet.
Multicast router sends group member query packet to all hosts regularly to learn group
members in connected sub-nets. Each host returns a group member report packet to
report the multicast group that it belongs to. When one host joins in a new group, it sends a
join packet immediately rather than wait for the next query to prevent to be the first member
of that group.
When the host begins to receive packets as the member of a group, multicast router will
send query packets to this group periodically to query if the group members are still there.
As long there is on host in the group, multicast router will continue to forward packets.
When the host leaves the group, multicast router will receive one leave message. Then
multicast router will immediately query if there is still any active member in the group. If
active member is available, multicast router will continue to forward the packet, or stop
forwarding it.
In actual applications, two IGMP versions are available: IGMP V1 and IGMP V2.
Compared with IGMP V1, IGMP V2 has some improved characteristics. In IGMPV2, four
main types of packets are used to exchange packets between host and router:
l
l
l
l
9-2
SJ-20110803091932-005|2011-08-30 (R2.0)
9-3
SJ-20110803091932-005|2011-08-30 (R2.0)
Dense Mode
The premise of dense mode multicast routing protocol is dense distribution of multicast
users in network and redundant bandwidth. Dense mode multicast routing protocol
constructs and maintains multicast tree by flooding multicast packets over the whole
network periodically. That is the routers running with multicast routing protocol firstly flood
received multicast packets to all the other interfaces.
Dense Mode Multicast Routing Protocol includes:
l
l
l
Pruning Defining
When the neighboring router of an interface reports that a group doesnt exist, the
interface will be deleted from multlicast tree of this group, which is called pruning. When
the neighboring router reports that a receiver of this group occurs again, the interface will
be added to multicast tree of this group accordingly, which is called graft.
Sparse Mode
Sparse mode multicast routing protocol is applicable to the sparse distribution of multicast
receivers in network. In this case, its a great waste to construct multicast routing tree by
flooding packets as dense mode does. In sparse mode, to receive multicast packets, the
network device needs to apply to join a multicast routing tree firstly.
Sparse Mode Multicast Routing Protocol includes:
l
l
9.1.5 PIM-SM
PIM-SM transmits multicast packets through shared multicast tree. There is one core in
one shared multicast tree to send packets to all source packet senders in one multicast
group. Each source packet sender sends packets to the core along the shortest path and
then take the core as the root node to distribute the packets to each receiver in the group
along the shortest path.
9-4
SJ-20110803091932-005|2011-08-30 (R2.0)
The group core of PIM-SM is called Rendezvous Point (RP). There can be multiple RPs
in one network but there can be only one RP in one multicast group.
A router can obtain RP location by three methods:
l
l
l
9-5
SJ-20110803091932-005|2011-08-30 (R2.0)
9.1.6 MSDP
Multicast Source Discovery Protocol (MSDP): This mechanism is used to connect multiple
PIM-SM domains. It is based on TCP and provides the information of multicast sources
out of PIM domain for PIM-SM.
Function
ZXR10(config)#ip multicast-routing
Format
Function
Note:
Taking security into account, router requires that all NEs in one network segment to have
the same version, IGMP V1 or IGMP V2.
The configuration of IGMP version is based on interface. Different versions can be
configured for different interfaces.
9-6
SJ-20110803091932-005|2011-08-30 (R2.0)
Step
Format
Function
access-list-number> ]
Example
l
time. During this period, if the report of another host member is received, cancel the
previous report; if not, send the host report as setting. Therefore, prolonging the max
response time will increase the waiting changes of group member in the network segment
accordingly and decrease the burst rate of multiple host reports in the network segment.
Parameters of querier-related timers can be adjusted properly according to actual network
conditions.
Step
Format
Function
Function
Format
Function
ZXR10(config-if)#ip pim sm
ZXR10(config-if)#exit
mode.
4
ZXR10(config)#router pimsm
Enable PIM-SM.
Step
Format
Function
Command Illustration:
1. Step 1: Configuring static RP
A static RP can be configured for one or more particular groups. And meanwhile static
RP must be configured on all PIM-SM multicast routers in the multicast domain for
this/these groups.
RP address must be reachable for other routers. Loopback interface address is often
used to reduce network flapping caused by up/down of physical interface. After static
RP is configure, it doesnt need to configure candidate RP for this group.
2. Step 2: Configuring candidate BSR
If static RP mechanism doesnt apply here, backup BSR must be configured on more
than one multicast router for each multicast domain and elect one BSR meanwhile.
BSR periodically sends bootstrap message to advertise RP information. PIM-SM
router updates RP state according to the latest advertisement message. Bootstrap
message sent by BSR is also used to elect the formal BSR from the candidate BSRs.
The default priority of candidate BSR is 0. The candidate BSR with the highest priority
will be elected as the formal BSR. In case multiple routers has the same BSR priority,
compare their IP addresses. The candidate BSR with the largest IP address will be
elected as the formal BSR.
3. Step 5: Configuring candidate RP
In PIM-SM, RP is the root of shared multicast tree. It is used to send multicast packets
to downstream receiver member of the group along shared multicast tree. There can
be only one formal RP in each one multicast group.
The default priority of candidate RP is 0. The larger the priority value, the higher the
priority of candidate RP.
Example
l
9-9
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
ZXR10(config)#router pimsm
access-list-number> ]
3
ZXR10(config)#exit
Set DR priority.
In step 2, only the last DR and RP can switch to source shortest path tree actively.
By default, the switchover starts immediately when RP receives the first register
message. As for the last hop DR, configure the policy of setting source shortest path
tree swithover threshold with the single multicast group as the control granularity. If
the switchover threshold of a group is configured to infinite, switchover doesnt occur
and it is default to conduct switchover as long as traffics are available.
In step 6, it is necessary to select one DR in a shared (or multi-access) network
segment. The router with the highest priority will be selected as the DR. In case
multiple routers have the same priority, the router with the largest IP address will be
selected as DR.
In the shared network segment connected with multicast source, only DR can send
register message to RP; in the shared network segment connected with source, only
DR can response to IGMP join/leave message and send PIM join/pruning message
to upstream router.
The priority of router is contained in hello packet exchanged with neighbors. The
default value is 0.
Example
On the interface, forbid routers denied by ACL 10 to be PIM neighbor.
9-10
SJ-20110803091932-005|2011-08-30 (R2.0)
Format
Function
ZXR10(config)#router pimsm
ZXR10(config-router)#exit
Example
On the interface, forbid routers denied by ACL 10 to be PIM neighbor.
ZXR10(config)#ip access-list standard 10
ZXR10(config-std-acl)#deny 10.1.1.1 0.0.0.0
ZXR10(config-std-acl)#exit
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#ip pim neighbor-filter 10
Format
Function
interface-name>
9-11
SJ-20110803091932-005|2011-08-30 (R2.0)
Step
Format
Function
acl-number> ]
Format
Function
Format
Function
acl-number> ]
acl-number> ]
Format
Function
SJ-20110803091932-005|2011-08-30 (R2.0)
Step
Format
Function
Function
source-address> ] [ summary]
Function
Example
l
9-13
SJ-20110803091932-005|2011-08-30 (R2.0)
Interface
Present
Expire
Last Reporter
233.1.1.4
fei_3/1
01:07:49
never
30.1.1.43
233.1.1.147
fei_3/1
01:07:49
00:03:05
30.1.1.42
233.1.4.21
fei_3/1
01:07:49
00:03:05
30.1.1.42
Function
source-address> ] [ summary]
ZXR10#show ip pimsm interface [ < interface-name> ]
Example
l
9-14
SJ-20110803091932-005|2011-08-30 (R2.0)
Interface
DR
DR
Count Intvl
Prior
131.1.1.45
pos3_5/1
Up
30
131.1.1.91
30.1.1.43
fei_3/1
Up
30
30.1.1.43
22.22.22.45
tunnel22
Up
30
22.22.22.45
Neighbor Address
Interface
DR Prio
Uptime
Expires
131.1.1.91
pos3_5/1
30000
00:19:34
00:01:29
22.22.22.43
tunnel22
03:21:25
00:01:16
9-15
SJ-20110803091932-005|2011-08-30 (R2.0)
RP
uptime
expires
226.1.0.0
17.93.8.3
01:24:57
00:00:49
226.4.0.0
17.93.8.3
01:24:57
00:00:49
Function
ZXR10#debug ip msdp
Example
l
9-16
SJ-20110803091932-005|2011-08-30 (R2.0)
Function
9-17
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R1:
ZXR10_R1(config)#interface loopback1
ZXR10_R1(config-if)#ip address
10.1.1.1 255.255.255.255
ZXR10_R1(config-if)#exit
ZXR10_R1(config)#ip multicast-routing
ZXR10_R1(config)#router pimsm
ZXR10_R1(config-router)#rp-candidate loopback1 priority 10
ZXR10_R1(config-router)#bsr-candidate loopback1 10 10
ZXR10_R1(config)#interface fei_1/1
ZXR10_R1(config-if)#ip address
10.10.10.1 255.255.255.0
ZXR10_R1(config-if)#ip pim sm
ZXR10_R1(config)#interface fei_1/2
ZXR10_R1(config-if)#ip address
10.10.20.1 255.255.255.0
ZXR10_R1(config-if)#ip pim sm
ZXR10_R1(config)#interface fei_1/3
ZXR10_R1(config-if)#ip address
10.10.30.1 255.255.255.0
ZXR10_R1(config-if)#ip pim sm
ZXR10_R1(config)#router ospf 1
ZXR10_R1(config-router)#network 10.0.0.0 255.255.255.0 area 0.0.0.0
Configuration of R2:
ZXR10_R2(config)#interface loopback1
ZXR10_R2(config-if)#ip address
10.1.1.2 255.255.255.255
ZXR10_R2(config)#ip multicast-routing
ZXR10_R2(config)#router pimsm
ZXR10_R2(config-router)#rp-candidate loopback1 priority 20
ZXR10_R2(config-router)#bsr-candidate loopback1 10 20
ZXR10_R2(config)#interface fei_1/1
9-18
SJ-20110803091932-005|2011-08-30 (R2.0)
10.10.20.2 255.255.255.0
ZXR10_R2(config-if)#ip pim sm
ZXR10_R2(config)#interface fei_1/2
ZXR10_R2(config-if)#ip address
10.10.40.1 255.255.255.0
ZXR10_R2(config-if)#ip pim sm
ZXR10_R2(config)#interface fei_1/3
ZXR10_R2(config-if)#ip address
10.10.50.1 255.255.255.0
Configuration of R3:
ZXR10_R3(config)#interface loopback1
ZXR10_R3(config-if)#ip address
10.1.1.3 255.255.255.255
ZXR10_R3(config)#ip multicast-routing
ZXR10_R3(config)#router pimsm
ZXR10_R3(config-router)#rp-candidate loopback1 priority 30
ZXR10_R3(config-router)#bsr-candidate loopback1 10 30
ZXR10_R3(config)#interface fei_1/1
ZXR10_R3(config-if)#ip address
10.10.30.2 255.255.255.0
ZXR10_R3(config-if)#ip pim sm
ZXR10_R3(config)#interface fei_1/2
ZXR10_R3(config-if)#ip address
10.10.40.2 255.255.255.0
ZXR10_R3(config-if)#ip pim sm
ZXR10_R3(config)#router ospf 1
ZXR10_R3(config-router)#network 10.0.0.0 255.255.255.0 area 0.0.0.0
9-19
SJ-20110803091932-005|2011-08-30 (R2.0)
Configuration of R1:
ZXR10_R1(config)#interface loopback1
ZXR10_R1(config-if)#ip address
10.1.1.1 255.255.255.255
ZXR10_R1(config)#ip multicast-routing
ZXR10_R1(config)#router pimsm
ZXR10_R1(config-router)#rp-candidate loopback1 priority 10
ZXR10_R1(config-router)#bsr-candidate loopback1 10 10
ZXR10_R1(config)#interface fei_1/1
ZXR10_R1(config-if)#ip address
10.10.10.1 255.255.255.0
ZXR10_R1(config-if)#ip pim sm
ZXR10_R1(config)#interface fei_1/2
ZXR10_R1(config-if)#ip address
10.10.20.1 255.255.255.0
ZXR10_R1(config-if)#ip pim sm
ZXR10_R1(config-if)#ip pim bsr-border
ZXR10_R1(config)#interface fei_1/3
ZXR10_R1(config-if)#ip address
10.10.30.1 255.255.255.0
ZXR10_R1(config-if)#ip pim sm
ZXR10_R1(config)#router ospf 1
ZXR10_R1(config-router)#network 10.0.0.0 0.0.0.255 area 0.0.0.0
ZXR10_R1(config)#ip msdp peer 10.10.20.2 connect-source fei_1/2
ZXR10_R1(config)#ip msdp peer 10.10.30.2 connect-source fei_1/3
Configuration of R2:
ZXR10_R2(config)#interface loopback1
ZXR10_R2(config-if)#ip address
10.1.1.2 255.255.255.255
ZXR10_R2(config)#ip multicast-routing
ZXR10_R2(config)#router pimsm
ZXR10_R2(config-router)#rp-candidate loopback1 priority 20
9-20
SJ-20110803091932-005|2011-08-30 (R2.0)
10.10.20.2 255.255.255.0
ZXR10_R2(config-if)#ip pim sm
ZXR10_R2(config)#interface fei_1/2
ZXR10_R2(config-if)#ip address
10.10.40.1 255.255.255.0
ZXR10_R2(config-if)#ip pim sm
ZXR10_R2(config)#interface fei_1/3
ZXR10_R2(config-if)#ip address
10.10.50.1 255.255.255.0
Configuration of R3:
ZXR10_R3(config)#interface loopback1
ZXR10_R3(config-if)#ip address
10.1.1.3 255.255.255.255
ZXR10_R3(config)#ip multicast-routing
ZXR10_R3(config)#router pimsm
ZXR10_R3(config-router)#rp-candidate loopback1 priority 30
ZXR10_R3(config-router)#bsr-candidate loopback1 10 30
ZXR10_R3(config)#interface fei_1/1
ZXR10_R3(config-if)#ip address
10.10.30.2 255.255.255.0
ZXR10_R3(config-if)#ip pim sm
ZXR10_R3(config)#interface fei_1/2
ZXR10_R3(config-if)#ip address
10.10.40.2 255.255.255.0
ZXR10_R3(config-if)#ip pim sm
ZXR10_R3(config-if)#ip pim bsr-border
ZXR10_R3(config)#router ospf 1
ZXR10_R3(config-router)#network 10.0.0.0 0.0.0.255 area 0.0.0.0
ZXR10_R3(config)#ip msdp peer 10.10.40.1 connect-source fei_1/2
ZXR10_R3(config)#ip msdp peer 10.10.30.1 connect-source fei_1/1
9-21
SJ-20110803091932-005|2011-08-30 (R2.0)
9-22
SJ-20110803091932-005|2011-08-30 (R2.0)
Figures
Figure 2-1 Static Route Configuration ....................................................................... 2-2
Figure 2-2 Static Route Summary ............................................................................. 2-4
Figure 2-3 Default Route Configuration ..................................................................... 2-5
Figure 3-1 RIP Configuration Example...................................................................... 3-7
Figure 4-1 OSPF Router Type .................................................................................. 4-4
Figure 4-2 Basic OSPF Configuration ..................................................................... 4-16
Figure 4-3 Multi-Area OSPF Configuration.............................................................. 4-17
Figure 4-4 OSPF Virtual Link Configuration............................................................. 4-19
Figure 4-5 OSPF Authentication Configuration........................................................ 4-20
Figure 5-1 IS-IS Area ................................................................................................ 5-2
Figure 5-2 Single-Area IS-IS Configuration ............................................................... 5-7
Figure 6-1 Basic BGP Configuration ......................................................................... 6-3
Figure 6-2 BGP Route Advertisement ....................................................................... 6-4
Figure 6-3 BGP Route Aggregation........................................................................... 6-5
Figure 6-4 BGP Multi-hop Configuration.................................................................... 6-7
Figure 6-5 Filtering Router through NLRI .................................................................. 6-9
Figure 6-6 Configure LOCAL-PREF Attribute .......................................................... 6-11
Figure 6-7 Configure MED Attribute ........................................................................ 6-12
Figure 6-8 Configure BGP Synchronization............................................................. 6-16
Figure 6-9 Configure BGP Route Reflector ............................................................. 6-18
Figure 6-10
Figures
Tables
Table 1-1 SAFETY DESCRIPTION ........................................................................... 1-1
III
Tables
Glossary
ABR
- Area Border Router
ACL
- Access Control List
AD
- Administrative Distance
AS
- Autonomous System
ASBR
- Autonomous System Boundary Router
BDR
- Backup Designate Router
BGP
- Border Gateway Protocol
BSR
- Bootstrap Router
CIDR
- Classless Inter-Domain Routing
CLNS
- ConnectionLess Network Sevice
DIS
- Designate IS
DR
- Designate Router
EBGP
- External Border Gateway Protocol
FR
- Frame Relay
FTP
- File Transfer Protocol
IBGP
- Interior Border Gateway Protocol
IGMP
- Internet Group Management Protocol
V
IGP
- Interior Gateway Protocol
IP
- Internet Protocol
IS-IS
- Intermediate System-to-Intermediate System
ISO
- International Organization for Standardization
ISP
- Internet Service Provider
LSA
- Link State Advertisement
LSP
- Link State Packet
LSU
- Link State Update
MAC
- Medium Access Control
MD5
- Message Digest 5 Algorithm
MED
- MULTI_EXIT_DISC
MSDP
- Multicast Source Discovery Protocol
NBMA
- Non-Broadcast Multiple Access
NLRI
- Network Layer Reachability Information
NSSA
- Not-So-Stubby Area
OSI
- Open System Interconnection
OSPF
- Open Shortest Path First
PDU
- Protocol Data Unit
PIM-SM
- Protocol Independent Multicast - Sparse Mode
VI
Glossary
RFC
- Request For Comments
RIP
- Routing Information Protocol
RP
- Rendezvous Point
RPF
- Reverse Path Forwarding
RR
- Router Reflector
SNP
- Sequence Num PDU
SPF
- Shortest Path First
TCP
- Transfer Control Protocol
ToS
- Type Of Service
UDP
- User Datagram Protocol
VLSM
- Variable Length Subnet Mask
VII