cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
623
Views
0
Helpful
7
Replies

IOS DHCP server

jgorman1977
Level 1
Level 1

My router is setup with two vlans on ethernet subinterfaces using dot1q. However, when my wireless clients try to get a dhcp address from the router, it hands out the address from the domain controller. Here are my router settings. Trunks have been verified. My guest wireless is on vlan 50

interface GigabitEthernet0/0.1

encapsulation dot1Q 60

ip address 10.3.5.132 255.255.255.224

ip hello-interval eigrp 10 1

ip hold-time eigrp 10 3

no snmp trap link-status

!

interface GigabitEthernet0/0.2

encapsulation dot1Q 50

ip address 192.168.5.1 255.255.255.0

no snmp trap link-status

no ip dhcp use vrf connected

ip dhcp excluded-address 192.168.5.1 192.168.5.10

!

ip dhcp pool DT-GUEST

network 192.168.5.0 255.255.255.0

dns-server 4.2.2.2

default-router 192.168.5.1

lease 7

7 Replies 7

John Blakley
VIP Alumni
VIP Alumni

I don't know what kind of AP you have, but you'll need to make sure that the ssid that they connect to is associated to vlan 50. In a Cisco AP, it would look something like this:

dot11 ssid test

vlan 50

int do0

no ip address

ssid test

int do0.50

encap dot1q 50

no ip address

bridge-group 50

int fa0.50

encap dot1q 50

bridge-group 50

int bvi1

ip address 10.3.5.132.100 255.255.255.224

When the client associates to ssid test, it will map to vlan 50 and then pull the correct address. Otherwise, it will come over the default vlan, and it'll never hit the correct vlan.

HTH,

John

HTH, John *** Please rate all useful posts ***

omar.elmohri
Level 1
Level 1

In your case, both Router and Domain controller give a DHCP reply. and the DC is faster arriving to the client.

You would try to disable the DHCP server on the VLAN 50 or block the DHCP in the VLAN.

One issue i noticed is that i had an ip helper statment on the same subnet as the guest wireless. My ACL's should take care of the DHCP requests to the DC.

Thank you!

Please,

Can you send the command ? is to implemented on the VLAN 50 ?

This means that all DHCP is forwarded to the IP mentioned on the command. And you have to remove it, so no forwarding of DHCP request will be to DC.

Regards,

Omar

Please rate if that help.

Leo Laohoo
Hall of Fame
Hall of Fame

Can't you use "ip helper address" on your AP?

Is it a Cisco AP? Is it Autonomous or LWAP IOS?

Didn't think about that, but got it working by putting the scope on our L3 switch.

First, Have you tried to remove the ip-helper address on the Guest-VLAN.

Next, Put the DHCP scope on the L3 switch to give IPs to guest users.

Then, Give back a reply and I still following the progress with you.

Regards,

Omar

Review Cisco Networking for a $25 gift card