DHCP Server – Who is Active?

In this article we shall look at a few simple commands to determine who is the active edge node for DHCP. Click on the link in your Alexa app, or read below


A question was recently posed regarding the level of control we have over the DHCP services, in NSX-T 2.4. Firstly, let’s look at the DHCP server profile setup in 2.4, see the screen shot below (link)

The DHCP server profile is what you apply to edge nodes, within your edge cluster, to instantiate the DHCP service. The key thing to note is that you have the ability to explicitly define a maximum of 2 edge nodes to run the service, and it’s probably a good idea to do this, so that it’s easier to support your environment.

Whilst this is fine how can you determine the active node? This is relatively simple, and determined using two commands.

  1. Run the command get dhcp servers status on one of your edge nodes. This will return the service ID for your dhcp instance

2. Run the command get locial-service state <DHCP_ID> and note the STATE result. In the below screenshot we can see the state = ACTIVE

3. Run the same command against your second edge node and note the STATE result. As you can see on my second node the state = STANDBY

So there you have it, a few simple commands to determine which is the active node for the DHCP service. Can you control who owns the active instance, unfortunately not to that granular level, but if you question is related to high availability, you can simply run different DHCP Service Profiles on different edge nodes within your cluster. NSX Manager will then manage the active node status on your behalf.

Bal Birdy on LinkedinBal Birdy on Twitter
Bal Birdy
Bal is an Open Group Certified IT Architect, and VCDX #269, specializing in the network and security arena, with over 15 years experience in enterprise level network/system technologies. His goal has always been to maintain a holistic view of the architecture allowing him to understand how various technology streams may impact the networking/infrastructure space.
Bal has a proven record of delivering on enterprise network designs, leading data center and site migrations as a result of business mergers and acquisitions, and vendor migrations e.g. Cisco to Checkpoint/Juniper. As part of this he worked across several business sectors: Utilities, Banking, Retail and Government, and can base designs around sector specific standards e.g. PCI-DSS, DSD and ISM. He is proficient in several technology areas including Cisco, Juniper, F5, VMware, Citrix and Microsoft. These skills are supported by non-technical certifications: Prince2 Project Management Practitioner, ITILv3, TOGAF 9.1 Certified and Open Group Certified IT Architect – Open CA.
In addition to supporting the Livefire Team, Bal leads several innovation efforts within the VMware WRACE organization, including projects investigating the use of Virtual Reality/Augmented Reality, AI/ML and Interactive 360, to support customer and partner enablement.

Certifications:
BSc (Hons) Computer Science
CCNP/CCDP
VCDX-NV #269
Open Group Certificated Architect
Member of the Associated of Enterprise Architects

Leave a Reply