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 Data
Revision Reason
R1.0
20110730
Summary
Introduces safety instruction and symbol description for device
installation, operation and maintenance.
Configuration
Intended Audience
This manual is intended for the following engineers:
l
l
l
Conventions
ZTE documents employ the following typographical conventions.
I
Typeface
Meaning
Italics
Variables in commands. It may also refers to other related manuals and documents.
Bold
Menus, menu options, function names, input fields, option button names, check boxes,
drop-down lists, dialog box names, window names, parameters and commands.
CAPS
Constant
Text that you type, program codes, filenames, directory names, function names.
width
[]
Optional parameters.
{}
Mandatory parameters.
Danger: Indicates an imminently hazardous situation, which if not avoided, will result in
death or serious injury.
Warning: Indicates a hazard that, if not avoided, could result in serious injuries,
equipment damages or interruptions of major services.
Caution: Indicates a potential hazard that, if not avoided, could result in moderate
injuries, equipment damages or partial service interruption.
Note: Provides additional information about a certain topic.
Auxiliary Function
Command help function of ZXCTN9000 devices has the following features:
1. By entering a question mark (?) following DOS prompt in any command mode, a list of
available commands in this command mode are displayed. With the context-sensitive
help function, the keywords and parameter list of any commands can be displayed.
l By entering a question mark "?" following DOS prompt in any command mode,
a list of all commands in this mode and brief description of these commands are
displayed.
l Input the question mark following a character or a character string, a list of
commands or keywords beginning with this character or character string is
displayed. Note that there is no space between the character (string) and the
question mark.
II
Press Tab key following the character string. If the command or keyword
beginning with this character string is unique, complement the command or
keyword and attach a space to the end. Note that there is no space between the
character string and the Tab key.
l Input a question mark (?) following the command, keyword or parameter. The
next keyword or parameter to be entered is listed, and also a brief description is
given. A space shall be entered before the question mark.
2. If incorrect command, keyword or parameter is entered, the error isolation is offered
with ^ in the user interface after you press Enter key. Character ^ locates below the
first character of the entered incorrect command, keyword or parameter.
3. The system allows the command or keyword to be abbreviated to a character or
character string that uniquely identifies this command or keyword. For example, show
command can be abbreviated to sh or sho.
4. User interface supports the function of recording input commands. Maximum ten
history commands can be recorded. This function is very useful in re-invocation of
a long or complicated command or ingress.
To re-invoke a command from the record buffer, conduct one of the following
operations.
Command
Function
key
key
reached, one more operation will roll the commands from the
beginning of the buffer cyclically.
Use show history command in any mode, and the latest several commands in this
mode will be listed.
III
IV
Chapter 1
Safety Instructions
Table of Contents
Safety Instructions......................................................................................................1-1
Conventions ...............................................................................................................1-1
1.2 Conventions
Pay attention to the following symbols in the installation, operation, and maintenance
descriptions.
Warning!
Indicates a hazard that, if not avoided, could result in serious injuries, equipment damages
or interruptions of major services.
Caution!
Indicates a potential hazard that, if not avoided, could result in moderate injuries,
equipment damages or partial service interruption.
1-1
SJ-20100901100356-015|2011-07-30(R1.0)
1-2
SJ-20100901100356-015|2011-07-30(R1.0)
Chapter 2
Function
Description
mng
ip-address
mask
< interface>
< nexthop>
2-1
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
global
< 1-255>
tag< 150-255>
slave
slave route.
wtrtime< 0-12>
detect-group< 1-10>
track-session< name>
Function
If the show ip route command is executed in the OAM interface, the basic information about
all routes is displayed in the routing table.
show_rtm_route is the debugging function. If this function is executed in shell mode, the
details about a route is displayed for fault analysis.
The execution result of the show ip route command is shown below.
P1#show ip route static
Total number of routes:
Mask
Gw
Interface
Owner
Pri Metric
40.40.40.40
255.255.255.255 199.40.48.2
vlan2
static
49.49.49.49
255.255.255.255 20.1.1.2
tunnel1
static
2-2
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
Dest
Mask
Gw
Interface
Owner
Pri
Metric
or
P1(config)#ip route 140.1.1.0 255.255.255.0 vlan1 10.6.1.18
or
P2(config)#ip route 140.1.1.0 255.255.255.0 vlan2 10.9.1.39
2-3
SJ-20100901100356-015|2011-07-30(R1.0)
If the egress is specified on the ZXCTN9000, the next-hop IP address must be set.
Otherwise, traffic cannot be forwarded.
If both the egress and next-hop IP address are specified, they must be on the same
network segment. Otherwise, a configuration error may occur. The direct next hop is
usually specified.
The execution result of the show command is shown below.
View the configuration on P1:
P1#show ip route static
Total number of routes:
Mask
255.255.255.0
Gw
10.6.1.18
Interface
Owner
vlan1
static
Pri Metric
1
Mask
255.255.255.0
Gw
10.9.1.39
Interface
Owner
vlan2
static
Pri Metric
1
2-4
SJ-20100901100356-015|2011-07-30(R1.0)
The key word global indicates that the next hop is the next hop on the public network, not
direct next hop. Meanwhile, a static L3VPN route must be configured by adding the global
key word to the next hop, not by specifying the egress.
This command only adds a VPN route to the routing table. To forward traffic, you need
to run the mpls label mode per-vrf command in the vrf configuration mode on PE2 and
specify the incoming tag. Run the static-outlabel command in the vrf configuration mode
on PE1 and specify the inner outgoing tag for the next-hop IP address 2.2.2.2 on the public
network. The outgoing tag must match the incoming tag configured on PE2. (For the
configurations of the mpls label mode per-vrf and static-outlabel commands, refer to the
related commands in vrf mode.)
The execution result of the show command is shown below.
PE1(config)#show ip route vrf zte static
Total number of routes:
Mask
255.255.255.0
Gw
49.49.49.49
Interface
Owner
tunnel1
static
Pri Metric
1
The method for configuring a default route is the same as that for configuring a static route.
The only difference is that both the destination IP address and subnet mask of the default
route are 0.0.0.0.
2-5
SJ-20100901100356-015|2011-07-30(R1.0)
You can use the show command to view the routing table of P1.
P1#show ip route static
Total number of routes:
Mask
0.0.0.0
Gw
Interface
Owner
Pri Metric
10.6.1.18
vlan1
static
In this case, if the next hop is configured as null, the route is a blackhole route.
The configuration of P1:
P1(config)#ip route 0.0.0.0 0.0.0.0 null1
P1#show ip route static
Total number of routes:
Mask
Gw
Interface
Owner
0.0.0.0
10.6.1.18
null1
static
Pri Metric
1
The default route is not necessarily a static route. It can be a route of other protocols, such
as BGP and RIP. In routing protocol configuration, the default route varies with the routing
protocol.
2-6
SJ-20100901100356-015|2011-07-30(R1.0)
The execution result of the show command on P1 shows that the route is not generated
and P1 cannot ping through 10.9.1.39.
If the static route to the destination network segment is configured on P1, this fault may be
caused by a physical link failure.
2-7
SJ-20100901100356-015|2011-07-30(R1.0)
4. If the status of the interface is down, check whether the cable is correctly connected.
5. Run the ping command to check whether the destination network segment can be
pinged through.
If the fault still persists, contact the technical support engineer for help.
2-9
SJ-20100901100356-015|2011-07-30(R1.0)
2-10
SJ-20100901100356-015|2011-07-30(R1.0)
Chapter 3
ARP Configuration
Table of Contents
Configuring ARP ........................................................................................................3-1
Maintaining ARP ........................................................................................................3-4
ARP Configuration Instances......................................................................................3-5
ARP Troubleshooting ...............................................................................................3-10
Command
Function
entries.
Description
permanent
static
< hardware-address>
< external-vlanId>
< internal-vlanId>
3-1
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
entries.
3
entries.
6
seconds>
Description
interface
whole
mac
limit-num
< num>
Description
interface
3-2
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
< num>
Description
< seconds>
Description
interface
< interface-name>
dynamic
staic
permanent
< ip-address>
dynamic-force
dhcp
< mac-address>
Command
Function
3-3
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Function
N/A
N/A
N/A
1.1.1.1
P 0011.0011.0011 gei_1/1
N/A
N/A
N/A
2.2.2.2
30 0022.0022.0022 gei_1/1
N/A
N/A
N/A
Description
IP Address
Age
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
Hardware Address
Interface
Exter VlanID
Inter VlanID
Sub Interface
Unit:1
Description
00E0.D021.0203
3-5
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Procedure
In the interface configuration mode, note that the IP address of the interface to be
configured with permanent ARP entries must be set.
ZXCTN 9000(config)#interface vlan 1
Configuration Verification
Use the show command to view the configuration result.
ZXCTN 9000(config)#show arp static
The count is 1
IP Address
Interface
Exter VlanID
Inter VlanID
Sub Interface
-----------------------------------------------------------------------------------------120.1.1.1
0020.1122.3344
vlan1
N/A
N/A
N/A
Inter VlanID
Sub Interface
Interface
Exter VlanID
-----------------------------------------------------------------------------------------120.1.1.3
0020.1122.3355
vlan1
N/A
N/A
N/A
Age
Hardware Address
Interface
Exter VlanID
Inter VlanID
Sub Interface
-----------------------------------------------------------------------------------------120.1.1.5
0020.1122.3366
supervlan1
N/A
N/A
function.*/
ZXCTN 9000(config-if-vlan1)#ex
ZXCTN 9000(config)#interface gei_1/3
3-6
SJ-20100901100356-015|2011-07-30(R1.0)
interface gei_1/3
ip proxy-arp
no arp source-filtered
no arp learn
arp protect interface limit-num 10
!
end
Senders IP
Target IP
00-00-0c-94-36-aa
172.16.10.100
00-00-00-00-00-00
172.16.20.200
3-7
SJ-20100901100356-015|2011-07-30(R1.0)
The ARP request cannot reach host D, because the ZXCTN9000 does not forward
cross-VLAN broadcast packets in normal cases. Therefore, the communication fails
when ARP proxy is disabled.
When the ARP proxy function is enabled on the ZXCTN9000, the ZXCTN9000 processes
all valid IP addresses except the IP addresses in the VLAN of the local port and sends the
ARP packet with the egress MAC address as the response. The response is shown below.
Senders MAC Addr
Senders IP
Target IP
00-00-0c-94-36-ab
172.16.20.200
00-00-0c-94-36-aa
172.16.10.100
Age
gei_1/1
N/A
N/A
gei_1/1
Configuration Procedure
Enable the ARP proxy function on the ZXCTN9000.
ZXCTN 9000(config)#interface vlan 1
ZXCTN 9000(config-if-vlan1)#ip proxy-arp
ZXCTN 9000(config-if-vlan1)#exit
ZXCTN 9000(config)#interface vlan 2
3-8
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Procedure
Run the following commands.
ZXCTN 9000(config)#interface vlan 1
ZXCTN 9000(config-if-vlan1)#no arp source-filtered
ZXCTN 9000(config-if-vlan1)#exit
ZXCTN 9000(config)#show running-config interface vlan1
interface vlan1
no arp source-filtered
!
end
ZXCTN 9000(config-if-vlan1)#arp source-filtered
3-9
SJ-20100901100356-015|2011-07-30(R1.0)
3-10
SJ-20100901100356-015|2011-07-30(R1.0)
IP-Address
Mask
vlan1
192.168.2.1
255.255.255.0
down
down
down
vlan2
12.1.1.1
255.255.255.0
up
up
up
vlan3
13.1.1.1
255.255.255.0
up
up
up
vlan4
14.1.1.1
255.255.255.0
up
up
up
3-11
SJ-20100901100356-015|2011-07-30(R1.0)
15.1.1.1
255.255.255.0
up
up
up
2. View ARP configurations and check whether the ARP learning anomaly is caused by
the ARP protection function.
ZXCTN 9000(config-arp-if)#show running-config interface vlan3
/*Views the
configuration
result.*/
interface vlan3
ip proxy-arp
no arp source-filtered
no arp learn
arp protect interface limit-num 10
!
end
3. Check whether any permanent ARP entry is configured with an incorrect MAC address.
ZXCTN 9000(config)#show arp
Arp protect whole is enabled
The count is 21
IP Address
-----------------------------------------------------------------------------------192.168.112.100
0020.1244.5566
vlan10
N/A
N/A
N/A
12.1.1.1
0020.1244.5566
vlan2
N/A
N/A
N/A
13.1.1.1
0020.1244.5566
vlan3
N/A
N/A
N/A
14.1.1.1
0020.1244.5566
vlan4
N/A
N/A
N/A
15.1.1.1
0020.1244.5566
vlan5
N/A
N/A
N/A
120.1.1.1
0020.1122.3344
vlan1
N/A
N/A
N/A
120.1.1.2
TS
0020.2222.3344
vlan1
N/A
N/A
N/A
120.1.1.3
0020.1122.3355
vlan2
N/A
N/A
N/A
120.1.1.4
TS
0020.1122.3355
vlan2
N/A
N/A
N/A
20.1.1.1
0020.1244.5566
vlan1
N/A
N/A
N/A
120.1.1.5
0020.1122.3366
vlan1
N/A
N/A
120.1.1.6
TS
0020.1122.3366
vlan1
N/A
N/A
21.1.1.1
0020.1244.5566
vlan1
N/A
N/A
N/A
120.1.1.7
0020.1122.3377
vlan1
N/A
N/A
192.168.2.1
0020.1244.5566
vlan1
N/A
N/A
N/A
In the Age column, P indicates a permanent ARP entry, and TS indicates a static ARP
entry.
4. Run the debug command to check ARP packet sending, receiving, and response.
ZXCTN 9000#debug packets destination 192.168.2.1
ZXCTN 9000#debug arp packets interface vlan1
ZXCTN 9000#debug arp trace receive destination 192.168.2.1
ZXCTN 9000#debug arp trace receive source 192.168.2.1
3-12
SJ-20100901100356-015|2011-07-30(R1.0)
5. Check port configurations to check whether the traffic is sent to the destination.
If the fault still persists, contact the technical support engineer for help.
3-13
SJ-20100901100356-015|2011-07-30(R1.0)
3-14
SJ-20100901100356-015|2011-07-30(R1.0)
Chapter 4
RIP Configuration
Table of Contents
Configuring RIP..........................................................................................................4-1
RIP Maintenance and Diagnosis.................................................................................4-7
RIP Configuration Example ......................................................................................4-12
RIP Troubleshooting.................................................................................................4-14
Command
Function
ZXCTN9000(config)#router rip
Command
Function
ZXCTN9000(config)#router rip
Description
< update>
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
< invalid>
< holddown>
< flush>
Description
< packets>
< delay>
Example
A configuration example of setting the time parameters of RIP is shown below.
ZXCTN9000(config)#router rip
ZXCTN9000(config-rip)#timers basic 5 15 15 30
ZXCTN9000(config-rip)#output-delay 500 10
SJ-20100901100356-015|2011-07-30(R1.0)
l
l
l
l
Command
Function
ZXCTN9000(config)#router rip
Command
Function
key>
Command
Function
4-3
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
md5
authentication.
Description
< key-id>
< key-string>
Indicates the value of the key. The value of this parameter ranges
from 1 to 16 characters.
Command
Function
ZXCTN9000(config-if-vlanX)#ip split-horizon
ZXCTN9000(config-if-vlanX)#ip poison-reverse
It is not recommended to disable split horizon, unless for the purpose of correctly
advertising routes. To make split horizon on a serial interface (connected to a PSN)
invalid, you need to disable split horizon on all related ZXCTN9000s and access
servers.
4. Configuring route redistribution
Use these commands to redistribute routes of one protocol to RIP.
Step
Command
Function
ZXCTN9000(config)#router rip
to RIP.
4-4
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
[ process-id]
Indicates the process ID. This parameter is required for redistributing OSPF
or IS-IS routes. The value range of this parameter is as follows:
l
ospf: 1-65535
isis: 1-65535
Indicates the name of the route mapping for redistribution. The value of this
parameter ranges from 1 to 31 characters.
Command
Function
ZXCTN9000(config)#router rip
ZXCTN9000(config-rip)#version { 1| 2}
As shown in the following table, if the RIP version for sending or receiving is configured on
an interface, the default RIP version configured by the version command is invalid.
Step
Command
Function
broadcast | multicast} }
4-5
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
Indicates that the interface sends only RIPv2 packets. In this case, you can select the
broadcast or multicast mode.
Indicates that the interface sends compatible packets in broadcast mode and only routes
broadcast
multicast
Link reliability: The transport layer poses high requirements on stability and reliability.
The reliability covers the link itself and whether packet forwarding is affected in the
case of link faults.
Bandwidth: Routing load balancing enables the ZXCTN9000 to balance traffic by
multiple paths, fully utilizing bandwidth resources. The configuration of routing
protocols or static routes realizes multiple routes available for one destination
address in the forwarding table.
Load balancing supports per-packet and per-destination forwarding. The following table
shows the advantages and disadvantages of the two methods:
Per-destination
per-packet
Advan-
tage
different paths.
Disad-
van-
tage
Use these commands to configure RIP routing load balancing on the ZXCTN 9000.
Step
Command
Function
ZXCTN9000(config)#router rip
4-6
SJ-20100901100356-015|2011-07-30(R1.0)
Function
Description
Indicates the VRF name. The value of this parameter ranges from
1 to 32 characters.
< interface-name>
0.255.255.255
Output Item
Description
auto-summary
default-metric
distance
Defines the distance for RIP routing management. You can use the
no command to restore the default value, that is, 120. The value of
this parameter determines the selection of the best route in the global
routing table.
validate-update-source
flash-update-threshold
Defines the RIP flash timer. You can use the no command to restore
the default value, that is, 5. The flash timer can be changed as
required.
maximum-paths
The execution result of the show ip rip database command is shown below.
ZXCTN9000(config)#show ip rip database
Routes of rip:
h : is possibly down,in holddown time
f : out holddown time before flush
Dest
Metric RtPrf
InstanceID
Time
From
*> 137.1.0.0/16
254
00:00:12
0.0.0.0
*> 137.1.1.0/24
00:00:00
0.0.0.0
4-8
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
Metric
Indicates the metric of the route. If the value of this parameter is set to
16, the route is declared invalid.
RtPrf
Indicates the priority of the route. The value of this parameter shows
the reliability of the route. The priority of a route after aggregation is
254. If the value is 255, the route is invalid.
InstanceID
Indicates the instance of the route ID. This parameter is valid only to
OSPF and IS-IS routes.
Time
Indicates the duration of the route and the status of its timer.
From
Indicates where the route is learned. From 0.0.0.0 indicates that the
route is generated by the local ZXCTN9000.
The execution result of the show ip rip interface command is shown below.
ZXCTN9000(config-rip)#show ip rip interface vlan 1
ip address:137.1.1.2/24 rip is enabled
receive version 1 2
send version 2
split horizon is effective
poison reverse is effective
send subnet only is ineffective
notify default unset
originate default unset
neighbor restrict is ineffective
interface is nomoral
authentication type:none
Description
notify default
4-9
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
originate default
neighbor restrict
The execution result of the show ip rip neighbors command is shown below.
ZXCTN9000#show ip rip neighbors
neighbor address
interface
10.1.1.15
vlan 1
Description
neighbor address
interface
Function
ZXCTN9000#debug ip rip
4-10
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Description
224.0.0.9
via vlan 1
4-11
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Method
1.
2.
3.
4.
Configuration Procedure
The configuration of P1:
P1(config)#interface vlan 1
P1(config-if-vlan1)#ip address 192.168.1.1 255.255.255.0
P1(config-if-vlan1)#exit
P1(config)#interface vlan 2
P1(config-if-vlan2)#ip address 10.1.0.1 255.255.0.0
P1(config-if-vlan2)#exit
P1(config)#router rip
P1(config-rip)#network 192.168.1.1 0.0.0.255
P1(config-rip)#network 10.1.0.1 0.0.255.255
P1(config-rip)#exit
4-12
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Verification
When the above configurations are completed, view the result on P1 and P2. If the
following information is displayed, RIP neighboring relationship is established. In addition,
P1 and P2 can learn the interface route from each other and ping through each other.
Run the show running-config rip command on P1 to check whether the RIP configuration
is correct.
P1(config-rip)#show running-config rip
router rip
network 192.168.1.0 0.0.0.255
network 10.1.0.0 0.0.255.255
interface vlan 1
$
interface vlan 2
$
!
Dest
Metric
RtPrf
Time
From
*> 10.0.0.0/8
120
00:00:12
192.168.1.2
254
00:00:29
0.0.0.0
*> 10.1.0.0/16
00:00:00
0.0.0.0
*> 192.168.1.0/24
00:00:00
0.0.0.0
10.0.0.0/8
interface
vlan 1
Run the show running-config rip command on P2 to check whether the RIP configuration
is correct.
P2(config)#show running-config rip
router rip
network 192.168.1.0 0.0.0.255
network 10.2.0.0 0.0.255.255
interface vlan 1
$
interface vlan 2
4-13
SJ-20100901100356-015|2011-07-30(R1.0)
Dest
Metric
*> 10.0.0.0/8
RtPrf
254
Time
00:00:03
From
0.0.0.0
*> 10.2.0.0/16
00:00:00
0.0.0.0
*> 192.168.1.0/24
00:00:00
0.0.0.0
interface
192.168.1.1
vlan 1
4-14
SJ-20100901100356-015|2011-07-30(R1.0)
4-15
SJ-20100901100356-015|2011-07-30(R1.0)
4-16
SJ-20100901100356-015|2011-07-30(R1.0)
Chapter 5
OSPF Configuration
Table of Contents
Configuring OSPF ......................................................................................................5-1
OSPF Configuration Instances .................................................................................5-44
OSPF Troubleshooting .............................................................................................5-54
Command
Function
5-1
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
ZXCTN9000(config-router)#end
Example
As shown in Figure 5-1, enable OSPF on P1, P2, and P3.
The router IDs of devices are described in the table below.
Device
Router ID
P1
1.1.1.1
P2
1.1.1.2
P3
1.1.1.3
5-2
SJ-20100901100356-015|2011-07-30(R1.0)
The basic OSPF configuration on P1 is completed, and the OSPF process is successfully
enabled. The router ID is the address of the vlan1 interface.
Configure P2. Use the loopback interface to establish the OSPF connection. First,
configure a loopback address and then enables the OSPF process, as shown in the
following:
P2(config)#interface loopback1
P2(config-loopback1)#ip adderss 1.1.1.2 255.255.255.255
P2(config-loopback1)#exit
P2(config)#interface vlan1
P2(config-if-vlan1)#ip address 30.0.0.2 255.255.255.252
P2(config-if-vlan1)#exit
P2(config)#interface gei_1/1
P2(config-gei_1/1)#switchport access vlan 1
P2(config-gei_1/1)#exit
P2(config)#interface vlan 2
P2(config-if-vlan2)#ip address 30.0.1.2 255.255.255.252
P2(config-if-vlan2)#exit
P2(config)#interface gei_1/2
P2(config-gei_1/2)#switchport access vlan 2
P2(config-gei_1/2)#exit
P2(config)#router ospf 1
P2(config-router)#network 30.0.0.0 0.0.0.3 area 0
P2(config-router)#network 30.0.1.0 0.0.0.3 area 0
P2(config-router)#exit
View the OSPF information. OSPF automatically selects the address of loopback1 as the
router ID.
P2(config)#show ip ospf
OSPF 1 Router ID 1.1.1.2 enable
Enabled for 00:00:09,Debug on
Number of areas 0, Normal 0, Stub 0, NSSA 0
5-3
SJ-20100901100356-015|2011-07-30(R1.0)
Mask
Gw
Interface
Owner
Pri
Metric
loopback1
address
ospf
110
1.1.1.3
255.255.255.255
1.1.1.3
30.0.0.1
255.255.255.255
30.0.1.2
vlan1
30.0.0.2
255.255.255.255
30.0.1.2
vlan1
ospf
110
12
30.0.1.0
255.255.255.252
30.0.1.1
vlan2
direct
30.0.1.1
255.255.255.255
30.0.1.1
vlan2
address
30.0.1.2
255.255.255.255
30.0.1.2
vlan2
110
ospf
If P3 can ping through P1, it indicates that the route and OSPF work properly.
Command
Function
5-4
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
seconds>
Example
As shown in Figure 5-2, modify the default parameter of the OSPF interfaces on P1 and
P2.
Figure 5-2 Configuring OSPF Interface Attribute
Enable the OSPF protocol on P1 and P2 and advertise the network segment.
5-5
SJ-20100901100356-015|2011-07-30(R1.0)
5-6
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
vrf-name> ]
mode.
authentication [ message-digest]
function.
mode.
digest authentication.
Description
< keyid>
md5< password>
encypt
Example
As shown in Figure 5-3, configure the OSPF authentication function on P1 and P2.
The router IDs of devices are described in the table below.
Device
Router ID
P1
1.1.1.1
P2
1.1.1.2
P3
1.1.1.3
5-7
SJ-20100901100356-015|2011-07-30(R1.0)
In area 0, establish the OSPF neighboring relationship between P1 and P2. In area 1,
establish the OSPF neighboring relationship between P2 and P3.
The configuration of P1:
P1(config)#interface loopback1
P1(config-loopback1)#ip adderss 1.1.1.1 255.255.255.255
P1(config-loopback1)#exit
P1(config)#interface vlan1
P1(config-if-vlan1)#ip address 30.0.0.1 255.255.255.252
P1(config-if-vlan1)#exit
P1(config)#interface gei_1/1
P1(config-gei_1/1)#swithport access vlan1
P1(config-gei_1/1)#exit
P1(config)#router ospf 1
P1(config-router)#router-id 1.1.1.1
P1(config-router)#network 30.0.0.0 0.0.0.3 area 0
P1(config-router)#exit
5-8
SJ-20100901100356-015|2011-07-30(R1.0)
Enable the plain text authentication in area 0 and configure zte as the packet to be
authenticated.
The configuration of P1:
P1(config)#router ospf 1
P1(config-router)#area 0 authentication
P1(config-router)#exit
P1(config)#interface vlan1
P1(config-if-vlan1)#ip ospf authentication
P1(config-if-vlan1)#ip ospf authentication-key zte
P1(config-if-vlan1)#exit
5-9
SJ-20100901100356-015|2011-07-30(R1.0)
Run the show ip ospf command. The simple authentication takes effect in area 0.
P2(config)#show ip ospf
OSPF 1 Router ID 1.1.1.2 enable
Enabled for 02:37:38,Debug on
Number of areas 1, Stub 0, Transit 0
Enable the MD5 authentication in area 1. The key ID is 1 and the authentication key is zte.
The configuration of P2:
P2(config)#router ospf 1
P2(config-router)#area 1 authentication message-digest
P2(config-router)#exit
P2(config)#interface vlan2
P2(config-if-vlan2)#ip ospf authentication message-digest
P2(config-if-vlan2)#ip ospf message-digest-key 1 md5 zte
P2(config-if-vlan2)#exit
View the OSPF interface information on P3. The authentication mode is MD5.
P3(config)#show ip ospf interface vlan2
OSPF Router with ID (1.1.1.3) (Process ID 1)
Vlan2 is up
Internet Address 30.0.1.2 255.255.255.252 enable
5-10
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
cost> ]
3
Description
no-summary
Indicates the cost of the default route advertised to the stub area. The
value of this parameter ranges from 0 to 65535.
Example
As shown in Figure 5-4, configure area 1 as the stub area.
The router IDs of devices are described in the table below.
Device
Router ID
P1
1.1.1.1
P2
1.1.1.2
P3
1.1.1.3
5-11
SJ-20100901100356-015|2011-07-30(R1.0)
5-12
SJ-20100901100356-015|2011-07-30(R1.0)
5-13
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Description
no-redistribution
default-information-originate
metric< metric-value>
Indicates the metric value of the type 7 default LSA. The value of this
parameter ranges from 0 to 16777214.
Indicates the type of type 7 LSAs. The value of this parameter can be
ext-1 or ext-2.
no-summary
trans-type7-suppress-fa
translator-role
Indicates the translation role when type 7 LSAs are converted to type
5 LSAs.
5-14
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
always|candidate
Indicates the translation role holding time after the translation role
is lost.
Example
As shown in Figure 5-5, configure area 1 as the NSSA area.
The router IDs of devices are described in the table below.
Device
Router-ID
P1
1.1.1.1
P2
1.1.1.2
P3
1.1.1.3
5-15
SJ-20100901100356-015|2011-07-30(R1.0)
5-16
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Description
summary-link|nssa-external-link
advertise
not-advertise
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
tag< tag-value>
Example
As shown in Figure 5-6, configure OSPF on P1, P2, and P3, set P2 to the ABR, and
configure route aggregation on P2.
The router IDs of devices are described in the table below.
Device
Router-ID
P1
1.1.1.1
P2
1.1.1.2
P3
1.1.1.3
5-18
SJ-20100901100356-015|2011-07-30(R1.0)
5-19
SJ-20100901100356-015|2011-07-30(R1.0)
Mask
Gw
Interface
Owner
loopback1
address
1.1.1.3
255.255.255.255
1.1.1.3
2.2.2.0
255.255.255.252
30.0.1.1
vlan3
2.2.2.4
255.255.255.252
30.0.1.1
30.0.0.0
255.255.255.255
30.0.0.2
255.255.255.255
30.0.1.0
Pri Metr
0
ospf
110
vlan2
ospf
110
30.0.1.1
vlan1
ospf
110
30.0.1.1
vlan1
ospf
110
255.255.255.252
30.0.1.2
vlan1
direct
30.0.1.1
255.255.255.255
30.0.1.1
vlan1
ospf
110
30.0.1.2
255.255.255.255
30.0.1.2
vlan1
address
Mask
Gw
Interface
Owner
1.1.1.3
255.255.255.255
1.1.1.3
loopback1
address
2.2.2.0
255.255.255.248
30.0.1.1
vlan1
30.0.0.1
255.255.255.255
30.0.1.1
vlan1
30.0.0.2
255.255.255.255
30.0.1.1
30.0.1.0
255.255.255.252
30.0.1.1
255.255.255.255
30.0.1.2
255.255.255.255
Pri Metr
0
ospf
110
ospf
110
vlan1
ospf
110
30.0.1.2
vlan2
direct
30.0.1.1
vlan2
ospf
110
30.0.1.2
vlan2
address
5-20
SJ-20100901100356-015|2011-07-30(R1.0)
Note that the area 1 range 2.2.2.0 255.255.255.248 command is advertise by default. If it is
set to not-advertise, the aggregation route to network segment 2.2.2.0 is unavailable on
P3, and P3 cannot ping through this network segment.
P2(config-router)#area 1 range 2.2.2.0 255.255.255.248 summary-link not-advertise
P3#show ip route
Total number of routes:
Mask
Gw
Interface
Owner
1.1.1.3
255.255.255.255
1.1.1.3
loopback1
address
30.0.0.1
255.255.255.255
30.0.1.1
vlan2
30.0.0.2
255.255.255.255
30.0.1.1
30.0.1.0
255.255.255.252
30.0.1.2
30.0.1.1
255.255.255.255
30.0.1.2
255.255.255.255
Pri Metr
0
ospf
110
vlan2
ospf
110
vlan2
direct
30.0.1.1
vlan2
ospf
110
30.0.1.2
vlan2
address
If the above information is displayed, it indicates that P3 does not learn the routing
information of network segment 2.2.2.0. Although the aggregation route to network
segment 2.2.2.0 is still available in the database, but not advertised to other areas.
Command
Function
net-mask>
Example
As shown in Figure 5-7, to configure OSPF on P1, P2, and P3, advertise the external
routes on P1 and configure ASBR route aggregation on P1.
The router IDs of devices are described in the table below.
Device
Router-ID
P1
1.1.1.1
5-21
SJ-20100901100356-015|2011-07-30(R1.0)
Device
Router-ID
P2
1.1.1.2
P3
1.1.1.3
5-22
SJ-20100901100356-015|2011-07-30(R1.0)
5-23
SJ-20100901100356-015|2011-07-30(R1.0)
Owner
Pri Me
1.1.1.1
Dest
255.255.255.255 30.0.0.2
Mask
Gw
vlan1
ospf
110 20
1.1.1.2
255.255.255.255 1.1.1.2
loopback1
address
2.2.2.0
255.255.255.248 30.0.0.2
vlan1
ospf
30.0.0.0
255.255.255.252 30.0.0.1
vlan1
direct
30.0.0.1
255.255.255.255 30.0.0.1
vlan1
address
30.0.0.2
255.255.255.255 30.0.0.2
vlan1
ospf
110
30.0.1.0
255.255.255.252 30.0.1.1
vlan2
direct
30.0.1.1
255.255.255.255 30.0.1.1
vlan2
address
30.0.1.2
255.255.255.255 30.0.1.2
vlan2
ospf
110
110 20
Command
Function
Description
< protocol>
as < as-number>
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
Indicates the LSA tag after redistribution. The value of this parameter
ranges from 0 to 4294967295.
Indicates the LSA metric type after redistribution. The value of this
parameter is ext-1 or ext-2. The default value is ext-2.
Indicates the name of the route mapping for redistribution. The value
of this parameter ranges from 1 to 64 characters.
Example
As shown in Figure 5-8, redistribute RIP routes in area 0.
The router IDs of devices are described in the table below.
Device
Router-ID
P1
1.1.1.1
P2
1.1.1.2
5-25
SJ-20100901100356-015|2011-07-30(R1.0)
Mask
Gw
Interface
Owner
Pri
Metric
1.1.1.2
255.255.255.255
1.1.1.2
loopback1
address
30.0.0.0
255.255.255.252
30.0.0.2
vlan1
direct
30.0.0.1
255.255.255.255
30.0.0.1
vlan1
ospf
110
30.0.0.2
255.255.255.255
30.0.0.2
vlan1
address
30.0.2.0
255.255.255.252
30.0.0.1
vlan1
ospf
110
20
5-26
SJ-20100901100356-015|2011-07-30(R1.0)
Mask
255.255.255.255
Gw
Interface
Owner
Pri
Metric
30.0.0.1
vlan1
ospf
110
20
1.1.1.2
255.255.255.255
1.1.1.2
loopback1
address
30.0.0.0
255.255.255.252
30.0.0.2
vlan1
direct
30.0.0.1
255.255.255.255
30.0.0.1
vlan1
ospf
110
30.0.0.2
255.255.255.255
30.0.0.2
vlan1
address 0
30.0.1.0
255.255.255.252
30.0.0.1
vlan1
ospf
110
20
30.0.2.0
255.255.255.252
30.0.0.1
vlan1
ospf
110
20
Command
Function
Description
always
metric< metric-value>
Indicates the metric value of the default. The value of this parameter
ranges from 0 to 16777214. The default value is 1.
metric-type< type>
Indicates the type of the default route. The value of this parameter can
be ext-1 or ext-2. The default value is ext-2.
route-map< map-tag>
5-27
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Note that the virtual link cannot be created in area 0, stub area, or NSSA area.
Parameter
Description
< area-id>
Indicates the area ID that the virtual link passes by. The area cannot
be the stub area, NSSA area, or area 0.
< router-id>
Indicates the Hello packet sending interval on the virtual link. The unit
is second. The value of this parameter ranges from 1 to 8192. The
default value is 10.
Indicates the transmission delay on the virtual link. The unit is second.
The value of this parameter ranges from 1 to 8192. The default value
is 1.
Indicates the dead interval on the virtual link. The unit is second. The
value of this parameter ranges from 1 to 8192. The default value is 40.
Example
As shown in Figure 5-9, create the virtual link between P2 and P3.
The router IDs of devices are described in the table below.
Device
Router-ID
P1
1.1.1.1
P2
1.1.1.2
P3
1.1.1.3
5-28
SJ-20100901100356-015|2011-07-30(R1.0)
5-29
SJ-20100901100356-015|2011-07-30(R1.0)
5-30
SJ-20100901100356-015|2011-07-30(R1.0)
Enabling the sham link, establishing the neighboring relationship, and exchanging the
database between PE devices enables the private network router in the area to learn two
routes, namely, one sham link (MPLS VPN backbone) route and one private network route.
The route selection can be realized by changing the metric attribute.
Configuring the following in the VRF instance corresponding to the OSPF on the PE device
Step
Command
Function
Description
< area-id>
< ip-address1>
< ip-address2>
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
ZXCTN9000(config-router)#max-metric router-lsa
wait-for-bgp
seconds>
Link reliability: The transport layer poses high requirements on stability and reliability.
The reliability covers the link itself and whether packet forwarding is affected in the
case of link faults.
Bandwidth: Routing load balancing enables the ZXCTN9000 to balance traffic by
multiple paths, fully utilizing bandwidth resources. The configuration of routing
protocols or static routes realizes multiple routes available for one destination
address in the forwarding table.
Use these commands to configure OSPF routing load balancing on the ZXCTN 9000.
5-32
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
vrf-name> ]
2
A maximum of eight equivalent routes are saved in the routing table for load balancing.
This command supports up to eight routes with the same metric value. By default, one is
supported.
A maximum of eight equivalent routes are saved in the routing table for load balancing.
This command supports up to eight routes with the same metric value. By default, one is
supported.
Example
As shown in Figure 5-11, enable OSPF between P1 and P2, configure routing load
balancing between P1 and P2, and set the maximum number of supported routes for
OSPF routing load balancing to 2.
Device
Router-ID
P1
1.1.1.1
P2
1.1.1.2
5-33
SJ-20100901100356-015|2011-07-30(R1.0)
P1(config-router)#exit
5-34
SJ-20100901100356-015|2011-07-30(R1.0)
11
Mask
Gw
Interface
Owner
Pri
Metric
1.1.1.1
255.255.255.255 1.1.1.1
loopback1
address
2.2.2.0
255.255.255.252 2.2.2.1
vlan3
direct
2.2.2.1
255.255.255.255 2.2.2.1
vlan3
address
2.2.2.4
255.255.255.252 30.0.1.2
vlan2
ospf
110
30.0.0.2
vlan1
ospf
110
vlan1
direct
vlan1
address
vlan1
ospf
110
vlan2
direct
vlan2
address
vlan2
ospf
110
Command
Function
vrf-name> ]
2
ZXCTN9000(config-router)#fast-reroute alternate-protect-t
5-35
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
ZXCTN9000(config-if-vlanX)#fast-reroute [
Function
process-id> ]
ZXCTN9000#show ip ospf database [ database-summary | adv-router <
OSPF database.
process-id> ]
ZXCTN9000#show ip ospf database external [ < link-state-id> ] [ adv-router
database.
5-36
SJ-20100901100356-015|2011-07-30(R1.0)
5-37
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
Indicates that the domain ID type is 0x5 and the value is 0.0.0.1.
NSSA 0
The execution result of the show ip ospf interface command is shown below:
ZXCTN9000(config)#show ip ospf interface
OSPF Router with ID (100.100.100.14) (Process ID 1)
gei_1/1 is up
Internet Address 100.100.100.14 255.255.255.0 enable
Up for 00:17:51
In the area 0.0.0.0 DR
Cost 1, Priority 1, Network Type broadcast
Transmit Delay(sec) 1, Authentication Type null
Timer intervals(sec) : Hello 10, Dead 40, Retransmit 5
Designated Router (ID) 100.100.100.14, Interface address 100.100.100.14
Backup Designated router (ID) 100.1.1.2, Interface address 100.100.100.12
Number of Neighbors 1, Number of Adjacent neighbors 1
100.1.1.2
BDR
gei_1/2 is up
Internet Address 1.1.1.1 255.255.255.0 enable
Up for 00:16:25
In the area 0.0.0.1 DR
Cost 1, Priority 1, Network Type broadcast
Transmit Delay(sec) 1, Authentication Type null
Timer intervals(sec) : Hello 10, Dead 40, Retransmit 5
Designated Router (ID) 100.100.100.14, Interface address 1.1.1.1
Backup Designated router (ID) 100.1.1.2, Interface address 1.1.1.10
Number of Neighbors 1, Number of Adjacent neighbors 1
100.1.1.2
BDR
Description
255.255.255.0 enable
In the area 0.0.0.0 DR
5-38
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
Retransmit 5
The execution result of the show ip ospf database command is shown below:
ZXCTN9000#show ip ospf database
OSPF Router with ID (110.1.1.1) (Process ID 1)
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum Link count
110.1.1.1 110.1.1.1 3 0x80000002 0x3dbe 1
Summary Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum
112.1.1.0 110.1.1.1 6 0x80000001 0xd99f
168.1.0.0 110.1.1.1 6 0x80000001 0xff43
Summary ASB Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Checksum
168.1.1.3 110.1.1.1 6 0x80000001 0xc875
Router Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum Link count
110.1.1.1 110.1.1.1 3 0x80000025 0xf8f8 1
168.1.1.3 168.1.1.3 61 0x80000005 0x70e 2
Net Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum
168.1.1.1 110.1.1.1 1183 0x80000002 0x9787
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
113.1.0.0 168.1.1.3 48 0x80000001 0xa0dd 0
111.1.0.0 110.1.1.1 272 0x80000001 0x4ae3 3489660928
Description
Link ID
ADV Router
Age
Seq#
Checksum
Link count
The execution result of the show ip ospf database router command is shown below:
ZXCTN9000#show ip ospf database router
OSPF Router with ID (110.1.1.1) (Process ID 1)
5-39
SJ-20100901100356-015|2011-07-30(R1.0)
Description
LS age
LS Type
Link State ID
Advertising Router
LS Seq Number
Checksum
Length
The execution result of the show ip ospf database network command is shown below:
ZXCTN9000#show ip ospf database network
OSPF Router with ID (110.1.1.1) (Process ID 1)
Net Link States (Area 0.0.0.1)
Routing Bit Set on this LSA
LS age: 789
Options: (No TOS-capability, No DC)
LS Type: Network Links
Link State ID: 168.1.1.1 (Address of Designated Router)
Advertising Router: 110.1.1.1
LS Seq Number: 0x80000002
Checksum: 0x9787
Length: 32
Network Mask: /16
Attached Router: 110.1.1.1
5-40
SJ-20100901100356-015|2011-07-30(R1.0)
Description
LS age
LS Type
Link State ID
Advertising Router
LS Seq Number
Checksum
Length
The execution result of the show ip ospf database summary command is shown below:
ZXCTN9000#show ip ospf database summary
OSPF Router with ID (110.1.1.1) (Process ID 1)
Summary Net Link States (Area 0.0.0.0)
LS age: 129
Options: (No TOS-capability, No DC)
LS Type: Summary Links(Network)
Link State ID: 112.1.1.0 (Summary Network Number)
Advertising Router: 110.1.1.1
LS Seq Number: 0x80000001
Checksum: 0xd99f
Length: 28
Network Mask: /24
TOS: 0 Metric: 2
Description
LS age
LS Type
Link State ID
Advertising Router
LS Seq Number
Checksum
Length
The execution result of the show ip ospf database external command is shown below:
ZXCTN9000#show ip ospf database external
OSPF Router with ID (110.1.1.1) (Process ID 1)
5-41
SJ-20100901100356-015|2011-07-30(R1.0)
Description
LS age
LS Type
Link State ID
Advertising Router
LS Seq Number
The execution result of the show ip ospf database asbr-summary command is shown below:
ZXCTN9000#show ip ospf database asbr-summary
OSPF Router with ID (110.1.1.1) (Process ID 1)
Summary ASB Link States (Area 0.0.0.0)
LS age: 68
Options: (No TOS-capability, No DC)
LS Type: Summary Links(AS Boundary Router)
Link State ID: 168.1.1.3 (AS Boundary Router address)
Advertising Router: 110.1.1.1
LS Seq Number: 0x80000001
Checksum: 0xc875
Length: 28
Network Mask: /0
TOS: 0 Metric: 1
Description
LS age
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
LS Type
Link State ID
Advertising Router
LS Seq Number
Checksum
Function
switch.
Enables the OSPF database timer
debugging switch.
ZXCTN9000#debug ip ospf events < process-id>
process-id>
switch.
The execution result of the debug ip ospf all command is shown below:
5-43
SJ-20100901100356-015|2011-07-30(R1.0)
100.100.100.20
01:03:25: OSPF: End of hello processing
01:03:26: OSPF: 100.100.100.20 db aging timer activated
01:03:27: OSPF: 100.100.100.20 As external export timer activated
01:03:27: OSPF: 100.100.100.20 db aging timer activated
01:03:28: OSPF: send v:2 t:1 l:48 rid:100.100.100.20 aid:0.0.0.0
chk:c3da aut:0 auk:
int:gei_1/1 src:100.100.100.20 dest:AllSPFRouters
01:03:28: OSPF: 100.100.100.20 db aging timer activated
01:03:29: OSPF: Rcv v:2 t:1 l:48 rid:100.100.100.14 aid:0.0.0.1 chk:a367
aut:0 auk:
int:gei_1/2 src:1.1.1.1 dest:224.0.0.5
Description
activated
5-44
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Method
1. Configure directly-connected interface addresses and loopback interface addresses
for P1 and P2.
2. Add the interfaces to OSPF area 0.
3. Configure routing load balancing. P1 and P2 can learn each other's routes to the
loopback interfaces.
Configuration Procedure
The configuration of P1:
P1(config)#interface loopback1
P1(config-loopback1)#ip adderss 1.1.1.11 255.255.255.255
P1(config-loopback1)#exit
P1(config)#interface vlan1
P1(config-if-vlan1)#ip address 30.0.0.1 255.255.255.252
P1(config-if-vlan1)#exit
P1(config)#interface gei_2/3
P1(config-gei_2/3)#switchport access vlan 1
P1(config-gei_2/3)#exit
P1(config)#interface vlan2
P1(config-if-vlan2)#ip address 30.0.1.1 255.255.255.252
P1(config-if-vlan2)#exit
P1(config)#interface gei_2/4
P1(config-gei_2/4)#switchport access vlan 2
P1(config-gei_2/4)#exit
P1(config)#router ospf 1
P1(config-router)#router-id 1.1.1.11
P1(config-router)#network 30.0.0.0 0.0.0.3 area 0
P1(config-router)#network 30.0.1.0 0.0.0.3 area 0
P1(config-router)#network 1.1.1.11 0.0.0.0 area 0
P1(config)#maximum-paths 2
P1(config-router)#exit
5-45
SJ-20100901100356-015|2011-07-30(R1.0)
P2(config-router)#exit
Configuration Verification
When the above configurations are completed, view the result on P1 and P2. If the
following information is displayed, OSPF neighboring relationship is established. In
addition, P1 and P2 can ping through each other through the loopback interfaces.
P1#show ip ospf neighbor
Neighbor ID
Pri
State
DeadTime
Address
Interface
1.1.1.2
FULL/--
00:00:39
30.0.0.2
vlan1
1.1.1.2
FULL/--
00:00:40
30.0.1.2
vlan2
Mask
255.255.255.255
Gw
Interface
Owner
Pri
Metric
30.0.1.2
vlan2
ospf
110
30.0.0.2
vlan1
ospf
110
5-46
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Method
1.
2.
3.
4.
Configuration Procedure
The configuration of P1:
P1(config)#interface loopback1
P1(config-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-loopback1)#exit
P1(config)#interface vlan1
P1(config-if-vlan1)#ip address 11.22.1.1 255.255.255.0
P1(config-if-vlan1)#exit
P1(config)#interface
gei_2/1
5-47
SJ-20100901100356-015|2011-07-30(R1.0)
5-48
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Verification
Run the show ip route 1.1.1.3 command on P1 to view whether the route to P3 is available.
ZXCTN 9000(config)#show ip route 1.1.1.3
Total number of routes:
Mask
0.0.0.0
Gw
Interface
11.22.1.2
vlan1
Owner
Pri
ospf
110
Metric
3
Run the show ip route 0.0.0.0 command on P1 to view whether the default route to P2 is
available.
ZXCTN 9000(config)#show ip route 0.0.0.0
Total number of routes:
Mask
0.0.0.0
0.0.0.0
Gw
Interface
11.22.1.2
vlan1
Owner
Pri Metric
ospf
110
Run the show ip route 1.1.1.1 command on P3 to view whether the route to P1 is available.
P3(config)#show ip route 1.1.1.1
Total number of routes:
Mask
Gw
Interface
255.255.255.255 33.22.1.2
vlan1
Owner
Pri Metric
ospf
110
20
The following example describes how CE1 isolates the flood information from PE1 and
PE2. Figure 5-14 shows the networking of the configuration example.
Figure 5-14 Topology of OSPF Multi-instance Configuration Example
Configuration Method
1. Establish the OSPF relationship between PE1 and CE1.
2. Establish the OSPF relationship between PE2 and CE1.
3. Disable PE2 from learning the link state information on VPN1.
Configuration Procedure
The configuration of PE1:
PE1(config)#ip vrf vpn1
PE1(config-vrf)#rd 1:1
PE1(config-vrf)#exit
PE1(config)#interface loopback1
PE1(config-loopback1)#ip vrf forwarding vpn1
PE1(config-loopback1#ip address 1.1.1.11 255.255.255.255
PE1(config-loopback1)#exit
PE1(config)#interface vlan1
PE1(config-if-vlan1)#ip vrf forwarding vpn1
PE1(config-if-vlan1)#ip address 30.0.0.1 255.255.255.252
PE1(config-if-vlan1)#exit
PE1(config)#interface gei_1/1
PE1(config-gei_1/1)#switchport access vlan 1
PE1(config-gei_1/1)#exit
PE1(config)#router ospf 1 vrf vpn1
PE1(config-router)#network 1.1.1.11 0.0.0.0 area 0
PE1(config-router)#network 30.0.0.1 0.0.0.3 area 0
PE1(config-router)#exit
5-50
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Verification
After the environment is established, CE1 can learn the loopback1 route advertised by
PE1, as well as that advertised by PE2. But PE2 and PE1 cannot learn the route from
each other. It indicates that the OSPF multi-instance makes a difference.
CE1#show ip route ospf
Total number of routes:
Mask
Gw
Interface
Owner
Pri Metric
1.1.1.11
255.255.255.255
30.0.0.1
vlan1
ospf
110
2.2.2.11
255.255.255.255
30.0.1.1
vlan2
ospf
110
30.0.0.1
255.255.255.255
30.0.0.1
vlan1
ospf
110
30.0.1.1
255.255.255.255
30.0.1.1
vlan2
ospf
110
Mask
Gw
Interface
Owner
Pri
Metric
2.2.2.22
255.255.255.255
30.0.1.2
vlan1
ospf
110
30.0.1.2
255.255.255.255
30.0.1.2
vlan1
ospf
110
Mask
Gw
Interface
Owner
Pri
Metric
1.1.1.22
255.255.255.255
30.0.0.2
vlan1
ospf
110
30.0.0.2
255.255.255.255
30.0.0.2
vlan1
ospf
110
5-52
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Method
1. Configure the interface and per-packet load balancing (per-destination by default).
2. Enable and configure the OSPF protocol.
3. Configure routing load balancing on P1.
Configuration Procedure
The configuration of P1:
P1(config)#interface loopback1
P1(config-loopback1)#ip adderss 1.1.1.1 255.255.255.255
P1(config-loopback1)#exit
P1(config)#interface vlan1
P1(config-if-vlan1)#ip address 30.0.0.1 255.255.255.252
P1(config-if-vlan1)#exit
P1(config)#interface gei_2/1
P1(config-gei_2/1)#switchport access vlan 1
P1(config-gei_2/1)#exit
P1(config)#interface vlan2
P1(config-if-vlan2)#ip address 30.0.1.1 255.255.255.252
P1(config-if-vlan2)#exit
P1(config)#interface gei_2/2
P1(config-gei_2/2)#switchport access vlan 2
P1(config-gei_2/2)#exit
P1(config)#router ospf 1
P1(config-router)#router-id 1.1.1.1
P1(config-router)#network 30.0.0.0 0.0.0.3 area 0
P1(config-router)#network 30.0.1.0 0.0.0.3 area 0
P1(config)#maximum-paths 2
P1(config-router)#exit
5-53
SJ-20100901100356-015|2011-07-30(R1.0)
P2(config-router)#exit
Configuration Verification
Run the show commands to verify the configuration result.
P1#show ip route ospf
Total number of routes:
Mask
Gw
Interface
Owner
Pri
Metric
30.0.0.2
255.255.255.255
30.0.0.2
vlan1
ospf
110
30.0.1.2
255.255.255.255
30.0.1.2
vlan2
ospf
110
SJ-20100901100356-015|2011-07-30(R1.0)
l
l
l
l
l
l
Check whether the hello interval and dead interval are consistent.
Check whether the area of the interface and that of the neighboring interface are consistent and whether their area types match.
To check the MTU in exstart state, the MTUs for master/slave negotiation based on DD
packets must be consistent. In addition, check whether the unicast route is reachable.
Check whether the process and area are disabled through the show ip ospf command.
Check whether the interface is disabled and whether it is set to the passive mode.
Check whether the router ID is compliant. If the network is a broadcast network, check
whether the subnet masks are consistent.
5-55
SJ-20100901100356-015|2011-07-30(R1.0)
5-56
SJ-20100901100356-015|2011-07-30(R1.0)
5-58
SJ-20100901100356-015|2011-07-30(R1.0)
Gw
Interface
Owner
Pri
Metric
1.1.1.200/32
101.2.1.200
gei_1/1
OSPF
110
1.1.1.200/32
102.2.1.200
gei_1/2
OSPF
110
2. Check whether routing load balancing is enabled, that is, whether the maximum-paths
parameter is configured.
ZXCTN 9000#show running-config ospf
router ospf 1
5-60
SJ-20100901100356-015|2011-07-30(R1.0)
5. If the per-destination load balancing is adopted, check whether the quintuple is regular
and whether the internal algorithm supports the flows to be forwarded to the same
next hop. If the quintuple is irregular or the algorithm is improper, contact the technical
support engineer for help.
the standby link to the destination should be shorter than the sum of the distance from the
next hop of the standby link to the source node and the distance from the source node
of the active link to the destination.
If the cost value of the link meets related requirement, check whether the fast-reroute disa
ble or fast-reroute block command is configured on the interface of the standby link.
When the active/standby egresses are available, the active/standby mode is formed.
To use this command, the peer end must be an ABR or ASBR.
2. If the active/standby mode is not configured, check whether the algorithm meets
related requirements. If not, modify the cost of the interface to satisfy the requirements
of the FRR algorithm.
3. Check whether the standby link is disabled.
If the fault still persists, contact the technical support engineer for help.
5-63
SJ-20100901100356-015|2011-07-30(R1.0)
5-64
SJ-20100901100356-015|2011-07-30(R1.0)
Chapter 6
IS-IS Configuration
Table of Contents
Configuring IS-IS ........................................................................................................6-1
IS-IS Configuration Instances ...................................................................................6-17
IS-IS Troubleshooting...............................................................................................6-29
Command
Function
range-number> ]
interface.
6-1
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
Sets metric-style.
By default, the narrow mode is
adopted.
interface-name> }
6-2
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
level-2]
10
11
point-to-point }
12
| level-2]
Description
Parameter
Description
always
Indicates the metric value. The value of this parameter ranges from 0
to 4261412864.
Indicates the metric type. The value is external or internal. The default
value is internal.
level-1
level-1-2
level-2
tag
route-map
Description
< ip-address>
< net-mask>
Indicates the metric value. The value of this parameter ranges from 0
to 4261412864.
level-1
Indicates that if the non local interface addresses in the local level-1
LSP contains the subnet route of this aggregated network segment,
the routes are aggregated to level-1 according to the address.
level-1-2
level-2
tag
6-4
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
level-1-2| level-2-only}
[ level-1 | level-2]
[ level-1 | level-2]
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
retransmission interval is valid to both
level-1 and level-2.
level-1 | level-2]
level-1 | level-2]
[ level-1 | level-2]
[ level-1 | level-2]
Inter-neighbor authentication
Intra-area authentication
Inter-area authentication
6-6
SJ-20100901100356-015|2011-07-30(R1.0)
Inter-SNP authentication
Use these
Step
Command
Function
level-1 | level-2]
authentication.
If the optional parameters are not included,
the authentication type is valid to both
level-1 and level-2.
[ level-1 | level-2]
6-7
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
ZXCTN9000(config-isis)#enable-snp-authentication
ZXCTN9000(config-isis)#disable-snp-authentication
Command
Function
ZXCTN9000(config-isis)#hostname dynamic
Command
Function
er>
6-8
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
routing mode.
Description
< protocol>
level-1
level-1-2
level-2
< metric-type>
< metric-value>
Indicates the metric value. The value of this parameter ranges from 0
to 4261412864.
References a route-map.
Link reliability: The transport layer poses high requirements on stability and reliability.
The reliability covers the link itself and whether packet forwarding is affected in the
case of link faults.
Bandwidth: Routing load balancing enables the ZXCTN9000 to balance traffic by
multiple paths, fully utilizing bandwidth resources. The configuration of routing
protocols or static routes realizes multiple routes available for one destination
address in the forwarding table.
Load balancing supports per-packet and per-destination forwarding. The following table
shows the advantages and disadvantages of the two methods:
6-9
SJ-20100901100356-015|2011-07-30(R1.0)
Per-destination
per-packet
Advan-
tage
among paths.
paths.
Disad-
vantage
destinations.
such as VoIP.
The ZXCTN9000 supports IS-IS load balancing, through which traffic can be balanced
among multiple links to the destination with the same cost. Load balancing includes two
modes, per-packet and per-destination. By default, per-destination is adopted.
Use these commands to configure IS-IS routing load balancing on the ZXCTN 9000.
Step
Command
Function
Command
Function
ZXCTN9000(config-isis)#metric-style wide
interface-name>
of Router-ID.
6-10
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
ZXCTN9000(config-isis)#fast-reroute enable
ZXCTN9000(config-isis)#fast-reroute alternate-type
down-stream-path
Function
topology.
vrf-name>
groups.
6-11
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Description
level-1
level-2
up_time
detail
The execution result of the show isis adjacency command is shown below:
ZXCTN9000(config-isis)#show isis adjacency
Interface
System id
State
vlan20
P2
UP/UP
L1L2
Lev Holds
6/6
00D0.D0C0.1901
SNPA(802.2)
64/64
Pri
vlan10
P2
UP
L1
00D0.D0C0.1901
64
MT
Description
Interface
System id
State
Lev
Indicates the level of the neighboring relationship, that is, L1, L2, or
L1L2.
Holds
SNPA(802.2)
Pri
MT
The execution result of the show isis circuits command is shown below:
ZXCTN9000(config-router)#show isis circuits
IS-IS interface database:
Interface State
Lev
CirId
Level1-DR
vlan20
Up
L1L2
P2.03
vlan10
Up
L1
P2.02
Level2-DR
Pri(L1/L2)
P2.03
64/64
Disabled
64/64
Output Item
Description
Interface
State
Lev
CirId
Level1-DR
Level2-DR
Pri(L1/L2)
The execution result of the show isis database command is shown below:
ZXCTN9000(config-router)#show isis database detail
IS-IS Level-1 Link State Database:
LSPID
P1.00-00*
LSP Checksum
0x5
0xfdf9
LSP Holdtime
ATT/P/OL
640
0/0/0
NLPID
0xcc
Area Address
01
Ip address
10.1.1.1
Hostname
P1
Metric: 10
IS neighbor P2.03
Metric: 10
IS neighbor P2.02
Metric: 10
Metric: 10
LSPID
P2.00-00
LSP Checksum
0xb
0xdeaa
LSP Holdtime
ATT/P/OL
667
0/0/0
NLPID
0xcc
Area Address
01
Ip address
10.1.1.2
Hostname
P2
Metric: 10
IS neighbor P2.03
Metric: 10
IS neighbor P2.02
Metric: 10
Metric: 10
LSPID
P2.02-00
LSP Checksum
0x2
0xad1f
Hostname
P2
Metric: 0
IS neighbor P1.00
Metric: 0
IS neighbor P2.00
LSP Holdtime
ATT/P/OL
557
0/0/0
6-13
SJ-20100901100356-015|2011-07-30(R1.0)
P2.03-00
LSP Checksum
0x2
LSP Holdtime
ATT/P/OL
665
0/0/0
LSP Holdtime
ATT/P/OL
972
0/0/0
0xa625
Hostname
P2
Metric: 0
IS neighbor P1.00
Metric: 0
IS neighbor P2.00
P1.00-00*
LSP Checksum
0x6
0x2b31
NLPID
0xcc
Area Address
01
Ip address
10.1.1.1
Hostname
P1
Metric: 10
IS neighbor P2.03
Metric: 10
Metric: 10
LSPID
P2.00-00
LSP Checksum
0xd
LSP Holdtime
ATT/P/OL
1021
0/0/0
0xae2
NLPID
0xcc
Area Address
01
Ip address
10.1.1.2
Hostname
P2
Metric: 10
IS neighbor P2.03
Metric: 10
Metric: 10
LSPID
P2.00-01
LSPID
LSP Checksum
0x1
0x5e0
P2.02-00
LSPID
LSP Checksum
0x2
0(629)
LSP Holdtime
0xad1f
P2.03-00
LSP Holdtime
LSP Checksum
0x2
0(997)
P2
Metric: 0
IS neighbor P1.00
Metric: 0
IS neighbor P2.00
0/0/0
ATT/P/OL
0/0/0
LSP Holdtime
ATT/P/OL
664
0/0/0
0xa625
Hostname
ATT/P/OL
Description
LSPID
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
LSP Checksum
LSP Holdtime
ATT/P/OL
The execution result of the show isis topology command is shown below:
ZXCTN9000(config-isis)#show isis topology
IS-IS paths to Level-1 routers
System id
Metric
P1
10
P2
--
Next-Hop
Interface
P1
SNPA
vlan10
00D0.D0C0.0C81
Metric
P1
10
P2
--
Next-Hop
Interface
P1
SNPA
vlan10
00D0.D0C0.0C81
Description
System id
Metric
Indicates the metric of the destination IS. If the value is --, it indicates
the local device. If the value is **, no IS-IS route is available.
Next-Hop
Interface
SNPA
Indicates the SNPA address of the next hop. A P-P port is tagged
*ppp*.
The execution result of the show isis fast-reroute-topology command is shown below:
P1(config)#show isis fast-reroute-topology
IS-IS ipfrr paths to Level-1 routers
System id
Interface
Ipfrr interface
P2
vlan20
vlan10
Ipfrr type
Link/ECMP
Metric
10
P2
vlan10
vlan20
Link/ECMP
10
P3
vlan31
vlan10
Link
20
Interface
Ipfrr interface
Ipfrr type
Metric
P2
vlan20
vlan31
Link
20
P3
vlan31
vlan20
Link
20
6-15
SJ-20100901100356-015|2011-07-30(R1.0)
Interface
Ipfrr interface
P1
vlan20
vlan10
Link/ECMP
10
P1
vlan10
vlan20
Link/ECMP
10
P3
vlan32
Ipfrr type
Metric
vlan10
Link
20
Interface
Ipfrr interface
Ipfrr type
Metric
P1
vlan20
vlan32
Link
20
P3
vlan32
vlan20
Link
20
Output Item
Description
system Id
interface
ipfrr interface
ipfrr type
metric
Function
Hello packets.
Monitors the sent and received IS-IS
SNP packets.
Monitors IS-IS route calculation event
debugging information.
Monitors IS-IS LSP packet processing
The execution result of the debug isis all command is shown below:
ZXCTN 9000#debug isis all
All IS-IS debugging has been turned on
6-16
SJ-20100901100356-015|2011-07-30(R1.0)
Description
1111.1111.1111(vlan10)
length 48
Interface information.
length 48
ISIS-Snp: Sending L1 CSNP on vlan10
6-17
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Method
1.
2.
3.
4.
Configuration Procedure
The configuration of P1:
P1(config)#router isis
P1(config-router)#area 01
P1(config-router)#system-id 1111.1111.1111
P1(config-router)#exit
P1(config)#vlan 10
P1(config-vlan10)#interface vlan10
P1(config-if-vlan10)#ip address 192.168.2.1 255.255.255.0
P1(config-if-vlan10)#ip router isis
P1(config-if-vlan10)#exit
P1(config)#vlan 20
P1(config-vlan20)#interface vlan20
P1(config-if-vlan20)#ip address 192.168.1.1 255.255.255.0
P1(config-if-vlan20)#ip router isis
6-18
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Verification
When the above configurations are completed, view the result on P1 and P2. If the
following information is displayed, neighboring relationship is established, and the
topology is figured out.
Run the show running-config isis command on P1 to check whether the IS-IS configuration
is correct.
P1(config)#show running-config module isis
Building configuration...
!
router isis
area 01
system-id 1111.1111.1111
!
!
end
Run the show isis adjacency command on P1 to check whether the status of the neighbor
is Up. If the neighboring relationship is established, the status of the neighbor is Up.
P1(config)#show isis adjacency
Interface
vlan10
System id
P2
State
Lev
Holds
UP/UP
L1L2
8/8
SNPA(802.2)
Pri
MT
00D0.D0C0.1901 64/64
Run the show isis topologyy command on P1 to check whether the topology is correctly
figured out. If the topology is figured out, the execution result of the command contains
the following metric information. If metric is , it indicates the local device. If metric is **, it
indicates unreachable.
P1(config)#show isis topology
IS-IS paths to Level-1 routers
System id
Metric
P1
--
P2
10
Next-Hop
P2
Interface
vlan10
SNPA
00D0.D0C0.1901
Metric
P1
--
P2
10
Next-Hop
P2
Interface
vlan10
SNPA
00D0.D0C0.1901
Run the show isis circuits command on P1 to view the interface information and DIS
election. If the status of the interface is up, the interface is working properly. If the status
of the interface is down, an anomaly occurs. In this case, you need to check the link
status and IP configuration.
P1(config)#show isis circuits
6-19
SJ-20100901100356-015|2011-07-30(R1.0)
State
vlan20
Up
vlan10
Up
Lev
CirId
Level1-DR
Level2-DR
Pri(L1/L2)
L1L2
No found
No found
64/64
L1L2
P2.02
P2.02
64/64
CirId
Level1-DR
Level2-DR
vlan20
State
Up
Lev
L1L2
No found
No found
vlan10
Up
L1L2
Dis is me
Dis is me
System id
State
Lev
Holds
SNPA(802.2)
Pri
P1
UP/UP
L1L2
27/27
00D0.D0C0.0C81
64/64
MT
Metric
P1
10
P2
Next-Hop
Interface
P1
vlan10
SNPA
00D0.D0C0.0C81
--
Metric
P1
10
P2
Next-Hop
Interface
P1
vlan10
SNPA
00D0.D0C0.0C81
--
6-20
SJ-20100901100356-015|2011-07-30(R1.0)
Figure 6-2 shows the configuration example of multi-area IS-IS. P1 belongs to area 1, P2
belongs to area 0, and P3 and P4 belong to area 2. P1 aggregates the routes of area 1.
P4 redistributes the default route to IS-IS.
Figure 6-2 Configuring Multi-Area IS-IS
Configuration Method
1.
2.
3.
4.
5.
6.
Configuration Procedure
The configuration of P1:
P1(config)#router isis
P1(config-router)#area 01
P1(config-router)#system-id 1111.1111.1111
P1(config-router)#is-type level-1-2
P1(config-router)#ex
P1(config)#interface vlan4
P1(config-if-vlan4)#ip address 192.168.15.1 255.255.255.0
P1(config-if-vlan4)#ip router isis
P1(config-if-vlan4)#isis circuit-type level-2
P1(config-if-vlan4)#ex
P1(config)#interface vlan6
P1(config-if-vlan6)#ip address 192.168.100.1 255.255.255.0
P1(config-if-vlan6)#ip router isis
P1(config-if-vlan6)#isis circuit-type level-1
6-21
SJ-20100901100356-015|2011-07-30(R1.0)
6-22
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Verification
When the above configurations are completed, view the result on P1 and P2. If the
following information is displayed, neighboring relationship is established, and the
topology is figured out. In addition, P1 and P2 can ping through each other.
You can see the above configuration in P1 configuration information. You can use the show
ip protocol routing command to the static default routes redistributed by P4.
P1(config)#show running-config module isis
Building configuration...
!
router isis
area 01
system-id 1111.1111.1111
is-type level-1-2
summary-address 192.168.100.0 255.255.252.0
!
!
end
System id
State
Lev
Holds
SNPA(802.2)
Pri
MT
6-23
SJ-20100901100356-015|2011-07-30(R1.0)
P2
UP
L2
00D0.D0C0.1901
64
Metric
P1
Next-Hop
Interface
SNPA
Interface
SNPA
--
Metric
Next-Hop
P1
--
P2
10
P2
vlan4
00D0.D0C0.1901
P3
20
P2
vlan4
00D0.D0C0.1901
0.0.0.0/0
NextHop
RoutePrf
RouteMetric Protocol
0.0.0.0
254
special
*>
192.168.13.0/24
192.168.15.2
115
30
isis-l2
*>
192.168.14.0/24
192.168.15.2
115
20
isis-l2
*>
192.168.15.0/24
192.168.15.1
192.168.15.0/24
192.168.15.2
115
*>
192.168.15.1/32
192.168.15.1
connected
*>
192.168.100.0/24
192.168.100.1
connected
*>
192.168.100.1/32
192.168.100.1
connected
*>
192.168.101.0/24
192.168.101.1
connected
*>
192.168.101.1/32
192.168.101.1
connected
*>
192.168.102.0/24
192.168.102.1
connected
*>
192.168.102.1/32
192.168.102.1
connected
*>
255.255.255.255/32 0.0.0.0
254
special
0
20
connected
isis-l2
6-24
SJ-20100901100356-015|2011-07-30(R1.0)
Metric
Next-Hop
Interface
SNPA
Interface
SNPA
P1
vlan4
00D0.D0C0.0C81
P3
vlan6
00D0.D0C0.2581
Metric
P1
10
P2
--
P3
10
Next-Hop
System id
State
Lev
Holds
SNPA(802.2)
Pri
vlan6
P3
UP
L2
00D0.D0C0.2581
64
vlan4
P1
UP
L2
30
00D0.D0C0.0C81
64
MT
*>
Dest
NextHop
0.0.0.0/0
0.0.0.0
RoutePrf
254
RouteMetric Protocol
8
special
*>
192.168.13.0/24
192.168.14.3
115
20
isis-l2
*>
192.168.14.0/24
192.168.14.2
connected
192.168.14.0/24
192.168.14.3
115
20
*>
192.168.14.2/32
192.168.14.2
connected
isis-l2
*>
192.168.15.0/24
192.168.15.2
connected
192.168.15.0/24
192.168.15.1
115
20
*>
192.168.15.2/32
192.168.15.2
connected
*>
192.168.100.0/22
192.168.15.1
115
10
isis-l2
*>
255.255.255.255/32
254
special
0.0.0.0
isis-l2
Metric
Next-Hop
Interface
SNPA
6-25
SJ-20100901100356-015|2011-07-30(R1.0)
--
P4
10
P4
vlan4
00D0.D0C0.3201
Metric
Next-Hop
Interface
P1
20
P2
vlan6
00D0.D0C0.1901
SNPA
P2
10
P2
vlan6
00D0.D0C0.1901
P3
--
System id
State
Lev
Holds
SNPA(802.2)
Pri
vlan4
P4
UP
L1
00D0.D0C0.3201
64
vlan6
P2
UP
L2
26
00D0.D0C0.1901
64
MT
Dest
NextHop
RoutePrf
RouteMetric
Protocol
*>
0.0.0.0/0
0.0.0.0
254
special
*>
192.168.13.0/24
192.168.13.3
connected
192.168.13.0/24
192.168.13.4
115
*>
192.168.13.3/32
192.168.13.3
*>
192.168.14.0/24
192.168.14.3
192.168.14.0/24
192.168.14.2
115
*>
192.168.14.3/32
192.168.14.3
*>
192.168.15.0/24
192.168.14.2
115
20
isis-l2
*>
192.168.100.0/22
192.168.14.2
115
20
isis-l2
*>
255.255.255.255/32 0.0.0.0
254
20
isis-l1
connected
connected
20
0
isis-l2
connected
special
6-26
SJ-20100901100356-015|2011-07-30(R1.0)
Metric
P3
10
P4
--
Next-Hop
Interface
P3
vlan4
SNPA
00D0.D0C0.2581
Metric
Next-Hop
Interface
SNPA
System id
vlan4
State
P3
UP
Lev
Holds
L1
25
SNPA(802.2)
Pri
00D0.D0C0.2581
MT
64
Dest
NextHop
RoutePrf
RouteMetric
Protocol
*> 0.0.0.0/0
192.168.14.10
0.0.0.0/0
192.168.13.3
115
10
static
0.0.0.0/0
0.0.0.0
254
special
*> 192.168.13.0/24
192.168.13.4
connected
isis-l1
192.168.13.0/24
192.168.13.3
115
*> 192.168.13.4/32
192.168.13.4
connected
*> 192.168.14.0/24
192.168.14.1
connected
*> 192.168.14.1/32
192.168.14.1
connected
254
special
*> 255.255.255.255/32
0.0.0.0
20
isis-l1
6-27
SJ-20100901100356-015|2011-07-30(R1.0)
2. Figure 6-4 shows the typical networking of link protection. IS-IS neighboring topology
is established between two links, providing primary and secondary links.
Figure 6-4 Typical Networking of Link Protection
Configuration Method
1. Configure routing protocols.
2. For a destination, configure two or more next hops on FRR nodes and different costs
for routes.
3. Enable FRR on the router running the routing protocol.
Configuration Procedure
The detailed configurations are:
1. This document takes the FRR configuration for node protection of BGP as an example.
For detailed configuration, refer to the example for configuring BGP FRR.
2. Link protection
Take Figure 6-4 as an example to configure IS-IS FRR.
The configuration of P1:
P1(config)#router isis
P1(config-router)#area 01
P1(config-router)#system-id 1111.1111.1111
P1(config-router)#fast-reroute enable
P1(config-router)#exit
P1(config)#interface vlan10
P1(config-if-vlan10)#ip address 10.1.1.1 255.255.255.0
P1(config-if-vlan10)#ip router isis
P1(config-if-vlan10)#exit
P1(config)#interface vlan20
P1(config-if-vlan20)#ip address 20.1.1.1 255.255.255.0
P1(config-if-vlan20)#ip router isis
P1(config-if-vlan20)#isis metric 20
P1(config-if-vlan20)#
6-28
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Verification
Run the show ip forwarding backup route command to view the configuration results and
check whether FRR is enabled.
IS-IS FRR status on P1:
P1(config)#show isis fast-reroute-topology
IS-IS ipfrr paths to Level-1 routers
System id
P2
Interface
Ipfrr interface
Ipfrr type
Metric
vlan20
Link
20
Ipfrr interface
Ipfrr type
Metric
vlan20
Link
20
vlan10
Interface
vlan10
Metric
P1
--
P2
10
Next-Hop
Interface
P2
vlan10
SNPA
00D0.D0C0.1901
Metric
P1
--
P2
10
Next-Hop
Interface
P2
vlan10
SNPA
00D0.D0C0.1901
6-30
SJ-20100901100356-015|2011-07-30(R1.0)
3. Check whether the system ID of each device is unique. If the system IDs of two devices
are the same, they cannot establish the neighboring relationship.
4. Check whether the areas are correctly configured. If both areas are level-1, the areas
of the two devices must be identical. Otherwise, they cannot establish the neighboring
relationship.
5. Check whether the IS-types of the two devices are correctly configured. The IS-type
should overlap with the circuit-type on the interface. Otherwise, the two devices cannot
establish the neighboring relationship.
6. Check whether the IP router isis command is executed on directly connected interfaces.
7. Check whether circuit-type is correctly configured on the interface.
8. Check whether the authentication information is consistent on both ends.
9. Check whether metric-type on both ends is consistent in routing mode.
10. Check whether the authentication on both ends is consistent in routing mode.
If the fault still persists, contact the technical support engineer for help.
If the cost value of the link meets related requirement, check whether the fast-reroute disa
ble or fast-reroute block command is configured on the interface of the standby link.
6-33
SJ-20100901100356-015|2011-07-30(R1.0)
2. If the active/standby mode is not configured, check whether the algorithm meets
related requirements. If not, modify the cost of the interface to satisfy the requirements
of the FRR algorithm.
3. Check whether the standby link is disabled.
If the fault still persists, contact the technical support engineer for help.
6-34
SJ-20100901100356-015|2011-07-30(R1.0)
Chapter 7
BGP Configuration
Table of Contents
Configuring BGP ........................................................................................................7-1
BGP Maintenance and Diagnosis ............................................................................7-50
BGP Configuration Instances ...................................................................................7-57
BGP Troubleshooting ...............................................................................................7-71
7-1
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
number>
group.
7-2
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
Description
Indicates the IPv4 address of the neighbor, in dotted decimal
notation.
< peer-group-name>
< number>
Description
Indicates the IPv4 address of the neighbor, in dotted decimal
notation.
< peer-group-name>
< number>
< value>
Description
Indicates the IPv4 address of the neighbor, in dotted decimal
notation.
< peer-group-name>
Example
1. Establish EBGP neighbors through directly connected addresses.
7-3
SJ-20100901100356-015|2011-07-30(R1.0)
vlan 1
vlan 1
Configuration verification:
Run the show ip bgp neighbor command on P1 to view the BGP neighboring
relationship:
P1#show ip bgp neighbor
BGP neighbor is 129.213.1.2, remote AS 65001, external link
BGP version 4, remote router ID 129.213.1.2
7-4
SJ-20100901100356-015|2011-07-30(R1.0)
Connections established 1
Local host: 129.213.1.1, Local port: 179
Foreign host: 129.213.1.2, Foreign port: 1024
The above output shows that the IP address of the BGP neighbor is 129.213.1.2. The
neighbor is in AS65001 and the EBGP connection is established. The router ID of the
neighbor is 129.213.1.2, the state is Established, and the session is established for 4
minutes and 21 seconds.
Run the show ip bgp neighbor command on P2 to view the BGP neighboring
relationship. The output description is similar as the above command.
P2#show ip bgp neighbor
BGP neighbor is 129.213.1.1, remote AS 65000, external link
BGP version 4, remote router ID 129.213.1.1
BGP state = Established, up for 00:00:27
hold time is 90 seconds, keepalive interval is 30 seconds
Connections established 1
Local host: 129.213.1.2, Local port: 1024
Foreign host: 129.213.1.1, Foreign port: 179
7-5
SJ-20100901100356-015|2011-07-30(R1.0)
If the number of hops is not specified behind the ebgp-multihop parameter, the TTL
value is set to the maximum value, which is 8, by default.
Configuration verification: Run the show ip bgp neighbor command on P1 to view the
BGP neighboring relationship:
P1#show ip bgp neighbor
BGP neighbor is 1.1.1.2, remote AS 65001, external link
BGP version 4, remote router ID 1.1.1.2
BGP state = Established, up for 00:01:01
hold time is 90 seconds, keepalive interval is 30 seconds
Connections established 1
Local host: 1.1.1.1, Local port: 179
Foreign host: 1.1.1.2, Foreign port: 1026
The above output shows that an EBGP connection is established between P1 in the
local and ZXCTN, whose IP address is 1.1.1.2, in AS65001.
7-6
SJ-20100901100356-015|2011-07-30(R1.0)
Run the show ip bgp neighbor command on P2 to view the BGP neighboring
relationship:
P2#show ip bgp neighbor
BGP neighbor is 1.1.1.1, remote AS 65000, external link
BGP version 4, remote router ID 1.1.1.1
BGP state = Established, up for 00:02:03
hold time is 90 seconds, keepalive interval is 30 seconds
Connections established 1
Local host: 1.1.1.2, Local port: 1026
Foreign host: 1.1.1.1, Foreign port: 179
The above output shows that an EBGP connection is established between P2 in the
local and ZXCTN, whose IP address is 1.1.1.1, in AS65000.
Command
Function
number>
the group.
interface-name>
7-7
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
Description
< ipv4-address>
< peer-group-name>
< number>
Description
< ipv4-address>
< peer-group-name>
Description
< ipv4-address>
< peer-group-name>
If the source and destination routers are in different ASs, the next-hop address is the
IP address of the interface on the router advertising the route.
7-8
SJ-20100901100356-015|2011-07-30(R1.0)
If the source and destination routers are in the same AS, and the destination of NLRI
in the update packet is also in the AS, the next-hop address is the IP address of the
neighbor.
If the source and destination routers are BGP peers in an AS, and NLRI in the update
packet is bound for another AS, the next-hop address is the IP address of the external
peer of the learned route.
When an AS provides the transition service for another AS, the synchronization function in
step 5 guarantees that a BGP neighbor can send a route to external neighbors only after
all routers within the AS receive the route through IGP route spreading. When receiving a
route update packet from an IBGP neighbor, the router checks the synchronization before
forwarding the packet to EBGP neighbors. The packet is forwarded to EBGP neighbors
only when the IGP on the router recognizes the update packet, that is, the IGP routing
table contains the entry of the route. Otherwise, the router does not forward the packet.
The synchronization function is to ensure the connectivity inside an AS, avoiding
blackholes caused by routing loops. However, the synchronization function is generally
disabled in practice. The full meshed connection is used in the AS to guarantee
connectivity, thus avoiding large numbers of BGP routes injected to the IGP, accelerating
the processing rate of the router, and eliminating packet losses. To disable the
synchronization function without affecting service, one of the following requirements
should be met:
1. The AS must a stub AS, that is, the AS has only one interface to connect to the external
network.
2. Although the AS provides the transition service, that is, an AS can connect to another
AS over the local one, BGP runs on all routers in the local AS.
The second requirement is common in practice because BGP is configured on all routers
of an AS and IGP only needs to transmit routing information for the local AS.
By default, the synchronization function is enabled on the ZXCTN9000. You can run the
no synchronization command to disable the function.
Example
As shown in Figure 7-4, create IBGP neighbors through loopback addresses. P2 and
P3 are in the same AS. Establishing IBGP neighboring relationship between P2 and P3
through loopback addresses.
7-9
SJ-20100901100356-015|2011-07-30(R1.0)
vlan 1
7-10
SJ-20100901100356-015|2011-07-30(R1.0)
Run the show ip bgp neighbor command on P2 to view the BGP neighboring relationship:
P2#show ip bgp neighbor
BGP neighbor is 1.1.1.3, remote AS 65001, internal link
BGP version 4, remote router ID 1.1.1.3
BGP state = Established, up for 00:01:25
hold time is 90 seconds, keepalive interval is 30 seconds
Connections established 1
last error code is 6
Local host: 1.1.1.2, Local port: 179
Foreign host: 1.1.1.3, Foreign port: 1096
The above output shows that neighboring relationship is established between P2 and IP
address 1.1.1.3 (which is P3).
Run the show ip bgp neighbor command on P3 to view the BGP neighboring relationship:
P3#show ip bgp neighbor
BGP neighbor is 1.1.1.2, remote AS 65001, internal link
BGP version 4, remote router ID 1.1.1.2
BGP state = Established, up for 00:03:07
hold time is 90 seconds, keepalive interval is 30 seconds
Connections established 1
last error code is 5
Local host: 1.1.1.3, Local port: 1096
Foreign host: 1.1.1.2, Foreign port: 179
The above output shows that neighboring relationship is established between P3 and IP
address 1.1.1.2 (which is P2).
7-11
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Description
< ip-address>
Example
An example of configuring the authentication and password display mode of BGP
neighbors is shown below.
ZXCTN 9000(config)#router bgp 100
ZXCTN 9000(config-router)#neighbor 192.168.0.2 remote-as 100
ZXCTN 9000(config-router)#neighbor 192.168.0.2 password 789
ZXCTN 9000(config-router)#neighbor 192.168.0.2 password encrypt 123
ZXCTN 9000(config-router)#show running-config module bgp
router bgp 100
neighbor 192.168.0.2 password encrypt u5pd4oP1YGP1E+My5y4ec1dbC7
eZf4gsX0qhVYXcb6KV1CMnm8VFlX9dcceOjgUYrxPGh3Gy7Rl8VxSlqtHcujwZ5qzj
LbVOkiKWz41nHPk=
!
7-12
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
Description
< vrf-name>
< ipv4-address>
< peer-group-name>
Command
Function
Example
As shown in Figure 7-5, advertise routes by using the network command. OSPF of IGP
runs on P2. On P2, inject network segment 18.0.0.0/8 discovered by OSPF into the BGP
routing table of P1.
7-14
SJ-20100901100356-015|2011-07-30(R1.0)
View the configuration. Run the show ip bgp command to view the BGP routing table on
P1.
P1#show ip bgp
7-15
SJ-20100901100356-015|2011-07-30(R1.0)
Dest
*>18.0.0.0/8
NextHop
Metric
LocPrf
RtPrf
192.168.2.1
20
65001
Path
In the output of the show ip bgp command, the asterisk (*) indicates a valid route, the angle
bracket (>) indicates the optimal route, i indicates an IBGP route, and the route not marked
by i is an EBGP route or a locally generated route. The IP address of the NextHop column
is the next-hop address of the BGP route. The all-zero route is locally generated. The
value of the LocPrf column is local priority of the route learned by BGP. The value is 100
by default. The value of the Path column indicates the source of the route, including IGP,
EGP, and Incomplete.
The above information shows that the route to network segment 18.0.0.0/8 already exists
in the BGP routing table on P1. The next-hop address is 192.168.2.1, which is the IP
address of the interface on P2.
Command
Function
Description
< protocol>
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
< metric-value>
< map-tag>
7-17
SJ-20100901100356-015|2011-07-30(R1.0)
View the configuration. Run the show ip bgp route command to view the BGP routing table
on P1.
P1#show ip bgp route
Status codes: *-valid, >-best, i-internal,s-stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
*>
18.0.0.0/8
NextHop
Metric
LocPrf
RtPrf
20
65001
192.168.2.1
Path
To import external OSPF routes to P2 and set the value of metric to 5, run the following
command:
P2#config terminal
P2(config)#interface vlan 1
P2(config-if-vlan1)#ip address 192.168.2.1 255.255.255.252
P2(config-if-vlan1)#exit
P2(config)#router ospf 1
P2(config-router)#network 18.0.0.0 0.0.0.255 area 0
P2(config)#exit
P2(config)#router bgp 65001
P2(config-router)#neighbor 1.1.1.1 remote-as 65000
P2(config-router)#redistribute ospf-ext metric 5
P2(config-router)#redistribute connected
P2(config)#exit
Command
Function
Description
< ip-address>
< net-mask>
7-18
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
< count>
as-set
summary-only
strict
7-19
SJ-20100901100356-015|2011-07-30(R1.0)
area 0
NextHop
Metric
LocPrf
RtPrf
2.2.2.2
20
Path
100 i
After route aggregation is completed, the BGP routing table on P2 in AS300 contains only
one route, which greatly reduces the scale of the routing table. In addition, the aggregated
route carries atomic aggregation and aggregation attribute, and indicates the aggregation
point.
If the summary-only parameter is not specified, P2 advertises both aggregated and detailed
routes. The following shows the command output.
P2#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric
LocPrf
RtPrf
Path
*>192.168.0.0/22
2.2.2.2
20
100 i
*>192.168.0.0/24
2.2.2.2
20
100 i
*>192.168.1.0/24
2.2.2.2
20
100 i
*>192.168.2.0/24
2.2.2.2
20
100 i
*>192.168.3.0/24
2.2.2.2
20
100 i
7-20
SJ-20100901100356-015|2011-07-30(R1.0)
The above output shows that the aggregated route 192.168.0.0/22, and detailed route
192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24, and 192.168.3.0/24 are displayed.
Parameter < count> indicates the required number of subnets in route aggregation. The
value of this parameter ranges from 0 to 255. The default value is 1, indicating that one
subnet exists in the IGP routing table on the router advertising the route. If the parameter
is specifies as 0, route 192.168.0.0/22 is advertised when any subnet of 192.168.0.0
255.255.252.0 exists in the IGP routing table. If the parameter is specifies as other
values, you need to run the following command to specify the subnet.
aggregate-address < ip-address> < net-mask> subnet < subnet-address> < subnet-mask>
After the command is executed, route aggregation and advertisement are implemented
when the specified subnet exists in the IGP routing table and the number of subnets
reaches the value of count.
vlan 1
After the commands are executed, P2 advertises the aggregated route 192.168.0.0/22
to P1 when routes 192.168.1.0/24, 192.168.2.0/24, and 192.168.3.0/24 are properly
advertised, regardless the status of route 192.168.0.0/24.
But if any of routes
7-21
SJ-20100901100356-015|2011-07-30(R1.0)
Link reliability: The transport layer poses high requirements on stability and reliability.
The reliability covers the link itself and whether packet forwarding is affected in the
case of link faults.
Bandwidth: Routing load balancing enables the ZXCTN9000 to balance traffic by
multiple paths, fully utilizing bandwidth resources. The configuration of routing
protocols or static routes realizes multiple routes available for one destination
address in the forwarding table.
Load balancing supports per-packet and per-destination forwarding. The following table
shows the advantages and disadvantages of the two methods:
Per-destination
per-packet
Advan-
tage
among paths.
paths.
Disad-
vantage
destinations.
such as VoIP.
Use these commands to configure BGP routing load balancing on the ZXCTN 9000.
Step
Command
Function
7-22
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
ZXCTN9000(config-bgp)#bgp frr
Step
Step
1
Command
Function
sequence-number> ]
2
Description
< map-tag>
permit
deny
If the route mapping matches the condition, the mapping is not allowed
to be reassigned or tagged.
< sequence-number>
SJ-20100901100356-015|2011-07-30(R1.0)
Description
< ipv4-address>
< peer-group-name>
< map-tag>
in | out
7-24
SJ-20100901100356-015|2011-07-30(R1.0)
The above output shows that the route filtering is configured. In route filtering by route
map, the match and set are also generally used. The match command defines the matching
condition and the set command defines the action after the matching condition is hit.
After the neighbor 182.17.20.1 send-med command is executed, the MED value is sent to
neighbor 182.17.20.1 with the advertised route.
View the configuration. Run the show ip bgp route on P2 to view its BGP routing table.
P2#show ip bgp route
Status codes: *-valid, >-best, i-internal,s-stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric
*>172.3.0.0/16
182.17.20.2
LocPrf
RtPrf
Path
20
100 i
The above output shows that P2 learns only the route to network segment 172.3.0.0/16,
and the metric value is 5.
Command
Function
sequence-number> ]
2
Parameter
Description
< map-tag>
permit
be reassigned or tagged.
If the route mapping matches the condition, the mapping is not allowed
deny
to be reassigned or tagged.
< sequence-number>
Description
< ipv4-address>
< peer-group-name>
< map-tag>
in | out
7-26
SJ-20100901100356-015|2011-07-30(R1.0)
With the application of the Access Control List (ACL) and the route-map command, P1
is forbidden to send the route with prefix 192.18.10.0/24 to AS200. That is, the route
with prefix 192.18.10.0/24 is filtered out on P1. In this way, P3 cannot learn the route to
192.18.10.0/24.
Run the show ip bgp route command to view the BGP routing table P3.
P3#show ip bgp route
Status codes: *-valid, >-best, i-internal,s-stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric
LocPrf
RtPrf
Path
*>192.168.11.0/24
182.17.20.2
20
300
100 i
*>192.168.12.0/24
182.17.20.2
20
300
100 i
*>192.168.13.0/24
182.17.20.2
20
300
100 i
The above route shows that P3 in AS200 does not learn the route to 192.18.10.0/24.
Command
Function
warning-only]
neighbor.
Parameter
Description
< ip-address>
< value>
< threshold-value>
drop-routes
warning-only
Example
In the example shown in Figure 7-10, P1 allows P2 to advertise a maximum of 10 routes
to P1, excess routes are discarded. P2 allows P1 to advertise a maximum of 20 routes
to P2. If the route number exceeds 20, the link is disconnected and re-established after 1
minutes.
Figure 7-10 Restricting the Number of Routes Accepted by A Neighbor
7-28
SJ-20100901100356-015|2011-07-30(R1.0)
If the restart time is not specified and P1 advertises more than 20 routes to P2, to display
only alarms on P2, use warning-only.
The configuration of P2:
P2(config)#router bgp 200
P2(config-bgp)#neighbor 10.1.1.2 remote-as 100
P2(config-bgp)#neighbor 10.1.1.2 maximum-prefix 20 warning-only
Command
Function
AS_PATH
sequence-number> ]
configuration mode.
Description
< map-tag>
permit
7-29
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
deny
If the route mapping matches the condition, the mapping is not allowed
to be reassigned or tagged.
< sequence-number>
Description
< access-list-number>
permit
deny
< as-regular-expression>
7-30
SJ-20100901100356-015|2011-07-30(R1.0)
The selection of routes for the access from AS500 to AS100 is affected by the routing
policy that adds AS_PATH to the advertised route.
View the configuration. Run the show ip bgp route command to view the BGP routing table
on the ZXCTN9000 in AS500.
ZXCTN9000_AS500#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric LocPrf
*>10.0.1.0/24
192.168.1.17
20
*>10.0.2.0/24
192.168.1.17
20
*>10.0.3.0/24
192.168.1.17
20
*>10.0.4.0/24
192.168.1.17
*>10.1.0.0/24
192.168.1.17
20
RtPrf
Path
300 200
100 i
300 200 100 400 i
300
200 i
300 200
100 i
300 i
192.168.1.13
20
The above output shows that after AS_PATH is added, AS500 learns that the number of
ASs to the destination is 6 from AS400 and 3 from AS300. Therefore, the path with fewest
ASs is selected when other attributes are identical. In this example, the path from AS300
to AS100 meets the requirement and hence is selected.
7-31
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
1
sequence-number> ]
2
sequence-number> ]
configuration mode.
Description
< map-tag>
permit
be reassigned or tagged.
If the route mapping matches the condition, the mapping is not allowed
deny
to be reassigned or tagged.
< sequence-number>
7-32
SJ-20100901100356-015|2011-07-30(R1.0)
7-33
SJ-20100901100356-015|2011-07-30(R1.0)
View the configuration. Run the show ip bgp route command to view the BGP routing table
on P3.
P3#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric
LocPrf
RtPrf
Path
*>i 10.0.0.0/24
192.168.1.6
200
200
300 i
*i 10.0.0.0/24
192.168.1.2
100
200
300 i
7-34
SJ-20100901100356-015|2011-07-30(R1.0)
Command
Function
sequence-number> ]
mode.
Description
< map-tag>
permit
be reassigned or tagged.
If the route mapping matches the condition, the mapping is not allowed
deny
to be reassigned or tagged.
< sequence-number>
< metric-value>
Indicates the metric value. The value of this parameter ranges from 0
to 4294967295.
7-35
SJ-20100901100356-015|2011-07-30(R1.0)
7-36
SJ-20100901100356-015|2011-07-30(R1.0)
View the configuration. Run the show ip bgp route command to view the BGP routing table
on P2.
P2(config-bgp)#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric
LocPrf
RtPrf
Path
*>10.0.1.0/24
192.168.2.1
50
20
100 i
* 10.0.1.0/24
192.168.1.1
100
20
100 i
*>10.0.2.0/24
0.0.0.0
The above output shows that after the MED value is changed, P2 preferentially selects link
1 with the smaller MED value (50) as the link to AS100.
SJ-20100901100356-015|2011-07-30(R1.0)
l
l
l
Beside these well-known attributes, you can use private attributes to define special
functions.
Step
Command
Function
sequence-number> ]
2
| le < value> ]
3
sequence-number> ]
configuration mode.
attribute.
Description
< map-tag>
permit
be reassigned or tagged.
If the route mapping matches the condition, the mapping is not allowed
deny
to be reassigned or tagged.
< sequence-number>
7-38
SJ-20100901100356-015|2011-07-30(R1.0)
Parameter
Description
< prefix-list-name>
Indicates the index value of the prefix list. The smaller value is
preferentially used. The value of this parameter ranges from 1 to
4294967294.
If an IP address to the filtered exists in the prefix range of the entry, the
permit
deny
< len>
Indicates the mask length of the IP address. The value ranges from
ge < value>
0 to 32.
Indicates the value that the length of the prefix matching the prefix
range should be larger than. The value ranges from 0 to 32.
le < value>
Indicates the value that the length of the prefix matching the prefix
range should be smaller than. The value ranges from 0 to 32.
7-39
SJ-20100901100356-015|2011-07-30(R1.0)
Figure 7-14 Network Topology for Controlling Large Numbers of Routes by Community
7-40
SJ-20100901100356-015|2011-07-30(R1.0)
View the configuration. Run the show ip bgp route command to view the BGP routing table
on the ZXCTN9000 in AS600.
ZXCTN9000_AS600(config)#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric LocPrf
RtPrf
Path
*>10.0.1.0/24
192.168.1.13
20
400
100 i
*>10.0.2.0/24
192.168.1.13
20
400
*>10.0.3.0/24
192.168.1.17
20
300
200 i
* 10.0.3.0/24
192.168.1.13
20
400
100 200 i
*>10.0.4.0/24
192.168.1.13
20
400
The above output shows that routes are tagged based on their sources. Routes from
AS300 are tagged as 300:1 and routes from AS400 are tagged as 400:1.
7-41
SJ-20100901100356-015|2011-07-30(R1.0)
View the configuration. Run the show ip bgp route command to view the BGP routing table
on the ZXCTN9000 in AS600.
ZXCTN9000_AS600(config)#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric
LocPrf
RtPrf
Path
*>10.0.1.0/24
192.168.1.13
200
20
*>10.0.2.0/24
192.168.1.13
200
20
400 i
*>10.0.3.0/24
192.168.1.13
200
20
* 10.0.3.0/24
192.168.1.17
20
300 200 i
*>10.0.4.0/24
192.168.1.13
20
200
400 100 i
The above output shows that the route with the largest LOCAL_PREF value is
preferentially selected. In this example, the route from AS400 to 10.0.3.0/24 is selected.
If an update packet is from an EBGP neighbor, the RR reflects the packet to all IBGP
neighbors, including client and non-client neighbors.
If an update packet is from a non-client neighbor, the RR reflects the packet to only
clients.
If an update packet is from the Route Reflector Cluster (RRC), the RR reflects the
route to all IBGP neighbors, including client and non-client neighbors. But the RR
does not reflect the packet to its sender.
When an AS has multiple RRs, certain RRs can be classifies as a cluster. An AS can have
multiple clusters, each of which should contain at least one RR.
Note that the RR is recommended when each ZXCTN9000 has more than 100 BGP
sessions.
Step
Command
Function
peer-group-name> ] router-refletor-client
Description
< value>
Indicates the cluster ID. The value of this parameter ranges from 1
to 4294967295.
< ip-address>
Description
< ipv4-address>
< peer-group-name>
7-44
SJ-20100901100356-015|2011-07-30(R1.0)
Run the show ip bgp route command to view the BGP routing table on P1.
P1(config)#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
*>
NextHop
10.0.0.0/24
*>i 10.0.1.0/24
Metric
LocPrf
10.0.0.1
192.168.1.2
100
RtPrf
Path
20
300 i
200
400 i
Run the show ip bgp route command to view the BGP routing table on P2.
P2#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
*>i 10.0.0.0/24
*>
10.0.1.0/24
NextHop
Metric
192.168.1.6
LocPrf
100
10.0.1.1
RtPrf
Path
200
300 i
20
400 i
The above output shows that P1 and P2 have learned the route to each other.
7-45
SJ-20100901100356-015|2011-07-30(R1.0)
possessing several IBGP neighbors. The sub-ASs are EBGP neighbors. Sub-ASs are not
available to routers outside the AS.
Step
Command
Function
value> ]
7-46
SJ-20100901100356-015|2011-07-30(R1.0)
Run the show ip bgp route command to view the BGP routing table on P2.
P2(config)#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
*>i 10.0.0.0/24
172.16.1.2
*>
172.16.2.2
10.1.0.0/24
Metric
LocPrf
100
RtPrf
Path
200
65002 i
20
500 i
Dest
NextHop
*>10.0.0.0/24
0.0.0.0
*>10.1.0.0/24
172.16.2.2
Metric
LocPrf
RtPrf
0
100
Path
i
200
65003 500 i
7-47
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
modifies factors.
Description
< half-life>
Changes the half life time. The value of this parameter ranges from 1
to 45 minutes. The default value is 15.
< reuse>
Changes the reuse value. The value of this parameter ranges from 1
to 20000. The default value is 750.
< suppress>
Changes the suppress limit. The value of this parameter ranges from
1 to 20000. The default value is 2000.
< max-suppress-time>
< map-tag>
7-48
SJ-20100901100356-015|2011-07-30(R1.0)
Run the show ip bgp protocol command on the ZXCTN9000 to view the configurations of
route dampening.
ZXCTN9000#show ip bgp protocol
BGP router ID is 1.1.1.2, Local as is 1
Hold time is 90 seconds, KeepAlive time is 30 seconds
Default local preference is 100
Default export metric is 0
IGP synchronization is disabled
Default information advertise is disabled
Always compare med is disabled
Fast fallover is enabled
Client-to-client reflection is enabled
Ipv4 unicast is activated
Router target is filtered
Route dampening enabled, halflife-time is 30,
reuse is 500, suppress is 2000, max-suppress-time is 120
Distance : external 20 internal 200
The above output shows that route dampening is enabled. The half life time is 30 minutes,
reuse value is 500, suppress value is 2000, and max suppress time is 120 minutes.
Command
Function
7-49
SJ-20100901100356-015|2011-07-30(R1.0)
Step
Command
Function
word>
group.
Description
< word>
Description
< word>
< number>
Indicates the number of the AS where the neighbor resides. The value
of this parameter ranges from 1 to 65535, or 1 to 4294967295.
Description
< ip-address>
< word>
Example
Create a BGP peer group. The name of the peer group is zte. In AS100, add neighbors
192.168.0.2 and 192.168.0.3 to the BGP peer group.
ZXCTN9000(config)#router bgp 100
ZXCTN9000(config-bgp)#neighbor zte peer-group
ZXCTN9000(config-bgp)#neighbor zte remote-as 100
ZXCTN9000(config-bgp)#neighbor 192.168.0.2 peer-group zte
ZXCTN9000(config-bgp)#neighbor 192.168.0.3 peer-group zte
Command
Function
]]
table.
The execution result of the show ip bgp protocol command is shown below:
ZXCTN9000#show ip bgp protocol
BGP router ID is 1.1.1.2, Local as is 1
Hold time is 90 seconds, KeepAlive time is 30 seconds
Default local preference is 100
Default export metric is 0
IGP synchronization is disabled
Default information advertise is disabled
Always compare med is disabled
Fast fallover is enabled
Client-to-client reflection is enabled
Ipv4 unicast is activated
Router target is filtered
Route dampening is disabled
Distance : external 20 internal 200
Description
30 seconds
Default local preference is 100
The execution result of the show ip bgp neighbor command is shown below:
ZXCTN9000#show ip bgp neighbor
BGP neighbor is 129.213.1.2, remote AS 65001, external link
BGP version 4, remote router ID 129.213.1.2
BGP state = Established, up for 00:04:21
hold time is 90 seconds, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received
7-51
SJ-20100901100356-015|2011-07-30(R1.0)
0 errs
0 errs
Connections established 1
Local host: 129.213.1.1, Local port: 179
Foreign host: 129.213.1.2, Foreign port: 1024
Description
The IP address is the peer IP address for the TCP connection between
129.213.1.2
BGP state = Established, up for 00:04:21
is 30 seconds
7-52
SJ-20100901100356-015|2011-07-30(R1.0)
Output Item
Description
Neighbor capabilities:
and received
All received 10 messages
0 updates, 0 errs
1 opens, 0 errs
route update are not received. The notification and error packets are
9 keepalives
not received.
0 updates, 0 errs
0 opens, 0 errs
8 keepalives
0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4
multicast refreshs, 0 ipv6 refreshs, 0 errs
0 notifications, 0 other errs
All sent 10 messages
prefixes
All sent nlri 0, unnlri 0, 0 advertised prefixes
is 30 seconds
Connections established 1
Local host: 129.213.1.1, Local port: 179
Indicates the IP socket of the peer end, including the peer IP address
1024
SJ-20100901100356-015|2011-07-30(R1.0)
The execution result of the show ip bgp route command is shown below:
ZXCTN9000#show ip bgp route
Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
Metric
*> 10.0.1.0/24
192.168.2.1
50
20
100 i
192.168.1.1
100
20
100 i
10.0.1.0/24
*> 10.0.2.0/24
LocPrf
RtPrf
0.0.0.0
Path
In the output of the show ip bgp route command, the asterisk (*) indicates a valid route, the
angle bracket (>) indicates the optimal route, i indicates an IBGP route, and the route not
marked by i is an EBGP route or a locally generated route.
The above example shows that the local ZXCTN9000 has to legal routes to 10.0.1.0/24.
The next-hop addresses of the routes are 192.168.2.1 and 192.168.1.1. The route whose
next-hop address is 192.168.2.1 is the optimal route because its metric value is 50, which
is smaller than that of the other route.
The command output is described in the table below.
Output Item
Description
Dest
Next-hop
Metric
LocPrf
RtPrf
Path
The execution result of the show ip bgp summary command is shown below:
ZXCTN9000#show ip bgp summary
Neighbor Ver
As
1.1.1.1
1.1.1.3
13
00:06:06
00:02:33
7-54
SJ-20100901100356-015|2011-07-30(R1.0)
Description
Neighbor
Ver
As
MsgRcvd
MsgSend
Up/Down(s)
State/PfxRcd
Function
ZXCTN9000#debug ip bgp in
command.
7-55
SJ-20100901100356-015|2011-07-30(R1.0)
The following example uses the debug ip bgp events command to trace the state machine
status of BGP connections.
ZXCTN9000#terminal monitor
ZXCTN9000#debug ip bgp events
BGP events debugging is on
0/20/CPU0 2010-6-5 10:10:07: ROUTE_bgp: 192.168.1.2 reset due to Erroneous BGP
Open received
0/20/CPU0 2010-6-5 10:10:07: ROUTE_bgp: 192.168.1.2 went from Connect to
Idle
0/20/CPU0 2010-6-5 10:10:08: ROUTE_bgp: 192.168.1.2 went from Idle to
Connect
0/20/CPU0 2010-6-5 10:10:13: ROUTE_bgp: 192.168.1.2 went from Connect to
OpenSent
0/20/CPU0 2010-6-5 10:10:13: ROUTE_bgp: 192.168.1.2 went from OpenSent to
OpenConfirm
0/20/CPU0 2010-6-5 10:10:13: ROUTE_bgp: 192.168.1.2 went from OpenConfirm to
Established
The above output shows that the status of the BGP state machine changes in the following
order:
ConnectIdleConnectOpenSentOpenConfirmEstablished
Description
INFORM_BGP_ACTIVE_GET_TCB
INFORM_BGP_IF_CHANGE
INFORM_BGP_HOLD_EXPIRED
A complete alarm contains the alarm type, alarm code, and alarm description. The alarm
code indicates the attribute and type of an alarm. The back-end system identifies an alarm
based on its alarm code. An alarm can carry a description, such as the caused of the alarm.
For detailed descriptions of BGP alarms, refer to corresponding manual.
7-56
SJ-20100901100356-015|2011-07-30(R1.0)
2. Figure 7-18 shows the typical networking of link protection. IS-IS neighboring topology
is established between two links, providing primary and secondary links.
Figure 7-18 Typical Networking of Link Protection
Configuration Method
1. Configure routing protocols.
2. For a destination, configure two or more next hops on FRR nodes and different costs
for routes.
3. Enable FRR on the router running the routing protocol.
Configuration Procedure
The detailed configurations are:
1. FRR for node protection
For the networking as shown in Figure 7-17, all ZXCTN9000s establish EBGP
neighboring relationship through actual interfaces. Enable FRR on P1. Configure the
7-57
SJ-20100901100356-015|2011-07-30(R1.0)
local preference to select P1P2P3 as the optimal path for routes advertised by
P3.
The configuration of P1:
P1(config)#router bgp 1
P1(config-router)#neighbor 172.16.1.2
P1(config-router)#neighbor 172.16.20.2
remote-as 2
remote-as 3
P1(config-router)#bgp frr
P1(config-router)#exit
P1(config)#route-map lt
P1(config-route-map)#set local-preference 200
P1(config-router)#exit
P1(config)#router bgp 1
P1(config-router)#neighbor 172.16.1.2
route-map lt in
P1(config-router)#exit
2. Link protection
For the networking as shown in Figure 7-18, perform the configuration according to
Configuration Example of IS-IS FRR.
Configuration Verification
Run the show ip backup route command to view the configuration results and check
whether FRR is enabled.
FRR status on P1:
P1#show ip backup route
IPv4 Backup Routing Table:
Dest
Gw
1.1.1.150/32
172.16.20.2
Interface
gei_2/2
Owner
Pri
BGP
20
Metric
0
7-58
SJ-20100901100356-015|2011-07-30(R1.0)
Loopback Address
P1
1.1.1.2/32
P2
1.1.1.3/32
P3
1.1.1.4/32
P4
1.1.1.1/32
P5
1.1.1.5/32
1. P1 and P2 are IBGP neighbors. P1 and P4 are EBGP neighbors. P2 and P3 are
EBGP neighbors.
2. P3 is connected to P5 through static routes and OSPF.
3. P3 imports OSPF routes to BGP and set the metric value of the imported routes to
122.
4. P4 has static routes to 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24,
192.168.3.0/24, 192.168.100.0/24, and 10.1.1.0/24.
5. P4 advertises its static routes to BGP and changes the metric value to 22. P3 filters
out the route to 192.168.100.0/24.
6. Implement route aggregation on P3 and advertise detailed routes.
7. Make sure that the PC in AS2 can connect to P5 in 20.1.1.0/24.
7-59
SJ-20100901100356-015|2011-07-30(R1.0)
8. All ZXCTN9000s uses loopback1 interfaces as the source address for connection. The
mask length of the interconnected address is 30 bits.
Configuration Method
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Configuration Procedure
The configuration of P1:
P1(config)#interface loopback1
P1(config-loopback1)#ip address 1.1.1.2 255.255.255.255
P1(config-loopback1)#exit
P1(config)#interface vlan 1
P1(config-if-vlan1)#ip address 11.1.1.2 255.255.255.252
P1(config-if-vlan1)#exit
P1(config)#interface vlan 2
P1(config-if-vlan2)#ip address 13.1.1.1 255.255.255.252
P1(config-if-vlan2)#exit
P1(config)#router bgp 1
P1(config-router)#no synchronization
P1(config-router)#redistribute connected
P1(config-router)#neighbor 1.1.1.1 remote-as 2
P1(config-router)#neighbor 1.1.1.1 activate
P1(config-router)#neighbor 1.1.1.1 ebgp-multihop ttl 5
P1(config-router)#neighbor 1.1.1.1 update-source loopback1
P1(config-router)#neighbor 1.1.1.3 remote-as 1
P1(config-router)#neighbor 1.1.1.3 activate
P1(config-router)#neighbor 1.1.1.3 next-hop-self
P1(config-router)#neighbor 1.1.1.3 update-source loopback1
P1(config-router)#exit
P1(config)#ip route 1.1.1.1 255.255.255.255 11.1.1.1
P1(config)#ip route 1.1.1.3 255.255.255.255 13.1.1.2
7-60
SJ-20100901100356-015|2011-07-30(R1.0)
7-61
SJ-20100901100356-015|2011-07-30(R1.0)
7-62
SJ-20100901100356-015|2011-07-30(R1.0)
Configuration Verification
View the BGP routing table and route forwarding table on P1.
P1# show ip bgp
Status codes: *-valid, >-best, i-internal,s-stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
*>
1.1.1.2/32
1.1.1.2
*>
10.1.1.0/24
1.1.1.1
*>
11.1.1.0/30
11.1.1.2
Metric
LocPrf
33
RtPrf
Path
20
2 i
200
100
200
*>i
12.1.1.0/30
1.1.1.3
*>
13.1.1.0/30
13.1.1.1
*i
13.1.1.0/30
1.1.1.3
*>i
14.1.1.0/30
1.1.1.3
100
200
3 ?
100
*>i
20.1.1.0/24
100
1.1.1.3
122
200
3 ?
*>
192.168.0.0/22
1.1.1.1
33
20
2 i
*>
192.168.0.0/24
1.1.1.1
33
20
2 ?
*>
192.168.1.0/24
1.1.1.1
33
20
2 ?
*>
192.168.2.0/24
1.1.1.1
33
20
2 ?
*>
192.168.3.0/24
1.1.1.1
33
20
2 ?
P1#show ip route
IPv4 Routing Table:
Dest
Mask
Gw
Interface
Owner
pri
metric
1.1.1.1
255.255.255.255
11.1.1.1
gei_1/1
static
1.1.1.2
255.255.255.255
1.1.1.2
loopback1
address
1.1.1.3
255.255.255.255
13.1.1.2
gei_2/1
static
7-63
SJ-20100901100356-015|2011-07-30(R1.0)
255.255.255.0
11.1.1.1
gei_1/1
bgp
20
33
11.1.1.0
255.255.255.252
11.1.1.2
gei_1/1
direct
11.1.1.2
255.255.255.255
11.1.1.2
gei_1/1
address
12.1.1.0
255.255.255.252
13.1.1.2
gei_2/1
bgp
200
13.1.1.0
255.255.255.252
13.1.1.1
gei_2/1
direct
13.1.1.1
255.255.255.255
13.1.1.1
gei_2/1
address
14.1.1.0
255.255.255.252
13.1.1.2
gei_2/1
bgp
200
20.1.1.0
255.255.255.0
13.1.1.2
gei_2/1
bgp
200
122
192.168.0.0
255.255.252.0
11.1.1.1
gei_1/1
bgp
20
33
192.168.0.0
255.255.255.0
11.1.1.1
gei_1/1
bgp
20
33
192.168.1.0
255.255.255.0
11.1.1.1
gei_1/1
bgp
20
33
192.168.2.0
255.255.255.0
11.1.1.1
gei_1/1
bgp
20
33
192.168.3.0
255.255.255.0
11.1.1.1
gei_1/1
bgp
20
33
View the BGP routing table and route forwarding table on P2.
P2#show ip bgp
Status codes: *-valid, >-best, i-internal,s-stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
1.1.1.3/32
1.1.1.3
*>i
10.1.1.0/24
1.1.1.2
*>i
11.1.1.0/30
1.1.1.2
*>
12.1.1.0/30
12.1.1.2
12.1.1.0/30
1.1.1.4
*>
13.1.1.0/30
13.1.1.2
*i
13.1.1.0/30
1.1.1.2
200
*>
14.1.1.0/30
1.1.1.4
20
3 ?
*>
20.1.1.0/24
1.1.1.4
122
20
3 ?
*>i 192.168.0.0/22
1.1.1.2
33
100
200
2 i
*>i 192.168.0.0/24
1.1.1.2
33
100
200
2 ?
*>i 192.168.1.0/24
1.1.1.2
33
100
200
2 ?
*>i 192.168.2.0/24
1.1.1.2
33
100
200
2 ?
*>i 192.168.3.0/24
1.1.1.2
33
100
200
2 ?
*>
Metric
33
LocPrf
RtPrf
Path
100
200
2 i
100
200
20
3 ?
100
P2#show ip route
IPv4 Routing Table:
Dest
Mask
Gw
Interface
Owner
1.1.1.2
255.255.255.255
13.1.1.1
gei_1/1
static
1.1.1.3
255.255.255.255
1.1.1.3
loopback1 address
1.1.1.4
255.255.255.255
12.1.1.1
gei_2/1
static
pri
metric
10.1.1.0
255.255.255.0
13.1.1.1
gei_1/1
bgp
200
33
11.1.1.0
255.255.255.252
13.1.1.1
gei_1/1
bgp
200
12.1.1.0
255.255.255.252
12.1.1.2
gei_2/1
direct
12.1.1.2
255.255.255.255
12.1.1.2
gei_2/1
address
7-64
SJ-20100901100356-015|2011-07-30(R1.0)
255.255.255.252
13.1.1.2
gei_1/1
direct
13.1.1.2
255.255.255.255
13.1.1.2
gei_1/1
address
14.1.1.0
255.255.255.252
12.1.1.1
gei_2/1
bgp
20
20.1.1.0
255.255.255.0
12.1.1.1
gei_2/1
bgp
20
192.168.0.0
255.255.252.0
13.1.1.1
gei_1/1
bgp
200
33
122
192.168.0.0
255.255.255.0
13.1.1.1
gei_1/1
bgp
200
33
192.168.1.0
255.255.255.0
13.1.1.1
gei_1/1
bgp
200
33
192.168.2.0
255.255.255.0
13.1.1.1
gei_1/1
bgp
200
33
192.168.3.0
255.255.255.0
13.1.1.1
gei_1/1
bgp
200
33
View the BGP routing table, OSPF routing table, and route forwarding table on P3.
P3#show ip bgp
Status codes: *-valid, >-best, i-internal,s-stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
*>
NextHop
Metric
LocPrf
RtPrf
Path
1.1.1.4/32
1.1.1.4
*> 10.1.1.0/24
1.1.1.3
20
1 2 i
*> 11.1.1.0/30
1.1.1.3
20
1 ?
*> 12.1.1.0/30
12.1.1.1
12.1.1.0/30
1.1.1.3
20
1 ?
*> 13.1.1.0/30
1.1.1.3
20
1 ?
*> 14.1.1.0/30
14.1.1.1
*> 20.1.1.0/24
14.1.1.2
0
122
110
*>192.168.0.0/22
1.1.1.3
20
1 2 ?
*>192.168.0.0/24
1.1.1.3
20
1 2 ?
*>192.168.1.0/24
1.1.1.3
20
1 2 ?
*>192.168.2.0/24
1.1.1.3
20
1 2 ?
*>192.168.3.0/24
1.1.1.3
20
1 2 ?
P3#show ip route
IPv4 Routing Table:
Dest
Mask
Gw
Interface
1.1.1.3
255.255.255.255
12.1.1.2
gei_1/1
1.1.1.4
255.255.255.255
1.1.1.4
Owner
static
loopback1 address
pri
metric
10.1.1.0
255.255.255.0
12.1.1.2
gei_1/1
bgp
20
11.1.1.0
255.255.255.252
12.1.1.2
gei_1/1
bgp
20
12.1.1.0
255.255.255.252
12.1.1.1
gei_1/1
direct
12.1.1.1
255.255.255.255
12.1.1.1
gei_1/1
address
13.1.1.0
255.255.255.252
12.1.1.2
gei_1/1
bgp
20
14.1.1.0
255.255.255.252
14.1.1.1
gei_2/1
direct
14.1.1.1
255.255.255.255
14.1.1.1
gei_2/1
address
20.1.1.0
255.255.255.0
14.1.1.2
gei_2/1
ospf
110
192.168.0.0
255.255.252.0
12.1.1.2
gei_1/1
bgp
20
192.168.0.0
255.255.255.0
12.1.1.2
gei_1/1
bgp
20
192.168.1.0
255.255.255.0
12.1.1.2
gei_1/1
bgp
20
7-65
SJ-20100901100356-015|2011-07-30(R1.0)
255.255.255.0
12.1.1.2
gei_1/1
bgp
20
192.168.3.0
255.255.255.0
12.1.1.2
gei_1/1
bgp
20
P3#show ip routeospf
IPv4 Routing Table:
Dest
20.1.1.0
Mask
Gw
255.255.255.0
Interface
14.1.1.2
vlan2
Owner
pri
ospf
110
metric
2
View the BGP routing table and route forwarding table on P4.
P4#show ip bgp
Status codes: *-valid, >-best, i-internal,s-stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Dest
NextHop
*>
1.1.1.1/32
*>
Metric
LocPrf
1.1.1.1
RtPrf
Path
1.1.1.2/32
11.1.1.2
*> 10.1.1.0/24
10.1.1.1
*> 11.1.1.0/30
11.1.1.1
11.1.1.0/30
1.1.1.2
20
*> 12.1.1.0/30
1.1.1.2
20
*> 13.1.1.0/30
1.1.1.2
20
*> 14.1.1.0/30
1.1.1.2
20
1 3 ?
1 3 ?
?
i
?
*> 20.1.1.0/24
1.1.1.2
20
*>192.168.0.0/22
0.0.0.0
254
*>192.168.0.0/24
10.1.1.2
*>192.168.1.0/24
10.1.1.2
*>192.168.2.0/24
10.1.1.2
*>192.168.3.0/24
10.1.1.2
*>192.168.100.0/24 10.1.1.2
P4#show ip route
IPv4 Routing Table:
Dest
Mask
Gw
Interface
Owner
pri metric
1.1.1.1
255.255.255.255
1.1.1.1
loopback1
address
1.1.1.2
255.255.255.255
11.1.1.2
gei_1/1
static
10.1.1.0
255.255.255.0
10.1.1.1
gei_2/1
direct
10.1.1.1
255.255.255.255
10.1.1.1
gei_2/1
address
11.1.1.0
255.255.255.252
11.1.1.1
gei_1/1
direct
11.1.1.1
255.255.255.255
11.1.1.1
gei_1/1
address
12.1.1.0
255.255.255.252
11.1.1.2
gei_1/1
bgp
20
13.1.1.0
255.255.255.252
11.1.1.2
gei_1/1
bgp
20
14.1.1.0
255.255.255.252
11.1.1.2
gei_1/1
bgp
20
20.1.1.0
255.255.255.0
11.1.1.2
gei_1/1
bgp
20
192.168.0.0
255.255.255.0
10.1.1.2
gei_2/1
static
192.168.1.0
255.255.255.0
10.1.1.2
gei_2/1
static
7-66
SJ-20100901100356-015|2011-07-30(R1.0)
255.255.255.0
10.1.1.2
gei_2/1
static
192.168.3.0
255.255.255.0
10.1.1.2
gei_2/1
static
192.168.100.0 255.255.255.0
10.1.1.2
gei_2/1
static
11.1.1.2
20 ms
<20ms
<20ms
13.1.1.2
<20ms
<20ms
<20ms
12.1.1.1
<20ms
<20ms
<20ms
14.1.1.2
<20ms
<20ms
<20ms
[finished]
P5#ping 10.1.1.2
sending 5,100-byte ICMP echos to 10.1.1.2,timeout is 2 seconds.
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max= 0/0/0 ms.
P5#trace 10.1.1.2
tracing the route to 10.1.1.2
1
14.1.1.1
<20ms
<20ms
<20ms
12.1.1.2
<20ms
<20ms
<20ms
13.1.1.1
<20ms
<20ms
<20ms
11.1.1.1
<20ms
<20ms
<20ms
[finished]
7-67
SJ-20100901100356-015|2011-07-30(R1.0)
<1 ms
6 ms
<1 ms
10.1.1.1
1 ms
1 ms
1 ms
11.1.1.2
1 ms
1 ms
1 ms
13.1.1.2
1 ms
1 ms
1 ms
12.1.1.1
1 ms
1 ms
1 ms
20.1.1.1
Trace complete.
The test results of step 5 and step 6 show that network communications are proper between
AS2 and AS3.
Configuration Procedure
The configuration of P1:
7-68
SJ-20100901100356-015|2011-07-30(R1.0)
remote-as 1
P1(config-router)#neighbor 172.16.1.2
next-hop-self
P1(config-router)#neighbor 172.16.20.1
remote-as 2
170.16.10.0 0.0.0.255
Configuration Verification
Run the show ip bgp summary command on P4 to view the neighboring relationship.
P4(config)#show ip bgp summary
Neighbor
172.16.20.2
Ver
4
As
1
MsgRcvd
46
MsgSend
Up/Down(s)
140
00:22:35
State/PfxRcd
0
Run the show ip bgp route command on P4 to view the BGP routing table.
P4(config)#show ip bgp route
7-69
SJ-20100901100356-015|2011-07-30(R1.0)
NextHop
Metric
LocPrf
RtPrf
Path
*> 192.16.0.0/16
0.0.0.0
254
*> 192.16.20.0/24
10.9.1.39
*> 192.16.21.0/24
10.9.1.39
*> 192.16.22.0/24
10.9.1.39
*> 170.16.10.0/24
10.9.1.39
Run the show ip bgp summary command on P1 to view the neighboring relationship.
P1(config)#show ip bgp summary
MsgRcvd
MsgSend
172.16.20.1
Neighbor
Ver
4
As
2
46
140
Up/Down(s)
00:22:35
State/PfxRcd
1
172.16.1.2
46
140
00:22:35
NextHop
192.16.0.0/16
Metric
LocPrf
RtPrf
172.16.20.1
Path
20
i 2
Run the show ip bgp summary command on P2 to view the neighboring relationship.
P2(config)#show ip bgp summary
Neighbor
Ver
183.16.20.2
As
3
MsgRcvd
46
MsgSend
140
Up/Down(s)
00:22:35
State/PfxRcd
0
172.16.1.1
46
140
00:22:35
NextHop
192.16.0.0/16
Metric
LocPrf
172.16.1.1
RtPrf
Path
200
i 2
Run the show ip bgp summay command on P5 to view the neighboring relationship.
P5(config)#show ip bgp summary
Neighbor
Ver
173.16.20.2
As
MsgRcvd
46
MsgSend
140
Up/Down(s)
State/PfxRcd
00:22:35
192.16.0.0/16
NextHop
Metric
173.16.20.2
LocPrf
RtPrf
20
Path
i 1 2
7-70
SJ-20100901100356-015|2011-07-30(R1.0)
Remarks
Remote-as
Update source
ebgp-multihop
7-71
SJ-20100901100356-015|2011-07-30(R1.0)
7-72
SJ-20100901100356-015|2011-07-30(R1.0)
Meaning
Error ID
Description
Code
synchronized.
1
5
3
incorrect.
6
10
7-73
SJ-20100901100356-015|2011-07-30(R1.0)
Error
Meaning
Error ID
Description
11
Code
incorrect.
4
incorrect.
6
Termination
The configuration is
changed due to neighbor
modification.
7-74
SJ-20100901100356-015|2011-07-30(R1.0)
7-75
SJ-20100901100356-015|2011-07-30(R1.0)
7-76
SJ-20100901100356-015|2011-07-30(R1.0)
Figures
Figure 2-1 Configuring Static Route .......................................................................... 2-3
Figure 2-2 Configuring Static L3VPN Route .............................................................. 2-4
Figure 2-3 Configuring Default Route........................................................................ 2-5
Figure 2-4 Network Topology for Handling a Static Route Fault................................. 2-7
Figure 2-5 Flow to Handle a Static Route Fault ......................................................... 2-8
Figure 3-1 Configuring ARP Proxy Application .......................................................... 3-8
Figure 3-2 Network Topology for Handling Basic ARP Fault .................................... 3-10
Figure 3-3 Flow to Handle ARP Fault...................................................................... 3-11
Figure 4-1 Topology of the RIP Configuration Example ........................................... 4-12
Figure 4-2 Network Topology for Handling an RIP Fault .......................................... 4-14
Figure 4-3 Flow to Handle an RIP Fault .................................................................. 4-15
Figure 5-1 Configuration Example............................................................................. 5-2
Figure 5-2 Configuring OSPF Interface Attribute ....................................................... 5-5
Figure 5-3 Configuration Example............................................................................. 5-8
Figure 5-4 Configuration Example........................................................................... 5-12
Figure 5-5 Configuration Example........................................................................... 5-15
Figure 5-6 Configuration Example........................................................................... 5-18
Figure 5-7 Configuration Example........................................................................... 5-22
Figure 5-8 Configuration Example........................................................................... 5-25
Figure 5-9 Configuration Example........................................................................... 5-29
Figure 5-10 Configuring Sham Link......................................................................... 5-31
Figure 5-11 Configuration Example ......................................................................... 5-33
Figure 5-12 Topology of OSPF Configuration Example 1 ........................................ 5-45
Figure 5-13 Topology of OSPF Configuration Example 2 ........................................ 5-47
Figure 5-14 Topology of OSPF Multi-instance Configuration Example..................... 5-50
Figure 5-15 OSPFv2 Routing Load Balancing Configuration Example .................... 5-52
Figure 5-16 Network Topology for Handling Basic OSPF Fault................................ 5-54
Figure 5-17 Flow to Handle Basic OSPF Fault ........................................................ 5-56
Figure 5-18 Network Topology for Handling OSPF Multi-instance Fault................... 5-57
Figure 5-19 Flow to Handle OSPF Multi-instance Fault ........................................... 5-58
Figure 5-20 Network Topology for Handling OSPF Routing Load Balancing
Fault ..................................................................................................... 5-59
II
Figures
III
Figures
Glossary
ABR
- Area Border Router
ARP
- Address Resolution Protocol
ASBR
- Autonomous System Boundary Router
BGP
- Border Gateway Protocol
IS-IS
- Intermediate System-to-Intermediate System
LSA
- Link State Advertisement
LSDB
- Link-state Database
OSPF
- Open Shortest Path First
RIP
- Routing Information Protocol