cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
491
Views
0
Helpful
2
Replies

DHCP Server configuration on Switch

michael.raytan
Level 1
Level 1

Hi Guys,

 

Can I ask for the configuration of DHCP Server in my switches?

Thanks,

 

Mike

2 Replies 2

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




Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

balaji.bandi
Hall of Fame
Hall of Fame

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

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help