SROS Command Line Interface Reference Guide

Global Configuration Mode Command Set

 

 

ip default-gateway <ip address>

Use the ip default-gatewaycommand to specify a default gateway if (and only if) IP routing is NOT enabled on the unit. Use the ip route command to add a default route to the route table when using IP routing functionality. See ip route <ip address> <subnet mask> <interface or ip address> on page 302 for more information.

Syntax Description

<ip address>

Specifies the default gateway IP address in the form of dotted decimal notation

 

(example: 192.22.71.50).

Default Values

By default, there is no configured default-gateway.

Command Modes

(config)#

Global Configuration Mode required

Functional Notes

Only use the ip default-gatewaywhen IP routing is disabled on the router. For all other cases, use the ip route 0.0.0.0 0.0.0.0 <ip address> command.

Usage Examples

The following example disables IP routing and configures a default gateway for 192.22.71.50:

(config)#no ip routing

(config)#ip default gateway 192.22.71.50

5991-2114

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

263

Page 263
Image 263
HP 7000 dl Router manual Ip default-gateway ip address, Config#no ip routing Config#ip default gateway