- Table of Contents
-
- 05-Network Connectivity Configuration Guide
- 00-Preface
- 01-MAC address table configuration
- 02-Ethernet link aggregation configuration
- 03-VLAN configuration
- 04-Loop detection configuration
- 05-Spanning tree configuration
- 06-LLDP configuration
- 07-Layer 2 forwarding configuration
- 08-VLAN termination configuration
- 09-PPP configuration
- 10-L2TP configuration
- 11-ARP configuration
- 12-IP addressing configuration
- 13-DHCP configuration
- 14-DHCPv6 configuration
- 15-DNS configuration
- 16-NAT configuration
- 17-IP performance optimization configuration
- 18-IPv6 basics configuration
- 19-GRE configuration
- 20-Tunneling configuration
- 21-Basic IP routing configuration
- 22-IP forwarding basics configuration
- 23-Static routing configuration
- 24-IPv6 static routing configuration
- 25-Policy-based routing configuration
- 26-IPv6 policy-based routing configuration
- 27-RIP configuration
- 28-RIPng configuration
- 29-Multicast overview
- 30-IGMP snooping configuration
- 31-MLD snooping configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
24-IPv6 static routing configuration | 53.39 KB |
Configuring IPv6 static routing
Configuring an IPv6 static route
Display and maintenance commands for IPv6 static routing
Configuring an IPv6 default route
Configuring IPv6 static routing
About IPv6 static routing
Static routes are manually configured and cannot adapt to network topology changes. If a fault or a topological change occurs in the network, the network administrator must modify the static routes manually. IPv6 static routing works well in a simple IPv6 network.
Configuring an IPv6 static route
1. Enter system view.
system-view
2. Configure an IPv6 static route.
ipv6 route-static ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] | next-hop-address } [ permanent | track track-entry-number ] [ preference preference ] [ tag tag-value ] [ description text ]
By default, no IPv6 static route is configured.
3. (Optional.) Set the default preference for IPv6 static routes.
ipv6 route-static default-preference default-preference
The default setting is 60.
Deleting IPv6 static routes
About this task
To delete an IPv6 static route, use the undo ipv6 route-static command. To delete all IPv6 static routes including the default route, use the delete ipv6 static-routes all command.
Procedure
1. Enter system view.
system-view
2. Delete all IPv6 static routes, including the default route.
delete ipv6 static-routes all
CAUTION: This command might interrupt network communication and cause packet forwarding failure. Before executing the command, make sure you fully understand the potential impact on the network. |
Display and maintenance commands for IPv6 static routing
Execute display commands in any view.
Task |
Command |
Display IPv6 static route next hop information. |
display ipv6 route-static nib [ nib-id ] [ verbose ] |
Display IPv6 static routing table information. |
display ipv6 route-static routing-table [ ipv6-address prefix-length ] |
Display IPv6 static route information. |
display ipv6 routing-table protocol static [ inactive | verbose ] |
For more information about the display ipv6 routing-table protocol static [ inactive | verbose ] command, see basic IP routing in Network Connectivity Command Reference.
Configuring an IPv6 default route
A default IPv6 route is used to forward packets that match no entry in the routing table.
A default IPv6 route can be configured in either of the following ways:
· The network administrator can configure a default route with a destination prefix of ::/0. For more information, see "Configuring IPv6 static routing."
· Some dynamic routing protocols (such as RIPng) can generate a default IPv6 route. For example, an upstream router running a dynamic routing protocol can generate a default IPv6 route and advertise it to other routers. These routers install the default IPv6 route with the next hop being the upstream router. For more information, see the respective chapters on those routing protocols in this configuration guide.