12-01-2022 09:59 PM
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
12-01-2022 10:22 PM - edited 12-01-2022 10:27 PM
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.
12-01-2022 10:40 PM
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?
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