- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 5303(V1.01)
- 00-1Cover
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Configuration Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-IP Source Guard Commands
- 09-MSTP Commands
- 10-IPv6 Commands
- 11-Routing Overview Commands
- 12-IPv4 Routing Commands
- 13-BFD-GR Commands
- 14-IPv6 Routing Commands
- 15-Multicast Protocol Commands
- 16-802.1x-HABP-MAC Authentication Commands
- 17-AAA-RADIUS-HWTACACS Commands
- 18-ARP Commands
- 19-DHCP Commands
- 20-ACL Commands
- 21-QoS Commands
- 22-Port Mirroring Commands
- 23-Cluster Management Commands
- 24-UDP Helper Commands
- 25-SNMP-RMON Commands
- 26-NTP Commands
- 27-DNS Commands
- 28-File System Management Commands
- 29-Information Center Commands
- 30-System Maintaining and Debugging Commands
- 31-NQA Commands
- 32-VRRP Commands
- 33-SSH Commands
- 34-MCE Commands
- 35-OAM Commands
- 36-DLDP Commands
- 37-RRPP Commands
- 38-SSL-HTTPS Commands
- 39-PKI Commands
- 40-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
14-IPv6 Routing Commands | 444.39 KB |
Table of Contents
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.31 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 BGP Configuration Commands
5.1 IPv6 BGP 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 peer
5.1.23 display bgp ipv6 routing-table regular-expression
5.1.24 display bgp ipv6 routing-table statistic
5.1.31 peer advertise-community
5.1.32 peer advertise-ext-community
5.1.36 peer capability-advertise route-refresh
5.1.38 peer default-route-advertise
5.1.54 peer route-update-interval
5.1.58 reflect between-clients
5.1.62 reset bgp ipv6 dampening
5.1.63 reset bgp ipv6 flap-info
Chapter 6 Routing Policy Configuration Commands
6.1 Routing Policy Common Configuration Commands
6.2 IPv6 Routing Policy Configuration Commands
Chapter 1 IPv6 Static Routing Configuration Commands
& Note:
l Throughout this chapter, the term “router” refers to a Layer 3 switch running routing protocols
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
Parameters
None
Description
Use the delete ipv6 static-routes all command to delete all static routes including the default route.
When using this command, you will be prompted whether to continue the deletion and only after you confirm the deletion will the static routes be deleted.
Related commands: display ipv6 routing-table, ipv6 route-static.
Examples
# 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
Parameters
ipv6-address prefix-length: IPv6 address and prefix length.
interface-type interface-number: 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. The default is 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 entry in the routing table, this default route will be used to forward the packet.
Related commands: display ipv6 routing-table, delete ipv6 static-routes all.
Examples
# 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 Throughout this chapter, the term “router” refers to a Layer 3 switch running routing protocols.
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
Parameters
None
Description
Use the checkzero command to enable the zero field check on RIPng packets.
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 on RIPng packet headers. If any such field contains a non-zero value, the RIPng packet will be discarded.
Examples
# Disable the zero field check on RIPng packet headers of RIPng 100.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] undo checkzero
2.1.2 default cost
Syntax
default cost cost
undo default cost
View
RIPng view
Parameters
cost: Default metric of redistributed routes, in the range of 0 to 16.
Description
Use the default cost command to specify the default metric of redistributed routes.
Use the undo default cost command to restore the default.
By default, the default metric of redistributed routes is 0.
The specified default metric applies to routes redistributed by the import-route command that has no metric specified.
Related commands: import-route.
Examples
# Set the default metric of redistributed routes 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
Parameters
process-id: RIPng process ID, 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.
Examples
# Display the running status and configuration 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 ID |
Preference |
RIPng route priority |
Checkzero |
Whether zero field check for RIPng packet headers is enabled |
Default Cost |
Default metric of redistributed routes |
Maximum number of balanced paths |
Maximum number of load balanced 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 periodic updates sent |
Number of trigger updates sent |
Number of triggered updates sent |
2.1.4 display ripng database
Syntax
display ripng process-id database
View
Any view
Parameters
process-id: RIPng process ID, in the range of 1 to 65535.
Description
Use the display ripng database command to display all active routes in the RIPng advertising database, which are sent in normal RIPng update messages.
Examples
# Display the active routes in the database of 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 |
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
Parameters
process-id: RIPng process ID, in the range of 1 to 65535.
interface-type interface-number: Specified an interface.
Description
Use the display ripng interface command to display the interface information of the RIPng process.
If no interface is specified, information about all interfaces of the RIPng process will be displayed.
Examples
# Display the interface information of RIPng process 1.
<Sysname> display ripng 1 interface
Interface-name: Vlan-interface100
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 Only/Originate: Only means that the interface advertises only default route. Originate means that the default route and other RIPng routes are advertised. l Off, indicates that no default route is advertised or the garbage-collect time expires after the default route advertisement was disabled. l In garbage-collect status: With default route advertisement disabled, 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
Parameters
process-id: RIPng process ID, in the range of 1 to 65535.
Description
Use the display ripng route command to display all RIPng routes and timers associated to each route of a RIPng process.
Examples
# Display the 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
Parameters
acl6-number: Specifies the number of an ACL to filter advertised routing information, in the range of 2000 to 3999.
ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to filter routing information, a string of 1 to 19 characters.
protocol: Filter routes redistributed from a routing protocol, currently including bgp4+, direct, isisv6, ospfv3, ripng, and static
process-id: Process number of the specified routing protocol, in the range of 1 to 65535. This argument is specified only when the routing protocol is ripng, ospfv3, or isisv6.
Description
Use the filter-policy export command to define an outbound route filtering policy. Only routes passing the filter can be advertised in the update messages.
Use the undo filter-policy export command to restore the default.
By default, RIPng does not filter any outbound routing information.
With the protocol argument specified, only routing information redistributed from the specified routing protocol will be filtered. Otherwise, all outgoing routing information will be filtered.
Examples
# Use IPv6 prefix list Filter 2 to filter advertised RIPng updates.
<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
Parameters
acl6-number: Specifies the number of an ACL to filter incoming routing information, in the range of 2000 to 3999.
ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 Prefix list to filter incoming routes, in the range 1 to 19 characters.
Description
Use the filter-policy import command to define an inbound route filtering policy. Only routes which match the filtering policy can be received.
Use the undo filter-policy import command to disable inbound route filtering.
By default, RIPng does not filter incoming routing information.
Examples
# Reference IPv6 prefix list Filter1 to filter incoming RIPng updates.
<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 | route-policy route-policy-name ] *
undo import-route protocol [ process-id ]
View
RIPng view
Parameters
protocol: Specifies a routing protocol from which to redistribute routes. Currently, it can be bgp4+, direct, isisv6, ospfv3, ripng, or static.
process-id: Process number of the specified routing protocol, in the range of 1 to 65535, with the default as 1. This argument is available only when the routing protocol is isisv6, ospfv3, or ripng.
cost: Routing metric of redistributed routes, in the range of 0 to 16. If cost value is not specified, the metric is the default metric specified by the default cost command.
route-policy route-policy-name: Specifies a routing policy by its name with 1 to 19 characters.
allow-ibgp: Optional keyword when the specified protocol is bgp4+. The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes additionally IBGP routes, thus be cautious when using it.
Description
Use the import-route command to redistribute routes from another routing protocol.
Use the undo import-route command to disable redistributing routes from another routing protocol.
By default, RIPng does not redistribute routes from other routing protocols.
l You can configure a routing policy to redistribute only needed routes.
l You can specify a cost for redistributed routes using keyword cost.
Related commands: default cost.
Examples
# Redistribute IPv6-IS-IS routes (process 7) and specify 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
Parameters
number: Maximum number of equal-cost load-balanced routes. Its value is in the range 1 to 4.
Description
Use the maximum load-balancing command to specify the maximum number of equal cost routes for load balancing.
Use the undo maximum load-balancing command to restore the default.
By default, the maximum number of equal cost routes for load balancing is 4.
& Note:
Configure the maximum number according to the memory size.
Examples
# Set the maximum number of load balanced routes with equal cost to 2.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] maximum load-balancing 2
# Restore the default.
[Sysname-ripng-100] undo maximum load-balancing
2.1.11 preference
Syntax
preference [ route-policy route-policy-name ] preference
undo preference [ route-policy ]
View
RIPng view
Parameters
route-policy-name: Name of a routing policy, in the range of 1 to 19 characters.
preference: RIPng route priority, in the range of 1 to 255.
Description
Use the preference command to specify the RIPng route priority.
Use the undo preference command to restore the default.
By default, the priority of a RIPng route is 100.
Using the route-policy keyword can set a priority for routes filtered in by the routing policy:
l If a priority is set in the routing policy, the priority applies to matched routes, and the priority set by the preference command applies to routes not matched.
l If no priority is set in the routing policy, the one set by the preference command applies to all routes.
Examples
# 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
Parameters
process-id: RIPng process ID, 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 disable a RIPng process.
By default, no RIPng process is enabled.
Examples
# Create RIPng process 100 and enter its view.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100]
# Disable RIPng process 100.
[Sysname] undo ripng 100
2.1.13 ripng default-route
Syntax
ripng default-route { only | originate } [ cost cost ]
undo ripng default-route
View
Interface view
Parameters
only: Indicates that only the IPv6 default route (::/0) is advertised via the interface.
originate: Indicates that the IPv6 default route (::/0) is advertised without suppressing other routes.
cost: 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 any default route.
After you execute this command, the generated RIPng default route is advertised in a route update over the specified interface. This IPv6 default route is advertised without considering whether it already exists in local IPv6 routing table.
Examples
# Advertise only the default route via VLAN-interface 100.
<Sysname> system-view
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] ripng default-route only
# Advertise the default route together with other routes via VLAN-interface 101.
<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 enable
View
Interface view
Parameters
process-id: RIPng process ID, in the range of 1 to 65535.
Description
Use the ripng enable command to enable RIPng on the specified interface.
Use the undo ripng enable command to disable RIPng on the specified interface.
By default, RIPng is disabled on an interface.
Examples
# Enable RIPng100 on VLAN-interface 100.
<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
Parameters
value: Additional metric for received routes, in the range of 0 to 16.
Description
Use the ripng metricin command to specify an additional metric for received RIPng routes.
Use the undo ripng metricin command to restore the default.
By default, the additional metric to received routes is 0.
Related commands: ripng metricout.
Examples
# Specify the additional routing metric as 12 for RIPng routes received by VLAN-interface 100.
<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
Parameters
value: Additional metric to advertised routes, in the range of 1 to 16.
Description
Use the ripng metricout command to configure an additional metric for RIPng routes advertised by an interface.
Use the undo rip metricout command to restore the default.
The default additional routing metric is 1.
Related commands: ripng metricin.
Examples
# Set the additional metric to 12 for routes advertised by VLAN-interface 100.
<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
Parameters
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.
Examples
Enable the poison reverse function for RIPng update messages on VLAN-interface 100.
<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
Parameters
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:
If both the poison reverse and split horizon functions are enabled, only the poison reverse function takes effect.
Examples
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
Parameters
ipv6-address: Destination IPv6 address prefix of the summary route.
prefix-length: Destination IPv6 address prefix length of the summary route, in the range 0 to 128.
Description
Use the ripng summary-address command to configure a summary advertised through the interface.
Use the undo ripng summary-address command to remove the summary.
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. After summarization, the summary route cost is the lowest cost among summarized routes.
Examples
# Assign an IPv6 address with the 64-bit prefix to VLAN-interface 100 and configure a summary with the 35-bit prefix length.
<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
Parameters
garbage-collect-value: Interval of the garbage-collect timer in seconds, in the range of 1 to 86400.
suppress-value: Interval of the suppress timer in seconds, in the range of 0 to 86400.
timeout-value: Interval of the timeout timer in seconds, in the range of 1 to 86400.
update-value: Interval of the update timer in seconds, in the range of 1 to 86400.
Description
Use the timers command to configure RIPng timers.
Use the undo timers command to restore the default.
By default, the garbage-collect timer is 120 seconds, the suppress timer 120 seconds, the timeout timer 180 seconds, and the update timer 30 seconds.
RIPng is controlled by the above four timers.
l The update timer defines the interval between 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
Examples
# 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
Parameters
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 on an area border router.
Use the undo abr-summary command to remove an IPv6 summary route. Then the summarized routes are advertised.
By default, no route summarization is available on an ABR.
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 with one route for advertisement.
Examples
# Summarize networks 2000:1:1:1::/64 and 2000:1:1:2::/64 in Area 1 with 2000:1:1::/48.
<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
Parameters
area-id: 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.
Examples
# 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
Parameters
value: Specifies a default cost for redistributed routes, in the range of 1 to 16777214.
Description
Use the default cost command to configure a 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 are available, use of this command takes effect for the current process only.
Examples
# 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
Parameters
value: Specifies a cost for the default route advertised to the stub area, in the range of 0 to 65535. The default is 1.
Description
Use the default-cost command to specify the cost of the default route to be advertised 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 connected to a stub area to configure the area as stub.
If multiple OSPFv3 processes are running, use of this command takes effect only for the current process.
Related commands: stub.
Examples
# Configure Area1 as a stub area, and specify the cost of the default route advertised 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
Parameters
None
Description
Use the display debugging ospfv3 command to display global OSPFv3 debugging state information.
Examples
# Display the global OSPFv3 debugging state information.
<Sysname> display debugging OSPFV3
3.1.6 display ospfv3
Syntax
display ospfv3 [ process-id ]
View
Any view
Parameters
process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535.
Description
Use the display ospfv3 command to display the brief information of an OSPFv3 process. If no process ID is specified, OSPFv3 brief information about all processes will be displayed.
Examples
# Display brief information about all OSPFv3 processes.
<Sysname> display ospfv3
Routing Process "OSPFv3 (1)" with ID 0.0.0.0
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 0
Number of LSA received 0
Number of areas in this router is 2
Area BACKBONE(0)
Number of interfaces in this area is 1
SPF algorithm executed 1 times
Number of LSA 0. These LSAs' checksum Sum 0x0000
Number of Unknown LSA 0
Area 0.0.0.1
Number of interfaces in this area is 0
SPF algorithm executed 1 times
Number of LSA 0. These LSAs' checksum Sum 0x0000
Number of Unknown LSA 0
Routing Process "OSPFv3 (3)" with ID 0.0.0.0
SPF schedule delay 2 secs, Hold time between SPFs 2 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 0
Number of LSA received 0
Number of areas in this router is 0
Table 3-1 Description on the fields of the display ospfv3 command
Field |
Description |
Routing Process "OSPFv3 (1)" with ID 0.0.0.0 |
OSPFv3 process is 1, and router ID is 0.0.0.0. |
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 is 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
Parameters
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.
Examples
# Display OSPFv3 interface information of VLAN-interface 200.
<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 |
No designated router on this link |
No designated router on this link |
No backup designated router on this link |
No backup designated router on this link |
Timer interval configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 |
Time intervals in seconds configured on the interface, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 |
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
Parameters
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.
Examples
# 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 ospfv3 lsdb command
Field |
Description |
Link-LSA |
Type 8 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 |
Type 9 LSA |
Reference |
Type of referenced LSA |
# Display Link-local LSA information in the LSDB.
<Sysname> display 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
Parameters
None
Description
Use the display ospfv3 lsdb statistic command to display LSA statistics in the OSPFv3 LSDB.
Examples
# 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
Parameters
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.
Examples
# 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
Parameters
process-id: Specifies the 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.
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.
Examples
# Display the neighbor information of OSPFv3 process 1 on 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 ospfv3 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.
<Sysname> 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 ospfv3 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 1. |
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 35 seconds |
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
Parameters
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.
Examples
# 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 device received a Hello packet from the neighbor but the packet contains no Router ID of the neighbor. Mutual communication is not setup. |
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 [ statistics ]
View
Any view
Parameters
process-id: OSPFv3 process ID, in the range 1 to 65535.
statistics: Statistics of link state request list.
Description
Use the display ospfv3 request-list command to display OSPFv3 link state request list information.
If no process is specified, link state request list information of all OSPFv3 processes is displayed.
Examples
# 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
Parameters
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.
Examples
# 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
Parameters
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: Displays routes to ABR.
asbr-routes: Displays routes to ASBR.
all: Displays all routes.
statistics: Displays the OSPFv3 routing table statistics .
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.
Examples
# 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, * - Seleted 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 (3.3.3.3) (Process 1)
OSPFv3 Routing Statistics
Intra-area-routes : 1
Inter-area-routes : 1
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
Parameters
None
Description
Use the display ospfv3 statistic command to display outbound/inbound OSPFv3 packet statistics on associated interface(s).
Examples
# 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
Parameters
process-id: Displays the topology information of an OSPFv3 process; The process ID ranges from 1 to 65535.
area: Displays the topology information of the specified area.
area-id: 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.
Examples
# 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
Parameters
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.
Examples
# 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-interface 100 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 { acl6-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
Parameters
acl6-number: Specifies the ACL6 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 routes of an IPv6-IS-IS process, which is in the range of 1 to 65535.
ospfv3 process-id: Specifies to filter the routes of an OSPFv3 process, which is in the range of 1 to 65535.
ripng process-id: Specifies to filter the routes of a RIPng process, 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.
If no protocol is specified, all redistributed routes will be filtered.
By default, IPv6 OSPFv3 does not filter redistributed routes.
& 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.
Examples
# 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
Parameters
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.
Examples
# 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
Parameters
isisv6 process-id: Redistributes IPv6 ISIS routes from an IPv6 IS-IS process. The process ID is in the range 1 to 65535.
ospfv3 process-id: Redistributes OSPFv3 routes from an OSPFv3 process. The process ID is in the range 1 to 65535.
ripng process-id: Redistributes RIPng routes from a RIPng process. The process ID is in the range 1 to 65535.
bgp4+: Redistributes BGP4+ routes.
allow-ibgp: Allows redistributing IBGP routes.
direct: Redistributes direct routes.
static: Redistributes static routes.
cost value: Cost for redistributed routes, ranging from 1 to 16777214. The default is 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:
Using the import-route bgp4+ command redistributes only EBGP routes, while using the import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes.
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.
Examples
# 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 log-peer-change
Syntax
log-peer-change
undo log-peer-change
View
OSPFv3 view
Parameters
None
Description
Use the log-peer-change command to enable the logging on neighbor state changes.
Use the undo maximum load-balancing command to disable the logging.
With this feature enabled, information about neighbor state changes of the current OSPFv3 process will display on the configuration terminal.
Examples
# Disable the logging on neighbor state changes of OSPFv3 process 100.
<Sysname> system-view
[Sysname] ospfv3 100
[Sysname-ospfv3-100] undo log-peer-change
3.1.23 maximum load-balancing
Syntax
maximum load-balancing maximum
undo maximum load-balancing
View
OSPFv3 view
Parameters
maximum: Maximum number of equal-cost routes for load-balancing. The argument being set to 1 means no load balancing is available. Its value is in the range 1 to 4.
Description
Use the maximum load-balancing command to configure the maximum number of equal-cost routes for load-balancing.
Use the undo maximum load-balancing command to restore the default.
By default, the maximum number of equal-cost routes for load-balancing in OSPFv3 is 4.
Examples
# Configure the maximum number of equal-cost routes for load-balancing as 2.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] maximum load-balancing 2
3.1.24 ospfv3
Syntax
ospfv3 [ process-id ]
undo ospfv3 [ process-id ]
View
System view
Parameters
process-id: OSPFv3 process ID, 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 commands: 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.
Examples
# 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.25 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
Parameters
process-id: OSPFv3 process ID, in the range 1 to 65535.
area-id: Area ID, 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: Instance ID of an interface, in the range 0 to 255. The default is 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.
Examples
# 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.26 ospfv3 cost
Syntax
ospfv3 cost value [ instance instance-id ]
undo ospfv3 cost [ instance instance-id ]
View
Interface view
Parameters
value: OSPFv3 cost of the interface, in the range 1 to 65535.
instance-id: 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 of the interface in an instance.
Use the undo ospfv3 cost command to restore the default OSPFv3 cost of the interface in an instance.
By default, the OSPFv3 cost of the interface in an instance is 1.
Examples
# Specifies the OSPFv3 cost of the interface in instance 1 as 33.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 cost 33 instance 1
3.1.27 ospfv3 dr-priority
Syntax
ospfv3 dr-priority priority [ instance instance-id ]
undo ospfv3 dr-priority [ instance instance-id ]
View
Interface view
Parameters
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 in 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 in DR/BDR selection, and the interface with the highest priority is preferred.
Examples
# Set the DR priority for an interface in instance 1 to 8 .
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 dr-priority 8 instance 1
3.1.28 ospfv3 mtu-ignore
Syntax
ospfv3 mtu-ignore [ instance instance-id ]
undo ospfv3 mtu-ignore [ instance instance-id ]
View
Interface view
Parameters
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 check when sending DD packets.
Use the undo ospfv3 mtu-ignore command to restore the default.
MTU check is not ignored by default.
Examples
# Configure VLAN-interface 10 that belongs to instance 1 to ignore MTU check.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 mtu-ignore instance 1
3.1.29 ospfv3 timer dead
Syntax
ospfv3 timer dead seconds [ instance instance-id ]
undo ospfv3 timer dead [ instance instance-id ]
View
Interface view
Parameters
seconds: Dead time in seconds, ranging from 1 to 2147483647.
instance-id: 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 consider the neighbor 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 commands: ospfv3 timer hello.
Examples
# Configure the OSPFv3 neighbor dead time as 80 seconds for VLAN-interface 10 in instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 timer dead 80 instance 1
3.1.30 ospfv3 timer hello
Syntax
ospfv3 timer hello seconds [ instance instance-id ]
undo ospfv3 timer hello [ instance instance-id ]
View
Interface view
Parameters
seconds: Interval between hello packets, ranging from 1 to 65535.
instance-id: 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 commands: ospfv3 timer dead.
Examples
# Configure the hello interval as 20 seconds for VLAN-interface 10 in instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 timer hello 20 instance 1
3.1.31 ospfv3 timer retransmit
Syntax
ospfv3 timer retransmit interval [ instance instance-id ]
undo ospfv3 timer retransmit [ instance instance-id ]
View
Interface view
Parameters
interval: LSA retransmission interval in seconds, ranging from 1 to 65535.
instance-id: 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 in an instance.
Use the undo ospfv3 timer retransmit command to restore the default.
The interval defaults to 5 seconds.
After sending a LSA to its neighbor, the device waits for an acknowledgement. If receiving no acknowledgement after the LSA retransmission interval elapses, it will retransmit the LSA.
The LSA retransmission interval should not be too small for avoidance of unnecessary retransmissions.
Examples
# Configure the LSA retransmission interval on VLAN-interface 10 in instance 1 as 12 seconds.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 timer retransmit 12 instance 1
3.1.32 ospfv3 trans-delay
Syntax
ospfv3 trans-delay seconds [ instance instance-id ]
undo ospfv3 trans-delay [ instance instance-id ]
View
Interface view
Parameters
seconds: Transmission delay in seconds, ranging from 1 to 3600.
instance-id: 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 by 1 every 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.
Examples
# Configure the transmission delay as 3 seconds for VLAN-interface 10 in instance 1.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospfv3 trans-delay 3 instance 1
3.1.33 preference
Syntax
preference [ ase ] [ route-policy route-policy-name ] preference
undo preference [ ase ]
View
OSPFv3 view
Parameters
ase: Applies the preference to OSPFv3 external routes. If the keyword is not specified, the preference applies to OSPFv3 internal routes.
route-policy route-policy-name: References a routing policy to set preference for specific routes. The name is a string of 1 to 19 characters.
Preference: Preference of OSPFv3, in the range 1 to 255.
Description
Use the preference command to specify a preference for OSPFv3 routes.
Use the undo preference command to restore the default.
By default, the preference for OSPFv3 internal routes is 10, and that for OSPFv3 external routes is 150.
The smaller the value is, the higher the preference is.
A router may run multiple routing protocols. Each protocol has a preference. When several routing protocols find multiple routes to the same destination, the route found by the protocol with the highest preference is selected.
Examples
# Set a preference of 150 for OSPFv3 routes.
<Sysname> system-view
[Sysname] ospfv3
[Sysname-ospfv3-1] preference 150
3.1.34 router-id
Syntax
router-id router-id
undo router-id
View
OSPFv3 view
Parameters
router-id: 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 identifier of a device running an OSPFv3 process in the autonomous system. The OSPFv3 process cannot run without a Router ID.
Make sure that different processes have different Router IDs.
Related commands: ospfv3.
& Note:
By configuring different router IDs for different processes, you can run multiple OSPFv3 processes on a router.
Examples
# 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.35 silent-interface
Syntax
silent-interface { interface-type interface-number | all }
undo silent-interface { interface-type interface-number | all }
View
OSPFv3 view
Parameters
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.
Examples
# Disable VLAN-interface 10 from sending OSPFv3 packets in OSPFv3 processes 100 and 200.
[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.36 spf timers
Syntax
spf timers delay-interval hold-interval
undo spf timers
View
OSPFv3 view
Parameters
delay-interval: Interval in seconds between when OSPFv3 receives a topology change and when it starts SPF calculation. in the range 1 to 65535.
hold-interval: Hold interval in seconds between two consecutive SPF calculations, in the range 1 to 65535.
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.
Examples
# 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.37 stub
Syntax
stub [ no-summary ]
undo stub
View
OSPFv3 area view
Parameters
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 commands: default-cost.
Examples
# 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.38 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
Parameters
router-id: Router ID for a virtual link neighbor.
hello seconds: Specifies the interval in seconds for sending Hello packets, ranging from 1 to 8192, with the default as 10. This value must be equal to the hello seconds configured on the virtual link peer.
retransmit seconds: Specifies the interval in seconds for retransmitting LSA packets, ranging from 1 to 3600, with the default as 5.
trans-delay seconds: Specifies the delay interval in seconds for sending LSA packets, ranging from 1 to 3600, with the default as 1.
dead seconds: Specifies the neighbor dead time in seconds, ranging from 1 to 32768, with the default as 40. This value must be equal to the dead seconds configured on the virtual link peer, and at least four times the value of hello seconds.
instance Instance-id: 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 a direct connection to the backbone area or for a backbone area that cannot maintain connectivity, you can use the vlink-peer command to create logical links. 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.
Examples
# 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 IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information instead. This document describes only IPv6 IS-IS exclusive commands. Refer to IS-IS Commands in the part discussing IPv4 routing for other IS-IS configuration commands.
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
Parameters
verbose: Displays detailed IPv6 IS-IS routing information.
process-id: IS-IS process ID, in the range 1 to 65535.
level-1: Display Level-1 IPv6 IS-IS routes only.
level-2: Displays Level-2 IPv6 IS-IS routes only.
& Note:
If no level is specified, both Level-1 and Level-2 (namely Level-1-2) routing information will be displayed.
Description
Use the display isis route ipv6 command to display IPv6 IS-IS routing information.
Examples
# 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 prefix |
PrefixLen |
Length of the prefix |
Flag/Flags |
Flag of routing information status D: This is a direct route. R: The route has been added into the routing table. L: The route has been advertised in an LSP. U: Route leaking flag, indicating the Level-1 route is from Level-2. “UP” means the route will not be returned to Level-2. |
Cost |
Value of cost |
Next Hop |
Next hop |
Interface |
Outbound 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 and prefix information |
Cost |
Value of cost |
Flag/Flags |
Flag of routing information status D: This is a direct route. R: The route has been added into the routing table. L: The route has been advertised in an LSP. U: Route leaking flag, indicating the Level-1 route is from Level-2. “UP” means the route will not be returned to Level-2. |
Admin Tag |
Administrative tag |
Src Count |
Number of advertisement sources |
Next Hop |
Next hop |
Interface |
Outbound interface |
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
Parameters
route-policy-name: Specifies the name of a routing policy 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 default route belongs to Level-2.
Description
Use the ipv6 default-route-advertise command to generate a Level-1 or Level-2 IPv6 IS-IS default route.
Use the undo ipv6 default-route-advertise command to disable generating a default route.
No IPv6 IS-IS default route is generated by default.
With a routing policy, you can configure IPv6 IS-IS to generate the default route that must match the routing policy. You can use the apply isis level-1 command in routing policy view to generate a default route in L1 LSPs, or use the apply isis level-2 command in routing policy view to generate a default route in L2 LSPs, and use the apply isis level-1-2 in routing policy view to generate a default route in L1 and L2 LSPs respectively.
Examples
# 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
Parameters
None
Description
Use the ipv6 enable command to enable IPv6 for the IPv6 IS-IS process.
Use the undo ipv6 enable command to disable IPv6.
IPv6 is disabled by default.
Examples
# Create 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 export [ protocol [ process-id ] ]
View
IS-IS view
Parameters
acl6-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: Filter routes redistributed from the specified routing protocol before advertisement. The routing protocol can be bgp4+, direct, isisv6, ospfv3, ripng or static at present. If no protocol is specified, routes redistributed from all protocols are filtered before advertisement.
process-id: Process ID of the routing protocol, ranging from 1 to 65535. This argument 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 cases, only routes satisfying certain conditions will be advertised. You can configure the filtering conditions using the ipv6 filter-policy command.
You can use the ipv6 filter-policy export command, which filters redistributed routes only when they are advertised to other routers, in combination with the ipv6 import-route command.
l If no protocol is specified, routes redistributed from all protocols are filtered before advertisement.
l If a protocol is specified, only routes redistributed from the protocol are filtered before advertisement.
Related commands: ipv6 filter-policy import.
Examples
# 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 import
View
IS-IS view
Parameters
acl6-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 configure IPv6 IS-IS to filter the received routes.
Use the undo ipv6 filter-policy import command to disable the filtering.
The filtering is disabled by default.
In some cases, only the routing information satisfying certain conditions will be received. You can configure the filtering conditions using the ipv6 filter-policy command.
Related commands: ipv6 filter-policy export.
Examples
# 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 | [ level-1 | level-2 | level-1-2 ] | route-policy route-policy-name | tag tag ] *
undo ipv6 import-route protocol [ process-id ]
View
IS-IS view
Parameters
protocol: Redistributes routes from a specified routing protocol, which can be direct, static, ripng, isisv6, bgp4+ or 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: Cost for redistributed routes, ranging from 0 to 4261412864.
level-1: Redistributes routes into Level-1 routing table.
level-2: Redistributes routes into Level-2 routing table.
level-1-2: Redistributes routes into Level-1 and Level-2 routing tables.
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: Specifies a administrative tag number for the redistributed routes, in the range of 1 to 4294967295.
allow-ibgp: Allows the redistribution of IBGP routes. This keyword is optional when the protocol is bgp4+.
Description
Use the ipv6 import-route command to enable IPv6 IS-IS to redistribute routes from another routing protocol.
Use the undo ipv6 import-route command to disable route redistribution.
Route redistribution is disabled by default.
If no level is specified, the routes are imported to Level-2 routing table by default.
IPv6 IS-IS considers redistributed routes as routes to destinations outside the local routing domain.
You can specify a cost and a level for redistributed routes.
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, be cautious with this command.
Examples
# Configure IPv6–IS-IS to redistribute static routes and sets the cost 15 for them.
<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 ]*
undo ipv6 import-route isisv6 level-2 into level-1
View
IS-IS view
Parameters
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: Specifies a administrative tag number for the leaked 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.
Examples
# Enable IPv6 IS-IS route leaking 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
Parameters
number: Maximum number of equal-cost routes for load balancing. Its value is in the range 1 to 4 and defaults to 4.
Description
Use the ipv6 maximum load-balancing command to configure the maximum number of equal-cost routes for load balancing.
Use the undo ipv6 maximum load-balancing command to restore the default.
The maximum number range and default vary by device.
& Note:
Configure the maximum number of equivalent load-balanced routes according to the memory capacity.
Examples
# Configure the maximum number of equivalent load-balanced 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 } *
undo ipv6 preference
View
IS-IS view
Parameters
preference: 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 assign a preference to each routing protocol. If several protocols find routes to the same destination, the route found by the protocol with the highest preference is selected.
Examples
# 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 ] *
undo ipv6 summary ipv6-prefix prefix-length [ level-1 | level-1-2 | level-2 ]
View
Parameters
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 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.
Examples
# 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 ]
undo isis ipv6 enable
View
Interface view
Parameters
process-id: IS-IS process ID, ranging from 1 to 65535. The default is 1.
Description
Use the isis ipv6 enable command to enable IPv6 for the specified IS-IS process on the interface.
Use the undo isis ipv6 enable command to disable the configuration.
IPv6 is disabled on the interface by default.
Examples
# Enable global IPv6, create IS-IS routing process 1, enable IPv6 for the process, and enable IPv6 for the process on VLAN-interface100.
<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 BGP 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 IPv6 BGP Configuration Commands
5.1.1 balance
Syntax
balance number
undo balance
View
IPv6 address family view
Parameters
number: Number of BGP4+ routes participating in load balancing. Its value is 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 IPv6 BGP load balancing.
Use the undo balance command to restore the default.
The feature is not available by default.
Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it implements load balancing by defining its routing rule.
Related commands: display ipv6 routing-table.
Examples
# Set the number of routes participating in IPv6 BGP 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
Parameters
None
Description
Use the bestroute as-path-neglect command to configure the IPv6 BGP router to not evaluate the AS_PATH during best route selection.
Use the undo bestroute as-path-neglect command to configure the IPv6 BGP router to use the AS_PATH during best route selection.
By default, the router takes AS_PATH as a factor when selecting the best route.
Examples
# 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
Parameters
None
Description
Use the bestroute compare-med command to enable the comparison of the MED for paths from each AS.
Use the undo bestroute compare-med command to disable this comparison.
This comparison is not enabled by default.
Caution:
After the bestroute compare-med command is executed, the balance command does not take effect.
Examples
# Compare the MED for paths from an 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
Parameters
None
Description
Use the bestroute med-confederation command to enable the comparison of the MED for paths from confederation peers for best route selection.
Use the undo bestroute med-confederation command to disable the comparison.
By default, this comparison is not enabled.
With this feature enabled, the system can only compare the MED for paths from peers within the confederation. Paths from external ASs are advertised throughout the confederation without MED comparison.
Examples
# Compare the MED for paths 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
Parameters
None
Description
Use the compare-different-as-med command to enable the comparison of the MED for paths from peers in different ASs.
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 selection method.
Examples
# Enable to compare the MED for paths 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
Parameters
half-life-reachable: Half-life for reachable routes, in the range 1 to 45 minutes. By default, the value is 15 minutes.
half-life-unreachable: Half-life for unreachable routes, in the range 1 to 45 minutes. By default, the value is 15 minutes.
reuse: Reuse threshold value for suppressed routes, in the range 1 to 20000. Penalty value of a suppressed route decreasing under the value is reused. By default, its value is 750.
suppress: Suppression threshold from 1 to 20000, which should be bigger than the reuse value. Routes with a penalty value bigger than the threshold are suppressed. By default, it is 2000.
ceiling: Ceiling penalty value from 1001 to 20000. The value must be bigger than the suppress value. By default, the value is 16000.
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 the others should also be specified accordingly.
Description
Use the dampening command to enable IPv6 BGP route dampening or/and configure dampening parameters.
Use the undo dampening command to disable route dampening.
By default, no route dampening is configured.
Related commands: reset bgp ipv6 dampening, reset bgp ipv6 flap-info, display bgp ipv6 routing-table dampened, display bgp ipv6 routing-table dampening parameter, display bgp ipv6 routing-table flap-info.
Examples
# Enable IPv6 BGP 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
Parameters
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 the 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 IPv6 BGP route selection.
Examples
# 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 passing 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
Parameters
med-value: MED value, in the range 0 to 4294967295.
Description
Use the default med command to specify the default MED value.
Use the undo default med command to restore the default.
By default, the default med-value is 0.
The multi-exit discriminator (MED) is an external metric of a route. Different from local preference, MED is exchanged between ASs and will stay in the AS once it enters the AS. The route with a lower MED is preferred. When a router running BGP obtains several routes with the identical destination 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 best route for the autonomous system.
Examples
# Devices A and B belong to AS100 and device C belongs to AS200. C is the peer of A and B. Configure the MED of A as 25 to make C select the path from B.
<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
Parameters
None
Description
Use the default-route imported command to enable the redistribution of default route into the IPv6 BGP routing table.
Use the undo default-route imported command to disable the redistribution.
By default, the redistribution is not enabled.
Examples
# Enable the redistribution of default route from OSPFv3 into IPv6 BGP.
<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
Parameters
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 is specified, information about all peer groups is displayed.
Examples
# 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
Parameters
None
Description
Use the display bgp ipv6 network command to display IPv6 routes advertised with the network command.
Examples
# Display IPv6 routes advertised with the network command.
<Sysname> display bgp ipv6 network
BGP Local Router ID is 1.1.1.2.
Local AS Number is 200.
Network Mask Route-policy Short-cut
2002:: 64
2001:: 64 Short-cut
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
Parameters
as-regular-expression: AS path regular expression.
Description
Use the display bgp ipv6 paths command to display IPv6 BGP path information.
If no parameter is specified, all path information will be displayed.
Examples
# Display IPv6 BGP path information.
<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
Description |
||
Address |
Route destination address in local database, in dotted hexadecimal notation |
|
Hash |
Hash index |
|
Refcount |
Count of routes that used the path |
|
MED |
MED of the path |
|
Path |
AS_PATH attribute of the path, recording the ASs it 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-group-name log-info | ipv6-address { log-info | verbose } ]
View
Any view
Parameters
ipv6-group-name: Name of an IPv6 peer group, a string of 1 to 47 characters.
ipv6-address: Specifies the IPv6 address of a peer to be displayed.
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.
Examples
# Display all IPv6 peer information.
<Sysname> display bgp ipv6 peer
BGP Local router ID : 20.0.0.1
local AS number : 100
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
20::21 4 200 17 19 0 3 00:09:59 Established
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
Parameters
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 IPv6 BGP routing table information.
Examples
# Display the IPv6 BGP routing table.
<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
Parameters
as-path-acl-number: Number of an AS path ACL permitted by which to display routing information, ranging from 1 to 256.
Description
Use the display bgp ipv6 routing-table as-path-acl command to display routes filtered through the specified AS path ACL.
Examples
# Display routes filtered through 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
Parameters
aa:nn: Specifies a community number; both aa and nn are in the range 0 to 65535.
&<1-13>: Indicates the argument before it can be entered up to 13 times.
no-advertise: Displays routes not advertised to any peer.
no-export: Displays routes advertised outside the AS; if there is a confederation, it displays routes not advertised outside the confederation, but to other sub ASs in the confederation.
no-export-subconfed: Displays routes neither advertised outside the AS nor to other sub ASs if the confederation is configured.
whole-match: Displays the exactly matched routes.
Description
Use the display bgp ipv6 routing-table community command to display the routing information of the specified community.
Examples
# Display the routing information of the community no-export.
<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
Parameters
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 IPv6 BGP community list.
Examples
# Display the routing information matching the specified IPv6 BGP 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
Parameters
None
Description
Use the display bgp ipv6 routing-table dampened command to display the IPv6 BGP dampened routes.
Examples
# Display IPv6 BGP 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 |
Time for reuse |
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
Parameters
None
Description
Use the display bgp ipv6 routing-table dampening parameter command to display IPv6 BGP routing dampening parameters.
Related commands: dampening.
Examples
# Display IPv6 BGP routing 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 |
Suppress value |
5.1.20 display bgp ipv6 routing-table different-origin-as
Syntax
display bgp ipv6 routing-table different-origin-as
View
Any view
Parameters
None
Description
Use the display bgp ipv6 routing-table different-origin-as command to display IPv6 BGP routes originating from different autonomous systems.
Examples
# 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
Parameters
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 0 to 128.
longer-match: Matches the longest prefix.
Description
Use the display bgp ipv6 routing-table flap-info command to display IPv6 BGP route flap statistics.
Examples
# Display IPv6 BGP 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 peer
Syntax
display bgp ipv6 routing-table peer ipv6-address { advertised-routes | received-routes } [ network-address prefix-length | statistic ]
View
Any view
Parameters
ipv6-address: Specifies the IPv6 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 and prefix length. The prefix length ranges from 0 to 128.
statistic: Displays route statistics.
Description
Use the display bgp ipv6 routing-table peer command to display the routing information advertised to or received from the specified IPv6 BGP peer.
Examples
# 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.23 display bgp ipv6 routing-table regular-expression
Syntax
display bgp ipv6 routing-table regular-expression as-regular-expression
View
Any view
Parameters
as-regular-expression: AS regular expression.
Description
Use the display bgp ipv6 routing-table regular-expression command to display the routes permitted by the specified AS regular expression.
Examples
# Display 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.24 display bgp ipv6 routing-table statistic
Syntax
display bgp ipv6 routing-table statistic
View
Any view
Parameters
None
Description
Use the display bgp ipv6 routing-table statistic command to display IPv6 BGP routing statistics.
Examples
# Display IPv6 BGP routing statistics.
<Sysname> display bgp ipv6 routing-table statistic
Total Number of Routes: 1
5.1.25 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
Parameters
acl6-number: Specifies the number of an ACL6 used to match against the destination of routing information. The number is in the range 2000 to 3999.
ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to match against the destination address field of routing information. The name is a string of 1 to 19 characters.
protocol: Filters routes redistributed from the routing protocol. It can be direct, isisv6, ospfv3, ripng, and static at present. If no protocol is specified, all routes will be filtered when advertised.
process-id: Process ID of the 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 outbound routes using a specified filter.
Use the undo filter-policy export command to cancel filtering outbound routes.
By default, no outbound routing information is filtered.
If a protocol is specified, only routes redistributed from the specified protocol are filtered. If no protocol is specified, all redistributed routes will be filtered.
Examples
# Reference ACL6 2001 to filter all outbound IPv6 BGP routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] filter-policy 2001 export
5.1.26 filter-policy import
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import
undo filter-policy import
View
IPv6 address family view
Parameters
acl6-number: Number of an IPv6 ACL used to match against the destination address field of routing information, ranging from 2000 to 3999.
ipv6-prefix-name: Name of an IPv6 prefix list used to match against the destination address field of routing information, a string of 1 to 19 characters.
Description
Use the filter-policy import command to filter inbound routing information using a specified filter.
Use the undo filter-policy import command to cancel filtering inbound routing information.
By default, no inbound routing information is filtered.
Examples
# Reference ACL6 2001 to filter all inbound routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] filter-policy 2001 import
5.1.27 group
Syntax
group ipv6-group-name [ internal | external ]
undo group ipv6-group-name
View
IPv6 address family view
Parameters
ipv6-group-name: 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, which can be a group of another sub AS in the 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.
Examples
# Create an IBGP peer group named test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv6-family
[Sysname-bgp-af-ipv6] group test
5.1.28 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
Parameters
protocol: Redistributes routes from the specified routing protocol, which can be direct, isisv6, ospfv3, ripng, or static at present.
process-id: Routing protocol process ID, in the range 1 to 65535 and with the default as 1 . It is available only when the protocol is isisv6, ospfv3, or ripng.
med-value: Applies the MED value to redistributed routes. The value is in the range 0 to 4294967295. If not specified, the cost of the redistributed route is used as its MED in the IPv6 BGP routing domain.
route-policy-name: 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 another routing protocol.
Use the undo import-route command to remove the configuration.
By default, IPv6 BGP does not redistribute routes from any routing protocol.
The routes redistributed using the import-route command has the incomplete origin attribute.
Examples
# 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.29 ipv6-family
Syntax
ipv6-family
undo ipv6-family
View
BGP view
Parameters
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.
IPv4 BGP unicast view is the default.
Examples
# Enter IPv6 address family view.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6]
5.1.30 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
Parameters
ipv6-address: IPv6 address.
prefix-length: Prefix length of the address, in the range 0 to 128.
short-cut: If the keyword is specified for an EBGP route, the route will use the local routing management value rather than that of EBGP routes, so the preference of the route is reduced.
route-policy-name: Name of a routing policy, a string of 1 to 19 characters.
Description
Use the network command to advertise a network to the IPv6 BGP routing table.
Use the undo network command to remove an entry from the IPv6 BGP routing table.
By default, no route is advertised.
Note that:
l The route to be advertised must exist in the local IP routing table, and using a routing policy makes route management more flexible.
l The route advertised to the BGP routing table using the network command has the IGP origin attribute.
Examples
# Advertise the network 2002::/16 into the IPv6 BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] network 2002:: 16
5.1.31 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
Parameters
ipv6-group-name: Name of an IPv6 peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer advertise-community command to advertise the community attribute to a peer/peer group.
Use the undo peer advertise-community command to remove the configuration.
By default, no community attribute is advertised to any peer group/peer.
Examples
# Advertise the 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.32 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
Parameters
ipv6-group-name: Name of an IPv6 peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
Description
Use the peer advertise-ext-community command to advertise the 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.
Examples
# Advertise the extended 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-ext-community
5.1.33 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
Parameters
ipv6-group-name: Name of an IPv6 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. The default number is 1.
Description
Use the peer allow-as-loop command to configure IPv6 BGP to allow the local AS number to exist 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 disable the function.
The local AS number is not allowed to exist in the AS PATH attribute of routes by default.
Examples
# Configure the repeating times of the local AS number allowed in the AS PATH of routes from peer 1::1 as 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1::1 allow-as-loop 2
5.1.34 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
Parameters
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 group.
Use the undo peer command to delete a peer.
By default, no AS number is configured for a peer/peer group.
Examples
# Specify the AS number of the peer group test as 200.
<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 200
5.1.35 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
Parameters
ipv6-group-name: Name of an IPv6 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 incoming routes.
export: Filters outgoing routes.
Description
Use the peer as-path-acl command to specify an AS path ACL to filter routes incoming from or outgoing to a peer/peer group.
Use the undo peer as-path-acl command to remove the configuration.
By default, no AS path list is specified for filtering.
Examples
# Specify the AS path ACL 3 to filter routes outgoing 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.36 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
Parameters
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 IPv6 BGP route-refresh.
Use the undo peer capability-advertise route-refresh command to disable the function.
By default, route-refresh is enabled.
Examples
# 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.37 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
Parameters
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 for establishing TCP connections to an IPv6 BGP peer or peer group.
Use the undo peer connect-interface command to restore the default.
By default, BGP uses the outbound interface of the best route to the IPv6 BGP peer/peer group as the source interface for establishing a TCP connection.
Note that:
To establish multiple BGP connections to a BGP router, you need to specify on the local router the respective source interfaces for establishing TCP connections to the peers on the peering BGP router; otherwise, the local BGP router may fail to establish TCP connections to the peers when using the outbound interfaces of the best routes as the source interfaces.
Examples
# Specify loopback 0 as the source interface for routing updates 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 connect-interface loopback 0
5.1.38 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
Parameters
ipv6-group-name: Name of an IPv6 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 a default route.
By default, no default route is advertised to a peer/peer group.
Using this command does not require the default route available in the routing table. With this command used, the router sends the default route unconditionally to the peer/peer group with the next hop being itself.
Examples
# 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.39 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
Parameters
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).
You need create a peer/peer group before configuring a description for it.
Examples
# Configure the description for 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.40 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
Parameters
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 the EBGP connection to a peer/peer group indirectly connected.
Use the undo peer ebgp-max-hop command to remove the configuration.
By default, this feature is disabled.
You can use the argument hop-count to specify the maximum router hops of the EBGP connection.
Examples
# 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.41 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
Parameters
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.
Examples
# Configure a fake AS number of 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.42 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
Parameters
ipv6-group-name: Name of an IPv6 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.
Examples
# 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.43 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
Parameters
ipv6-group-name: Name of an IPv6 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 configured peer group.
Use the undo peer group command to delete a specified peer from a peer group.
By default, the peer does not belong to any peer group.
Examples
# Create a peer group named 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.44 peer ignore
Syntax
peer { ipv6-group-name | ipv6-address } ignore
undo peer { ipv6-group-name | ipv6-address } ignore
View
IPv6 address family view
Parameters
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 the session to 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 the active session(s) with the specified peer or peer group and clears all the related routing information. For a peer group, this means all the sessions with the peer group will be tore down.
Examples
# Terminate the session with 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.45 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
Parameters
ipv6-group-name: Name of an IPv6 peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
ipv6-prefix-name: 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 specify an IPv6 prefix list to filter routes incoming from or outgoing 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 for filtering.
Examples
# Reference the IPv6 prefix list list 1 to filter routes outgoing to peer 1:2::3:4.
<Sysname> system-view
[Sysname] ip ipv6-prefix list1 permit 2002:: 64
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 ipv6-prefix list1 export
5.1.46 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
Parameters
ipv6-group-name: Name of an IPv6 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, including 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 enabled.
Examples
# Save 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.47 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
Parameters
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 enable the logging of session state and event information of a specified peer or peer group.
Use the undo peer log-change command to remove the configuration.
The logging is enabled by default.
Examples
# Enable the logging of session state and event information 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 log-change
5.1.48 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
Parameters
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 configure the next hop of routes advertised to a peer/peer group as the local router.
Use the undo peer next-hop-local command to restore the default.
By default, the system sets the next hop of routes advertised to an EBGP peer/peer group to the local router, but does not set for routes outgoing to an IBGP peer/peer group.
Examples
# 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.49 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
Parameters
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.
By default, routes received from a peer or peer group have a preferred value of 0.
Routes learned from peers each have an initial preferred value. Among multiple routes to the same destination, the route with the biggest value is selected.
Note that:
If you both reference a routing policy and use the command peer { ipv6-group-name | ipv6-address } preferred-value value to set a preferred value for routes from a peer, the routing policy sets a non-zero preferred value for routes matching it. Other routes not matching the routing policy uses the value set with the command. If the preferred value in the routing policy is zero, the routes matching it will also use the value set with the command. For information about using a routing policy to set a preferred value, refer to the peer { ipv6-group-name | ipv6-address } route-policy route-policy-name { import | export } command and the apply preferred-value preferred-value command.
Examples
# 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.50 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
Parameters
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 configure IPv6 BGP updates to a peer/peer group to not carry private AS numbers.
Use the undo peer public-as-only command to allow IPv6 BGP updates to a peer/peer group to carry private AS numbers.
By default, BGP updates carry the private AS number.
The command does not take effect if the BGP update has both the public AS number and private AS number. The range of private AS number is from 64512 to 65535.
Examples
# Carry no private AS number in BGP 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.51 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
Parameters
ipv6-group-name: Name of an IPv6 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 route reflector and specify a peer/peer group as a client.
Use the undo peer reflect-client command to remove the configuration.
By default, neither route reflector nor client is configured.
Related commands: reflect between-clients, reflector cluster-id.
Examples
# Configure the local device as a route 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.52 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
Parameters
ipv6-group-name: Name of an IPv6 peer group, a string of 1 to 47 characters.
ipv6-address: IPv6 address of a peer.
limit: Specifies the upper limit of address prefixes that can be received from the peer or peer group. The limit is in the range 1 to 1024.
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 that can be received from a peer/peer group.
Use the undo peer route-limit command to restore the default.
By default, the router has no limit on prefixes from a peer/peer group.
The router will end the peer relation when the number of address prefixes received for the peer exceeds the limit.
Examples
# 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.53 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
Parameters
ipv6-group-name: Name of an IPv6 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 routing policy to routes from the peer (group).
export: Applies the routing policy to routes to the peer (group).
Description
Use the peer route-policy command to apply a routing policy to routes incoming from or outgoing to a peer or peer group.
Use the undo peer route-policy command to remove the configuration.
By default, no routing policy is specified for the peer (group).
Use of the peer route-policy command does not apply the if-match interface clause defined in the routing policy. Refer to Routing Policy Commands in the part discussing IPv4 routing for related information.
Examples
# Apply the 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.54 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
Parameters
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) from 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.
By default, the interval is 15 seconds for the IBGP peer, and 30 seconds for the EBGP peer.
Examples
# 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.55 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
Parameters
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 the AS number of a peer/peer group in the AS_PATH attribute.
Use the undo peer substitute-as command to remove the configuration.
The substitution is not configured by default.
Examples
# Substitute the local AS number for the 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.56 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
Parameters
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 21845.
holdtime: Specifies the holdtime in seconds, ranging from 3 to 65535.
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 with this command is preferred to the timer configured with the timer command.
l The holdtime interval must be at least three times the keepalive interval.
Related commands: timer.
Examples
# 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 keepalive 60 hold 180
5.1.57 preference
Syntax
preference { external-preference internal-preference local-preference | route-policy route-policy-name }
undo preference
View
IPv6 address family view
Parameters
external-preference: Preference of EBGP route learned from an EBGP peer, in the range 1 to 255.
internal-preference: Preference of IBGP route learned from an IBGP peer, in the range 1 to 255.
local-preference: Preference of IPv6 BGP local route, in the range 1 to 255.
route-policy-name: Routing policy name, a string of 1 to 19 characters. The routing policy can set a preference for routes passing it. The default value applies to the routes filtered out.
Description
Use the preference command to configure preferences for EBGP, IBGP, and local routes.
Use the undo preference command to restore the default.
The bigger the preference value is, the lower the preference is. The default values of external-preference, internal-preference and local-preference are 255, 255 and 130 respectively.
Examples
# 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.58 reflect between-clients
Syntax
reflect between-clients
undo reflect between-clients
View
IPv6 address family view
Parameters
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 are fully meshed, it is recommended to disable route reflection on the route reflector to reduce costs.
Related commands: reflector cluster-id, peer reflect-client.
Examples
# Enable route reflection between clients.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] reflect between-clients
5.1.59 reflector cluster-id
Syntax
reflector cluster-id cluster-id
undo reflector cluster-id
View
IPv6 address family view
Parameters
cluster-id: Specifies the cluster ID of the route reflector, an integer from 1 to 4294967295 (the system translates it into an IPv4 address) or an IPv4 address.
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, a route reflector uses its router ID as the cluster ID.
Usually, there is only one route reflector in a cluster, so the router ID of the route reflector identifies the cluster. If multiple route reflectors are configured to improve the stability of the network, you should use this command to configure the identical cluster ID for all the reflectors to avoid routing loops.
Related commands: reflect between-clients, peer reflect-client.
Examples
# Set 50 as the cluster ID for the route reflector, which is one of multiple route reflectors in the cluster.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] reflector cluster-id 50
5.1.60 refresh bgp ipv6
Syntax
refresh bgp ipv6 { ipv6-address | all | external | group ipv6-group-name | internal } { export | import }
View
User view
Parameters
ipv6-address: Soft-resets the connection with an IPv6 BGP peer.
all: Soft-resets all IPv6 BGP connections.
external: Soft-resets EBGP connections.
group ipv6-group-name: Soft-resets connections with a peer group. The name of the peer group is a string of 1 to 47 characters.
internal: Soft-resets IBGP connections.
export: Performs soft reset in outbound direction.
import: Performs soft reset in inbound direction.
Description
Use the refresh bgp ipv6 command to soft reset specified IPv6 BGP connections. With this feature, you can refresh the IPv6 BGP routing table and apply a new available policy without tearing down BGP connections.
To perform IPv6 BGP 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 use the peer keep-all-routes command on the local router to save all route updates before performing soft reset.
Examples
# Soft reset inbound IPv6 BGP connections.
<Sysname> refresh bgp ipv6 all import
5.1.61 reset bgp ipv6
Syntax
reset bgp ipv6 { as-number | ipv6-address [ flap-info ] | all | group ipv6-group-name | external | internal }
View
User view
Parameters
as-number: Resets the IPv6 BGP connections to peers in the specified AS.
ipv6-address: Resets the connection to the specified IPv6 BGP peer.
flap-info: Clears the history information of routing flaps.
all: Resets all IPv6 BGP connections.
group ipv6-group-name: Resets the connections to the specified IPv6 BGP peer group.
external: Resets all the EBGP connections.
internal: Resets all the IBGP connections.
Description
Use the reset bgp ipv6 command to reset specified IPv6 BGP connections.
Examples
# Reset all the IPv6 BGP connections.
<Sysname> reset bgp ipv6 all
5.1.62 reset bgp ipv6 dampening
Syntax
reset bgp ipv6 dampening [ ipv6-address prefix-length ]
View
User view
Parameters
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 dampened IPv6 BGP route information and release suppressed routes.
If no ipv6-address prefix-length is specified, all dampened IPv6 BGP route information will be cleared.
Examples
# Clear the dampened information of routes to 2345::/64 and release suppressed routes.
<Sysname> reset bgp ipv6 dampening 2345:: 64
5.1.63 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
Parameters
ipv6-address: Clears the flap statistics for the specified IPv6 address.
prefix-length: Prefix length of the address, in the range 1 to 128.
as-path-regexp: Clears the flap statistics for routes matching the AS path regular expression.
as-path-acl-number: Clears the flap statistics for routes matching the AS path ACL. The number is in the range 1 to 256.
Description
Use the reset bgp ipv6 flap-info command to clear IPv6 routing flap statistics.
If no parameters are specified, the flap statistics of all the routes will be cleared
Examples
# Clear the flap statistics of the routes matching AS path ACL 10.
<Sysname> system-view
[Sysname] ip as-path 10 permit ^100.*200$
[Sysname] quit
<Sysname> reset bgp ipv6 flap-info as-path-acl 10
5.1.64 router-id
Syntax
router-id router-id
undo router-id
View
BGP view
Parameters
router-id: Router ID in IP address format.
Description
Use the router-id command to specify a router ID for the router.
Use the undo router-id command to remove a router ID.
To run IPv6 BGP protocol, a router must have a router ID, an unsigned 32-bit integer and the unique ID of the router in the AS.
A router ID can be configured manually. If not, the system will select a router ID automatically from the current interfaces’ IPv4 addresses. The selection sequence is the highest IPv4 address of Loopback interfaces’ addresses, then the highest IPv4 address of physical interfaces’ addresses if no Loopback interfaces are configured.
Only when the interface with the router ID is removed or the manually configured router ID is removed, will the system select another Router ID. To improve network reliability, it is recommended to configure the IPv4 address of a loopback interface as the router ID.
Examples
# Specify the router ID of the router as 10.18.4.221.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] router-id 10.18.4.221
5.1.65 synchronization
Syntax
synchronization
undo synchronization
View
IPv6 address family view
Parameters
None
Description
Use the synchronization command to enable the synchronization between IPv6 BGP and IGP.
Use the undo synchronization command to disable the synchronization.
The feature is disabled by default.
With this feature enabled and when a non-BGP router is responsible for forwarding packets in an AS, IPv6 BGP speakers in the AS cannot advertise routing information to other ASs unless all routers in the AS know the latest routing information.
By default, upon receiving an IPv6 IBGP route, the BGP router only checks whether the next hop is reachable before advertisement. If synchronization is enabled, the IBGP route can be advertised to EBGP peers only when the route is also advertised by the IGP.
Examples
# Enable the route synchronization between IPv6 BGP and IGP.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] synchronization
5.1.66 timer
Syntax
timer keepalive keepalive hold holdtime
undo timer
View
IPv6 address family view
Parameters
keepalive: Keepalive interval in seconds, ranging from 1 to 21845.
holdtime: Holdtime interval in seconds, ranging from 3 to 65535.
Description
Use the timer command to specify IPv6 BGP 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 respectively.
Note that:
l Timer configured using the peer timer command is preferred to the timer configured using the timer command.
l The holdtime interval must be at least three times the keepalive interval.
l The configured timer applies to all the IPv6 BGP peers. It becomes valid only after the corresponding IPv6 BGP connections are reset.
Related commands: peer timer.
Examples
# 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.
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.
6.1 Routing Policy Common Configuration Commands
Refer to IPv4 routing commands for routing policy common configuration commands.
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
Parameters
ipv6-address: Next hop IPv6 address.
Description
Use the apply ipv6 next-hop command to apply a next hop to IPv6 routes.
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.
Using the apply ipv6 next-hop command to set a next hop when redistributing routes does not take effect.
Examples
# Create routing policy policy1 with node 10, matching mode permit. If a route matches AS path list 1, set next hop 3ff3:506::1 for it.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 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
Parameters
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 is specified, the statistics of all the IPv6 prefix lists will be displayed.
Examples
# Display the statistics of all the IPv6 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 the IPv6 prefix list |
Permitted |
Number of routes satisfying the match criterion |
Denied |
Number of routes not satisfying the match criterion |
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 lower limit prefix length |
Le |
less-equal, the upper limit prefix length |
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
Parameters
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 configure a destination, next hop or source address based match criterion for IPv6 routes.
Use the undo if-match ipv6 command to remove the match criterion.
The match criterion is not configured by default.
Examples
# Create a routing policy named policy1 with node 10, matching mode as permit. Define an if-match clause to permit 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
Parameters
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 a smaller index-number will be tested first.
permit: Specifies the matching mode for the IPv6 prefix list as permit, that is, if a route matches the IPv6 prefix list, it passes the IPv6 prefix list without needing to enter the next item for test. If not, it will enter the next item test.
deny: Specifies the matching mode for the IPv6 prefix list as deny, that is, if a route matches the IPv6 prefix list, the route neither passes the filter nor enters the next node for test; if not, the route will enter the next item test.
ipv6-address prefix-length: Specifies an IPv6 prefix and prefix length, with prefix-length being in the range 0 to 128. When specified as :: 0, it matches the default route.
greater-equal min-prefix-length: Greater than or equal to the minimum prefix length.
less-equal max-prefix-length: Less than or equal to the maximum prefix length.
The length relation is mask-length <= min-mask-length <= max-mask-length <= 128. 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 prefix list item.
Use the undo ip ipv6-prefix command to remove an IPv6 prefix list or an item.
No IPv6 prefix list is configured by default.
The IPv6 address prefix list is used to filter IPv6 addresses. It may have multiple items, and each of them specifies a range of IPv6 prefix. The filtering relation among items is logic OR, namely, a route passing an item will 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 must satisfy both of them.
If ipv6-address prefix-length is specified as :: 0, then only the default route matches.
If you want it to match all the routes, configure it as :: 0 less-equal 128.
Examples
# Permit 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
# Deny 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
Parameters
ipv6-prefix-name: IPv6 prefix list name, 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 is specified, the statistics of all IPv6 prefix lists will be cleared.
Examples
# Clear the statistics of IPv6 prefix list abc.
<Sysname> reset ip ipv6-prefix abc