beautypg.com

Ip address dhcp – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 1705

background image

Dynamic Host Configuration Protocol (DHCP) Commands

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

64.7

ip address dhcp

This command activates the DHCP client on the interface you are configuring. This allows
the interface to use the DHCP client to obtain its IP configuration details from a DHCP
server on its connected network.

The client-id and hostname parameters are identifiers that you may want to set in order
to interoperate with your existing DHCP infrastructure. If neither option is needed, then
the DHCP server uses the MAC address field of the request to identify the host.

The DHCP client supports the following IP configuration options:

Option 1 - the subnet mask for your device.

Option 3 - a list of default routers.

Option 51 - lease expiration time.

The no variant of this command stops the interface from obtaining IP configuration details
from a DHCP server.

Syntax

ip address dhcp [client-id <interface>] [hostname <hostname>]

no ip address dhcp

Examples

To set the interface vlan10 to use DHCP to obtain an IP address, use the commands:

To stop the interface vlan10 from using DHCP to obtain its IP address, use the
commands:

Related Commands

ip address

Validation

Commands

show running-config
show ip interface

Parameter

Description

The name of the interface you are activating the DHCP client
on. If you specify this, then the MAC address associated with
the specified interface is sent to the DHCP server in the
optional identifier field.
Default: no default

The hostname for the DHCP client on this interface. Typically
this name is provided by the ISP.
Default: no default

awplus#

configure terminal

awplus(config)#

interface vlan10

awplus(config-if)#

ip address dhcp

awplus#

configure terminal

awplus(config)#

interface vlan10

awplus(config-if)#

no ip address dhcp