google.com, pub-5331922595023406, DIRECT, f08c47fec0942fa0 Computer Sevak: HPE Aruba Switch DHCP Server Setup Commands.

HPE Aruba Switch DHCP Server Setup Commands.

I will try to put the commands for Two vlans, One is a normal vlan - Test1 and the other a voice vlan so that I can include the voice command as well.  Bold characters are the commands and rest are descriptions. 

vlan 3  (vlan number)

   name "Test1" (vlan name)

   untagged 20-30 (untagged/access ports should be unique, 2 ports cannot be in same vlan as untagged)

   tagged 1 (Tagged ports/trunk for the vlan)

   ip address 10.10.10.1 255.255.255.0  (Ip address and subnet for the vlan)

   dhcp-server  (To enable DHCP Server for the VLAN)

   exit


vlan 5 (Vlan number)

   name "Test2" (Vlan name- Voice vlan)

   untagged 10-20 (Unatgged Ports)

   tagged 1-10 (Tagged Ports)

   ip address 10.20.20.0 255.255.255.0 (Ip address and subnet for the vlan)

   dhcp-server  (To enable DHCP Server for the VLAN)

   voice (Enable as Voice Vlan)

   exit


Above are the 2 vlans setup now we will see the commands to setup the DHCP Server, note both commands are to be setup on the same switch. The DHCP Server is setup compared based on the network ip address of vlan and not by name or anything else. 


dhcp-server pool "Test-1" (Changes name and added a - to prove that it will still work and not compare on name )

   authoritative (When DHCP server is configured as authoritative, the server will respond to all the received DHCP REQUEST packets belonging to the subnet. In Non-authoritative DHCP Server, DHCP INFORM packets received from the clients on a non-authoritative pool will be ignored.)

   default-router "10.10.10.1" (Default Router for the Pool)

   dns-server "10.10.10.20, 8.8.8.8" (DNS Servers you use or have)

   lease 08:00:00 (Lease duration this should be in Days-hours-minutes format)

   network 10.10.10.0 255.255.255.0 (Network Ip address and subnet)

   range 10.10.10.100 10.10.10.200 (Range you wanna configure the dhcp clients)

   exit

dhcp-server pool "Test-Voice"

   authoritative

   default-router "10.20.20.1"

   dns-server "10.10.10.20, 8.8.8.8"

   lease 08:00:00

   network 10.20.20.0 255.255.255.0

   option 150 (if you wish to add a additonal option to be considered- option <type> <value>)

   range 10.20.20.100 10.20.20.200

   exit

dhcp-server conflict-logging (Log any conflicts)

dhcp-server enable (Command to enable the DHCP Server- if you want to later change any above values you will have to disable DHCP server by dhcp-server disable command go to the pool and change values and enable again DHCP server by dhcp-server enable command for the changes to take effect)


Please leave comments if you have any questions. 

No comments:

Post a Comment