Having an issue setting up a switch for NEC ip phones. If I use something like this:
int gi 0/23
description Phone and PC, no hubs
switchport mode access
switchport access vlan 10
switchport access voice vlan 5
spanning-tree portfast
lldp transmit
lldp receive
The phones boot up fine, but get ips from the dhcp pool for vlan 10. My pc behind that also gets an ip in vlan 10. I went to a test phone and enable cdp and when I went back to my switch I saw the phone in cdp neighbors, but the phone still grabbed the ip from the other vlan. If I manually key in the vlan on the phone it gets the correct ip and the pc behind it gets the correct ip as well. Just wondering if there is a better to go about this as they are deploying 150 phones.