03-17-2022 01:56 AM
Hi Guys,
Can I ask for the configuration of DHCP Server in my switches?
Thanks,
Mike
03-17-2022 03:22 AM
Hello
Applying DHCP service on a switch then that switch need to be a L3 switch.
Example:
3 subnets
10.1.1.1/24
10.1.2.1/24
10.1.3.1/24
ip dhcp pool LAN
network 10.1.1.0 255.255.255.0
default-router 10.1.1.1
network 10.1.2.0 255.255.255.0 secondary
override default-router 10.1.2.1.
network 10.1.3.0 255.255.255.0 secondary
override default-router 10.13.1.
dns-server 8.8.8.8 8.8.4.4
lease 0 8
03-17-2022 03:23 AM - edited 03-17-2022 03:26 AM
I will be in impression that you have right version which supports :
below config help you ( if you like to use default VLAN 1 you can use instead of VLAN 10)
vlan 10
!
ip dhcp excluded-address 192.168.1.254
!
ip dhcp pool DHCPPOOL
network 192.168.1.0 255.255.255.0
default-router 192.168.1.254
dns-server 8.8.8.8 4.4.4.4 ( this need to be changed if required)
!
interface vlan10
ip address 192.168.1.254 255.255.255.0
!
interface gig0/0
descrip PC
switchport access vlan 10
switchport mode acces
no shutdow
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