cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1398
Views
1
Helpful
14
Replies

DHCP handing out wrong ip on ports.

pgreen
Level 1
Level 1

I have my access ports set up like this:

PC is tethered from phone on it's internal switch.

interface 2/0/1

switchport access plan 11

switchport voice vlan 130

 

In the VLANs I have ip helper-address set to my DHCP server.

The phones and the computers pick up either a .11.X address or the default vlan 10.10.2.x

If I manually set the phones to pick up VLAN 11 on the pc port and vlan 130 on the WAN port, it works fine.  I shouldn't have to touch the phones though.  Right?

14 Replies 14

the phone not select the correct VLAN, 
check mac address is it add to correct vlan ?

Hereā€™s the exact config

interface GigabitEthernet2/0/5
switchport access vlan 11
switchport voice vlan 130
spanning-tree portfast edge

Hereā€™s the show mac address-table for that interface.

-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----
11 3814.287c.d89c DYNAMIC Gi2/0/5
11 805e.c072.3531 DYNAMIC Gi2/0/5
130 805e.c072.3531 DYNAMIC Gi2/0/5

as you can see the VLAN one time 11 and other is 130, 
so return back to the dot1x if you use it there is something misconfig.

What should the ā€œdot1.qā€ look like?

this all config under the interface 
interface GigabitEthernet2/0/5
switchport access vlan 11
switchport voice vlan 130
spanning-tree portfast edge

what is the SW model you use ?

if you dont use dot1x then this bug in cisco switch, take look to link below 

https://community.cisco.com/t5/switching/mac-address-of-ip-phone-in-two-vlans/td-p/1549258/page/2

I need to know the phone model and SW. 
thanks 
MHM

Mz.15.2(E7)

This ios ver. What is SW model?

C2690x

try using LLDP instead of CDP and check result, you must see VoIP mac in voice VLAN only. 

Yealink Phones <<- use LLDP not CDP and check again 

note:- do this in one port and if you success apply it to other ports

Reza Sharifi
Hall of Fame
Hall of Fame

Are you using Cisco phones? If yes, the voice vlan (according to your port config) should always be 130 and your data vlan 11. You also need option 150 configured on the DHCP server for the voice vlan.

HTH

 

They are Yealink Phones.

davidjohnson
Level 1
Level 1

I have configured my access ports as follows:

- The PC is connected via tethering from a phone on the internal switch.
- Interface: 2/0/1
- Switchport access plan: 11
- Switchport voice VLAN: 130

In my VLAN configuration, I have set the "ip helper-address" to my DHCP server.

Currently, both the phones and computers are obtaining IP addresses either from the .11.X subnet or the default VLAN 10.10.2.X subnet.

Ideally, I shouldn't have to manually configure the phones to pick up VLAN 11 on the PC port and VLAN 130 on the WAN port. The configuration should work automatically without any additional manual intervention. Is my understanding correct?

 

Regards;

David Johnson.

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:

Review Cisco Networking products for a $25 gift card