Requirement:
ArubaOS-Switch
Solution:In the following examples, switch Rack2sw1 is configured as a DHCP client, and switch Rack2sw2 is configured as a DHCP server.
Configuration:
---------- Switch Rack2sw2 Configuration ----------
Rack2sw2(config)# dhcp-server pool "Vlan-12"
Rack2sw2(Vlan-12)# default-router "192.168.12.2"
Rack2sw2(Vlan-12)# lease 00:02:00
Rack2sw2(Vlan-12)# network 192.168.12.0 255.255.255.0
Rack2sw2(Vlan-12)# range 192.168.12.100 192.168.12.150
Rack2sw2(config)# dhcp-server enable
Rack2sw2(config)# vlan 12 ip address 192.168.12.2/2
Rack2sw2(config)# vlan 12 dhcp-server
Rack2sw2(config)# vlan 12 tagged trk21
---------- Switch Rack2sw1 Configuration ----------
Rack2sw1(config)# vlan 12 tagged trk12
Rack2sw1(config)# vlan 12 ip address dhcp-bootp
Verification
---------- Switch Rack2sw1 Verification ----------
Rack2sw1# show vlan port trk12 detail
Status and Counters - VLAN Information - for ports Trk12
VLAN ID Name | Status Voice Jumbo Mode
------- ---------------------------- + ---------- ----- ----- --------
1 DEFAULT_VLAN | Port-based No No Untagged
12 VLAN12 | Port-based No No Tagged
Rack2sw1# sho ip
Internet (IP) Service
IP Routing : Enabled
Default TTL : 64
Arp Age : 20
Domain Suffix :
DNS server :
| Proxy ARP
VLAN | IP Config IP Address Subnet Mask Std Local
-------------------------- + ---------- --------------- --------------- ----- -----
DEFAULT_VLAN | Disabled
VLAN12 | DHCP/Bootp 192.168.12.100 255.255.255.0 No No
---------- Switch Rack2sw2 Verification ----------
Rack2sw2# show vlan port trk21 detail
Status and Counters - VLAN Information - for ports Trk21
VLAN ID Name | Status Voice Jumbo Mode
------- -------------------------- + ---------- ----- ----- --------
1 DEFAULT_VLAN | Port-based No No Untagged
12 VLAN12 | Port-based No No Tagged
Rack2sw2# show dhcp-server binding
DHCP Server Bindings
Pool : Vlan-12
IP Address Hardware Address Lease Expiration Type
---------------- ---------------- ------------------------------ ----------
192.168.12.100 2c59e5-5f6f00 Jan 17 1990 07:30:50 Dynamic