3 ip default-gateway, Example, Syntax – PLANET WGSD-1022 User Manual

Page 201: Default configuration, Command mode, User guidelines

Advertising
background image

management station;

ƒ The DHCP server may be down, which would result in IP address retrieval failure, and possible

loss of connectivity to the management station.

Example

The following example acquires an IP address from DHCP.

Console (config)# interface vlan 1

Console (config-if)# ip address dhcp

5.10.3 ip default-gateway

The ip default-gateway command defines a default gateway (router). To remove the default gateway

use the no form of this command.

Syntax

ip default-gateway ip-address

no ip default-gateway

ƒ ip-address — Valid IP address that specifies the IP address of the default gateway.

Default Configuration

No default gateway is defined.

Command Mode

Interface configuration

User Guidelines

The setting of the default gateway on the out-of-band port must not precede the assignment of the IP

address.

Always assign the IP address to the out-of-band port first, and then set the default gateway.

Example

The following example defines an ip default gateway.

Console(config)# ip default-gateway 192.168.1.1

Advertising