- Table of Contents
-
- 06-Layer 3 - IP Routing Command Reference
- 00-Preface
- 01-Basic IP Routing Commands
- 02-Static Routing Commands
- 03-RIP Commands
- 04-OSPF Commands
- 05-IS-IS Commands
- 06-BGP Commands
- 07-Policy-Based Routing Commands
- 08-IPv6 Static Routing Commands
- 09-RIPng Commands
- 10-OSPFv3 Commands
- 11-IPv6 IS-IS Commands
- 12-IPv6 BGP Commands
- 13-IPv6 Policy-Based Routing Commands
- 14-Routing Policy Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
08-IPv6 Static Routing Commands | 61.94 KB |
delete ipv6 static-routes all
Syntax
delete ipv6 [ vpn-instance vpn-instance-name ] static-routes all
View
System view
Default level
2: System level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, all static routes of the public network are deleted.
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: ipv6 route-static and display ipv6 routing-table.
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 [ next-hop-address ] | next-hop-address | vpn-instance d-vpn-instance-name nexthop-address } [ preference preference-value ]
undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number [ next-hop-address ] | next-hop-address | vpn-instance d-vpn-instance-name nexthop-address ] [ preference preference-value ]
ipv6 route-static vpn-instance s-vpn-instance-name ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] | nexthop-address [ public ] | vpn-instance d-vpn-instance-name nexthop-address } [ preference preference-value ]
undo ipv6 route-static vpn-instance s-vpn-instance-name ipv6-address prefix-length [ interface-type interface-number [ next-hop-address ] | nexthop-address [ public ] | vpn-instance d-vpn-instance-name 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: Specifies the output interface by its type and number. If the output interface is a non-P2P interface, such as an NBMA interface or broadcast interface (for example, an Ethernet interface, a virtual template interface, or a VLAN interface), the next hop address must be specified.
nexthop-address: Next hop IPv6 address.
vpn-instance d-vpn-instance-name: Specifies the name of the destination VPN, a case-sensitive string. If it is specified, packets will search for the outgoing interface based on the specified next hop (IPv6 address) for the static route.
preference preference-value: Specifies the route preference value, in the range of 1 to 255. The default is 60.
vpn-instance s-vpn-instance-name&<1-6>: Specifies the name of the source VPN, a case-sensitive string of 1 to 31 characters.
public: Specifies a next hop in the public network.
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.
Follow these guidelines to configure the output interface and/or the next hop address for a static route:
· If the output interface is a broadcast interface, such as an Ethernet interface, a VLAN interface, or an NBMA interface (such as an X.25 interface or frame relay interface), the next hop address must be specified. If both the output interface and the next hop must be specified, the next hop address must be a link-local address.
· If the output interface is a point-to-point interface, you can specify either the output interface or the next hop address, but not both.
Related commands: delete ipv6 static-routes all and display ipv6 routing-table.
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