To do…

Use the command…

Remarks

 

 

Configure the VLAN

 

Required

 

 

interface to obtain IP

ip address { bootp-alloc

By default, no IP address is

 

 

address through DHCP or

dhcp-alloc }

configured for the VLAN

 

 

BOOTP

 

interface.

 

 

 

 

 

 

 

 

 

 

 

Currently, the device operating as a DHCP client can use an IP address for no more than 24 days; that is, it can obtain a lease with 24 days at most even if the DHCP server assigns a lease with more than 24 days.

DHCP Client Configuration Example

Network requirements

As shown in Figure 4-1, using DHCP, VLAN-interface 1 of Switch A is connected to the LAN to obtain an IP address from the DHCP server.

Figure 4-1A DHCP network (Switch A serving as a DHCP client)

DHCP Client WINS server

DHCP Server

Vlan-interface1

 

Switch A

DNS server

DHCP Client

Configuration procedure

The following describes only the configuration on Switch A serving as a DHCP client.

# Configure VLAN-interface 1 to dynamically obtain an IP address by using DHCP.

<SwitchA> system-view

[SwitchA] interface vlan-interface 1

[SwitchA-Vlan-interface1] ip address dhcp-alloc

4-2

Page 341
Image 341
3Com WX3000 operation manual Dhcp Client Configuration Example, Ip address bootp-alloc, Dhcp-alloc