Configuring an IPv6 static route
Before you configure an IPv6 static route, complete the following tasks:
Configure parameters for the related interfaces.
Configure link layer attributes for the related interfaces.
Make sure the neighboring nodes can reach each other.
To configure an IPv6 static route:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure an IPv6 static route. | ipv6 route-static ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] | next-hop-address } [ permanent ] [ 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. |
4. (Optional.) Delete all IPv6 static routes, including the default route. | delete ipv6 static-routes all | The undo ipv6 route-static command deletes one IPv6 static route. |