- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-Basic IP Routing Commands
- 02-Static Routing Commands
- 03-IPv6 Static Routing Commands
- 04-IP Addressing Commands
- 05-IPv6 Basics Commands
- 06-DHCP Commands
- 07-DHCPv6 Commands
- 08-DNS Commands
- 09-IPv6 DNS Commands
- 10-IP Performance Optimization Commands
- 11-ARP Commands
- 12-IP Forwarding Basics Commands
- 13-NAT Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
03-IPv6 Static Routing Commands | 45.76 KB |
ipv6 route-static
Use ipv6 route-static to configure an IPv6 static route.
Use undo ipv6 route-static to remove an IPv6 static route.
Syntax
ipv6 route-static ipv6-address prefix-length next-hop-address [ preference preference-value ]
undo ipv6 route-static ipv6-address prefix-length next-hop-address [ preference preference-value ]
Default
No IPv6 static route is configured.
Views
System view
Default command level
2: System level
Parameters
ipv6-address prefix-length: IPv6 address and prefix length.
next-hop-address: Next hop IPv6 address.
preference preference-value: Specifies the route preference value in the range of 1 to 255. The default is 60.
Usage guidelines
An IPv6 static route that has the destination address configured as ::/0 (a prefix length of 0) is the IPv6 default route. If the destination address of an IPv6 packet does not match any entry in the routing table, the packet is forwarded through the default route.
Examples
# Configure an IPv6 static route, with the destination address 1:1:2::/64 and next hop 1:1:3::1.
<Sysname> system-view
[Sysname] ipv6 route-static 1:1:2:: 64 1:1:3::1
Related commands
display ipv6 routing-table