Ip default-gateway – Dell PowerEdge M805 User Manual

Page 323

Advertising
background image

IP Addressing Commands

305

Syntax

ip address vlan vlanid

no ip address vlan

vlanid—vlan identification. (Range 1-4093)

Default Configuration

The default configuration value is 1.

Command Mode

Global Configuration mode

User Guidelines

This command has no user guidelines.

Example

The following example sets VLAN 5 as management VLAN.

console(config)#ip address vlan 5

ip default-gateway

Use the ip default-gateway command in Global Configuration mode to define a default gateway
(router).

Syntax

ip default-gateway ip-address

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

Default Configuration

No default gateway is defined.

Command Mode

Global Configuration mode

User Guidelines

IP address protocol should be set to "none" before setting the gateway.

Example

The following example defines ip default-gateway as 10.240.4.1.

console(config)#ip default-gateway 10.240.4.1

Advertising