NSX-T – Configuring DHCP
I am preparing my lab for testing VMware Telco Cloud Platform with Tanzu Kubernetes Grid . One of the networking requirements is a DHCP service for the Tanzu Kubernetes Grid management networks.
I will be utilizing NSX-T to provide the DHCP service for TKG.
NSX-T supports the following types of DHCP configuration on a segment:
- Local DHCP server
- Gateway DHCP server
- DHCP Relay
In the lab I will be using a Local DHCP server, which will provide a dynamic IP assignment service only to the VMs that are attached to the segment.
NSX-T DHCP Server Profile Configuration
Add DHCP Profile, select the profile type as DHCP Server. Provide a Server IP address in CIDR format(The DHCP server IP address must not overlap with the IP addresses in the DHCP ranges), Lease time and select the Edge cluster where the DHCP service will run:
Create a new segment or edit an existing segment. The Segment can be overlay or VLAN. Provide a name for the segment, select the gateway that the segment will be attached too, the transport zone and provide the subnet:
- Click on SET DHCP CONFIG, select local DHCP Server as the DHCP Type, Select the DHCP Profile that we create, provide the DHCP Server address and DHCP Ranges:
- Attach a VM that has been configured to get its IP from DHCP to the segment and confirm that it gets an IP from DHCP:
Thanks for reading.