- Table of Contents
-
- 07-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-Guard Route Commands
- 09-IPv6 Static Routing Commands
- 10-RIPng Commands
- 11-OSPFv3 Commands
- 12-IPv6 IS-IS Commands
- 13-IPv6 BGP Commands
- 14-IPv6 Policy-Based Routing Commands
- 15-Routing Policy Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
09-IPv6 Static Routing Commands | 63.87 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 IPv6 static routes of the public network are deleted.
Description
Use the delete ipv6 static-routes all command to delete all IPv6 static routes.
When you use this command, the system will prompt 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.
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&<1-6> 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&<1-6> 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: Interface type and interface number of the output interface. 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 a destination MPLS L3VPN. d-vpn-instance-name is a case-sensitive string of 1 to 31 characters. If a destination VPN is specified, packets will search for the outgoing interface in the destination VPN based on the specified next hop (IPv6 address) for the IPv6 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 a source MPLS L3VPN. s-vpn-instance-name is a case-sensitive string of 1 to 31 characters. &<1-6> indicates the argument before it can be entered up to six times. Each VPN has its own routing table, and the configured IPv6 static route is installed in the routing tables of the specified VPNs.
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.
By default, no IPv6 static route is configured.
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.
When you configure static routes, you can configure either the outgoing interface or the next hop address depending on the situations:
· If the output interface is a broadcast interface or an NBMA 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