04-14-2017 11:18 AM - edited 03-08-2019 10:12 AM
Hello,
I am trying to set up a test wifi infrastructure at home using a 1131ag AP.
The AP is connected to my layer 3 switch using one of the ports that is on VLAN 2(192.168.2.1/24).
I have given the AP a static IP address of 192.168.2.3/24.
Clients have no problem connecting wirelessly to the AP, but they keep getting their DHCP addresses from the switch and not the AP.
Below is my config used to set up DHCP on the AP:
ip dhcp pool guest
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
dns-server 192.168.1.1
ip dhcp excluded-address 192.168.2.1 192.168.2.240
I have recreated the DHCP pool to no success.
Any ideas where I am going wrong?
Solved! Go to Solution.
04-14-2017 06:05 PM
you only could have one or the other as a successful DHCP server in a subnet as clients will accept the first offer when they receive offers from two DHCP servers.
What you may want to do is though enable vlans on your APs and put the wireless clients in a different vlan.
Cheers
Prabath
04-14-2017 11:35 AM
192.168.2.1 192.168.2.240
Is that a typo or you actually want to exclude 240 addresses?
Also, what happens when you remove the pool from the switch?
Can you add a lease and test again?
lease 3
HTH
04-14-2017 11:54 AM
That was not a typo. I did want to exclude 192.168.2.1 -192.168.2.240.
When I remove the pool from the switch, then the AP does act as a DHCP server.
I would like to keep the pool both on the switch and the AP but it looks like currently I am restricted to one or the other!
Any suggestions?
Edit - just added the pool back into the switch and the switch is gain acting as a DHCP server.
04-14-2017 06:05 PM
you only could have one or the other as a successful DHCP server in a subnet as clients will accept the first offer when they receive offers from two DHCP servers.
What you may want to do is though enable vlans on your APs and put the wireless clients in a different vlan.
Cheers
Prabath
04-15-2017 03:09 AM
Yes, I have already created a new VLAN on my switch that does not have a
DHCP pool associated to it on the switch. I created the DHCP pool in my AP for this VLAN and the wireless clients are now getting DHCP from the AP.
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: