IP Address Commands

If the device is configured to obtain its IP address from a DHCP server, it sends a DHCPDISCOVER message to provide information about itself to the DHCP server on the network.

If the ip address dhcp command is used with or without the optional keyword, the DHCP option 12 field (host name option) is included in the DISCOVER message. By default, the specified DHCP host name is the globally configured host name of the device. However, the ip address dhcp hostname host-name command can be used to place a different host name in the DHCP option 12 field.

The no ip address dhcp command deconfigures any IP address that was acquired, and sends a DHCPRELEASE message.

Example

The following example acquires an IP address for Ethernet port 16 from DHCP..

Console(config)# interface ethernet ext.16

Console(config-if)# ip address dhcp

ip default-gateway

The ip default-gatewayGlobal Configuration mode command defines a default gateway (device). To restore the default configuration, use the no form of this command.

Syntax

ip default-gateway ip-address

no ip default-gateway

Parameters

ip-address— Specifies the valid IP address of the currently defined default gateway.

Default Configuration

No default gateway is defined.

Command Mode

Global Configuration mode

Intel® Blade Server Ethernet Switch Modules SBCEGBESW1 and SBCEGBESW10 CLI Guide

123

Page 139
Image 139
Intel SBCEGBESW10 CLI manual Ip default-gateway ip-address No ip default-gateway, No default gateway is defined