R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
189
Static routing configuration commands
NOTE:
The term
router
in this document refers to a network device running routing protocols.
delete static-routes all
Syntax
delete [ vpn-instance vpn-instance-name ] static-routes all
View
System view
Default level
2: System level
Parameters
vpn-instance-name: Name of a VPN instance, a string of 1 to 31 case-sensitive characters.
Description
Use the delete static-routes all command to delete all static routes.
When you use this command to delete static routes, the system will prompt you to confirm the operation
before deleting all the static routes.
Related commands: ip route-static and display ip routing-table.
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
ip route-static
Syntax
ip route-static dest-address { mask | mask-length } { next-hop-address [ track track-entry-number ] |
interface-type interface-number [ next-hop-address ] | vpn-instance d-vpn-instance-name
next-hop-address [ track track-entry-number ] } [ preference preference-value ] [ tag tag-value ]
[ description description-text ]
undo ip route-static dest-address { mask | mask-length } [ next-hop-address | interface-type
interface-number [ next-hop-address ] | vpn-instance d-vpn-instance-name next-hop-address ]
[ preference preference-value ]