- Table of Contents
-
- 03-IP Routing Volume
- 00-IP Routing Volume Organization
- 01-IP Routing Table Display Commands
- 02-Static Routing Commands
- 03-RIP Commands
- 04-OSPF Commands
- 05-IS-IS Commands
- 06-BGP Commands
- 07-IPv6 Static Routing Commands
- 08-IPv6 RIPng Commands
- 09-IPv6 OSPFv3 commands
- 10-IPv6 IS-IS Commands
- 11-IPv6 BGP Commands
- 12-Route Policy Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-IPv6 Static Routing Commands | 28.87 KB |
Table of Contents
1 IPv6 Static Routing Configuration Commands
IPv6 Static Routing Configuration Commands
l Throughout this chapter, the term “router” refers to a router in a generic sense or a Layer 3 switch running routing protocols.
l EA boards (such as LSQ1GP12EA and LSQ1TGX1EA) do not support IPv6 features.
IPv6 Static Routing Configuration Commands
delete ipv6 static-routes all
Syntax
delete ipv6 static-routes all
View
System view
Default Level
2: System level
Parameters
None
Description
Use the delete ipv6 static-routes all command to delete all static routes including the default route.
When using this command, you will be prompted whether to continue the deletion and only after you confirm the deletion will the static routes be deleted.
Related commands: display ipv6 routing-table, ipv6 route-static.
Examples
# Delete all IPv6 static routes.
<Sysname> system-view
[Sysname] delete ipv6 static-routes all
This will erase all ipv6 static routes and their configurations, you must reconfigure all static routes
Are you sure?[Y/N]Y
ipv6 route-static
Syntax
ipv6 route-static ipv6-address prefix-length [ interface-type interface-number ] nexthop-address [ preference preference-value ]
undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number ] [ nexthop-address ] [ preference preference-value ]
View
System view
Default Level
2: System level
Parameters
ipv6-address prefix-length: IPv6 address and prefix length.
interface-type interface-number: Interface type and interface number of the output interface.
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.
Related commands: display ipv6 routing-table, delete ipv6 static-routes all.
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