04-11-2022 09:47 AM
Good Afternoon, Please. I have to configure DHCP on these two switches and for a pool of just two IP addreses. They need to be assigned to specific MAC addreses. Can anybody please help ?
Many Thanks
Solved! Go to Solution.
04-11-2022 09:55 AM - edited 04-11-2022 09:57 AM
try below :
Switch>enable
Switch#configure terminal
Switch(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
Switch(config)#ip dhcp pool MyPool
Switch(dhcp-config)#network 192.168.1.0 255.255.255.0
Switch(dhcp-config)#default-router 192.168.1.1
Switch(dhcp-config)#dns-server 4.4.4.4
Switch(dhcp-config)#exit
Reserver MAC address :
ip dhcp pool User1
host 192.168.1.10 255.255.255.0
client-identifier xxxxxxxxxxx (mac address here)
Switch(config)#interface vlan 1 - this can be changed based on the information.
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
04-13-2022 12:36 AM
Many Thanks !!
04-11-2022 09:55 AM - edited 04-11-2022 09:57 AM
try below :
Switch>enable
Switch#configure terminal
Switch(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
Switch(config)#ip dhcp pool MyPool
Switch(dhcp-config)#network 192.168.1.0 255.255.255.0
Switch(dhcp-config)#default-router 192.168.1.1
Switch(dhcp-config)#dns-server 4.4.4.4
Switch(dhcp-config)#exit
Reserver MAC address :
ip dhcp pool User1
host 192.168.1.10 255.255.255.0
client-identifier xxxxxxxxxxx (mac address here)
Switch(config)#interface vlan 1 - this can be changed based on the information.
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
04-13-2022 12:36 AM
Many Thanks !!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide