R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

29
Static routing configuration commands
delete static-routes all
Use delete static-routes all to delete all static routes.
Syntax
delete [ vpn-instance vpn-instance-name ] static-routes all
Views
System view
Default command 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 on the public network are deleted.
Usage guidelines
When you use this command, the system prompts you to confirm the operation before deleting all static
routes.
The undo ip route-static command removes one static route; the delete static-routes all command
removes all static routes, including the default route.
Examples
# Delete all static routes on the router.
<Sysname> system-view
[Sysname] delete static-routes all
This will erase all ipv4 static routes and their configurations, you must reconfigure all
static routes
Are you sure?[Y/N]:y
Related commands
display ip routing-table
ip route-static
ip route-static
Use ip route-static to configure a unicast static route.
Use undo ip route-static to delete a unicast static route.
Syntax
ip route-static dest-address { mask | mask-length } { next-hop-address [ bfd control-packet [ bfd-source
ip-address ] | track track-entry-number ] | interface-type interface-number [ next-hop-address ] [ bfd
{ control-packet [ bfd-source ip-address ] | echo-packet } ] | vpn-instance d-vpn-instance-name
next-hop-address [ track track-entry-number ] } [ preference preference-value ] [ tag tag-value ]
[ permanent ] [ description description-text ]