cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
280
Views
0
Helpful
1
Replies

dhcp and vlan configuration

pinerivers6385
Level 1
Level 1

I have 3750 layer 3 switch with 3 vlan 10,vlan 20 and vlan 30 with 172.16.1.0 on vlan 10, 172.16.2.0 on vlan 20 and 172.16.3.0 on vlan 30. I would like to configure dhcp server on this switch to hand out addresses to each of these vlan. is it possible?

1 Reply 1

mparekh
Level 3
Level 3

Yes it is possible to create a dhcp server on this switch, you will have to create 3 seperate dhcp pools for each VLAN. Below is an example of DHCP Pool for Vlan10

Create a DHCP IP address pool for the IP addresses you want to use.

Router(config)# ip dhcp pool VLAN10

Router(dhcp-config)# network 172.16.1.0 /24

Router(dhcp-config)#domain-name mydomain.com

Router(dhcp-config)#dns-server x.x.x.x

Router(dhcp-config)#default-router VLAN 10 IP address

Router(dhcp-config)#lease 7

Router(dhcp-config)#exit

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card