cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
341
Views
0
Helpful
4
Replies

Unable to set up Cisco 1131ag as a DHCP server

sabedin77
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

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

***Please rate all the useful posts***
-Prabath

View solution in original post

4 Replies 4

Reza Sharifi
Hall of Fame
Hall of Fame

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

 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.

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

***Please rate all the useful posts***
-Prabath

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.

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: