- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-IPv6 Static Routing Commands | 30.73 KB |
Table of Contents
1 IPv6 Static Routing Configuration Commands
IPv6 Static Routing Configuration Commands
l The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.
l Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.
l The interface types and the number of interfaces vary by AP model.
l The term router in this document refers to both routers and APs configured with routing capabilities.
l Support for IPv6 static routing commands depends on the AP model.
IPv6 Static Routing Configuration Commands
ipv6 route-static
Syntax
For a broadcast interface (Ethernet interface, VLAN interface), or NBMA interface (X25 or frame relay interface):
ipv6 route-static ipv6-address prefix-length nexthop-address [ preference preference-value ]
undo ipv6 route-static ipv6-address prefix-length [ nexthop-address ] [ preference preference-value ]
View
System view
Default Level
2: System level
Parameters
ipv6-address prefix-length: IPv6 address and prefix length.
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.
While configuring a static route, specify the next hop address as needed. If the output interface of the static route is a broadcast interface, such as an Ethernet interface or a VLAN interface, you must specify the next hop address.
Related commands: display ipv6 routing-table (IP Routing Basics in the Layer 3 – IP Routing Command Reference).
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