<br>
Here are the commands to configure the DHCP client with a VLAN in the EXOS switch.
<br>
## Option 1. enable dhcp vlan
Enable DHCP on a VLAN to obtain an IP address for the VLAN from a DHCP server.
If the IPv4/IPv6 keyword is not specified, IPv4 is taken as default for the mentioned VLAN.
<br>
- Command syntax:
```
enable dhcp [ipv4 | ipv6] [vlan_name | all]
```
Example:
```
enable dhcp vlan Default
enable dhcp ipv6 vlan Default
```
You may want to enable DHCP for the Management VLAN as below.
```
enable dhcp vlan Mgmt
enable dhcp ipv6 vlan Mgmt
```
If you want to enable DHCP for all VLANs, use the following command.
```
enable dhcp vlan all
```
<br>
## Option 2. enable dhcp ports vlan
Enable DHCP on a specific port or a range of ports in a VLAN.
<br>
- Command syntax:
```
enable dhcp ports port_list vlan vlan_name
```
Example:
```
enable dhcp ports 48 vlan Default
enable dhcp ports 47-48 vlan Default
```
<br>
### Supported EXOS version
This command was first available in ExtremeXOS 10.1.
This command was modified in ExtremeXOS 15.6 to include the ipv4 and ipv6 keywords.
<br>
## References
[ExtremeXOS 30.1 - Extreme Networks](https://www.extremenetworks.com/support/documentation/extremexos-30-1/)
<br>
## Links
[[_MOC_2_Network]]
[Extreme Switch - How to configure DHCP Server in EXOS | AnalysisMan](https://www.analysisman.com/2020/09/extreme-exos-dhcp-server.html)
<br>