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

DHCP configuration through multilayer switch

singhnavjot325
Level 1
Level 1

hello everyone

i need help in some dhcp configuration

1 Multilayer switch ,2 PCs , 1 Server (tftp). it should have vlan 10 both PCs and need to do dhcp configuration with different ip addresses?

Example (PC-1 10.21.66.1)(PC-2 10.22.66.1) VLAN10 both

i am unable to get the ips through dhcp

2 Replies 2

ammahend
VIP
VIP

You have to use separate vlans or you will have to configure 2 vrf or have secondary ip on vlan svi in different subnet.

much easier to keep 2 vlans and configure dhcp pool

configure terminal
ip dhcp excluded-address 10.21.66.10 10.21.66.255
ip dhcp pool pc21
network 10.21.66.0 /24
default-router 10.21.66.1
dns-server 8.8.8.8

by the way what’s your use case for 2 subnet with same vlan.

-hope this helps-

Richard Burts
Hall of Fame
Hall of Fame

There is much that we do not know about your environment and your requirements and that makes it difficult to give good advice. Can you clarify a few things:

- you show 2 PCs and each with a specific IP address. Is it a requirement that each PC receive that specific address from DHCP? Or is it sufficient that each PC receive some address from DHCP?

- there is usually a one to one relationship between vlans and subnets (a single subnet is used in a single vlan, and a single vlan usually has a single subnet). Are you thinking of 10.21.66.1 and 10.22.66.1 as both in a single large subnet that contains both? Or are you thinking of 2 distinct subnets here?

- you show 3 devices that are capable of providing DHCP service to clients (multi layer switch, router, server). Which device do you intend to provide DHCP to the clients?

HTH

Rick
Review Cisco Networking for a $25 gift card