Skip to main content
Skip table of contents

2571 - Creating DHCP Networks in BloxOne DDI

Scenario

We have an active DHCP service host with a DHCP Config Profile applied to it, however, no clients are being served IP addresses because we have not defined the network to be served. We need to configure this DHCP Network and test it. 

Estimated Completion Time

  • 10 to 15 minutes

Prerequisites

  • Administrative access to the CSP

  • Lab 2801: Deploying BloxOne Hosts

  • Lab 2570: Configuring DHCP Services in BloxOne DDI 

Course References

  • 2170 DHCP Services

  •  2171 BloxOne DDI IP Address Spaces

Tasks

  1. Creating an IP Space

  2. Creating an IP Address Block

  3. Creating a Subnet

  4. Creating an IP Address Range

  5. Validating that a client can obtain an IP Address via DHCP 

Task 1: Creating an IP Space

An initial IP Space needs to be created so we can apply this to the DHCP Service host. Name this IP Space Techblue Network.

Task 2: Creating an IP Address Block

Make an IP Address block in the IP Space Techblue Network. Use the network  172.31.0.0/16

Task 3: Creating a Subnet and assigning it to a DHCP Service Instance

Create a subnet 172.31.101.0/24 within the 172.31.0.0/16 network to contain the range. Apply this subnet to the DHCP Service Instance Techblue DHCP service 1

Task 4: Creating an IP Address Range and assigning it to a DHCP Service Instance

We want to serve the DHCP clients IP addresses from a range of 172.31.101.100 to 172.31.101.199. Create this within the 172.31.101.0/24 subnet and apply this subnet to the DHCP Service Instance Techblue DHCP service 1.

Task 5: Validating that a client can obtain an IP Address via DHCP

Once we've assigned the range to the active DHCP service instance to serve the clients, we should test that the clients are able to get an IP address from this range.



Solutions

Task 1 Solution: Creating an IP Space

  1. Switch to your CSP browser window and navigate to ManageIPAM/DHCP

  2. Select the Address Spaces tab

  3. Click Create and select IP Space from the drop-down menu. Give the IP Space a Name: Techblue Network

  4. Click Save & Close

Task 2 Solution: Creating an Address Block

  1. Click the Address Space Techblue Network to go inside of the Address Space

  2. Click Create and select Address Block IPv4 from the drop-down menu

    1. Specify the Address Block Address: 172.31.0.0/16

    2. Specify the Address Block Name: Techblue Client Subnets

    3. Ensure the IP Space is Techblue Network

  3. HA Group Status will show as Unreachable until we assign a subnet to it.

  4. Click Save & Close

Task 3 Solution: Creating a Subnet and assigning it to a DHCP Service Instance

  1. Click the Address Block 172.31.0.0/16 to go inside of the Address Block

  2. Click Create and select Subnet from the drop-down menu

    1. Specify the Subnet Address: 172.31.101.0/24

    2. Specify the Subnet Name: Techblue NYC Clients

    3. Ensure the IP Space is Techblue Network

    4. Next to Service Instance click Select Service Instance.

    5. Select Service Instances from the list, and select your oph1 DHCP service Techblue DHCP service 1

    6. Click Select on the bottom right

  3. Click Save & Close

Task 4 Solution: Creating an IP Address Range and assigning it to a DHCP Service Instance

  1. Click Subnet 172.31.101.0/24 to go inside of the Subnet

  2. Click Create and select Range from the drop-down menu

    1. Specify the Range Start: 172.31.101.100

    2. Specify the Range End: 172.31.101.199

    3. Next to Service Instance click Select Service Instance.

    4. Select Service Instances from the list, and select your DHCP service Techblue DHCP service 1

    5. Click Select

  3. Click Save & Close

Task 5 Solution: Validating that a client can obtain an IP Address via DHCP

  1. On the testing-linux Virtual Machine (which is a different VM than jump-desktop), open a Terminal window.

  2. The DHCP client is available on the testing-linux terminal. Start the service with the command sudo set-network-dhcp

  3. You may need to wait a minute or two for the DHCP communication to complete. Enter the following command to show the leases on the network interface ens160:

sudo show-dhcp-lease

You should see the DHCP Lease information that has been assigned to the testing-linux machine. We can also see the DHCP Options you configured in the DHCP Config Profile, and the IP address of the DHCP server which offered the IP address.

Example:

training@testing-linux:~ $ sudo show-dhcp-lease

--- Raw DHCP Lease Information

lease {
interface "ens160";
fixed-address 172.31.101.100;
option subnet-mask 255.255.255.0;
option dhcp-lease-time 240;
option routers 172.31.101.1;
option dhcp-message-type 5;
option dhcp-server-identifier 10.100.0.110;
option domain-name-servers 10.100.0.110,10.200.0.110;
option ntp-servers 10.100.0.10;
option host-name "testing-linux";
option domain-name "techblue.net";
renew 4 2023/07/20 18:02:50;
rebind 4 2023/07/20 18:04:41;
expire 4 2023/07/20 18:05:11;
}

Switch to your CSP browser window, in IPAM/DHCP, within the IP Space, IP Address Block, and Subnet you created, click on the 172.31.101.100-172.31.100.199 range to go inside of the range. You should see the corresponding DHCP lease for testing-linux.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.