Creating IPv6 Static Routes
Context
Specify the outbound interface for a P2P interface.
Specify the next hop for an NBMA interface.
Specify the outbound interface for a broadcast interface. If the next hop address is also specified, it does not need to be a link-local address.
If you specify the same preference for IPv6 static routes to the same destination, load balancing among these routes is implemented. If you specify different preferences for the IPv6 static routes, route backup among the routes is implemented.
If the destination IP address and mask are set to all 0s, an IPv6 static default route is configured. By default, no IPv6 static default route is configured.
Before configuring IPv6 routes with prefixes longer than 64 bits on CE12800E that has the FD-X series cards installed, run the assign forward ipv6 longer-mask resource command to specify the number of IPv6 addresses and routes with prefixes longer than 64 bits supported by the switch.
Procedure
- Run system-view
The system view is displayed.
- Configure IPv6 static routes.
Run ipv6 route-static dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | vpn-instance vpn-instance-name nexthop-ipv6-address | nexthop-ipv6-address } [ preference preference | tag tag ] * [ bfd enable | track { bfd-session cfg-name | nqa admin-name test-name } ] [ inter-protocol-ecmp ][ description text ]
An IPv6 static route is configured on the public network.
Run ipv6 route-static dest-ipv6-address prefix-length [ vpn-instance vpn-instance-name ] nexthop-ipv6-address [ preference preference | tag tag ] * inherit-cost [ inter-protocol-ecmp ] [ description text ]
An IPv6 static route is configured on the public network.
Run ipv6 route-static dest-ipv6-address prefix-length vpn-instance vpn-instance-name [ preference preference | tag tag ] [ description text ]
An IPv6 static route is configured on the public network.
Run ipv6 route-static vpn-instance vpn-source-name dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | vpn-instance vpn-destination-name nexthop-ipv6-address | nexthop-ipv6-address [ public ] } [ preference preference | tag tag ] * [ bfd enable | track { bfd-session cfg-name | nqa admin-name test-name } ] [ inter-protocol-ecmp ] [ description text ]
An IPv6 static route is configured in a VPN instance.
Run ipv6 route-static vpn-instance vpn-source-name dest-ipv6-address prefix-length { vpn-instance vpn-destination-name | public } [ preference preference | tag tag ] [ description text ]
An IPv6 static route is configured in a VPN instance.
- Run ipv6 route-static vpn-instance vpn-source-name dest-ipv6-address prefix-length { vpn-instance vpn-destination-name dest-ipv6-address | dest-ipv6-address [ public ] } [ preference preference | tag tag ] * inherit-cost [ inter-protocol-ecmp ] [ description text ]
An IPv6 static route is configured in a VPN instance.
- Run commit
The configuration is committed.