menu

arrow_back Why do computers get their IPs from different DHCP pools?

by
2 votes
I created two vlan's for client devices, assigned each IP-address, created two address pools. All this on a real Cisco switch (l3). But in the end devices from vlan 2 addresses are given from both pools... Here Configure
I build a similar network in CPT - this problem is not observed.

2 Answers

by
2 votes
Each VLAN does not have a gateway, so requests from all the domains go to the default 192.168.2.*

1 comment

Thank you for your reply. They are from different subnets and are not tagged. In general, it turned out that the problem was not on my side - it was someone else's router giving out IPs in the 2nd Vlad, because it was connected to the main switch. I will have to configure DHCP Snooping, I have wanted to do that for a long time and now I have the opportunity :)) Just the enterprise network is not fully configured yet - I still have a lot to install and configure, and excessive security can cause a lot of problems at this stage.
by
1 vote
I'm not a real welder, but the query "Cisco bind DHCP pool to vlan" found this:
https://community.cisco.com/t5/small-business-swit...
After the wordpool is any name indicated or the desired vlan?
ip dhcp pool vlan1 network 1.1.1.0 255.255.255.0 domain-name cisco.com dns-server 4.4.4.2 4.4.4.1 default-router 1.1.1.1 lease 3ip dhcp pool vlan2 network 2.2.2.0 255.255.255.0 domain-name cisco.com dns-server 4.4.4.2 4.4.4.1 default-router 2.2.2.1 lease 3

1 comment

By the way, alsoip helper-address you can try to specify:
https://community.cisco.com/t5/switching/configure...