- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DHCPv6 Commands
- 05-DNS Commands
- 06-IPv6 DNS Commands
- 07-NAT Commands
- 08-Adjacency Table Commands
- 09-Flow Classification Commands
- 10-IPv6 Basics Commands
- 11-IP Performance Optimization Commands
- 12-Basic IP Routing Commands
- 13-Static Routing Commands
- 14-IPv6 Static Routing Commands
- 15-GRE Commands
- 16-RIP Commands
- 17-RIPng Commands
- 18-Policy-Based Routing Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
14-IPv6 Static Routing Commands | 36.29 KB |
IPv6 static routing configuration commands
delete ipv6 static-routes all
Use delete ipv6 static-routes all to delete all IPv6 static routes.
Syntax
delete ipv6 static-routes all
Views
System view
Default command level
2: System level
Usage guidelines
When you use this command, the system prompts you to confirm the operation before deleting all the IPv6 static routes.
The undo ipv6 route-static command deletes one IPv6 static route, and the delete ipv6 static-routes all command deletes all IPv6 static routes, including the default route.
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
Related commands
· display ipv6 routing-table
· ipv6 route-static
ipv6 route-static
Use ipv6 route-static to configure an IPv6 static route.
Use undo ipv6 route-static to remove an IPv6 static route.
Syntax
ipv6 route-static ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] | next-hop-address } [ preference preference-value ]
undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number [ next-hop-address ] | next-hop-address ] [ preference preference-value ]
Default
No IPv6 static route is configured.
Views
System view
Default command level
2: System level
Parameters
ipv6-address prefix-length: Specifies the IPv6 address and prefix length.
interface-type interface-number: Specifies the output interface by its type and number. If the output interface is a nonbroadcast multiaccess (NBMA) interface or broadcast interface (for example, an Ethernet interface, a virtual template interface, or a VLAN interface), and not a point-to-point (P2P) interface, the next hop address must be specified.
next-hop-address: Specifies the next hop IPv6 address.
preference preference-value: Specifies the route preference value in the range of 1 to 255. The default is 60.
Usage guidelines
An IPv6 static route that has the destination address configured as ::/0 (a prefix length of 0) is the IPv6 default route. If the destination address of an IPv6 packet does not match any entry in the routing table, the packet is forwarded through the default route.
Examples
# Configure an IPv6 static route, with the destination address 1:1:2::/64 and next hop 1:1:3::1.
<Sysname> system-view
[Sysname] ipv6 route-static 1:1:2:: 64 1:1:3::1
Related commands
· delete ipv6 static-routes all
· display ipv6 routing-table