Command Reference Guide
3Com Router 5000 Family and Router 6000 Family ip route-static detect-group ● 223
Command Reference
ip route-static detect-group
Purpose Use the ip route-static detect-group command to configure a static route and
reference a detect group.
Syntax ip route-static ip-address { mask | mask-length } { interface-type
interface-number | nexthop } [ preference preference-value ]
detect-group group-number
Parameters ip-address
Destination IP address of the static route, in the dotted
decimal format.
mask
Subnet mask of the destination IP address.
mask-length
Length of the subnet mask, that is, the number of the
consecutive 1s in the subnet mask.
interface-type
Type of the outbound interface.
interface-number
Number of the outbound interface.
nexthop
IP address of the next hop, in the dotted decimal
format.
preference-value
Preference value of the route. Valid values are 1 to
255.
group-number
Number of the detect group. Valid values are 1 to 100.
Example Configure a static route to 192.168.0.5/24 with 192.168.0.2 as the next hop and
reference detect group 10. This static route is valid only when detect group 10 is
reachable.
<3Com> system-view
System View: return to User View with Ctrl+Z.
[3Com] ip route-static 192.168.0.5 24 192.168.0.2 detect-group 10
View This command can be used in the following views:
■ System view
Description Use the ip route-static detect-group command to configure a static route
and reference a detect group. Whether the static route is valid depends on the
reachability of the referenced detect group:
■ If it is reachable, the static route is valid.
■ If it is unreachable, the static route is invalid.
To remove the auto detect function from the static route, you must first use the
undo ip route-static command to remove the static route and then
reconfigure it.