SROS Command Line Interface Reference Guide

Global Configuration Mode Command Set

 

 

ip route <ip address> <subnet mask> <interface or ip address>

Use the ip route command to add a static route to the route table. This command can be used to add a default route by entering ip route 0.0.0.0 0.0.0.0 and specifying the interface or IP address. Use the no form of this command to remove a configured static route.

Syntax Description

<ip address>

Specifies the network address (in dotted decimal notation) to add to the route

 

table.

<subnet mask>

Specifies the subnet mask (in dotted decimal notation) associated with the listed

 

network IP address.

<interface or ip address>Specifies the gateway peer IP address (in dotted decimal notation) or a configured interface in the unit. Use the ? command to display a complete list of interfaces.

Default Values

By default, there are no configured routes in route table.

Command Modes

(config)#

Global Configuration Mode required

Usage Examples

The following example adds a static route to the 10.220.0.0/16 network through the next-hop router 192.22.45.254 and a default route to 175.44.2.10:

(config)#ip route 10.220.0.0 255.255.0.0 192.22.45.254 (config)#ip route 0.0.0.0 0.0.0.0 175.44.2.10

5991-2114

© Copyright 2005 Hewlett-Packard Development Company, L.P.

302

Page 302
Image 302
HP 7000 dl Router manual Ip route ip address subnet mask interface or ip address