Creating a DHCP server on Interface BACKPLANE0 in Nodegrid

Creating a DHCP server on Interface BACKPLANE0 in Nodegrid


To configure and enable the DHCP server in Nodegrid Manager:


1. Add a subnet


From the Web UI:


  1. Click on the Network icon and select DHCP from the menu bar
  2. Click Add to create a DHCP range



Click on Add and fill in the Subnet, Network and Router IP (BACKPLANE0 IP in this case, normally the first IP of the network):



Click on Save to save your settings

To set up the DHCP range from the command line:


  1. Log in as the admin user to access the Nodegrid command line
  2. If you are logged in as root user, you can ‘su – admin’ and then type ‘cli’
  3. In the Nodegrid command line, cd /settings/dhcp_server
  4. Type ‘show’ to display any existing dhcp ranges
  5. Type ‘add’ to go into the dhcp configuration mode
  6. Type ‘set subnet=<your ip subnet>




Type in the netmask:


‘set netmask=<your subnet netmask>’






Type ‘save’ and the DHCP server is ready for use


Input the starting (lowest) and ending (highest) numbers of your DHCP range within the current subnet.
Click Save.



To add a DHCP range from the command line:

cd /settings/dhcp_server/
show

If there are any configured ranges, they will be listed by the show command.

cd to any listed IP subnet name that you want to add a range to and append '/network_range':

cd 10.10.1.10|255.255.255.240/network_range/

Type 'show' to list any available network ranges.

Type 'add' to add a network range


In this example, the start ip address is 10.10.1.100 and the end address is 10.10.1.200

set ip_address_start=10.10.1.100
set ip_address_end=10.10.1.200

save

once the range has beed added and saved, you can type 'show' to list the range:

[admin@nodegrid {network_range}]# show
ip_address_start = 10.10.1.100
ip_address_end = 10.10.1.200
[admin@nodegrid {network_range}]#