R3204P16-HP Load Balancing Module Network Management Command Reference-6PW101

108
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: display ip routing-table and ip route-static.
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 | interface-type interface-number
[ 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 ]] [ preference preference-value ]
View
System view
Default level
2: System level
Parameters
dest-address: Destination IP address of the static route, in dotted decimal notation.
mask: Mast of the IP address, in dotted decimal notation.
mask-length: Mask length, in the range 0 to 32.
next-hop-address: IP address of the next hop, in dotted decimal notation.
interface-type interface-number: Specifies the outbound interface by its type and number. If the outbound
interface is a broadcast interface, such as an Ethernet interface, a virtual template or a VLAN interface,
the next hop address must be specified.
preference preference-value : Specifies the preference of the static route, which is in the range of 1 to 255
and defaults to 60.
tag tag-value: Sets a tag value for the static route from 1 to 4294967295. The default is 0. Tags of routes
are used in routing policies to control routing.
description description-text: Configures a description for the static route, which consists of 1 to 60
characters, including special characters like space, but excluding ?.
track track-entry-number: Associates the static route with a track entry. Use the track-entry-number
argument to specify a track entry number, in the range 1 to 1024.
Description
Use the ip route-static command to configure a unicast static route.
Use the undo ip route-static command to delete a unicast static route.