- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
- 00-1Cover
- 01-Login Command
- 02-VLAN Command
- 03-IP Address and Performance Command
- 04-QinQ-BPDU Tunnel Command
- 05-Port Correlation Configuration Command
- 06-MAC Address Table Management Command
- 07-MAC-IP-Port Binding Command
- 08-MSTP Command
- 09-Routing Overview Command
- 10-IPv4 Routing Command
- 11-IPv6 Routing Command
- 12-IPv6 Configuration Command
- 13-Multicast Protocol Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-ARP Command
- 17-DHCP Command
- 18-ACL Command
- 19-QoS Command
- 20-Port Mirroring Command
- 21-Cluster Management Command
- 22-UDP Helper Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-File System Management Command
- 27-Information Center Command
- 28-System Maintenance and Debugging Command
- 29-NQA Command
- 30-VRRP Command
- 31-SSH Command
- 32-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
11-IPv6 Routing Command | 679 KB |
Chapter 1 IPv6 Static Routing Configuration Commands
1.1 IPv6 Static Routing Configuration Commands
1.1.1 delete ipv6 static-routes all
Chapter 2 IPv6-RIPng Configuration Commands
2.1 RIPng Configuration Commands
Chapter 3 IPv6-OSPFv3 Configuration Commands
3.1 OSPFv3 Configuration Commands
3.1.5 display debugging ospfv3
3.1.7 display ospfv3 interface
3.1.9 display ospfv3 lsdb statistic
3.1.10 display ospfv3 next-hop
3.1.12 display ospfv3 peer statistic
3.1.13 display ospfv3 request-list
3.1.14 display ospfv3 retrans-list
3.1.16 display ospfv3 statistic
3.1.17 display ospfv3 topology
3.1.30 ospfv3 timer retransmit
Chapter 4 IPv6-IS-IS Configuration Commands
4.1 IPv6-IS-IS Configuration Commands
4.1.2 ipv6 default-route-advertise
4.1.4 ipv6 filter-policy export
4.1.5 ipv6 filter-policy import
4.1.7 ipv6 import-route isisv6 level-2 into level-1
4.1.8 ipv6 maximum load-balancing
Chapter 5 IPv6-BGP4+ Configuration Commands
5.1 BGP4+ Configuration Commands
5.1.2 bestroute as-path-neglect
5.1.4 bestroute med-confederation
5.1.5 compare-different-as-med
5.1.7 default local-preference
5.1.11 display bgp ipv6 network
5.1.14 display bgp ipv6 routing-table
5.1.15 display bgp ipv6 routing-table as-path-acl
5.1.16 display bgp ipv6 routing-table community
5.1.17 display bgp ipv6 routing-table community-list
5.1.18 display bgp ipv6 routing-table dampened
5.1.19 display bgp ipv6 routing-table dampening parameter
5.1.20 display bgp ipv6 routing-table different-origin-as
5.1.21 display bgp ipv6 routing-table flap-info
5.1.22 display bgp ipv6 routing-table label
5.1.23 display bgp ipv6 routing-table peer
5.1.24 display bgp ipv6 routing-table regular-expression
5.1.25 display bgp ipv6 routing-table statistic
5.1.32 peer advertise-community
5.1.33 peer advertise-ext-community
5.1.37 peer capability-advertise route-refresh
5.1.39 peer default-route-advertise
5.1.55 peer route-update-interval
5.1.59 reflect between-clients
5.1.63 reset bgp ipv6 dampening
5.1.64 reset bgp ipv6 flap-info
Chapter 6 Routing Policy Configuration Commands
6.1 Public Routing Policy Configuration Commands
6.2 IPv6 Routing Policy Configuration Commands
Chapter 1 IPv6 Static Routing Configuration Commands
& Note:
l Verify that the system already operates in IPv4/IPv6 dual-stack mode before configuring IPv6 routing.
l All the IPv6 routing related configuration mentioned in this manual assumes that the system already operates in IPv4/IPv6 dual-stack mode. For dual stack mode configuration, see the part covering dual stack in the IPv6 Configuration module.
1.1 IPv6 Static Routing Configuration Commands
1.1.1 delete ipv6 static-routes all
Syntax
delete ipv6 static-routes all
View
System view
Parameter
None
Description
Use the delete ipv6 static-routes all command to delete all IPv6 static routes including the default route.
When using this command, you will be prompted whether to continue the deletion and only after you have confirmed the deletion will the static routes be deleted.
Related command: display ipv6 routing-table, ipv6 route-static.
Example
# Delete all IPv6 static routes.
<Sysname> system-view
[Sysname] delete ipv6 static-routes all
This will erase all ipv6 static routes and their configurations, you must reconfigure all static routes
Are you sure?[Y/N]:y
1.1.2 ipv6 route-static
Syntax
ipv6 route-static ipv6-address prefix-length [ interface-type interface-number ] nexthop-address [ preference preference-value ]
undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number ] [ nexthop-address ] [ preference preference-value ]
View
System view
Parameter
ipv6-address prefix-length: IPv6 address and prefix length.
interface-type interface-number: The interface type and interface number of the output interface.
nexthop-address: Next hop IPv6 address.
preference-value: Route preference value, in the range of 1 to 255. Defaults to 60.
Description
Use the ipv6 route-static command to configure an IPv6 static route.
Use the undo ipv6 route-static command to remove an IPv6 static route.
An IPv6 static route that has the destination address configured as “::/0” (a prefix length of 0) is the default IPv6 route. If the destination address of an IPv6 packet does not match any entries in the routing table, this default route will be used to forward the packet.
While configuring static routes, you can configure either the output interface or the next-hop address depending on the situations:
Related command: display ipv6 routing-table, delete ipv6 static-routes all.
Example
# Configure a static IPv6 route, with the destination address being 1:1:2::/24 and next hop being 1:1:3::1.
<Sysname> system-view
[Sysname] ipv6 route-static 1:1:2:: 24 1:1:3::1
Chapter 2 IPv6-RIPng Configuration Commands
& Note:
l Verify that the system already operates in IPv4/IPv6 dual-stack mode before configuring IPv6 routing.
l All the IPv6 routing related configuration mentioned in this manual assumes that the system already operates in IPv4/IPv6 dual-stack mode. For dual stack mode configuration, see the part covering dual stack in the IPv6 Configuration module.
2.1 RIPng Configuration Commands
2.1.1 checkzero
Syntax
checkzero
undo checkzero
View
RIPng view
Parameter
None
Description
Use the checkzero command to enable the zero field check for RIPng packet headers.
Use the undo checkzero command to disable the zero field check.
The zero field check is enabled by default.
Some fields in RIPng packet headers must be zero. These fields are called zero fields. You can enable the zero field check for RIPng packet headers. If any such field contains a non-zero value, the entire RIPng packet will not be processed.
Example
# Enable the zero field check for RIPng packet headers.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] checkzero
# Disable the zero field check for RIPng packet headers.
[Sysname-ripng-100] undo checkzero
2.1.2 default cost
Syntax
default cost value
undo default cost
View
RIPng view
Parameter
value: Default metric of a redistributed route, in the range of 0 to 16.
Description
Use the default cost command to define the default metric of a redistributed route.
Use the undo default cost command to restore the default metric defined in the above command.
By default, the default metric of redistributed routes is 0.
The metric of a redistributed route is determined by the default cost command when you use the import-route command, with value not specified, to redistribute other protocol routes
Related command: import-route.
Example
# Set the default metric of a redistributed route to 2.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] default cost 2
2.1.3 display ripng
Syntax
display ripng [ process-id ]
View
Any view
Parameter
process-id: RIPng process number, in the range of 1 to 65535.
Description
Use the display ripng command to display the running status and configuration information of a RIPng process. If process-id is not specified, information of all RIPng processes will be displayed. Otherwise, only the information of the specified RIPng process will be displayed.
Example
# Display the information of all configured RIPng processes.
<Sysname> display ripng
RIPng process : 1
Preference : 100
Checkzero : Enabled
Default Cost : 0
Maximum number of balanced paths : 3
Update time : 30 sec(s) Timeout time : 180 sec(s)
Suppress time : 120 sec(s) Garbage-Collect time : 240 sec(s)
Number of periodic updates sent : 0
Number of trigger updates sent : 0
Table 2-1 Description on the fields of the display ripng command
Field |
Description |
RIPng Process |
RIPng process number |
Preference |
RIPng route priority |
Checkzero |
Zero field check for RIPng packet headers |
Default Cost |
Default metric of a redistributed route. |
Maximum number of balanced paths |
Maximum number of equivalent routes |
Update time |
RIPng updating interval, in seconds |
Timeout time |
RIPng timeout interval, in seconds |
Suppress time |
RIPng suppress interval, in seconds |
Garbage-Collect time |
RIPng garbage collection interval, in seconds |
Number of periodic updates sent |
Number of RIPng updates sent periodically |
Number of trigger updates sent |
Number of RIPng updates triggered to be sent |
2.1.4 display ripng database
Syntax
display ripng process-id database
View
Any view
Parameter
process-id: RIPng process number, in the range of 1 to 65535.
Description
Use the display ripng database command to display all active routes in the RIPng advertised database, which are sent in normal RIPng update messages.
Example
# Display the active routes in the database advertised by RIPng process 100.
<Sysname> display ripng 100 database
2001:7B::2:2A1:5DE/64,
cost 4, Imported
1:13::/120,
cost 4, Imported
1:32::/120,
cost 4, Imported
1:33::/120,
cost 4, Imported
100::/32,
via FE80::200:5EFF:FE04:3302, cost 2
3FFE:C00:C18:1::/64,
via FE80::200:5EFF:FE04:B602, cost 2
3FFE:C00:C18:1::/64,
via FE80::200:5EFF:FE04:B601, cost 2
3FFE:C00:C18:2::/64,
via FE80::200:5EFF:FE04:B602, cost 2
3FFE:C00:C18:3::/64,
via FE80::200:5EFF:FE04:B601, cost 2
4000:1::/64,
via FE80::200:5EFF:FE04:3302, cost 2
4000:2::/64,
via FE80::200:5EFF:FE04:3302, cost 2
Table 2-2 Description on fields of the display ripng database command
Field |
Description |
2001:7B::2:2A1:5DE/64 |
IPv6 destination address/prefix length |
via |
The next hop IPv6 address |
cost |
Route metric value |
Imported |
Routes learnt from other routing protocols |
2.1.5 display ripng interface
Syntax
display ripng process-id interface [ interface-type interface-number ]
View
Any view
Parameter
process-id: RIPng process number, in the range of 1 to 65535.
interface-type interface-number: Interface type and interface number.
Description
Use the display ripng interface command to display the RIPng interface information.
Example
# Display interface information of RIPng process 1.
<Sysname> display ripng 1 interface
Interface-name: Vlan-interface 100
Link Local Address: FE80::200:5EFF:FE19:3E00
Split-horizon: on Poison-reverse: off
MetricIn: 0 MetricOut: 1
Default route: off
Table 2-3 Description on the fields of the display ripng interface command
Field |
Description |
Interface-name |
Name of an interface running RIPng. |
Link Local Address |
Link-local address of an interface running RIPng |
Split-horizon |
Indicates whether the split horizon function is enabled (on: Enabled off: Disabled). |
Poison-reverse |
Indicates whether the poison reverse function is enabled (on: Enabled off: Disabled). |
MetricIn/MetricOut |
Additional metric to incoming and outgoing routes |
Default route |
l Default-route: only or Default-route: originate, indicates advertising default route. Only means that the interface only default route is advertised. Originate means that the default route and other RIPng routes are advertised. l Default-route: off, indicates that no default route is defined or the garbage-collect time expires after stopping the default route announcement. l Default-route: in garbage-collect status (in second), after default route announcement, the interface advertises the default route with metric 16 during the garbage-collect time. |
2.1.6 display ripng route
Syntax
display ripng process-id route
View
Any view
Parameter
process-id: RIPng process number, in the range of 1 to 65535.
Description
Use the display ripng route command to display routing information of RIPng and timers associate to each route.
Example
# Display routing information of RIPng process 100.
<Sysname> display ripng 100 route
Route Flags: A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------
Peer FE80::20F:E2FF:FE00:220A on Vlan-interface100
Dest 4:3::/64,
via FE80::20F:E2FF:FE00:220A, cost 1, tag 0, A, 34 Sec
Table 2-4 Description on the fields of the display ripng route command
Field |
Description |
Peer |
Neighbor connected to the interface |
Dest |
IPv6 destination address |
via |
Next hop IPv6 address |
cost |
Routing metric value |
tag |
Route tag |
Sec |
Time that a route entry stays in a particular state |
“A” |
The route is in the aging state |
“S” |
The route is in the suppressed state |
“G” |
The route is in the Garbage-collect state |
2.1.7 filter-policy export
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ protocol [ process-id ] ]
undo filter-policy export [ protocol [ process-id ] ]
View
RIPng view
Parameter
acl6-number: ACL number used to filter advertised routing information, in the range of 2000 to 3999.
ipv6-prefix-name: Prefix name of the destination IPv6 address which is used to filter routing information, a string of 1 to 19 characters.
protocol: Routing protocol of the filtered routing information, currently including bgp4+, direct, isisv6, ospfv3, ripng, and static
process-id: Process number of the routing protocol of the filtered routing information, in the range of 1 to 65535. This argument must be specified when the routing protocol is rip, ospf, or isisv6.
Description
Use the filter-policy export command to define the export filtering policy. Only filtered routes can be announced in the update messages.
Use the undo filter-policy export command to remove the export filtering policy.
By default, RIPng does not filter any advertised routing information.
If the protocol argument is specified when this command is executed, routing information of the redistributed route of the specified routing protocol will be displayed. Otherwise, routing information of all advertised routing information will be displayed.
Example
# Use Filter 2 list to filter the advertised RIPng update messages.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] filter-policy ipv6-prefix Filter2 export
2.1.8 filter-policy import
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import
undo filter-policy import
View
RIPng view
Parameter
acl6-number: ACL number used to filter received routing information, in the range of 2000 to 3999.
ipv6-prefix ipv6-prefix-name: Uses the prefix name of IPv6 addresses to filter routes. The ipv6-prefix-name argument represents the prefix name of the destination IPv6 address which is used to filter routing information and consists of 1 to 19 characters.
Description
Use the filter-policy import command to filter received routing information. Only routes which meet the filtering policy can be received.
Use the undo filter-policy import command to remove the filtering policy.
By default, RIPng does not filter received routing information.
Example
# Use Filter 1 list to filter the received RIPng update messages.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] filter-policy ipv6-prefix Filter1 import
2.1.9 import-route
Syntax
import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost-value | route-policy route-policy-name ] *
undo import-route protocol [ process-id ]
View
RIPng view
Parameter
protocol: Routing protocols that RIPng can redistribute, currently including bgp4+, direct, isisv6, ospfv3, ripng, and static.
process-id: Process number of the redistributed routing protocol, in the range of 1 to 65535, valid for isisv6, ospfv3, and ripng.
cost-value: Routing metric of a redistributed route, in the range of 0 to 16. If cost value is not specified, the metric is the default defined by the default cost command.
route-policy route-policy-name: Specifies a route policy name consisting of 1 to 19 characters.
allow-ibgp: The keyword allow-ibgp is only available when the protocol is bgp4+. The command import-route bgp4+ means only EBGP routes are redistributed. The command import-route bgp4+ allow-ibgp means IBGP routes are also included.
Description
Use the import-route command to redistribute routes learnt from other routing protocols.
Use the undo import-route command to remove the redistributed routes.
You can filter the redistributed routes and define the route attribute through the route policy.
By default, RIPng does not redistribute other routes.
l You can specify route-policy to configure a route policy so that specific routes can be redistributed.
l You can specify cost to configure a routing metric for a redistributed route.
Related command: default cost.
Example
# Redistribute an IPv6-IS-IS route (process 7) and define the metric as 7.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] import-route isisv6 7 cost 7
2.1.10 maximum load-balancing
Syntax
maximum load-balancing number
undo maximum load-balancing
View
RIPng view
Parameter
number: Maximum number of equivalent routes in load sharing mode. in the range of 1 to 4
Description
Use the maximum load-balancing command to define the maximum number of equivalent routes in load sharing mode.
Use the undo maximum load-balancing command to restore the default maximum number of equivalent routes.
By default, the Maximum number of equivalent routes is 4.
& Note:
Configure the maximum number of equivalent routes according to the memory size.
Example
# Set the maximum number of equivalent routes in load sharing mode to 2.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] maximum load-balancing 2
# Restore the default maximum number of equivalent routes.
[Sysname-ripng-100] undo maximum load-balancing
2.1.11 preference
Syntax
preference [ route-policy route-policy-name ] value
undo preference [ route-policy ]
View
RIPng view
Parameter
route-policy-name: Name of a route policy, consisting of 1 to 19 characters. A priority level is set for routes satisfying specific conditions.
value: Route priority level, in the range of 1 to 255.
Description
Use the preference command to define the RIPng route priority.
Use the undo preference route-policy command to restore the default route priority.
By default, the priority of a RIPng route is 100.
You can apply a route policy to set a priority for a specific route by assigning a value to the route-policy keyword:
l If a priority is set for a matched route in the route policy, the priority of the matched route is the one set in the route policy while the priorities of other routes are those set by the preference command.
l If no priority is set for a matched route in the route policy, the priorities of all routes are set by the preference command.
Example
# Set the RIPng route priority to 120.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] preference 120
# Restore the default RIPng route priority.
[Sysname-ripng-100] undo preference
2.1.12 ripng
Syntax
ripng [ process-id ]
undo ripng [ process-id ]
View
System view
Parameter
process-id: RIPng process number, in the range of 1 to 65535. The default value is 1.
Description
Use the ripng command to create a RIPng process and enter RIPng view.
Use the undo ripng command to stop running a RIPng process.
By default, the system does not run any RIPng process.
Example
# Create RIPng process 100 and enter RIPng view.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100]
# Stop running RIPng process 100.
[Sysname] undo ripng 100
2.1.13 ripng default-route
Syntax
ripng default-route { only | originate } [ cost value ]
undo ripng default-route
View
Interface view
Parameter
only: Indicates that only IPv6 default route (::/0) is advertised.
originate: Indicates that the IPv6 default route (::/0) is advertised without suppressing other routes.
value: Metric of the advertised default route, in the range of 1 to 15, with a default value of 1.
Description
Use the ripng default-route command to advertise a default route with the specified routing metric to a RIPng neighbor.
Use the undo ripng default-route command to stop advertising and forwarding the default route.
By default, a RIP process does not advertise the default route.
After you execute this command, the generated RIPng default route is advertised via a route update message over the specified interface. This IPv6 default route is advertised without considering whether it already exists in IPv6 routing table.
Example
# Configure RIPng on Vlan-interface100 to advertise only the default route in an update message from this interface.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ripng default-route only
Configure RIPng on Vlan-interface101 to advertise the default route together with other routes in an update message from this interface.
<Sysname> system-view
[Sysname] interface vlan-interface 101
[Sysname-Vlan-interface101] ripng default-route originate
2.1.14 ripng enable
Syntax
ripng process-id enable
undo ripng
View
Interface view
Parameter
process-id: RIPng process number, in the range of 1 to 65535.
Description
Use the ripng enable command to enable RIPng on the specified interface.
Use the undo ripng command to disable RIPng on the specified interface.
By default, RIPng is disabled on an interface.
Example
# Enable RIPng100 on Vlan-interface100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ripng 100 enable
2.1.15 ripng metricin
Syntax
ripng metricin value
undo ripng metricin
View
Interface view
Parameter
value: Additional metric to a received route, in the range of 0 to 16.
Description
Use the ripng metricin command to define an additional metric for a received RIPng route.
Use the undo ripng metricin command to restore the default additional metric.
By default, the additional metric to a received route is 0.
Related command: ripng metricout.
Example
# Define the additional routing metric as 12 for a RIPng route received by Vlan-interface100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ripng metricin 12
2.1.16 ripng metricout
Syntax
ripng metricout value
undo ripng metricout
View
Interface view
Parameter
value: Additional metric to an advertised route, in the range of 1 to 16, with a default value of 1.
Description
Use the ripng metricout command to configure an additional metric for a RIPng route advertised by an interface.
Use the undo rip metricout command to restore the default additional metric.
By default, the additional routing metric to a RIPng route advertised by an interface is 1.
Related command: ripng metricin.
Example
# Set the additional metric to 12 for routes advertised by Vlan-interface100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ripng metricout 12
2.1.17 ripng poison-reverse
Syntax
ripng poison-reverse
undo ripng poison-reverse
View
Interface view
Parameter
None
Description
Use the rip poison-reverse command to enable the poison reverse function.
Use the undo rip poison-reverse command to disable the poison reverse function.
By default, the poison reverse function is disabled.
Example
# Enable the poison reverse function for RIPng update messages on Vlan-interface100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ripng poison-reverse
2.1.18 ripng split-horizon
Syntax
ripng split-horizon
undo ripng split-horizon
View
Interface view
Parameter
None
Description
Use the rip split-horizon command to enable the split horizon function.
Use the undo rip split-horizon command to disable the split horizon function.
By default, the split horizon function is enabled.
Note that:
l The split horizon function is necessary for preventing routing loops. Therefore, you are not recommended to disable it.
l In special cases, make sure that it is necessary to disable the split horizon function before doing so.
& Note:
Only the poison reverse function takes effect if both the poison reverse and split horizon functions are enabled.
Example
#Enable the split horizon function on Van-interface100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ripng split-horizon
2.1.19 ripng summary-address
Syntax
ripng summary-address ipv6-address prefix-length
undo ripng summary-address ipv6-address prefix-length
View
Interface view
Parameter
ipv6-address: IPv6 network address for the summarized routes.
prefix-length: IPv6 prefix length, in the range of 0 to 128. It indicates the number of consecutive bits of the significant part of the prefix, which defines the network.
Description
Use the ripng summary-address command to assign a summary IPv6 address and the prefix.
Use the undo ripng summary-address command to remove the summary IPv6 address.
If the prefix and the prefix length of a route match the IPv6 prefix, the IPv6 prefix will be advertised instead. Thus, one route can be advertised on behalf of many routes with the same prefix. After summarization, the route cost is the lowest cost of those summarized routes.
Example
# Assign an IPv6 address with a 64-bit prefix on Vlan-interface100 and configure a summary IPv6 address.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ipv6 address 2001:200::3EFF:FE11:6770/64
[Sysname-Vlan-interface100] ripng summary-address 2001:200:: 35
2.1.20 timers
Syntax
timers { garbage-collect garbage-collect-value | suppress suppress-value | timeout timeout-value | update update-value }*
undo timers { garbage-collect | suppress | timeout | update }*
View
RIPng view
Parameter
garbage-collect-value: Length of the garbage-collect timer in seconds, in the range of 1 to 86400.
suppress-value: Length of the suppress timer in seconds, in the range of 0 to 86,400.
timeout-value: Length of the timeout timer in seconds, in the range of 1 to 86,400.
update-value: Length of the update timer in seconds, in the range of 1 to 86,400.
Description
Use the timers command to configure RIPng timers.
Use the undo timers command to restore the default timer lengths.
By default, the length of the garbage-collect timer is 240 seconds, that of the suppress timer 120 seconds, that of the timeout timer 180 seconds, and that of the update timer 30 seconds.
RIPng is controlled by the above four timers.
l The update timer defines the interval between sending update messages.
l The timeout timer defines the route aging time. If no update message related to a route is received within the aging time, the metric of the route is set to 16 in the routing table.
l The suppress timer defines how long a RIPng route stays in the suppressed state. When the metric of a route is 16, the route enters the suppressed state. In the suppressed state, only routes which come from the same neighbor and whose metric is less than 16 will be received by the router to replace unreachable routes.
l The garbage-collect timer defines the interval from when the metric of a route becomes 16 to when it is deleted from the routing table. During the garbage-collect timer length, RIPng advertises the route with the routing metric set to 16. If no update message is announced for that route before the garbage-collect timer expires, the route will completely be deleted from the routing table.
Note that:
l You are not recommended to change the default values of these timers under normal circumstances.
l The lengths of these timers must be kept consistent on all routers and access servers in the network
Example
# Configure the update, timeout, suppress, and garbage-collect timers as 5s, 15s, 15s and 30s.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] timers update 5
[Sysname-ripng-100] timers timeout 15
[Sysname-ripng-100] timers suppress 15
[Sysname-ripng-100] timers garbage-collect 30
Chapter 3 IPv6-OSPFv3 Configuration Commands
& Note:
l Verify that the system already operates in IPv4/IPv6 dual-stack mode before configuring IPv6 routing.
l All the IPv6 routing related configuration mentioned in this manual assumes that the system already operates in IPv4/IPv6 dual-stack mode. For dual stack mode configuration, see the part covering dual stack in the IPv6 Configuration module.
3.1 OSPFv3 Configuration Commands
3.1.1 abr-summary
Syntax
abr-summary ipv6-address prefix-length [ not-advertise ]
undo abr-summary ipv6-address prefix-length
View
OSPFv3 area view
Parameter
ipv6-address: Destination IPv6 address prefix of the summary route.
prefix-length: The length of the prefix, in the range 0 to 128.
not-advertise: Specifies not to advertise the summary IPv6 route.
Description
Use the abr-summary command to configure an IPv6 summary route.
Use the undo abr-summary command to remove an IPv6 summary route.
By default, no route summarization is available.
You can use this command only on an ABR to configure a summary route for the area. The ABR advertises only the summary route to other areas. Multiple contiguous networks may be available in an area, where you can summarize them into one route for advertisement.
After the undo abr-summary command is executed, the aggregated routes will be advertised again.
Example
# Summarize networks 2000:1:1:1::/64 and 2000:1:1:2::/64 in Area 1 into 2000:1:1::/48 for advertisement to other areas.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] abr-summary 2000:1:1:: 48
3.1.2 area
Syntax
area area-id
View
OSPFv3 view
Parameter
area-id: The ID of an area, a decimal integer (in the range of 0 to 4294967295 and changed to IPv4 address format by the system) or an IPv4 address.
Description
Use the area command to enter OSPFv3 area view.
& Note:
The undo form of the command is not available. An area is removed automatically if there is no configuration and no interface is up in the area.
Example
# Enter OSPFv3 Area 0 view.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 0
[Sysname-ospfv3-1-area-0.0.0.0]
3.1.3 default cost
Syntax
default cost value
undo default cost
View
OSPFv3 view
Parameter
value: Specifies the default cost for redistributed routes, in the range of 1 to 16777214.
Description
Use the default cost command to configure the default cost for redistributed routes.
Use the undo default cost command to restore the default.
By default, the default cost is 1.
You need to configure the default cost value for redistributed routes to advertise them throughout the whole AS.
If multiple OSPFv3 processes available, use of this command takes effect for the current process only.
Example
# Specify the default cost for redistributed routes as 10.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] default cost 10
3.1.4 default-cost
Syntax
default-cost value
undo default-cost
View
OSPFv3 area view
Parameter
value: Specifies the default route cost of send a packet to the stub area, in the range of 0 to 65535, which defaults to 1.
Description
Use the default-cost command to specify the cost of the default route to the stub area.
Use the undo-default-cost command to restore the default value.
Use of this command is only available on the ABR that is connected to a stub area.
You have two commands to configure a stub area: stub, defaulted-cost. You need to use the stub command on routers attached to a stub area to configure the area as stub.
If multiple OSPFv3 processes running, use of this command takes effect only for the current process.
Related command: stub.
Example
# Configure Area1 as a stub area, and specify the cost of the default route to the stub area as 60.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] stub
[Sysname-ospfv3-1-area-0.0.0.1] default-cost 60
3.1.5 display debugging ospfv3
Syntax
display debugging ospfv3
View
Any view
Parameter
None
Description
Use the display debugging ospfv3 command to display global OSPFv3 debugging state information.
Example
# Display the global OSPFv3 debugging state information.
<Sysname> display debugging ospfv3
3.1.6 display ospfv3
Syntax
display ospfv3 [ process-id ]
View
Any view
Parameter
process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535.
Description
Use the display ospfv3 command to display OSPFv3 brief information. If no process ID is specified, OSPFv3 brief information about all processes will be displayed.
Example
# Display brief information about all OSPFv3 processes.
<Sysname> display ospfv3
Routing Process "OSPFv3 (1)" with ID 1.1.1.1
SPF schedule delay 5 secs, Hold time between SPFs 10 secs
Minimum LSA interval 5 secs, Minimum LSA arrival 1 secs
Number of external LSA 0. These external LSAs’ checksum Sum 0x0000
Number of AS-Scoped Unknown LSA 0
Number of LSA originated 3
Number of LSA received 0
Number of areas in this router is 1
Area 0.0.0.1
Number of interfaces in this area is 1
SPF algorithm executed 1 times
Number of LSA 2. These LSAs’ checksum Sum 0x20C8
Number of Unknown LSA 0
Table 3-1 Description on the fields of the display isofv3 command
Field |
Description |
Routing Process "OSPFv3 (1)" with ID 1.1.1.1 |
OSPFv3 process is 1, and router ID is 1.1.1.1. |
SPF schedule delay |
Delay interval of SPF calculation |
Hold time between SPFs |
Hold time between SPF calculations |
Minimum LSA interval |
Minimum interval for generating LSAs |
Minimum LSA arrival |
Minimum LSA repeat arrival interval |
Number of external LSA |
Number of ASEs |
These external LSAs’ checksum Sum |
Sum of all the ASEs’ checksum |
Number of AS-Scoped Unknown LSA |
Number of LSAs with unknown flooding scope |
Number of LSA originated |
Number of LSAs originated |
Number of LSA received |
Number of LSAs received |
Number of areas in this router |
Number of areas this router attached to |
Area |
Area ID |
Number of interfaces in this area |
Number of interfaces attached to this area |
SPF algorithm executed 1 times |
SPF algorithm is executed 1 time |
Number of LSA |
Number of LSAs |
These LSAs’ checksum Sum |
Sum of all LSAs’ checksum |
Number of Unknown LSA |
Number of unknown LSAs |
3.1.7 display ospfv3 interface
Syntax
display ospfv3 interface [ interface-type interface-number | statistic ]
View
Any view
Parameter
interface-type interface-number: Interface type and interface number.
statistic: Displays the interface statistics.
Description
Use the display ospfv3 interface command to display OSPFv3 interface information.
Example
# Display OSPFv3 interface information.
<Sysname > display ospfv3 interface Vlan-interface 200
Vlan-interface200 is up, line protocol is up
Interface ID 11665607
IPv6 Prefixes
FE80::20F:E2FF:FE00:5 (Link-Local Address)
2001:1::2
OSPFv3 Process (1), Area 0.0.0.1, Instance ID 0
Router ID: 1.1.1.1, Network Type: BROADCAST, Cost: 1
Transmit Delay is 1 sec, State: DR, Priority: 1
Designated Router (ID) 1.1.1.1
Interface Address: FE80::20F:E2FF:FE00:5
Backup Designated Router (ID): 2.2.2.2
Interface Address: FE80::20F:E2FF:FE00:2205
Timer interval configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5
Hello due in 00:00:08
Neighbor Count is 1, Adjacent neighbor count is 1
Table 3-2 Description on the fields of the display ospfv3 interface command
Field |
Description |
|
Interface ID |
Interface ID |
|
IPv6 Prefixes |
IPv6 Prefix |
|
OSPFv3 Process |
OSPFv3 Process |
|
Area |
Area ID |
|
Instance ID |
Instance ID |
|
Router ID |
Router ID |
|
Network Type |
Network type of the interface |
|
Cost |
Cost value of the interface |
|
Transmit Delay |
Transmission delay of the interface |
|
State |
Interface state |
|
Priority |
DR priority of the interface |
|
Designated Router (ID) |
Designated Router (ID) |
|
Backup Designated Router (ID) |
Backup Designated Router (ID) |
|
Timer interval configured |
The configured OSPFv3 timers are defined as follows: |
|
Hello |
Interval at which the interface sends Hello packets |
|
Dead |
Dead time for neighbor |
|
Wait |
The interface exits the Waiting state after this timer expires. |
|
Retransmit |
Interval at which the interface retransmits LSAs |
|
Hello due in 00:00:08 |
Hello packet will be sent in 8 seconds |
|
Neighbor Count |
Number of Neighbors on the interface |
|
Adjacent neighbor count |
Number of Adjacencies on the interface |
3.1.8 display ospfv3 lsdb
Syntax
display ospfv3 [ process-id ] lsdb [ [ external | inter-prefix | inter-router | intra-prefix | link | network | router ] [ link-state-id ] [ originate-router router-id ] | total ]
View
Any view
Parameter
process-id: Specifies ID of an OSPFv3 process, ranging from 1 to 65535.
external: Specifies to display information about AS-external LSAs.
inter-prefix: Specifies to display information about Inter-area-prefix LSAs.
inter-router: Specifies to display information about Inter-area-router LSAs.
intra-prefix: Specifies to display information about Intra-area-prefix LSAs.
link: Specifies to display information about Link-LSAs.
network: Specifies to display information about Network-LSAs.
router: Specifies to display information about Router-LSAs.
link-state-id: Link state ID, an IPv4 address.
originate-router router-id: The ID of the advertising router .
total: Specifies to display all information in the LSDB.
Description
Use the display ospfv3 lsdb command to display OSPFv3 LSDB information.
Example
# Display OSPFv3 LSDB information.
<Sysname> display ospfv3 lsdb
OSPFv3 Router with ID (5.5.5.5) (Process 1)
Link-LSA (Interface Vlan-interface100)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum Prefix
0.15.0.9 5.5.5.5 0304 0x80000001 0x5b6a 1
0.15.0.9 6.6.6.6 0311 0x80000001 0x6956 1
Router-LSA (Area 0.0.0.0)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum Link
0.0.0.0 5.5.5.5 0263 0x80000002 0x823f 1
0.0.0.0 6.6.6.6 0264 0x80000003 0x625a 1
Network-LSA (Area 0.0.0.0)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum
0.15.0.9 6.6.6.6 0264 0x80000001 0x3498
Intra-Area-Prefix-LSA (Area 0.0.0.0)
----------------------------------------------------------------
Link State ID Origin Router Age SeqNum CkSum Prefix Reference
0.0.0.2 6.6.6.6 0263 0x80000001 0x95c4 1 Network-LSA
Table 3-3 Description on the fields of the display isofv3 lsdb command
Field |
Description |
Link-LSA |
Link-LSA |
Link State ID |
Link State ID |
Origin Router |
Originating Router |
Age |
Age of LSAs |
SeqNum |
LSA sequence number |
CkSum |
LSA Checksum |
Prefix |
Number of Prefixes |
Router-LSA |
Router-LSA |
Link |
Number of links |
Network-LSA |
Network-LSA |
Intra-Area-Prefix-LSA |
Intra-Area-Prefix-LSA |
Reference |
Type of referenced LSA |
# Display Link-local LSA information in the LSDB.
<Sysname> dis ospfv3 lsdb link
OSPFv3 Router with ID (4.4.4.4) (Process 1)
Link-LSA (Interface Vlan-interface400)
----------------------------------------------------------------
LS age : 1536
LS Type : Link-LSA
Link State ID : 0.178.1.143
Originating Router: 3.3.3.3
LS Seq Number : 0x80000003
Checksum : 0x22A7
Length : 56
Priority : 1
Options : 0x000011 (-|R|-|-|-|V6)
Link-Local Address: FE80::2E0:FCFF:FE00:242A
Number of Prefixes: 1
Prefix : 2001:2::/64
Prefix Options: 0 (-|-|-|-)
LS age : 1558
LS Type : Link-LSA
Link State ID : 0.178.1.143
Originating Router: 4.4.4.4
LS Seq Number : 0x80000003
Checksum : 0x4A6A
Length : 56
Priority : 1
Options : 0x000011 (-|R|-|-|-|V6)
Link-Local Address: FE80::2E0:FCFF:FE00:550A
Number of Prefixes: 1
Prefix : 2001:2::/64
Prefix Options: 0 (-|-|-|-)
Table 3-4 Description on the fields of the display ospfv3 lsdb command
Field |
Description |
LS age |
Age of LSA |
LS Type |
Type of LSA |
Originating Router |
Originating Router |
LS Seq Number |
LSA Sequence Number |
Checksum |
LSA Checksum |
Length |
LSA Length |
Priority |
Router Priority |
Options |
Options |
Link-Local Address |
Link-Local Address |
Number of Prefixes |
Number of Prefixes |
Prefix |
Address prefix |
Prefix Options |
Prefix options |
3.1.9 display ospfv3 lsdb statistic
Syntax
display ospfv3 lsdb statistic
View
Any view
Parameter
None
Description
Use the display ospfv3 lsdb statistic command to display LSA statistics in the OSPFv3 LSDB.
Example
# Display OSPFv3 LSDB statistics.
<System> display ospfv3 lsdb statistic
OSPFv3 Router with ID (1.1.1.1) (Process 1)
LSA Statistics
----------------------------------------------------------------------
Area ID Router Network InterPre InterRou IntraPre Link ASE
0.0.0.0 2 1 1 0 1
0.0.0.1 1 0 1 0 1
Total 3 1 2 0 2 3 0
Table 3-5 Descriptions on the fields of the display ospfv3 lsdb statistic command
Field |
Description |
Area ID |
Area ID |
Router |
Router-LSA number |
Network |
Network-LSA number |
InterPre |
Inter-Area-Prefix-LSA number |
InterRou |
Inter-Area-Router-LSA number |
IntraPre |
Intra-Area-Prefix-LSA number |
Link |
Link-LSA number |
ASE |
AS-external-LSA number |
Total |
Total LSA number |
3.1.10 display ospfv3 next-hop
Syntax
display ospfv3 [ process-id ] next-hop
View
Any view
Parameter
process-id: Specifies ID of an OSPFv3 process, ranging from 1 to 65535.
Description
Use the display ospfv3 next-hop command to display OSPFv3 next hop information.
If no process is specified, next hop information of all OSPFv3 processes is displayed.
Example
# Display OSPFv3 next hop information.
<Sysname> display ospfv3 next-hop
OSPFv3 Router with ID (2.2.2.2) (Process 1)
Neighbor-Id Next-Hop Interface RefCount
1.1.1.1 FE80::20F:E2FF:FE00:1 vlan100 1
Table 3-6 Description on the fields of the display ospfv3 next-hop command
Field |
Description |
Neighbor-Id |
Neighboring router ID |
Next-hop |
Next-hop address |
Interface |
Outbound interface |
RefCount |
Reference count |
3.1.11 display ospfv3 peer
Syntax
display ospfv3 [ process-id ] [ area area-id ] peer [ [ interface-type interface-number ] [ verbose ] | peer-router-id ]
View
Any view
Parameter
process-id: Specifies ID of an OSPFv3 process, ranging from 1 to 65535.
area: Specifies to display neighbor information of the specified area.
area-id: The ID of an area, a decimal integer that is translated into IPv4 address format by the system (in the range of 0 to 4294967295) or an IPv4 address.
statistic: Specifies to display the statistics of all neighbors.
interface-type interface-number: interface type and number.
verbose: Display detailed neighbor information.
peer-router-id: Router-ID of the specified neighbor.
Description
Use the display ospfv3 peer command to display OSPFv3 neighbor information.
l If no area-id is specified, the neighbor information of all areas is displayed.
l If no process-id is specified, the information of all processes is displayed.
l If no interface or neighbor Router-ID is specified, the neighbor information of all interfaces is displayed.
Example
# Display the neighbor information of OSPFv3 process 1 of an interface.
<Sysname> display ospfv3 1 peer Vlan-interface 400
OSPFv3 Process (1)
OSPFv3 Area (0.0.0.2)
Neighbor ID Pri State Dead Time Interface Instance ID
3.3.3.3 1 Full/Backup 00:00:38 Vlan400 0
Table 3-7 Description on the fields of the display isofv3 peer command
Field |
Description |
Neighbor ID |
Neighbor ID |
Pri |
Priority of neighbor router |
State |
Neighbor state |
Dead Time |
Dead time remained |
Interface |
Interface connected to the neighbor |
Instance ID |
Instance ID |
# Display detailed neighbor information of OSPFv3 process 1 of an interface.
<H3C> display ospfv3 1 peer Vlan-interface 400 verbose
OSPFv3 Process (1)
Neighbor: 3.3.3.3, interface address: FE80::2E0:FCFF:FE00:242A
In the area 0.0.0.2 via interface Vlan-interface400
DR is 4.4.4.4 BDR is 3.3.3.3
Options is 0x000011 (-|R|-|-|-|V6)
Dead timer due in 00:00:35
Database Summary List 0
Link State Request List 0
Link State Retransmission List 0
Table 3-8 Description on the fields of the display isofv3 peer verbose command
Field |
Description |
Neighbor |
Neighbor ID |
interface address |
Interface address |
In the area 0.0.0.2 via interface vlan-interface 400 |
Interface vlan-interface 400 belongs to area 2 |
DR is 4.4.4.4 BDR is 3.3.3.3 |
DR is 4.4.4.4, BDR is 3.3.3.3 |
Options is 0x000011 (-|R|-|-|-|V6) |
The option is 0x000011 (-|R|-|-|-|V6) |
Dead timer due in 00:00:35 |
Dead timer due in 00:00:35 |
Database Summary List |
Number of LSAs sent in DD packet |
Link State Request List |
Number of LSAs in the link state request list |
Link State Retransmission List |
Number of LSAs in the link state retransmission list |
3.1.12 display ospfv3 peer statistic
Syntax
display ospfv3 peer statistic
View
Any view
Parameter
None
Description
Use the display ospfv3 peer statistic command to display information about all OSPFv3 neighbors on the router, that is, numbers of neighbors in different states.
Example
# Display information about all OSPFv3 neighbors.
<Sysname> display ospfv3 peer statistic
OSPFv3 Router with ID (1.1.1.1) (Process 1)
Neighbor Statistics
----------------------------------------------------------------------
Area ID Down Init 2-way ExStar Exchange Loading Full
0.0.0.0 0 0 0 0 0 0 1
Total 0 0 0 0 0 0 1
Table 3-9 Description on the fields of the display ospfv3 peer statistic command
Field |
Description |
Area ID |
Area ID |
Down |
In this state, neighbor initial state, the router has not received any information from a neighboring router for a period of time. |
Init |
In this state, the router received a Hello packet from the neighbor but the packet gives no ID of the router. Mutual communication is not available. |
2-Way |
Indicates mutual communication between the router and its neighbor is available. DR/BDR election is finished under this state (or higher). |
ExStar |
In this state, the router decides on the initial DD sequence number and master/slave relationship of the two parties. |
Exchange |
In this state, the router exchanges DD packets with the neighbor. |
Loading |
In this state, the router sends LSRs to request the neighbor for needed LSAs. |
Full |
Indicates LSDB synchronization has been accomplished between neighbors. |
Total |
Total number of neighbors under the same state |
3.1.13 display ospfv3 request-list
Syntax
display ospfv3 [ process-id ] request-list [ statistic ]
View
Any view
Parameter
process-id: OSPFv3 process ID, in the range 1 to 65535.
statistic: Statistics of link state request list.
Description
Use the display ospfv3 request-list command to display OSPFv3 link state request list.
If no process is specified, link state request list information of all OSPFv3 processes is displayed.
Example
# Display the information of OSPFv3 link state request list.
<Sysname> display ospfv3 request-list
OSPFv3 Router with ID (1.1.1.1) (Process 1)
Interface Vlan100 Area-ID 0.0.0.1
----------------------------------------------------------------------
Nbr-ID 2.2.2.2
LS-Type LS-ID AdvRouter SeqNum Age
AS-External-LSA 0.0.16.66 2.2.2.2 0x80000001 98
AS-External-LSA 0.0.16.67 2.2.2.2 0x80000001 98
AS-External-LSA 0.0.16.68 2.2.2.2 0x80000001 98
Table 3-10 Description on the fields of the display ospfv3 request-list command
Field |
Description |
Interface |
Interface name |
Area-ID |
Area ID |
Nbr-ID |
Neighbor router ID |
LS-Type |
Type of LSA |
LS-ID |
Link state ID |
AdvRouter |
Advertising router |
SeqNum |
LSA sequence number |
Age |
Age of LSA |
# Display the statistics of OSPFv3 link state request list.
<Sysname> display ospfv3 request-list statistics
OSPFv3 Router with ID (1.1.1.1) (Process 1)
Interface Neighbor LSA-Count
Vlan100 2.2.2.2 0
Table 3-11 Description on the fields of the display ospfv3 request-list statistics command
Field |
Description |
Interface |
Interface name |
Neighbor |
Neighbor router ID |
LSA-Count |
Number of LSAs in the request list |
3.1.14 display ospfv3 retrans-list
Syntax
display ospfv3 [ process-id ] retrans-list [ statistics ]
View
Any view
Parameter
process-id: OSPFv3 process ID, in the range 1 to 65535.
statistics: Displays link state retransmission list statistics.
Description
Use the display ospfv3 retrans-list command to display OSPFv3 link state retransmission list.
If no process is specified, link state retransmission list information of all OSPFv3 processes is displayed.
Example
# Display the information of OSPFv3 link state retransmission list.
<Sysname> display ospfv3 retrans-list
OSPFv3 Router with ID (2.2.2.2) (Process 1)
Interface Vlan100 Area-ID 0.0.0.1
----------------------------------------------------------------------
Nbr-ID 2.2.2.2
LS-Type LS-ID AdvRouter SeqNum Age
Router-LSA 0.0.0.0 2.2.2.2 0x80000006 0
Network-LSA 0.15.0.8 2.2.2.2 0x80000001 0
Intra-Area-Prefix-LSA 0.0.0.1 2.2.2.2 0x80000006 0
Table 3-12 Description on the fields of the display ospfv3 retrans-list command
Field |
Description |
Interface |
Interface name |
Area-ID |
Area ID |
Nbr-ID |
Neighbor router ID |
LS-Type |
Type of LSA |
LS-ID |
Link state ID |
AdvRouter |
Advertising Router |
SeqNum |
LSA sequence Number |
Age |
Age of LSA |
# Display the statistics of OSPFv3 link state retransmission list.
<Sysname>display ospfv3 retrans-list statistics
OSPFv3 Router with ID (3.3.3.3) (Process 1)
Interface Neighbor LSA-Count
Vlan100 1.1.1.1 0
Table 3-13 Description on the fields of the display ospfv3 retrans-list statistics command
Field |
Description |
Interface |
Interface name |
Neighbor |
Neighbor ID |
LSA-Count |
Number of LSAs in the retransmission request list |
3.1.15 display ospfv3 routing
Syntax
display ospfv3 [ process-id ] routing [ ipv6-address prefix-length | ipv6-address/prefix-length | abr-routes | asbr-routes | all | statistics ]
View
Any view
Parameter
process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535.
ipv6-address: IPv6 address prefix.
prefix-length: Prefix length, in the range 0 to 128.
abr-routes: Specifies to display routes to ABR.
asbr-routes: Specifies to display routes to ASBR.
all: Specifies to display all routes.
statistics: Specifies to display the statistics of OSPFv3 routing table.
Description
Use the display ospfv3 routing command to display OSPFv3 routing table information.
If no process is specified, routing table information of all OSPFv3 processes is displayed.
Example
# Display OSPFv3 routing table information.
<Sysname> display ospfv3 routing
E1 - Type 1 external route, IA - Inter area route, I - Intra area route
E2 - Type 2 external route, * - Selected route
OSPFv3 Router with ID (1.1.1.1) (Process 1)
------------------------------------------------------------------------
*Destination: 2001::/64
Type : I Cost : 1
NextHop : directly-connected Interface: Vlan100
Table 3-14 Description on the fields of the display ospfv3 routing command
Field |
Description |
Destination |
Destination network segment |
Type |
Route type |
Cost |
Route cost value |
Next-hop |
Next hop address |
Interface |
Outbound interface |
# Display the statistics of OSPFv3 routing table.
<Sysname> display ospfv3 routing statistics
OSPFv3 Router with ID (1.1.1.1) (Process 1)
OSPFv3 Routing Statistics
Intra-area-routes : 1
Inter-area-routes : 0
External-routes : 0
Table 3-15 Description on the fields of the display ospfv3 routing statistics command
Field |
Description |
Intra-area-routes |
Number of Intra-area-routes |
Inter-area-routes |
Number of inter-area routes |
External-routes |
Number of external routes |
3.1.16 display ospfv3 statistic
Syntax
display ospfv3 statistic
View
Any view
Parameter
None
Description
Use the display ospfv3 statistic command to display outbound/inbound OSPFv3 packet statistics on associated interface(s).
Example
# Display outbound/inbound OSPFv3 packet statistics on associated interfaces.
<Sysname> display ospfv3 statistic
OSPFv3 Statistics
Interface Vlan-interface100 Instance 0
Type Input Output
Hello 189 63
DB Description 10 8
Ls Req 2 1
Ls Upd 16 6
Ls Ack 10 6
Table 3-16 Description on the fields of the display ospfv3 statistics command
Field |
Description |
Interface |
Interface name |
Instance |
Instance number |
Type |
Type of packet |
Input |
Number of packets received by the interface |
Output |
Number of packets sent by the interface |
Hello |
Hello packet |
DB Description |
Database description packet |
Ls Req |
Link state request packet |
Ls Upd |
Link state update packet |
Ls Ack |
Link state acknowledgement packet |
3.1.17 display ospfv3 topology
Syntax
display ospfv3 [ process-id ] topology [ area area-id ]
View
Any view
Parameter
process-id: Specifies the ID of an OSPFv3 process of which to display topology information, ranging from 1 to 65535.
area: Display the topology information of the specified area.
area-id: The ID of an area, a decimal integer (in the range of 0 to 4294967295) that is translated into IPv4 address format by the system or an IPv4 address.
Description
Use the display ospfv3 topology command to display OSPFv3 topology information. If no process is specified, topology information of all OSPFv3 processes is displayed.
Example
# Display OSPFv3 area 1 topology information.
<Sysname> display ospfv3 topology area 1
OSPFv3 Process (1)
OSPFv3 Area (0.0.0.1) topology
Type ID(If-Index) Bits Metric Next-Hop Interface
Rtr 1.1.1.1 --
Rtr 2.2.2.2 1 2.2.2.2 Vlan100
Table 3-17 Description on the fields of the display ospfv3 topology command
Field |
Description |
Type |
Type of node |
ID(If-Index) |
Router ID |
Bits |
Flag bit |
Metric |
Cost value |
Next-Hop |
Next hop |
Interface |
Outbound interface |
3.1.18 display ospfv3 vlink
Syntax
display ospfv3 [ process-id ] vlink
View
Any view
Parameter
process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535.
Description
Use the display ospfv3 vlink command to display OSPFv3 virtual link information. If no process is specified, virtual link information of all OSPFv3 processes is displayed.
Example
# Display OSPFv3 virtual link information.
<Sysname> display ospfv3 vlink
Virtual Link VLINK1 to router 1.1.1.1 is up
Transit area :0.0.0.1 via interface Vlan-interface100, instance ID: 0
Local address: 2000:1::1
Remote address: 2001:1:1::1
Transmit Delay is 1 sec, State: P-To-P,
Timer intervals configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5
Hello due in 00:00:02
Adjacency state :Full
Table 3-18 Description on the fields of the display ospfv3 vlink command
Field |
Description |
Virtual Link VLINK1 to router 1.1.1.1 is up |
The virtual link VLINK1 to router 1.1.1.1 is up |
Transit area 0.0.0.1 via interface Vlan-interface100 |
Interface Vlan-interface100 in transit area 0.0.0.1. |
instance ID |
Instance ID |
Local address |
Local IPv6 address |
Remote address |
Remote IPv6 address |
Transmit Delay |
Transmit delay of sending LSAs |
State |
Interface state |
Timer intervals configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 |
Timer intervals in seconds, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 |
Hello due in 00:00:02 |
Send hello packets in 2 seconds. |
Adjacency state |
Adjacency state |
3.1.19 filter-policy export
Syntax
filter-policy { acl-number | ipv6-prefix ipv6-prefix-name } export [ isisv6 process-id | ospfv3 process-id | ripng process-id | bgp4+ | direct | static]
undo filter-policy export [ isisv6 process-id | ospfv3 process-id | ripng process-id | bgp4+ | direct | static ]
View
OSPFv3 view
Parameter
acl-number: Specifies the ACL number, ranging from 2000 to 3999.
ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list, a string of up to 19 characters.
isisv6 process-id: Specifies to filter the IPv6-IS-IS routes with a specified process-id, which is in the range of 1 to 65535.
ospfv3 process-id: Specifies to filter the ospfv3 routes with a specified process-id, which is in the range of 1 to 65535.
ripng process-id: Specifies to filter the ripng routes with a specified process-id, which in the range of 1 to 65535.
bgp4+: Specifies to filter bgp4+ routes.
direct: Specifies to filter direct routes.
static: Specifies to filter static routes.
Description
Use the filter-policy export command to filter redistributed routes.
Use the undo filter-policy export command to remove the configuration.
By default, IPv6 OSPFv3 does not filter redistributed routes.
If no protocol is specified, all redistributed routes will be filtered.
& Note:
Using the filter-policy export command filters only routes redistributed by the import-route command. If the import-route command is not configured to redistribute routes from other protocols and other OSPFv3 processes, use of the filter-policy export command does not take effect.
Example
# Filter all redistributed routes using IPv6 ACL 2001.
<Sysname> system-view
[Sysname] acl ipv6 number 2001
[Sysname-acl6-basic-2001] rule permit source 2002:1:: 64
[Sysname-acl6-basic-2001] quit
[Sysname] ospfv3
[Sysname-ospfv3-1] filter-policy 2001 export
3.1.20 filter-policy import
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import
undo filter-policy import
View
OSPFv3 view
Parameter
acl6-number: Specifies an ACL number, ranging from 2000 to 3999.
ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list, a string of up to 19 characters.
Description
Use the filter-policy import command to filter received routes.
Use the undo filter-policy import command to remove the configuration.
No received routes are filtered by default.
& Note:
Using the filter-policy import command only filters routes computed by OSPFv3. The routes that fail to pass are not added to the routing table.
Example
# Filter received routes using the IPv6 prefix list abc.
<Sysname> system-view
[Sysname] ip ipv6-prefix abc permit 2002:1:: 64
[Sysname] ospfv3 1
[Sysname-ospfv3-1] filter-policy ipv6-prefix abc import
3.1.21 import-route
Syntax
import-route { isisv6 process-id | ospfv3 process-id | ripng process-id | bgp4+ [ allow-ibgp ] | direct | static } [ cost value | type type | route-policy route-policy-name ]*
undo import-route { isisv6 process-id | ospfv3 process-id | ripng process-id | bgp4+ | direct | static }
View
OSPFv3 view
Parameter
isisv6 process-id: Specifies a process ID of ISISv6 to redistribute ISISv6 routes with the process ID, in the range 1 to 65535.
ospfv3 process-id: Specifies a process ID of OSPFv3 to redistribute OSPFv3 routes with the process ID, in the range 1 to 65535.
ripng process-id: Specifies a process ID of ripng to redistribute ripng routes with the process ID, in the range 1 to 65535.
bgp4+: Specifies to redistribute bgp4+ routes.
allow-ibgp: Allows redistributing IBGP route.
direct: Specifies to redistribute direct routes.
static: Specifies to redistributes static routes.
cost value: Specifies the cost for redistributed routes, ranging from 1 to 16777214. It defaults to 1.
type type: Specifies the type for redistributed routes, 1 or 2. It defaults to 2.
route-policy route-policy-name: Specifies to redistribute only the routes that match the specified route-policy. route-policy-name is a string of up to 19 characters.
Caution:
Use the import-route bgp4+ command to redistribute EBGP routes only, while use the import-route bgp4+ allow-ibgp command to redistribute both EBGP and IBGP routes. The redistributed IBGP routes may cause routing loops. Therefore, use this command with caution.
Description
Use the import-route command to redistribute routes.
Use the undo import-route command to disable routes redistribution.
IPv6 OSPFv3 does not redistribute routes from other protocols by default.
Example
# Configure to redistribute routes from RIPng and specify the type as type 2 and cost as 50.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] import-route ripng 10 type 2 cost 50
# Configure OSPFv3 process 100 to redistribute the routes found by OSPFv3 process 160.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] import-route ospfv3 160
3.1.22 maximum load-balancing
Syntax
maximum load-balancing maximum
undo maximum load-balancing
View
OSPFv3 view
Parameter
maximum: The maximum number of load-balanced routes. in the range of 1 to 4, which defaults to 4.
Description
Use the maximum load-balancing command to configure the maximum number of load-balanced routes.
Use the undo maximum load-balancing command to restore the default.
Example
# Configure the maximum load-balancing routes as 2.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] maximum load-balancing 2
3.1.23 ospfv3
Syntax
ospfv3 [ process-id ]
undo ospfv3 [ process-id ]
View
System view
Parameter
process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535. The process ID defaults to 1.
Description
Use the ospfv3 command to enable an OSPFv3 process and enter OSPFv3 view.
Use the undo ospfv3 command to disable an OSPFv3 process.
The system runs no OSPFv3 process by default.
Related command: router-id.
& Note:
An OSPFv3 process can run normally only when Router ID is configured in OSPFv3 view. Otherwise, you can find the process, but which cannot generate any LSA.
Example
# Enable the OSPFv3 process with process ID as 120 and configure the Router ID as 1.1.1.1.
<Sysname> system-view
[Sysname] ospfv3 120
[Sysname-ospfv3-120] router-id 1.1.1.1
3.1.24 ospfv3 area
Syntax
ospfv3 process-id area area-id [ instance instance-id ]
undo ospfv3 process-id area area-id [ instance instance-id ]
View
Interface view
Parameter
process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535.
area-id: The ID of an area, a decimal integer (in the range of 0 to 4294967295) that is translated into IPv4 address format by the system or an IPv4 address.
instance-id: The instance ID of an interface, in the range of 0 to 255, which defaults to 0.
Description
Use the ospfv3 area command to enable an OSPFv3 process on the interface and specify the area for the process.
Use the undo ospfv3 area command to disable an OSPFv3 process.
OSPFv3 is not enabled on an interface by default.
Example
# Enable OSPFv3 process 1 on an interface that belongs to instance 1 and specify area 1 for the process.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 1 area 1 instance 1
3.1.25 ospfv3 cost
Syntax
ospfv3 cost value [ instance instance-id ]
undo ospfv3 cost [ instance instance-id ]
View
Interface view
Parameter
value: OSPFv3 cost of the interface, in the range 1 to 65535.
instance-id: The instance ID of an interface, in the range of 0 to 255, which defaults to 0.
Description
Use the ospfv3 cost command to configure the OSPFv3 cost on an interface of an instance.
Use the undo ospfv3 cost command to restore the default OSPFv3 cost on an interface of an instance.
By default, the cost value defaults to 1.
Example
# Specifies the OSPFv3 cost as 33 on an interface of instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 cost 33 instance 1
3.1.26 ospfv3 dr-priority
Syntax
ospfv3 dr-priority priority [ instance instance-id ]
undo ospfv3 dr-priority [ instance instance-id ]
View
Interface view
Parameter
priority: DR priority, in the range 0 to 255.
instance-id: ID of the instance an interface belongs to, in the range 0 to 255, which defaults to 0.
Description
Use the ospfv3 dr-priority command to set the DR priority for an interface of an instance.
Use the undo ospfv3 dr-priority command to restore the default value.
The DR priority on an interface defaults to 1
An interface’s DR priority determines its privilege for DR/BDR selection, and the interface with the highest priority is considered first.
Example
# Set the DR priority for an interface of instance 1 to 8 .
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 dr-priority 8 instance 1
3.1.27 ospfv3 mtu-ignore
Syntax
ospfv3 mtu-ignore [ instance instance-id ]
undo ospfv3 mtu-ignore [ instance instance-id ]
View
Interface view
Parameter
instance-id: Instance ID, in the range 0 to 255, which defaults to 0.
Description
Use the ospfv3 mtu-ignore command to configure an interface to ignore MTU when sending DD packets.
Use the undo ospfv3 mtu-ignore command to restore the default configuration.
MTU is not ignored by default.
Example
# Configure an interface that belongs to instance 1 to ignore MTU.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 mtu-ignore instance 1
3.1.28 ospfv3 timer dead
Syntax
ospfv3 timer dead seconds [ instance instance-id ]
undo ospfv3 timer dead [ instance instance-id ]
View
Interface view
Parameter
seconds: Dead time in seconds, ranging from 1 to 2,147,483,647,
instance-id: The instance ID of an interface, in the range of 0 to 255, which defaults to 0.
Description
Use the ospfv3 timer dead command to configure the OSPFv3 neighbor dead time for an interface that belongs to a specified instance.
Use the undo ospfv3 timer dead command to restore the default.
By default, the OSPFv3 neighbor dead time is 40 seconds.
OSPFv3 neighbor dead time: if an interface receives no hello packet from a neighbor after dead time elapses, the interface will considers the neighbor is dead.
The dead seconds value is at least four times the Hello seconds value and must be identical on interfaces attached to the same network segment.
Related command: ospfv3 timer hello.
Example
# Configure the OSPFv3 neighbor dead time as 80 seconds for an interface with instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 timer dead 80 instance 1
3.1.29 ospfv3 timer hello
Syntax
ospfv3 timer hello seconds [ instance instance-id ]
undo ospfv3 timer hello [ instance instance-id ]
View
Interface view
Parameter
seconds: Interval between hello packets, ranging from 1 to 65,535.
instance-id: The instance ID of an interface, in the range of 0 to 255, which defaults to 0.
Description
Use the ospfv3 timer hello command to configure the hello interval for an interface that belongs to an instance.
Use the undo ospfv3 timer hello command to restore the default.
By default, the hello interval is 10 seconds.
Related command: ospfv3 timer dead.
Example
# Configure the hello interval as 20 seconds for an interface of instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 timer hello 20 instance 1
3.1.30 ospfv3 timer retransmit
Syntax
ospfv3 timer retransmit interval [ instance instance-id ]
undo ospfv3 timer retransmit [ instance instance-id ]
View
Interface view
Parameter
interval: Specifies LSA retransmission interval in seconds for an interface, ranging from 1 to 65535.
instance-id: The instance ID of an interface, in the range of 0 to 255, which defaults to 0.
Description
Use the ospfv3 timer retransmit command to configure the LSA retransmission interval for an interface of an instance.
Use the undo ospfv3 timer retransmit command to restore the default.
The interval defaults to 5 seconds.
When a router sends a LSA to its neighbor, it waits for an acknowledgement. If receiving no acknowledgement after retransmission interval elapses, it will retransmit the LSA.
The LSA retransmission interval should not be too small for avoidance of unnecessary retransmissions.
Example
# Configure the LSA retransmission interval on an interface of instance 1 as 12 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 timer retransmit 12 instance 1
3.1.31 ospfv3 trans-delay
Syntax
ospfv3 trans-delay seconds [ instance instance-id ]
undo ospfv3 trans-delay [ instance instance-id ]
View
Interface view
Parameter
seconds: Transmission delay time in seconds, ranging from 1 to 65,535.
instance-id: The instance ID of an interface, in the range of 0 to 255, with the default as 0.
Description
Use the ospfv3 trans-delay command to configure the transmission delay for an interface with an instance ID.
Use the undo ospfv3 trans-delay command to restore the default.
The transmission delay defaults to 1s.
As LSAs are aged in the LSDB (incremented 1 by each second) but not aged on transmission, it is necessary to add a delay time to the age time before sending a LSA. This configuration is important for low-speed networks.
Example
# Configure the transmission delay as 3 seconds for an interface of instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 trans-delay 3 instance 1
3.1.32 router-id
Syntax
router-id router-id
undo router-id
View
OSPFv3 view
Parameter
router-id: A 32-bit router ID, in IPv4 address format.
Description
Use the router-id command to configure the OSPFv3 router ID .
Use the undo router-id command to remove a configured router ID.
Router ID is the unique identification of an OSPF process in an autonomous system. An OSPFv3 process cannot run without a Router ID.
Make sure that different processes have different Router IDs.
Related command: ospfv3.
& Note:
By configuring different router IDs for different processes, you can run multiple OSPFv3 processes on a router.
Example
# Configure the Router ID as 10.1.1.3 for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] router-id 10.1.1.3
3.1.33 silent-interface
Syntax
silent-interface { interface-type interface-number | all }
undo silent-interface { interface-type interface-number | all }
View
OSPFv3 view
Parameter
interface-type interface-number: Interface type and number
all: Specifies all interfaces.
Description
Use the silent-interface command to disable the specified interface from sending OSPFv3 packets.
Use the undo silent-interface command to restore the default.
An interface is able to send OSPFv3 packets by default.
Multiple processes can disable the same interface from sending OSPFv3 packets, but use of the silent-interface command takes effect only on interfaces enabled with the current process.
Example
# Disable an interface under OSPFv3 processes 100 and 200 from sending OSPFv3 packets.
[Sysname] ospfv3 100
[Sysname-ospfv3-100] router-id 10.110.1.9
[Sysname-ospfv3-100] silent-interface vlan-interface 10
[Sysname-ospfv3-100] quit
[Sysname] ospfv3 200
[Sysname-ospfv3-200] router-id 20.18.0.7
[Sysname-ospfv3-200] silent-interface vlan-interface 10
3.1.34 spf timers
Syntax
spf timers delay-interval hold-interval
undo spf timers
View
OSPFv3 view
Parameter
delay-interval: The interval in seconds between when OSPFv3 receives a topology change and when it starts SPF calculation, in the range 1 to 65,535.
hold-interval: The hold interval in seconds between two SPF calculations, in the range 1 to 65,535.
Description
Use the spf timers command to configure the delay interval and hold interval for OSPFv3 SPF calculation.
Use the undo spf timers command to restore the default.
The delay interval and hold interval default to 5s and 10s.
An OSPFv3 router works out a shortest path tree with itself as root based on the LSDB, and decides on the next hop to a destination network according the tree. Adjusting the SPF calculation interval can restrain bandwidth and router resource from over consumption due to frequent network changes.
Example
# Configure the delay interval and hold interval as 6 seconds for SPF calculation.
<Sysname> system-view
[Sysname]ospfv3 1
[Sysname-ospfv3-1] spf timers 6 6
3.1.35 stub
Syntax
stub [ no-summary ]
undo stub
View
OSPFv3 area view
Parameter
no-summary: This argument is only applicable to the ABR of a stub area. With it configured, the ABR advertises only a default route in a Summary-LSA to the stub area (such an area is called a totally stub area).
Description
Use the stub command to configure an area as a stub area.
Use the undo stub command to remove the configuration.
By default, an area is not configured as a stub area.
When an area is configured as a stub area, all the routers attached to the area must be configured with the stub command.
Related command: default-cost.
Example
# Configure OSPFv3 area 1 as a stub area.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] stub
3.1.36 vlink-peer
Syntax
vlink-peer router-id [ hello seconds | retransmit seconds | trans-delay seconds | dead seconds | instance instance-id ] *
undo vlink-peer router-id [ hello | retransmit | trans-delay | dead ]*
View
OSPFv3 area view
Parameter
router-id: Router ID for a virtual link neighbor.
hello seconds: Specifies the interval in seconds of sending Hello packets, ranging from 1 to 8,192, with the default as 10. This value must equal to the hello seconds configured on the virtual link peer router.
retransmit seconds: Specifies the interval in seconds of retransmitting LSA packets, ranging from 1 to 3,600, with the default as 5.
trans-delay seconds: Specifies the delay interval in seconds of sending LSA packets, ranging from 1 to 3,600, with the default as 1.
dead seconds: Specifies the neighbor dead time in seconds, ranging from 1 to 32,768, with the default as 40. This value must equal to the dead seconds configured on the virtual link peer router, and at least four times the value of hello seconds.
instance Instance-id: The instance ID of an virtual link, in the range of 0 to 255, with the default as 0.
Description
Use the vlink-peer command to create and configure a virtual link.
Use the undo vlink-peer command to remove a virtual link.
For a non-backbone area without direct connection with the backbone area or for a backbone area that cannot maintain connectivity, you can use the vlink-peer command to create logical connectivity. A virtual link can be considered as an interface with OSPFv3 enabled, because parameters such as hello, dead, retransmit and trans-delay are configured in the similar way.
Both ends of a virtual link are ABRs that are configured with the vlink-peer command.
Example
# Create a virtual link to 10.110.0.3.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 10.0.0.0
[Sysname-ospfv3-1-area-10.0.0.0] vlink-peer 10.110.0.3
Chapter 4 IPv6-IS-IS Configuration Commands
4.1 IPv6-IS-IS Configuration Commands
& Note:
l This chapter covers only the configuration commands specific to IPv6-IS-IS. For other related commands, see the IS-IS configuration part in the IPv4 Routing module.
l Verify that the system already operates in IPv4/IPv6 dual-stack mode before configuring IPv6 routing.
l All the IPv6 routing related configuration mentioned in this manual assumes that the system already operates in IPv4/IPv6 dual-stack mode. For dual stack mode configuration, see the part covering dual stack in the IPv6 Configuration module.
4.1.1 display isis route ipv6
Syntax
display isis route ipv6 [ [ level-1 | level-2 ] | verbose ]* [ process-id ]
View
Any view
Parameter
verbose: Specifies to display detailed routing information.
process-id: Species an IPv6-IS-IS process ID.
level-1: Specifies to display Level-1 IPv6-IS-IS route.
level-2: Specifies to display Level-2 IPv6-IS-IS route.
& Note:
If no level is specified, both Level-1 and Level-2 (namely Level-1-2) routing information will be displayed by default.
Description
Use the display isis route ipv6 command to display IPv6-IS-IS routing information.
Example
# Display IPv6-IS-IS routing information.
<Sysname> display isis route ipv6
Route information for ISIS(1)
-----------------------------
ISIS(1) IPv6 Level-1 Forwarding Table
-------------------------------------
Destination: 2001:: PrefixLen: 64
Flag : R/L/- Cost : 10
Next Hop : Direct Interface: Vlan100
Destination: 2002:: PrefixLen: 64
Flag : R/L/- Cost : 20
Next Hop : FE80::20F:E2FF:FE1D:A65B Interface: Vlan100
Flags: R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set
Table 4-1 Description on the fields of the display isis route ipv6 command
Field |
Description |
Destination |
IPv6 destination address |
PrefixLen |
Length of a prefix |
Flag/Flags |
Flag of routing information status R: The route has been recorded in the routing table. L: The route has been advertised through LSP. U: The flag of routing penetration status, indicating the Level-1 route is from the Level-2 one. You can avoid returning the Level-2 LSP that is sent to Level-1 back to Level-2. |
Cost |
Value of cost |
Next Hop |
Next hop |
Interface |
Exit interface |
# Display detailed IPv6-IS-IS routing information.
<Sysname> display isis route ipv6 verbose
Route information for ISIS(1)
-----------------------------
ISIS(1) IPv6 Level-1 Forwarding Table
-------------------------------------
IPV6 Dest : 2001:1::/64 Cost : 10 Flag : R/L/-
Preference : 15 Admin Tag : -
Interface : Vlan100 Next Hop : Direct
IPV6 Dest : 2001:2::/64 Cost : 20 Flag : R/-/-
Preference : 15 Admin Tag : -
Interface : Vlan100 Next Hop : FE80::2E0:FCFF:FE00:242A
IPV6 Dest : 2001:3::/64 Cost : 20 Flag : R/-/-
Preference : 15 Admin Tag : -
Interface : Vlan100 Next Hop : FE80::2E0:FCFF:FE00:242A
IPV6 Dest : ::/0 Cost : 10 Flag : R/-/-
Preference : 15 Admin Tag : -
Interface : Vlan100 Next Hop : FE80::2E0:FCFF:FE00:242A
Flags: R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set
Table 4-2 Description on the fields of the display isis route ipv6 verbose command
Field |
Description |
IPV6 Dest |
IPv6 destination address |
Cost |
Value of cost |
Flag/Flags |
Flag of routing information status R: The route has been recorded in the routing table. L: The route has been advertised through LSP. U: The flag of routing penetration status, indicating the Level-1 route is from the Level-2 one. You can avoid returning the Level-2 LSP that is sent to Level-1 back to Level-2. |
Preference |
Preference of protocols |
Admin Tag |
Administration tag |
Interface |
Exit interface |
Next Hop |
Next hop |
4.1.2 ipv6 default-route-advertise
Syntax
ipv6 default-route-advertise [ [ level-1 | level-2 | level-1-2 ] | route-policy route-policy-name ]*
undo ipv6 default-route-advertise [ route-policy route-policy-name ]
View
IS-IS view
Parameter
route-policy-name: Specifies the route policy name with a string of 1 to 19 characters.
level-1: Specifies the default route as Level-1.
level-2: Specifies the default route as Level-2.
level-1-2: Specifies the default route as Level-1-2.
& Note:
If no level is specified, the Level-2 routes are taken as the default routes.
Description
Use the ipv6 default-route-advertise command to specify a router to generate Level-1 or Level-2 default routes.
Use the undo ipv6 default-route-advertise command to disable this function.
This function is disabled by default.
With a routing policy, you can specify IPv6-IS-IS to generate default routes only when there is matching routing entries in the routing table. You can use the apply isis level-1 command in routing policy view to generate default route in L1 LSP, use the apply isis level-2 command in routing policy view to generate default route in L2 LSP, and use the apply isis level-1-2 in routing policy view to generate default route in L1 LSP and L2 LSP respectively.
Example
# Configure the router to generate a default route in Level-2 LSPs..
<Sysname> system-view
[Sysname] isis
[Sysname-isis-1] ipv6 default-route-advertise
4.1.3 ipv6 enable
Syntax
ipv6 enable
undo ipv6 enable
View
IS-IS view
Parameter
None
Description
Use the ipv6 enable command to enable IPv6 in an IS-IS process.
Use the undo ipv6 enable command to disable this configuration.
IPv6 is disabled in the IS-IS process by default.
To run IPv6-IS-IS protocol normally, you need enable IPv6 globally, and use the isis command to enable the IS-IS process, use the network–entity to configure a network entity title (NET) for the router, use the ipv6 enable command to enable IPv6, and then use the isis ipv6 enable command to enable each interface that needs to run IPv6-IS-IS process (ipv6 address is required).
Only after finishing these configurations, can you enable an IPv6-IS-IS protocol.
Example
# Establish IS-IS routing process 1, and enable IPv6 for the process.
<Sysname> system-view
[Sysname] ipv6
[Sysname] isis 1
[Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00
[Sysname-isis-1] ipv6 enable
4.1.4 ipv6 filter-policy export
Syntax
ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } export [ protocol process-id ]
undo ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } export [ protocol process-id ]
View
IS-IS view
Parameter
acl-number: Number of a basic or advanced IPv6 ACL used to filter redistributed routes before advertisement, ranging from 2000 to 3999.
ipv6-prefix-name: Name of an IPv6 prefix list used to filter the redistributed routes before advertisement, a string of 1 to 19 characters.
route-policy-name: Name of a routing policy used to filter the redistributed routes before advertisement, a string of 1 to 19 characters.
protocol: Specifies the imported routing information to be filtered at the time of advertising, including the information of processes such as bgp4+, direct, isisv6, ospfv3, ripng and static at present. If no parameter is specified, the system will filter all the routing information advertised.
process-id: Specifies a process id for a routing protocol, ranging from 1 to 65535. This parameter is available when the protocol is isisv6, ospfv3 or ripng.
Description
Use the ipv6 filter-policy export command to configure IPv6-IS-IS to filter redistributed routes before advertisement..
Use the undo ipv6 filter-policy export command to disable the filtering.
The filtering is disabled by default.
In some circumstances, only the routing information satisfying certain conditions will be advertised. You can configure the filtering condition by configuring the ipv6 filter-policy parameters.
You can use the ipv6 filter-policy export command, which filter the imported routes only when they are advertised to other routers, together with the ipv6 import-route command.
l If no protocol parameter is specified, routes imported from all protocols are filtered.
l If the protocol parameter is specified, only the routes imported from the specific protocols are filtered.
Related command: ipv6 filter-policy import.
Example
# Reference the ACL6 2006 to filter all the redistributed routes before advertisement.
<Sysname> system-view
[Sysname] isis
[Sysname-isis-1] ipv6 filter-policy 2006 export
4.1.5 ipv6 filter-policy import
Syntax
ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import
undo ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import
View
IS-IS view
Parameter
acl-number: Number of a basic or advanced IPv6 ACL used to filter incoming routes, ranging from 2000 to 3999.
ipv6-prefix-name: Name of an IPv6 prefix list used to filter incoming routes, a string of 1 to 19 characters.
route-policy-name: Name of a routing policy used to filter incoming routes, a string of 1 to 19 characters.
Description
Use the ipv6 filter-policy import command to enable IPv6-IS-IS filter the received routes.
Use the undo ipv6 filter-policy import command to disable filter the received routes.
IPv6-IS-IS does not filter the received routing information by default.
In some circumstances, only the routing information satisfying certain conditions will be received. You can configure the filtering condition by setting the ipv6 filter-policy parameters.
Related command: ipv6 filter-policy export.
Example
# Reference the IPv6 ACL 2003 to filter the received routes.
<Sysname> system-view
[Sysname] isis
[Sysname-isis-1] ipv6 filter-policy 2003 import
4.1.6 ipv6 import-route
Syntax
ipv6 import-route protocol [ process-id | allow-ibgp ] [ cost cost-value | [ level-1 | level-2 | level-1-2 ] | route-policy route-policy-name | tag tag-value ]*
undo ipv6 import-route protocol [ process-id ]
View
IS-IS view
Parameter
protocol: Specifies the routing protocol to be imported, including direct, static, ripng, isisv6, bgp4+ and ospfv3.
process-id: Process ID of the routing protocol of ripng, isisv6 or ospfv3, in the range of 1 to 65535. The default is 1.
cost value: Specifies the routing cost of the imported routes, ranging from 0 to 4261412864.
level-1: Specifies to import routes to Level-1 routing table.
level-2: Specifies to import routes to Level-2 routing table. If no level is specified, the routes are imported to Level-2 routing table by default.
level-1-2: Specifies to import routes to Level-1-2 routing table.
route-policy-name: Name of a routing policy used to filter routes when they are being redistributed, a string of 1 to 19 characters.
tag-value: Specifies a administration tag number for the imported routes, in the range of 1 to 4294967295.
allow-ibgp: Allows to redistribute IBGP routes. This keyword is optional when the protocol is bgp4+.
Description
Use the ipv6 import-route command to enable IPv6-IS-IS import routing information from other protocols.
Use the undo ipv6 import-route command to disable IPv6-IS-IS import routing information from other protocols.
IPv6-IS-IS does not import routing information from other protocols by default.
For IPv6-IS-IS, the routes found by other routing protocol are dealt as routes outside of the routing domain. When importing IPv6 routes from other protocol, you can also specify the default cost for the imported routes.
When IPv6-IS-IS imports routes, you can specify the routes to be imported to Level-1, Level-2 or Level-1-2.
Caution:
Using the import-route bgp4+ allow-ibgp command will redistribute both EBGP and IBGP routes. The redistributed IBGP routes may cause routing loops. Therefore, use this command with caution.
Example
# IPv6–IS-IS imports static routes and sets the cost value as 15.
<Sysname> system-view
[Sysname] isis
[Sysname-isis-1]ipv6 import-route static cost 15
4.1.7 ipv6 import-route isisv6 level-2 into level-1
Syntax
ipv6 import-route isisv6 level-2 into level-1 [ filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } | tag tag-value ]*
undo ipv6 import-route isisv6 level-2 into level-1
View
IS-IS view
Parameter
acl6-number: Number of a basic or advanced ACL6 used to filter routes when they are leaking from Level-2 to Level-1, ranging from 2000 to 3999.
ipv6-prefix-name: Name of an IPv6 prefix list used to filter routes when they are leaking from Level-2 to Level-1, a string of 1 to 19 characters.
route-policy-name: Name of a routing policy used to filter routes when they are leaking from Level-2 to Level-1, a string of 1 to 19 characters.
tag-value: Specifies a administration tag number for the imported routes, in the range of 1 to 4294967295.
Description
Use the ipv6 import-route isisv6 level-2 into level-1 to enable IPv6-IS-IS route leaking from Level-2 to Level-1.
Use the undo ipv6 import-route isisv6 level-2 into level-1 command to disable the leaking.
The leaking is disabled by default.
The route leaking feature enables a Level-1-2 router to advertise routes destined to the Level-2 area and other Level-1 areas to the Level-1 and Level-1-2 routers in the local area.
Example
# Set the router to penetrate routes from Level-2 to Level-1.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 import-route isisv6 level-2 into level-1
4.1.8 ipv6 maximum load-balancing
Syntax
ipv6 maximum load-balancing number
undo ipv6 maximum load-balancing
View
IS-IS view
Parameter
number: Specifies the number of equivalent routes under load-balancing mode, ranging from 1 to 4, with the default as 4.
Description
Use the ipv6 maximum load-balancing command to configure the maximum number of equivalent routes under load-balancing mode. Use the undo ipv6 maximum load-balancing command to resume the default number of load-balancing routing.
& Note:
Configure the maximum number of equivalent routes according to memory capacity.
Example
# Configure the maximum number of load-balancing routing as 2.
<Sysname> system-view
[Sysname] isis 100
[Sysname-isis-100] ipv6 maximum load-balancing 2
4.1.9 ipv6 preference
Syntax
ipv6 preference { route-policy route-policy-name | preference-value }*
undo ipv6 preference
View
IS-IS view
Parameter
preference-value: Preference for IPv6-IS-IS, ranging from 1 to 255..
route-policy-name: Name of a routing policy, a string of 1 to 19 characters..
Description
Use the ipv6 preference command to configure the preference for IPv6-IS-IS protocol.
Use the undo ipv6 preference command to configure the default preference for IPv6-IS-IS protocol.
The default preference is 15.
When a router runs multiple dynamic routing protocols at the same time, the system will configure a preference for each routing protocol. If several protocols find routes to the same destination, the one with the highest preference dominates.
Example
# Configure the preference of IPv6-IS-IS protocol as 20.
<Sysname> system-view
[Sysname] isis
[Sysname-isis-1] ipv6 preference 20
4.1.10 ipv6 summary
Syntax
ipv6 summary ipv6-prefix prefix-length [ avoid-feedback | generate_null0_route | [ level-1 | level-1-2 | level-2 ] | tag tag-value ] *
undo ipv6 summary ipv6-prefix prefix-length [ level-1 | level-1-2 | level-2 ]
View
IS-IS view
Parameter
ipv6-prefix: IPv6 prefix of the summary route.
prefix-length: Length of the IPv6 prefix, in the range of 0 to 128.
avoid-feedback: Specifies to avoid learning summary routes via routing calculation.
generate_null0_route: Generates the NULL 0 route to avoid routing loops.
level-1: Specifies to summarize only the routes redistributed to Level-1 area.
level-1-2: Specifies to summarize all the routes redistributed to Level-1 and Level-2 areas.
level-2: Specifies to summarize only the routes redistributed to Level-2 area.
tag-value: Value of a administrative tag, in the range of 1 to 4294967295.
& Note:
If no level is specified in the command, the default is level-2.
Description
Use the ipv6 summary command to configure an IPv6-IS-IS summary route.
Use the undo ipv6 summary command to remove the summary route.
Route summarization is disabled by default.
Configuring summary routes can reduce the size of the route table, LSPs and LSDB. Routes to be summarized can be IS-IS routes or redistributed routes. The cost of a summary route is the smallest cost among all summarized routes.
Example
# Configure a summary route of 2002::/32.
<Sysname> system-view
[Sysname] isis
[Sysname-isis-1] ipv6 summary 2002:: 32
4.1.11 isis ipv6 enable
Syntax
isis ipv6 enable [ process-id ] [ silent ]
undo isis ipv6 enable
View
Interface view
Parameter
silent: Specifies to restrain the interface to send or receive IS-IS hello packets.
process-id: Specifies a IS-IS process id, ranging from 1 to 65535. If no value is specified, the default process 1 is enabled.
Description
Use the isis ipv6 enable command to enable IPv6 for IS-IS routing process on a interface and specify the related IS-IS process ID. After the command is performed successfully, the interface will be related with the IS-IS process. Use the undo isis ipv6 enable command to disable this configuration.
IPv6 is disabled in the IS-IS process of the interface by default.
To run IPv6-IS-IS protocol, you need to enable IPv6 globally, and use the isis command to enable the IS-IS process, use the network–entity command to configure a Network Entity Title (NET) for the router, use the ipv6 enable command to enable IPv6 for the process, and then use the isis ipv6 enable command to enable IPv6 on each interface that needs to run the IS-IS process. (IPv6 addresses should be configured for interfaces.)
Example
# Create IS-IS routing process 1 to enable IPv6 on the VLAN 100 interface.
<Sysname> system-view
[Sysname] ipv6
[Sysname] isis 1
[Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00
[Sysname-isis-1] ipv6 enable
[Sysname-isis-1] quit
[Sysname] interface Vlan-interface 100
[Sysname--Vlan-interface100] ipv6 address 2002::1/64
[Sysname--Vlan-interface100] isis ipv6 enable 1
Chapter 5 IPv6-BGP4+ Configuration Commands
& Note:
l Verify that the system already operates in IPv4/IPv6 dual-stack mode before configuring IPv6 routing.
l All the IPv6 routing related configuration mentioned in this manual assumes that the system already operates in IPv4/IPv6 dual-stack mode. For dual stack mode configuration, see the part covering dual stack in the IPv6 Configuration module.
5.1 BGP4+ Configuration Commands
5.1.1 balance
Syntax
balance number
undo balance
View
IPv6 address family view
Parameter
number: Number of BGP4+ routes participating in load balancing. in the range 1 to 4 . When it is set to 1, load balancing is disabled.
Description
Use the balance command to configure the number of routes participating in BGP4+ load balancing.
Use the undo balance command to restore the default.
The feature is not available by default.
Unlike IGP, BGP4+ has no explicit metric for making load balancing decision. Instead, it implements load balancing by defining its routing rule.
Related command: display ipv6 routing-table.
Example
# Set the number of routes participating in BGP4+ load balancing to 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] balance 2
5.1.2 bestroute as-path-neglect
Syntax
bestroute as-path-neglect
undo bestroute as-path-neglect
View
IPv6 address family view
Parameter
None
Description
Use the bestroute as-path-neglect command to ignore AS_PATH in route selection.
Use the undo bestroute as-path-neglect command to use AS_PATH in route selection.
By default, the router takes AS_PATH as a factor when selecting a route.
Example
# Ignore AS_PATH in route selection.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] bestroute as-path-neglect
5.1.3 bestroute compare-med
Syntax
bestroute compare-med
undo bestroute compare-med
View
IPv6 address family view
Parameter
None
Description
Use the bestroute compare-med command to prioritize MED values of paths from each AS for best path selection.
Use the undo bestroute compare-med command to disable this function.
This function is not available by default.
Example
# Prioritize MED values of routes from each AS for selecting the best route.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] bestroute compare-med
5.1.4 bestroute med-confederation
Syntax
bestroute med-confederation
undo bestroute med-confederation
View
IPv6 address family view
Parameter
None
Description
Use the bestroute med-confederation command to prioritize MED values of routes from confederation peers.
Use the undo bestroute med-confederation command to disable the function.
By default, this function is not available.
The system only prioritizes MED values of routes from peers within the confederation. Routes from external ASs are advertised throughout the confederation without MED comparison.
Example
# Prioritize MED values of routes from peers within the confederation.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] bestroute med-confederation
5.1.5 compare-different-as-med
Syntax
compare-different-as-med
undo compare-different-as-med
View
IPv6 address family view
Parameter
None
Description
Use the compare-different-as-med command to enable comparison of MED values of routes from peers in different ASs when determining the best route.
Use the undo compare-different-as-med command to disable the comparison.
The comparison is disabled by default.
If there are several paths available for one destination, the path with the smallest MED value is selected.
Do not use this command unless associated ASs adopt the same IGP protocol and routing method.
Example
# Compare MED values of routes from peers in different ASs.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] compare-different-as-med
5.1.6 dampening
Syntax
dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling | route-policy route-policy-name ]*
undo dampening
View
IPv6 address family view
Parameter
half-life-reachable: Specifies the half-life for reachable routes, in the range 1 to 45 minutes. By default, the value is 15 minutes.
half-life-unreachable: Specifies the half-life for unreachable routes, in the range 1 to 45 minutes. By default, the value is 15 minutes.
reuse: Specifies the reuse threshold value for suppressed routes, in the range 1 to 20,000. Penalty value of a suppressed route decreasing under the value is reused. By default, its value is 750.
suppress: Specifies the suppression threshold for routes in the range 1 to 20,000, which should be bigger than reuse. Routes with penalty value bigger than the threshold are suppressed. By default, it is 2,000.
ceiling: Specifies the ceiling penalty value, in the range 1001 to 20,000. The value must be bigger than suppress value. By default, the value is 16,000.
route-policy-name: Routing policy name, a string of 1 to 19 characters.
half-life-reachable, half-life-unreachable, reuse, suppress and ceiling are mutually dependent. Once any one is configured, all others should also be specified accordingly.
Description
Use the dampening command to enable BGP4+ route dampening or/and configure dampening parameters.
Use the undo dampening command to disable route dampening.
By default, no route dampening is configured.
Related command: reset bgp ipv6 dampening, reset bgp ipv6 flap-info, display bgp ipv6 routing-table dampened, display bgp ipv6 routing-table dampening parameter and display bgp ipv6 routing-table flap-info.
Example
# Enable BGP4+ route dampening and configure route dampening parameters.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] dampening 10 10 1000 2000 3000
5.1.7 default local-preference
Syntax
default local-preference value
undo default local-preference
View
IPv6 address family view
Parameter
value: Default local preference, in the range 0 to 4294967295. The larger the value is, the higher the preference is.
Description
Use the default local-preference command to configure default local preference.
Use the undo default local-preference command to restore the default value.
By default, the default local preference is 100.
Use this command to affect BGP4+ route selection.
Example
# Two devices A and B in the same AS are connected to another AS. Change the local preference of B from default value 100 to 180, making the route via B preferred.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] default local-preference 180
5.1.8 default med
Syntax
default med med-value
undo default med
View
IPv6 address family view
Parameter
med-value: Default MED value, in the range 0 to 4294967295.
Description
Use the default med command to configure the default MED value.
Use the undo default med command to restore the default.
By default, the med-value is 0.
Multi-exit discriminator (MED) is an external metric for routes. Different from local preference, MED is exchanged between ASs and will stay in the AS once it enters the AS. The smaller an MED is, the better a route is. So the route with a lower MED is preferred. When a router running BGP obtains several routes with identical destination address and different next-hops from various external peers, it will select the best route depending on the MED value. In the case that all other conditions are the same, the system first selects the route with the smaller MED value as the external route of the autonomous system.
Example
# Devices A and B belong to AS100 and device C belongs to AS200. C is A and B’s peer. Configure the MED of A as 25 to make C select the path from B first.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] default med 25
5.1.9 default-route imported
Syntax
default-route imported
undo default-route imported
View
IPv6 address family view
Parameter
None
Description
Use the default-route imported command to redistribute local default routes into the BGP4+ routing table.
Use the undo default-route imported command to disable the redistribution.
By default, local default routes are not redistributed into BGP4+ routing table.
Example
# Redistribute default routes from OSPFv3 into BGP4+.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] default-route imported
[Sysname-bgp-af-ipv6] import-route ospfv3 1
5.1.10 display bgp ipv6 group
Syntax
display bgp ipv6 group [ ipv6-group-name ]
View
Any view
Parameter
ipv6-group-name: Peer group name, a string of 1 to 47 characters.
Description
Use the display bgp ipv6 group command to display IPv6 peer group information.
If no ipv6-group-name specified, information about all peer groups is displayed.
Example
# Display the information of the IPv6 peer group "aaa".
<Sysname> display bgp ipv6 group aaa
BGP peer-group is aaa
remote AS number not specified
Type : external
Maximum allowed prefix number: 4294967295
Threshold: 75%
Configured hold timer value: 180
Keepalive timer value: 60
Minimum time between advertisement runs is 30 seconds
Peer Preferred Value: 0
No routing policy is configured
Members:
Peer V AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
20:20::20:1 4 200 170 141 0 2 02:13:35 Established
Table 5-1 Description on the fields of the display bgp ipv6 group command
Field |
Description |
BGP peer-group |
Name of the peer group |
remote AS |
AS number of the peer group |
Type |
Type of the peer group |
Maximum allowed prefix number |
Maximum allowed prefix number |
Threshold |
Threshold value |
hold timer value |
Holdtime |
Keepalive timer value |
Keepalive interval |
Minimum time between advertisement runs |
Minimum interval between advertisements |
Peer Preferred Value |
Preferred value of the routes from the peer |
No routing policy is configured |
No routing policy is configured for the peer |
Members |
Group members |
Peer |
IPv6 address of the peer |
V |
Peer BGP version |
AS |
AS number |
MsgRcvd |
Number of messages received |
MsgSent |
Number of messages sent |
OutQ |
Number of messages to be sent |
PrefRcv |
Number of prefixes received |
Up/Down |
The lasting time of a session/the lasting time of present state (when no session is established) |
State |
State machine of peer |
5.1.11 display bgp ipv6 network
Syntax
display bgp ipv6 network
View
Any view
Parameter
None
Description
Use the display bgp ipv6 network command to display IPv6 routing information advertised by BGP4+ using the network command.
Example
# Display the IPv6 routing information advertised by BGP4+ using the network command..
<Sysname> display bgp ipv6 network
BGP Local Router ID is 1.1.1.1.
Local AS Number is 100.
Network Prefix Route-policy Short-cut
1:: 64
Table 5-2 Description on the fields of the display bgp ipv6 network command
Field |
Description |
BGP Local Router ID |
BGP Local Router ID |
Local AS Number |
Local AS Number |
Network |
Network address |
Prefix |
Prefix length |
Route-policy |
Routing policy |
Short-cut |
Shortcut route |
5.1.12 display bgp ipv6 paths
Syntax
display bgp ipv6 paths [ as-regular-expression ]
View
Any view
Parameter
as-regular-expression: Matched AS path regular expression.
Description
Use the display bgp ipv6 paths command to display AS_PATH attribute information of BGP4+ routes.
If no parameter specified, all AS_PATH information will be displayed.
Example
# Display AS_PATH attribute information of BGP4+ routes.
<Sysname> display bgp ipv6 paths
Address Hash Refcount MED Path/Origin
0x5917098 1 1 0 i
0x59171D0 9 2 0 100i
Table 5-3 Description on the fields of the display bgp ipv6 paths command
Field |
Description |
|
Address |
Route address in local database, in dotted hexadecimal notation |
|
Hash |
Hash index |
|
Refcount |
Count of routes that referenced the path |
|
MED |
MED of the route |
|
Path |
AS_PATH attribute of a route, recording the ASs a route has passed, for avoiding routing loops |
|
Origin |
Origin attribute of the route, which can take on one of the following values: |
|
i |
Indicates the route is interior to the AS. Summary routes and routes defined using the network command are considered IGP routes. |
|
e |
Indicates that a route is learned from the exterior gateway protocol (EGP). |
|
? |
Short for INCOMPLETE. It indicates that the origin of a route is unknown and the route is learned by other means. BGP sets Origin attribute of routes learned from other IGP protocols to INCOMPLETE. |
5.1.13 display bgp ipv6 peer
Syntax
display bgp ipv6 peer [ ipv6-address { log-info | verbose } | ipv6-group-name log-info | verbose ]
View
Any view
Parameter
ipv6-address: Specifies the IPv6 address of a peer to be displayed.
Ipv6-group-name: Name of a peer group to be displayed, a string of 1 to 47 characters.
log-info: Displays log information of the specified peer.
verbose: Displays the detailed information of the peer.
Description
Use the display bgp ipv6 peer command to display peer/peer group information.
If no parameter specified, information about all peers and peer groups is displayed.
Example
# Display all IPv6 peer information.
<Sysname> display bgp ipv6 peer
BGP local router ID : 200.1.3.1
Local AS number : 10
Total number of peers : 3 Peers in established state : 0
Peer V AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
1::1 4 10 0 0 0 0 04:23:22 Active
1::2 4 1 0 0 0 0 04:21:51 Active
1::4 4 10 0 0 0 0 04:06:29 Active
Table 5-4 Description on the fields of the display bgp ipv6 peer command
Field |
Description |
Peer |
IPv6 address of the peer |
V |
Peer BGP version |
AS |
AS number |
MsgRcvd |
Messages received |
MsgSent |
Messages sent |
OutQ |
Messages to be sent |
PrefRcv |
Number of prefixes received |
Up/Down |
The lasting time of a session/the lasting time of present state (when no session is established) |
State |
Peer state |
5.1.14 display bgp ipv6 routing-table
Syntax
display bgp ipv6 routing-table [ ipv6-address prefix-length ]
View
Any view
Parameter
ipv6-address: Destination IPv6 address.
prefix-length: Prefix length of the IPv6 address, in the range 0 to 128.
Description
Use the display bgp ipv6 routing-table command to display BGP4+ routing table information.
Example
# Display BGP4+ routing table information.
<Sysname> display bgp ipv6 routing-table
Total Number of Routes: 2
BGP Local router ID is 30.30.30.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 30:30:: PrefixLen : 64
NextHop : 30:30::30:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: i
*> Network : 40:40:: PrefixLen : 64
NextHop : 40:40::40:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: i
Table 5-5 Description on the fields of the display bgp ipv6 routing-table command
Field |
Description |
|
Local router ID |
Local router ID |
|
Status codes |
Status codes: * – valid > – best d – damped h – history i – internal (IGP) s – summary suppressed (suppressed) S – Stale |
|
Origin |
i – IGP (originated in the AS) e – EGP (learned through EGP) ? – incomplete (learned by other means) |
|
Network |
Destination network address |
|
PrefixLen |
Prefix length |
|
NextHop |
Next Hop |
|
MED |
MULTI_EXIT_DISC attribute |
|
LocPrf |
Local preference value |
|
Path |
AS_PATH attribute, recording the ASs the packet has passed to avoid routing loops |
|
PrefVal |
Preferred value |
|
Label |
Label |
|
Ogn |
Origin attribute of the route, which can take on one of the following values: |
|
i |
Indicates that a route is interior to the AS. Summary routes and the routes configured using the network command are considered IGP routes. |
|
e |
Indicates that a route is learned from the exterior gateway protocol (EGP). |
|
? |
Short for INCOMPLETE. It indicates that the origin of a route is unknown and the route is learned by other means. BGP sets Origin attribute of routes learned from other IGP protocols to INCOMPLETE. |
5.1.15 display bgp ipv6 routing-table as-path-acl
Syntax
display bgp ipv6 routing-table as-path-acl as-path-acl-number
View
Any view
Parameter
as-path-acl-number: Number of an AS path ACL matched by which to display routing information, ranging from 1 to 256.
Description
Use the display bgp ipv6 routing-table as-path-acl command to view routes that match an AS path ACL.
Example
# Display routes that match the AS path ACL 20.
<Sysname> display bgp ipv6 routing-table as-path-acl 20
BGP Local router ID is 30.30.30.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 30:30:: PrefixLen : 64
NextHop : 30:30::30:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: i
Refer to Table 5-5 for description on the fields above.
5.1.16 display bgp ipv6 routing-table community
Syntax
display bgp ipv6 routing-table community [ aa:nn&<1-13> ] [ no-advertise | no-export | no-export-subconfed ]* [ whole-match ]
View
Any view
Parameter
aa:nn: Specifies a community number, both aa and nn are in the range 0 to 65535.
&<1-13>: Specifies the argument before it can be entered up to 13 times.
no-advertise: Displays routes that are not advertised to any peer.
no-export: Displays routes that are not advertised outside the AS, if there is a confederation, then not advertised outside the confederation, but to other sub ASs in the confederation.
no-export-subconfed: Displays routes that are neither advertised outside the AS nor to other sub ASs if confederation configured.
whole-match: Displays the exactly matched routes.
Description
Use the display bgp ipv6 routing-table community command to display specified community routing information in the routing table.
Example
# Display no-export community routing information.
<Sysname> display bgp ipv6 routing-table community no-export
BGP Local router ID is 30.30.30.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 30:30:: PrefixLen : 64
NextHop : 30:30::30:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: i
Refer to Table 5-5 for description on the fields above.
5.1.17 display bgp ipv6 routing-table community-list
Syntax
display bgp ipv6 routing-table community-list { basic-community-list-number [ whole-match ] | adv-community-list-number }&<1-16>
View
Any view
Parameter
basic-community-list-number: Specifies a basic community-list number, in the range 1 to 99.
adv-community-list-number: Specifies an advanced community-list number, in the range 100 to 199.
whole-match: Displays routes exactly matching the specified basic-community-list-number.
&<1-16>: Specifies to allow entering the argument before it up to 16 times.
Description
Use the display bgp ipv6 routing-table community-list command to view the routing information matching the specified BGP4+ community list.
Example
# Display the routing information matching the specified BGP4+ community list.
<Sysname> display bgp ipv6 routing-table community-list 99
BGP Local router ID is 30.30.30.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 30:30:: PrefixLen : 64
NextHop : 30:30::30:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: i
Refer to Table 5-5 for description on the fields above.
5.1.18 display bgp ipv6 routing-table dampened
Syntax
display bgp ipv6 routing-table dampened
View
Any view
Parameter
None
Description
Use the display bgp ipv6 routing-table dampened command to view BGP4+ dampened routes.
Example
# Display BGP4+ dampened routes.
<Sysname> display bgp ipv6 routing-table dampened
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*d Network : 111:: PrefixLen : 64
From : 122::1 Reuse : 00:29:34
Path/Ogn: 200?
Table 5-6 Description on the fields of the display bgp ipv6 routing-table dampened command
Field |
Description |
From |
Source IP address of a route |
Reuse |
Reuse time value |
Refer to Table 5-5 for description on the fields above.
5.1.19 display bgp ipv6 routing-table dampening parameter
Syntax
display bgp ipv6 routing-table dampening parameter
View
Any view
Parameter
None
Description
Use the display bgp ipv6 routing-table dampening parameter command to display BGP4+ route dampening parameters.
Related command: dampening.
Example
# Display BGP4+ route dampening parameters.
<Sysname> display bgp ipv6 routing-table dampening parameter
Maximum Suppress Time(in second) : 3069
Ceiling Value : 16000
Reuse Value : 750
HalfLife Time(in second) : 900
Suppress-Limit : 2000
Table 5-7 Description on the above fields
Field |
Description |
Maximum Suppress Time |
Maximum Suppress Time |
Ceiling Value |
Upper limit of penalty value |
Reuse Value |
Reuse Value |
HalfLife Time |
Half life Time |
Suppress-Limit |
Limit for a route to be suppressed |
5.1.20 display bgp ipv6 routing-table different-origin-as
Syntax
display bgp ipv6 routing-table different-origin-as
View
Any view
Parameter
None
Description
Use the display bgp ipv6 routing-table different-origin-as command to view routes originating from different autonomous systems.
Example
# Display routes from different ASs.
<Sysname> display bgp ipv6 routing-table different-origin-as
BGP Local router ID is 2.2.2.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 222:: PrefixLen : 64
NextHop : 122::2 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: 100 ?
Refer to Table 5-5 for description on the fields above.
5.1.21 display bgp ipv6 routing-table flap-info
Syntax
display bgp ipv6 routing-table flap-info [ regular-expression as-regular-expression | as-path-acl as-path-acl-number | ipv6-address [ prefix-length [ longer-match ] ] ]
View
Any view
Parameter
as-regular-expression: AS path regular expression to be matched.
as-path-acl-number: Number of the specified AS path ACL to be matched, ranging from 1 to 256.
ipv6-address: IPv6 address of a route to be displayed.
prefix-length: Prefix length of the IPv6 address, in the range 1 to 128.
longer-match: Matches the longest prefix.
Description
Use the display bgp ipv6 routing-table flap-info command to display BGP4+ route flap statistics.
Example
# Display BGP4+ route flap statistics.
<Sysname> display bgp ipv6 routing-table flap-info
BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*d Network : 111:: PrefixLen : 64
From : 122::1 Flaps : 3
Duration : 00:13:47 Reuse : 00:16:36
Path/Ogn : 200?
Table 5-8 Description on the fields of the display bgp ipv6 routing-table flap-info command
Field |
Description |
Flaps |
Number of flaps |
Duration |
Flap duration |
Reuse |
Reuse time of the route |
Refer to Table 5-5 for description on the fields above.
5.1.22 display bgp ipv6 routing-table label
Syntax
display bgp ipv6 routing-table label
View
Any view
Parameter
None
Description
Use the display bgp ipv6 routing-table label command to display BGP4+ IPv6 label routing information.
& Note:
Currently, the S3610&S5510 series do not support this command.
Example
Currently, the S3610&S5510 series do not support this command.
5.1.23 display bgp ipv6 routing-table peer
Syntax
display bgp ipv6 routing-table peer ipv6-address { advertised-routes | received-routes } [ network-address prefix-length | statistic ]
View
Any view
Parameter
ipv6-address: Specifies the peer to be displayed.
advertised-routes: Routing information advertised to the specified peer.
received-routes: Routing information received from the specified peer.
network-address prefix-length: IPv6 address, with prefix length ranging from 0 to 128.
statistic: Displays route statistics.
Description
Use the display bgp ipv6 routing-table peer command to view the routing information advertised to or received from specified BGP peer.
Example
# Display the routing information advertised to the specified BGP peer.
<Sysname> display bgp ipv6 routing-table peer 10:10::10:1 advertised-routes
Total Number of Routes: 2
BGP Local router ID is 20.20.20.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 20:20:: PrefixLen : 64
NextHop : 20:20::20:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: i
*> Network : 40:40:: PrefixLen : 64
NextHop : 30:30::30:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: 300 i
Refer to Table 5-5 for description on the fields above.
5.1.24 display bgp ipv6 routing-table regular-expression
Syntax
display bgp ipv6 routing-table regular-expression as-regular-expression
View
Any view
Parameter
as-regular-expression: Matched AS regular expression.
Description
Use the display bgp ipv6 routing-table regular-expression command to display the routing information matching specified AS regular expression.
Example
# Display the routing information matching the specified AS regular expression.
<Sysname> display bgp ipv6 routing-table regular-expression ^100
BGP Local router ID is 20.20.20.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 50:50:: PrefixLen : 64
NextHop : 10:10::10:1 LocPrf :
PrefVal : 0 Label : NULL
MED : 0
Path/Ogn: 100 i
Refer to Table 5-5 for description on the fields above.
5.1.25 display bgp ipv6 routing-table statistic
Syntax
display bgp ipv6 routing-table statistic
View
Any view
Parameter
None
Description
Use the display bgp ipv6 routing-table statistic command to display statistics about BGP4+ routes.
Example
# Display statistics about BGP4+ routes.
<Sysname> display bgp ipv6 routing-table statistic
Total Number of Routes: 1
5.1.26 filter-policy export
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ protocol process-id ]
undo filter-policy export [ protocol process-id ]
View
IPv6 address family view
Parameter
acl6-number: Specifies the number of an IPv6 ACL matching against the destination address field of routing information, ranging from 2000 to 3999.
ipv6-prefix-name: Specifies the name of an IPv6 prefix list matching against the destination address field of routing information, a string of 1 to 19 characters.
protocol: Specifies the routing protocol from which to filter routes. It can be direct, isisv6, ospfv3, ripng, and static at present. If no protocol specified, all routes will be filtered when advertised.
process-id: Process ID of routing protocol, in the range 1 to 65535. It is available only when the protocol is isisv6, ospfv3 or ripng.
Description
Use the filter-policy export command to filter advertised routes and only the routes passing the filter can be advertised by BGP4+.
Use the undo filter-policy export command to cancel filtering advertised routes.
By default, advertised routing information is not filtered.
If protocol specified, only routes redistributed from the specified protocol are filtered. If protocol is not specified, routes redistributed from any protocol will be filtered.
Example
# Use ACL6 2001 to filter all routes advertised by BGP4+.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] filter-policy 2001 export
5.1.27 filter-policy import
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import
undo filter-policy import
View
IPv6 address family view
Parameter
acl6-number: Specifies the number of an IPv6 ACL matching against the destination address field of routing information, ranging from 2000 to 3999.
ipv6-prefix-name: Specifies the name of an IPv6 prefix list matching against the destination address field of routing information, a string of 1 to 19 characters.
Description
Use the filter-policy import command to filter received routing information, only routes not filtered are imported.
Use the undo filter-policy import command to cancel filtering received routing information.
By default, the received routing information is not filtered.
Example
# Use ACL6 2001 to filter all routes received by BGP4+.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] filter-policy 2001 import
5.1.28 group
Syntax
group ipv6-group-name [ internal | external ]
undo group ipv6-group-name
View
IPv6 address family view
Parameter
ipv6-group-name: Specifies the name of an IPv6 peer group, a string of 1 to 47 characters.
internal: Creates an IBGP peer group.
external: Creates an EBGP peer group, including groups of other sub ASs in confederation.
Description
Use the group command to create a peer group.
Use the undo group command to delete a peer group.
An IBGP peer group will be created if neither internal nor external is selected.
The members of a peer group must be configured the same routing update policy as the peer group, but can be configured with different inbound policies.
Example
# Create an IBGP peer group "test".
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv6-family
[Sysname-bgp-af-ipv6] group test
5.1.29 import-route
Syntax
import-route protocol [ process-id ] [ med med-value | route-policy route-policy-name ]*
undo import-route protocol [ process-id ]
View
IPv6 address family view
Parameter
protocol: Specifies the routing protocol from which to redistribute routes, it can be direct, isisv6, ospfv3, ripng and static at present.
process-id: Process ID, in the range 1 to 65535. It is available only when the protocol is isisv6, ospfv3 or ripng.
med-value: Specifies the MED value to be applied to redistributed routes, ranging from 0 to 4294967295. If not specified, the cost of a redistributed route is the route’s MED in BGP4+.
route-policy-name: Specifies the name of a routing policy used to filter redistributed routes, a string of 1 to 19 characters.
Description
Use the import-route command to redistribute routes from other protocols.
Use the undo import-route command to remove the configuration.
By default, BGP4+ does not redistribute routes from other protocols.
The routes redistributed to the BGP4+ routing table using the import-route command has the ORIGIN attribute as incomplete.
Example
# Redistribute routes from RIPng 1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] import-route ripng 1
5.1.30 ipv6-family
Syntax
ipv6-family
undo ipv6-family
View
BGP view
Parameter
None
Description
Use the ipv6-family command to enter IPv6 address family view.
Use the undo ipv6-family command to remove all configurations from the view.
BGP IPv4 unicast view is the default.
Example
# Enter IPv6 address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6]
5.1.31 network
Syntax
network ipv6-address prefix-length [ short-cut | route-policy route-policy-name ]
undo network ipv6-address prefix-length [ short-cut ]
View
IPv6 address family view
Parameter
ipv6-address: IPv6 address to advertise.
prefix-length: Prefix length of the address, in the range 0 to 128.
short-cut: Specifies an EBGP route to use local routing managing value, reducing the preference of the route in general.
route-policy-name: Name of Route-policy applied to the route, a string of 1 to 19 characters.
Description
Use the network command to advertise a network route the BGP4+ routing table.
Use the undo network command to remove the existing configuration.
By default, no route is advertised.
Note that:
l The network route to be advertised must be in the local IP routing table, and using a routing policy makes route management more flexible.
l The route advertised to the BGP4+ routing table using the network command has the ORIGIN attribute as IGP.
Example
# Advertise the route 2002::/16.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] network 2002:: 16
5.1.32 peer advertise-community
Syntax
peer { ipv6-group-name | ipv6-address } advertise-community
undo peer { ipv6-group-name | ipv6-address } advertise-community
View
IPv6 address family view
Parameter
ipv6-group-name: Specifies the name of a peer group, in the range 1 to 47 characters.
ipv6-addres: IPv6 address of a peer.
Description
Use the peer advertise-community command to advertise community attribute to a peer/peer group.
Use the undo peer advertise-community command to cancel the existing configuration.
By default, no community attribute is advertised to any peer group/peer.
Example
# Advertise community attribute to the peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 advertise-community
5.1.33 peer advertise-ext-community
Syntax
peer { ipv6-group-name | ipv6-address } advertise-ext-community
undo peer { ipv6-group-name | ipv6-address } advertise-ext-community
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-addres: IPv6 address of a peer.
Description
Use the peer advertise-ext-community command to advertise extended community attribute to a peer/peer group.
Use the undo peer advertise-ext-community command to remove the configuration.
By default, no extended community attribute is advertised to a peer/peer group.
& Note:
Currently, the S3610&S5510 series do not support this command.
Example
Currently, the S3610&S5510 series do not support this command.
5.1.34 peer allow-as-loop
Syntax
peer { ipv6-group-name | ipv6-address } allow-as-loop [ number ]
undo peer { ipv6-group-name | ipv6-address } allow-as-loop
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
number: Specifies the repeating times of the local AS number, in the range 1 to 10, which defaults to 1.
Description
Use the peer allow-as-loop command to allow local AS number in the AS_PATH attribute of routes from a peer/peer group, and to configure the repeating times of the local AS number.
Use the undo peer allow-as-loop command to cancel the function.
Local AS number is not allowed by default.
Example
# Configure the repeating times of the local AS number as 2 for routes from peer 1::1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1::1 allow-as-loop 2
5.1.35 peer as-number
Syntax
peer { ipv6-group-name | ipv6-address } as-number as-number
undo peer ipv6-group-name as-number
undo peer ipv6-address
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
as-number: AS number of the peer/peer group, in the range 1 to 65535.
Description
Use the peer as-number command to specify an AS number for a peer/peer group.
Use the undo peer as-number command to delete the AS number of a peer.
Use the undo peer command to delete a peer.
By default, no AS number is configured for a peer/peer group.
Example
# Specify the AS number of the peer group test as 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test as-number 100
5.1.36 peer as-path-acl
Syntax
peer { ipv6-group-name | ipv6-address } as-path-acl as-path-acl-number { import | export }
undo peer { ipv6-group-name | ipv6-address } as-path-acl as-path-acl-number { import | export }
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
as-path-acl-number: Number of an AS path ACL, in the range 1 to 256.
import: Filters received routes.
export: Filters advertised routes.
Description
Use the peer as-path-acl command to specify an AS path list to filter routes received from or advertised to a peer/peer group.
Use the undo peer as-path-acl command to cancel the existing configuration.
By default, no AS path list is specified for filtering.
Example
# Specify the AS path ACL 3 to filter routes advertised to the peer 1:2::3:4.
<Sysname> system-view
[Sysname] ip as-path-acl 3 permit ^200
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-path-acl 3 export
5.1.37 peer capability-advertise route-refresh
Syntax
peer { ipv6-group-name | ipv6-address } capability-advertise route-refresh
undo peer { ipv6-group-name | ipv6-address } capability-advertise route-refresh
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer capability-advertise route-refresh command to enable BGP4+ route-refresh.
Use the undo peer capability-advertise route-refresh command to disable the function.
By default, route-refresh is enabled.
Example
# Disable route-refresh of peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 100
[Sysname-bgp-af-ipv6] undo peer 1:2::3:4 capability-advertise route-refresh
5.1.38 peer connect-interface
Syntax
peer { ipv6-group-name | ipv6-address } connect-interface interface-type interface-number
undo peer { ipv6-group-name | ipv6-address } connect-interface
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
interface-type interface-number: Specifies the type and name of the interface.
Description
Use the peer connect-interface command to specify the source interface of updates to a peer/peer group.
Use the undo peer connect-interface command to restore the best source interface.
By default, BGP4+ uses the best source interface.
For updates to be forwarded in case the interface experiences a failure, you can configure to use the Loopback interface for forwarding route updates.
Example
# Specify loopback0 as the source interface for route updates to the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer test connect-interface loopback 0
5.1.39 peer default-route-advertise
Syntax
peer { ipv6-group-name | ipv6-address } default-route-advertise [ route-policy route-policy-name ]
undo peer { ipv6-group-name | ipv6-address } default-route-advertise
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
route-policy-name: Route-policy name, a string of 1 to 19 characters.
Description
Use the peer default-route-advertise command to advertise a default route to a peer/peer group.
Use the undo peer default-route-advertise command to disable advertising default route.
By default, no default route is advertised to a peer/peer group.
For this command, no default route is required in the routing table. A default route is sent unconditionally to a peer/peer group with the next hop being itself.
Example
# Advertise a default route to peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 default-route-advertise
5.1.40 peer description
Syntax
peer { ipv6-group-name | ipv6-address } description description-text
undo peer { ipv6-group-name | ipv6-address } description
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
description-text: Description information for the peer/peer group, a string of 1 to 79 characters.
Description
Use the peer description command to configure the description information for a peer/peer group.
Use the undo peer description command to remove the description information of a peer/peer group.
By default, no description information is configured for a peer (group).
Create a peer/peer group before configuring description information for it.
Example
# Configure the description information of the peer group “test” as ISP1.
<Sysname] system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test description ISP1
5.1.41 peer ebgp-max-hop
Syntax
peer { ipv6-group-name | ipv6-address } ebgp-max-hop [ hop-count ]
undo peer { ipv6-group-name | ipv6-address } ebgp-max-hop
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
hop-count: Maximum hop count, in the range 1 to 255. By default, the value is 64.
Description
Use the peer ebgp-max-hop command to allow establishing EBGP connection with a peer/peer group on an indirectly connected network.
Use the undo peer ebgp-max-hop command to cancel the existing configuration.
By default, this feature is disabled.
You can use the argument hop-count to specify the maximum route count of the EBGP connection.
Example
# Allow establishing the EBGP connection with the peer group "test" on an indirectly connected network.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test ebgp-max-hop
5.1.42 peer fake-as
Syntax
peer { ipv6-group-name | ipv6-address } fake-as as-number
undo peer { ipv6-group-name | ipv6-address } fake-as
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
as-number: Local autonomous system number, in the range 1 to 65535.
Description
Use the peer fake-as command to configure a fake local AS number for a peer or peer group.
Use the undo peer fake-as command to remove the configuration.
By default, no fake local AS number is configured for a peer or peer group.
Example
# Configure a fake AS number 200 for the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test fake-as 200
5.1.43 peer filter-policy
Syntax
peer { ipv6-group-name | ipv6-address } filter-policy acl6-number { import | export }
undo peer { ipv6-group-name | ipv6-address } filter-policy acl6-number { import | export }
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
acl6-number: IPv6 ACL number, in the range 2000 to 3999.
import: Applies the filter-policy to routes received from the peer/peer group.
export: Applies the filter-policy to routes advertised to the peer/peer group.
Description
Use the peer filter-policy command to configure an ACL-based filter policy for a peer or peer group.
Use the undo peer filter-policy command to remove the configuration.
By default, no ACL-based filter policy is configured for a peer or peer group.
Example
# Apply the ACL6 2000 to filter routes advertised to the peer 1:2::3:4.
<Sysname> system-view
[Sysname] acl ipv6 number 2000
[Sysname-acl6-basic-2000] rule permit source 2001:1:: 64
[Sysname-acl6-basic-2000] quit
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 filter-policy 2000 export
5.1.44 peer group
Syntax
peer ipv6-address group ipv6-group-name [ as-number as-number ]
undo peer ipv6-address group ipv6-group-name
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
as-number: Specifies the AS number of the peer/peer group, in the range 1 to 65535.
Description
Use the peer group command to add a peer to a peer group.
Use the undo peer group command to delete a specified peer from a peer group.
No peer is added by default.
Example
# Create a peer group “test” and add the peer 1:2::3:4 to the peer group.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 200
[Sysname-bgp-af-ipv6] peer 1:2::3:4 group test
5.1.45 peer ignore
Syntax
peer { ipv6-group-name | ipv6-address } ignore
undo peer { ipv6-group-name | ipv6-address } ignore
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer ignore command to terminate session with a peer or peer group.
Use the undo peer ignore command to remove the configuration.
By default, a router can establish sessions with a peer or peer group.
After the peer ignore command is executed, the system terminates session with the specified peer or peer group and clears all the related routing information. For a peer group, this means all sessions with the peer group will be tore down.
Example
# Terminate session with the peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 ignore
5.1.46 peer ipv6-prefix
Syntax
peer { ipv6-group-name | ipv6-address } ipv6-prefix ipv6-prefix-name { import | export }
undo peer { ipv6-group-name | ipv6-address } ipv6-prefix { import | export }
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
ipv6-prefix-name: Specifies an IPv6 prefix list name, a string of 1 to 19 characters.
import: Applies the filtering policy to routes received from the specified peer/peer group.
export: Applies the filtering policy to routes advertised to the specified peer/peer group.
Description
Use the peer ipv6-prefix command to use an IPv6 prefix list to filter routes received from or advertised to a peer or peer group.
Use the undo peer ipv6-prefix command to remove the configuration.
By default, no IPv6 prefix list is specified.
Example
# Use the IPv6 prefix list “list 1” to filter routes advertised to the peer group “test”.
<Sysname> system-view
[Sysname] ip ipv6-prefix list1 permit 2002:: 64
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer test ipv6-prefix list1 export
5.1.47 peer keep-all-routes
Syntax
peer { ipv6-group-name | ipv6-address } keep-all-routes
undo peer { ipv6-group-name | ipv6-address } keep-all-routes
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer keep-all-routes command to save the original routing information from a peer or peer group, even routes that failed to pass the inbound policy.
Use the undo peer keep-all-routes command to disable this function.
By default, the function is not available.
Example
# Save the routing information from peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 keep-all-routes
5.1.48 peer log-change
Syntax
peer { ipv6-group-name | ipv6-address } log-change
undo peer { ipv6-group-name | ipv6-address } log-change
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer log-change command to record the session state and event information for a specified peer or peer group.
Use the undo peer log-change command to remove the configuration.
By default, the session state and event information are recorded for a peer or peer group.
Example
# Record the session state and event information for peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 log-change
5.1.49 peer next-hop-local
Syntax
peer { ipv6-group-name | ipv6-address } next-hop-local
undo peer { ipv6-group-name | ipv6-address } next-hop-local
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer next-hop-local command to set the next hop of routes advertised to a peer/peer group to the local router.
Use the undo peer next-hop-local command to remove the configuration.
By default, the feature is available for routes advertised to the EBGP peer/peer group, but not available to the IBGP peer/peer group
Example
# Set the next hop of routes advertised to EBGP peer group “test” to the router itself.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test next-hop-local
5.1.50 peer preferred-value
Syntax
peer { ipv6-group-name | ipv6-address } preferred-value value
undo peer { ipv6-group-name | ipv6-address } preferred-value
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
value: Preferred value, in the range 0 to 65535.
Description
Use the peer preferred-value command to assign a preferred value to routes received from a peer or peer group.
Use the undo peer preferred-value command to restore the default value.
By default, routes received from a peer or peer group have a preferred value of 0.
The routes learned from peers each have an initial preferred value. The route with the biggest value is selected as the route to a specified network.
Example
# Configure the preferred value as 50 for routes from peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 preferred-value 50
5.1.51 peer public-as-only
Syntax
peer { ipv6-group-name | ipv6-address } public-as-only
undo peer { ipv6-group-name | ipv6-address } public-as-only
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer public-as-only command to carry no private AS number in BGP4+ updates sent to a peer/peer group.
Use the undo peer public-as-only command to carry the private AS number in BGP4+ updates sent to a peer/peer group.
By default, private AS number is carried in BGP4+ updates.
The command does not take effect if the BGP4+ update has both public AS number and private AS number. The range of private AS number is from 64512 to 65535.
Example
# Carry no private AS number in BGP4+ updates sent to the peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 public-as-only
5.1.52 peer reflect-client
Syntax
peer { ipv6-group-name | ipv6-address } reflect-client
undo peer { ipv6-group-name | ipv6-address } reflect-client
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer reflect-client command to configure the router as a router reflector and specify a peer/peer group as a client.
Use the undo peer reflect-client command to cancel the existing configuration.
By default, neither route reflector nor client is configured.
Related command: reflect between-clients and reflector cluster-id.
Example
# Configure the local device as a router reflector and specify the peer group "test" as a client.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test
[Sysname-bgp-af-ipv6] peer test reflect-client
5.1.53 peer route-limit
Syntax
peer { ipv6-group-name | ipv6-address } route-limit limit [ percentage ]
undo peer { ipv6-group-name | ipv6-address } route-limit
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
limit: Specifies the upper limit of address prefixes received from the peer or peer group. a string of 1 to 4096 characters.
percentage: Specifies the percentage of routes to generate alarm information, ranging from 1 to 100, with the default as 75.
Description
Use the peer route-limit command to set the maximum number of prefixes allowed to receive from a peer/peer group.
Use the undo peer route-limit command to restore the default.
By default, the router has no prefix number limit.
The local router will end peer relation when the number of address prefixes received exceeds the limit.
Example
# Set the number of prefixes allowed to receive from the peer 1:2::3:4 to 1000.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 route-limit 1000
5.1.54 peer route-policy
Syntax
peer { ipv6-group-name | ipv6-address } route-policy route-policy-name { import | export }
undo peer { ipv6-group-name | ipv6-address } route-policy route-policy-name { import | export }
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
route-policy-name: Specifies route-policy name, a string of 1 to 19 characters.
import: Applies the route-policy to routes received from the peer (group).
export: Applies the route-policy to routes advertised to the peer (group).
Description
Use the peer route-policy command to apply a routing policy to routes received from or advertised to a peer or peer group.
Use the undo peer route-policy command to remove the configuration.
By default, the peer (group) has no route-policy associated.
The peer route-policy command does not use the if-match interface clause in the route-policy.
Example
# Apply routing policy test-policy to routes received from the peer group test.
<Sysname> system-view
[Sysname] route-policy test-policy permit node 10
[Sysname-route-policy] if-match cost 10
[Sysname-route-policy] apply cost 65535
[Sysname-route-policy] quit
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test route-policy test-policy import
5.1.55 peer route-update-interval
Syntax
peer { ipv6-group-name | ipv6-address } route-update-interval seconds
undo peer { ipv6-group-name | ipv6-address } route-update-interval
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
seconds: Specifies the minimum interval for sending the same update to a peer (group), in the range 5 to 600 seconds.
Description
Use the peer route-update-interval command to specify the interval for sending the same update to a peer/peer group.
Use the undo peer route-update-interval command to restore the default value.
By default, the interval is 15 seconds for the IBGP peer, and 30 seconds for the EBGP peer.
Example
# Specify the interval for sending the same update to the peer 1:2::3:4 as 10 seconds.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 100
[Sysname-bgp-af-ipv6] peer 1:2::3:4 route-update-interval 10
5.1.56 peer substitute-as
Syntax
peer { ipv6-group-name | ipv6-address } substitute-as
undo peer { ipv6-group-name | ipv6-address } substitute-as
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer substitute-as command to substitute the local AS number for AS number in the AS_PATH attribute of a peer/peer group.
Use the undo peer substitute-as command to remove the configuration.
By default, the local AS number is not substituted for AS number in the AS_PATH attribute of a peer/peer group.
Example
# Substitute local AS number for AS number of peer 1:2::3:4.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 substitute-as
5.1.57 peer timer
Syntax
peer { ipv6-group-name | ipv6-address } timer keepalive keepalive hold holdtime
undo peer { ipv6-group-name | ipv6-address } timer
View
IPv6 address family view
Parameter
ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
keepalive: Specifies the keepalive interval in seconds, ranging from 1 to 21,845.
holdtime: Specifies the holdtime in seconds, ranging from 3 to 65,535.
Description
Use the peer timer command to configure keepalive interval and holdtime interval for a peer or peer group.
Use the undo peer timer command to restore the default.
keepalive interval defaults to 60 seconds, and holdtime interval defaults to 180 seconds
Note that:
l The timer configured by this command is preferred to the timer configured by the timer command.
l The holdtime interval must be at least three times the keepalive interval.
Related command: timer.
Example
# Configure the keepalive interval and holdtime interval for the peer group test as 60 seconds and 180 seconds.
<Sysname] system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test timer keep-alive 60 hold 180
5.1.58 preference
Syntax
preference { external-preference internal-preference local-preference | route-policy route-policy-name }
undo preference
View
IPv6 address family view
Parameter
external-preference: Preference of EBGP route that is learned from an EBGP peer, in the range 1 to 255.
internal-preference: Preference of IBGP route that is learned from an IBGP peer, in the range 1 to 255.
local-preference: Preference of local route, in the range 1 to 255.
route-policy-name: Route policy name, a string of 1 to 19 characters. You can set preference for routes passing the routing policy. For the routes not matched, the default value applies.
Description
Use the preference command to configure preferences for EBGP, IBGP, and local routes.
Use the undo preference command to restore the default.
For external-preference, internal-preference and local-preference, the bigger the preference value is, the lower the preference is, and the default values are 255, 255 and 130.
Example
# Configure preferences for EBGP, IBGP, and local routes as 20, 20 and 200.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] preference 20 20 200
5.1.59 reflect between-clients
Syntax
reflect between-clients
undo reflect between-clients
View
IPv6 address family view
Parameter
None
Description
Use the reflect between-clients command to enable route reflection between clients.
Use the undo reflect between-clients command to disable this function.
By default, route reflection between clients is enabled.
After a route reflector is configured, it reflects routes between clients. If the clients of a route reflector are fully connected, disable route reflection between clients to reduce costs.
Related command: reflector cluster-id and peer reflect-client.
Example
# Enable route reflection between clients.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] reflect between-clients
5.1.60 reflector cluster-id
Syntax
reflector cluster-id cluster-id
undo reflector cluster-id
View
IPv6 address family view
Parameter
cluster-id: Specifies the cluster ID of the route reflector, in integer (1 to 4294967295) or IPv4 address format.
Description
Use the reflector cluster-id command to configure the cluster ID of the route reflector.
Use the undo reflector cluster-id command to remove the configured cluster ID.
By default, each route reflector uses its router ID as the cluster ID.
Usually, there is only one route reflector in a cluster. Router ID of the reflector identifies the cluster. You can configure multiple route reflectors to improve the stability of the network, and use this command to configure the identical cluster ID for all the reflectors to avoid routing loops.
Related command: reflect between-clients and peer reflect-client.
Example
# Set cluster ID for local router to 50.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] reflector cluster-id 50
5.1.61 refresh bgp ipv6
Syntax
refresh bgp ipv6 { all | ipv6-address | group ipv6-group-name | external | internal } { export | import }
View
User view
Parameter
all: Soft-reset all BGP4+ connections.
ipv6-address: IPv6 address of a peer.
Ipv6-group-name: Name of a peer group, a string of 1 to 47 characters.
external: EBGP connection.
internal: IBGP connection.
export: Outbound direction on which to perform soft reset.
import: Inbound direction on which to perform soft reset.
Description
Use the refresh bgp ipv6 command to perform soft reset on specified BGP4+ connections. Using this function can refresh the BGP4+ routing table without disconnecting BGP4+ connections and apply a new available policy.
To perform BGP4+ soft reset, all routers in the network should support Route-refresh. If a router not supporting route-refresh exists in the network, you need to configure the peer keep-all-routes command on the local router to save all route updates before performing soft reset.
Example
# Perform BGP4+ soft reset.
<Sysname> refresh bgp ipv6 all import
5.1.62 reset bgp ipv6
Syntax
reset bgp ipv6 { all | as-number | ipv6-address [ flap-info ] | group ipv6-group-name | external | internal }
View
User view
Parameter
all: Resets all BGP4+ connections.
as-number: Specifies an AS number with which to reset connections to peers.
ipv6-address: Specifies the IP address of a peer with which to reset the connection.
flap-info: Clears history information of routing flap.
group ipv6-group-name: Specifies to reset connections with the specified peer group.
external: Resets all the EBGP connections.
internal: Resets all the IBGP connections.
Description
Use the reset bgp ipv6 command to reset specified BGP4+ connections.
Example
# Reset all the BGP4+ connections.
<Sysname> reset bgp ipv6 all
5.1.63 reset bgp ipv6 dampening
Syntax
reset bgp ipv6 dampening [ ipv6-address prefix-length ]
View
User view
Parameter
ipv6-address: IPv6 address
prefix-length: Prefix length of the address, in the range 0 to 128.
Description
Use the reset bgp ipv6 dampening command to clear route dampening information and release suppressed routes.
If no ipv6-address prefix-length specified, all IPv6 route dampening information will be cleared.
Example
# Clear route damping information of route 2345::/64 and release suppressed routes.
<Sysname> reset bgp ipv6 dampening 2345:: 64
5.1.64 reset bgp ipv6 flap-info
Syntax
reset bgp ipv6 flap-info [ ipv6-address/prefix-length | regexp as-path-regexp | as-path-acl as-path-acl-number ]
View
User view
Parameter
ipv6-address: Specifies an IPv6 address of which to clear flap information.
prefix-length: Prefix length of the address, in the range 1 to 128.
as-path-regexp: Clears flap information of routes matching an AS path regular expression.
as-path-acl-number: Clears flap information of routes matching an AS path ACL, number of which is in the range 1 to 256.
Description
Use the reset bgp ipv6 flap-info command to clear the flap statistics of matched routes.
The flap statistics of all the routes will be cleared if no parameter or keyword is specified.
Example
# Clear the flap statistics of all routes matching AS path ACL 10.
<Sysname> system-view
[Sysname] ip as-path-acl 10 permit ^100.*200$
[Sysname] quit
<Sysname> reset bgp ipv6 flap-info as-path-acl 10
5.1.65 router-id
Syntax
router-id router-id
undo router-id
View
BGP view
Parameter
router-id: Router ID in IP address format.
Description
Use the router-id command to specify a router ID. Each router ID identifies only one router in an AS.
Use the undo router-id command to remove a router ID.
To run BGP4+ protocol, a router must have a router ID, which is an unsigned 32-bit integer as the router’s only identification in an AS.
Router ID can be configured manually. The system will acquire a router ID automatically from the current interfaces’ IPv4 addresses if no router ID is specified. To acquire the router ID, the system finds the maximum IPv4 address first from Loopback interface addresses, then from other interfaces addresses if there is no Loopback interface.
Only when the interface of the Router ID is removed or the manually configured Router ID is removed, will the system select another Router ID. To improve network reliability, configure the IPv4 address of a loopback interface as the Router ID.
Example
# Specifies Router ID as 10.18.4.221.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] router-id 10.18.4.221
5.1.66 synchronization
Syntax
synchronization
undo synchronization
View
IPv6 address family view
Parameter
None
Description
Use the synchronization command to synchronize the BGP4+ and IGP routes.
Use the undo synchronization command to disable synchronization.
The feature is disabled by default.
With this feature enabled and when a non-BGP4+ router is responsible for forwarding packets in an AS, BGP4+ speakers in the AS cannot advertise routing information to outside ASs unless all routers in the AS know the latest routing information.
When a BGP4+ router receives an IBGP route, it checks only whether the next hop is reachable before advertisement by default. If synchronization is enabled, the IBGP route is synchronized and advertised to EBGP peers only when the route is also advertised by IGP. Otherwise, the IBGP route cannot be advertised to EBGP peers.
Example
# Synchronize BGP4+ and IGP routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] synchronization
5.1.67 timer
Syntax
timer keepalive keepalive hold holdtime
undo timer
View
IPv6 address family view
Parameter
keepalive: Specifies the keepalive interval in seconds, ranging from 1 to 21,845.
holdtime: Specifies the holdtime interval in seconds, ranging from 3 to 65,535.
Description
Use the timer command to configure BGP4+ keepalive interval and holdtime interval.
Use the undo timer command to restore the default.
By default, the keepalive and holdtime intervals are 60s and 180s.
Note that:
l Timer configured using the peer timer command is preferred to the timer configured using this command.
l The holdtime interval must be at least three times the keepalive interval.
l The configured timer applies to all the BGP4+ peers. It becomes valid only after the corresponding BGP4+ connections are reset.
Related command: peer timer.
Example
# Configure keepalive interval and holdtime interval as 60 and 180 seconds.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] timer keepalive 60 hold 180
Chapter 6 Routing Policy Configuration Commands
& Note:
l Verify that the system already operates in IPv4/IPv6 dual-stack mode before configuring IPv6 routing policy.
l All the IPv6 routing policy related configuration mentioned in this manual assumes that the system already operates in IPv4/IPv6 dual-stack mode. For dual stack mode configuration, see the part covering dual stack in the IPv6 Configuration module.
6.1 Public Routing Policy Configuration Commands
For public routing policy configuration commands, see IPv4 Routing module in the command manual for information related to routing policy.
6.2 IPv6 Routing Policy Configuration Commands
6.2.1 apply ipv6 next-hop
Syntax
apply ipv6 next-hop ipv6-address
undo apply ipv6 next-hop
View
Routing policy view
Parameter
ipv6-address: Next hop IPv6 address.
Description
Use the apply ipv6 next-hop command to set the next hop for IPv6 routing information to the specified address.
Use the undo apply ipv6 next-hop command to remove the clause configuration.
No next hop address is set for IPv6 routing information by default.
You cannot use the apply ipv6 next-hop command to set next hop address for redistributed routes.
Example
# Create a routing policy named policy1 with the node number of 10, matching mode as permit. If routing information matches AS path ACL 1, set the next hop address to 3ff3:506::1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path-acl 1
[Sysname-route-policy] apply ipv6 next-hop 3ffe:506::1
6.2.2 display ip ipv6-prefix
Syntax
display ip ipv6-prefix [ ipv6-prefix-name ]
View
Any view
Parameter
ipv6-prefix-name: IPv6 prefix list name, a string of 1 to 19 characters.
Description
Use the display ip ipv6-prefix command to display the statistics of the specified IPv6 prefix list. If no IPv6 prefix list name is specified, the statistics of all the IPv6 prefix lists will be displayed.
Example
# Display the statistics of all the IPv6 address prefix lists.
<Sysname> display ip ipv6-prefix
Prefix-list6 abc
Permitted 0
Denied 0
index: 10 permit ::/0
index: 20 permit ::/1 ge 1 le 128
Table 6-1 Description on the fields of the display ip ipv6-prefix command
Field |
Description |
Prefix-list6 |
Name of IPv6 prefix list |
Permitted |
Number of routes satisfying the matching condition |
Denied |
Number of routes not satisfying the matching condition |
index |
Internal serial number of address prefix list |
permit |
Matching mode: permit, deny |
::/1 |
IPv6 address and its prefix length for matching |
ge |
greater-equal, the minimum length of matched IPv6 prefix |
le |
less-equal, the maximum length of matched IPv6 prefix |
6.2.3 if-match ipv6
Syntax
if-match ipv6 { address | next-hop | route-source } { acl acl6-number | prefix-list ipv6-prefix-name }
undo if-match ipv6 { address | next-hop | route-source } [ acl | prefix-list ]
View
Routing policy view
Parameter
address: Matches the destination address of IPv6 routing information.
next-hop: Matches the next hop of IPv6 routing information.
route-source: Matches the source address of IPv6 routing information.
acl acl6-number: Specifies the number of an IPv6 ACL for filtering, in the range 2000 to 3999 for address, and 2000 to 2999 for next-hop and route-source.
prefix-list ipv6-prefix-name: Specifies the name of a IPv6 prefix list for filtering, a string of 1 to 19 characters.
Description
Use the if-match ipv6 command to match IPv6 routing information (destination, next hop or source address).
Use the undo if-match ipv6 command to remove the matching condition.
The matching condition is not configured by default.
Example
# Create a routing policy named policy1 with the node number of 10, matching mode as permit. Define an if-match clause to let pass the routing information whose next hop address matches IPv6 prefix list p1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match ipv6 next-hop prefix-list p1
6.2.4 ip ipv6-prefix
Syntax
ip ipv6-prefix ipv6-prefix-name [ index index-number ] { deny | permit } ipv6-address prefix-length [ greater-equal min-prefix-length ] [ less-equal max-prefix-length ]
undo ip ipv6-prefix ipv6-prefix-name [ index index-number ]
View
System view
Parameter
ipv6-prefix-name: IPv6 prefix list name, a string of 1 to 19 characters, for uniquely specifying an IPv6 prefix list.
index-number: Index number, in the range 1 to 65535, for uniquely specifying an IPv6 prefix list item. The item with smaller index-number will be tested first.
permit: Specifies the matching mode for the IPv6 prefix list as permit, that is, when a route to be filtered is in the range of the IPv6 prefix list, the route passes the IPv6 prefix list without needing to enter the next item for testing. If the route to be filtered is not in the prefix range, it will enter the next item test.
deny: Specifies the matching mode for the IPv6 prefix list as deny, that is, when a route to be filtered is in the IPv6 prefix list range, the route neither passes the filter nor enters the next node for testing. If not in the range, the route will enter the next item test.
ipv6-address prefix-length: Specifies IPv6 prefix and prefix length, with prefix-length in the range 0 to 128. When specified as :: 0, it matches all IP addresses.
min-prefix-length, max-prefix-length: Specifies the range of IPv6 prefix if IPv6 address and prefix length are matched. greater-equal means “greater than or equal to” and less-equal means “less than or equal to”. The range relation is mask-length <= min-mask-length <= max-mask-length <= 32. If only min-prefix-length is specified, the prefix length range is [ min-prefix-length, 128 ]. If only max-prefix-length is specified, the prefix length range is [ prefix-length, max-prefix-length ]. If both min-prefix-length and max-prefix-length are specified, the prefix length range is [ min-prefix-length, max-prefix-length ].
Description
Use the ip ipv6-prefix command to configure an IPv6 address prefix list or an item.
Use the undo ip ipv6-prefix command to remove an IPv6 address prefix list or an item.
No IPv6 address prefix list is configured by default.
The IPv6 address prefix list is used to filter IPv6 addresses. It may have multiple items, each of which specifies a range of IPv6 prefix. The filtering relation among items is logic OR, namely, it requires passing an item to pass the prefix list.
The IPv6 prefix range is determined by prefix-length and [ min-prefix-length, max-prefix-length ]. If both mask-length and [ min-mask-length, max-mask-length ] are specified, then the IPv6 addresses to be filtered must satisfy both of them.
If ipv6-address prefix-length is specified as :: 0, then only the default routes will be matched.
If you want to match all the routes, configure it as :: 0 less-equal 128.
Example
# Let pass the IPv6 addresses with mask length between 32 bits and 64 bits.
<Sysname> system-view
[Sysname] ip ipv6-prefix abc permit :: 0 greater-equal 32 less-equal 64
# Refuse to let pass the IPv6 addresses with prefix as 3FFE:D00::/32, prefix length greater than or equal to 32 bits.
<Sysname> system-view
[Sysname] ip ipv6-prefix abc deny 3FEE:D00:: 32 less-equal 128
6.2.5 reset ip ipv6-prefix
Syntax
reset ip ipv6-prefix [ ipv6-prefix-name ]
View
User view
Parameter
ipv6-prefix-name: Unique IPv6 prefix list, a string of 1 to 19 characters.
Description
Use the reset ip ipv6-prefix command to clear the statistics of the specified IPv6 prefix list. If no name specified, the statistics of all IPv6 prefix lists will be cleared.
Example
# Specify to delete statistics of the specified IPv6 prefix list.
<Sysname> reset ip ipv6-prefix abc