Static routing 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
Predefined user roles
network-admin
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string
of 1 to 31 characters. Without this option, the command deletes all static routes for the public network.
Usage guidelines
When you use this command, the system will prompt you to confirm the operation before deleting all the
static routes.
To delete one static route, use the undo ip route-static command. To delete all static routes, including the
default route, use the delete static-routes all command.
Examples
# Delete all static routes.
<Sysname> system-view
[Sysname] delete static-routes all
Delete all IPv4 static routes. Continue?[Y/N]y
Related commands
ip route-static
ip route-static
Use ip route-static to configure a static route.
Use undo ip route-static to delete a static route.
Syntax
ip route-static dest-address { mask | mask-length } { next-hop-address [ bfd control-packet bfd-source
ip-address
[ next-hop-address ] [ backup-interface interface-type interface-number [ backup-nexthop
backup-nexthop-address ] [ permanent ] | bfd { control-packet | echo-packet } | permanent ] |
vpn-instance d-vpn-instance-name next-hop-address [ bfd control-packet bfd-source ip-address |
permanent | track track-entry-number ] } [ preference preference-value ] [ tag tag-value ] [ description
description-text ]
|
permanent
|
track
track-entry-number
]
26
|
interface-type
interface-number