cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
446
Views
0
Helpful
1
Replies

Get IP of PC on PC Port ??

eggoeater
Level 1
Level 1

I'm building an application to list phones, the phone's IP address and the IP address of the PC that's on the phone's PC port. (We use 7940s and 7960s). I'm using DeviceListX.asp to pull phone IPs and AXL to get other phone details.

I'm now trying to figure out how to get the PC's IP address. My software can't log into routers or switches, so pulling arp tables and mac-address tables to cross-reference is NOT an option.

I was hoping I could hit the web server on each phone to pull the info from the Network Config page:

http://<ip address of 7940>/PortInformation?2

However the IP address for the PC Port is always blank:

overflow Drop 0

Neighbor Device ID

Neighbor IP Address

Neighbor Port

Port Information Full, 100

(It's never blank for the Network or Phone page though.)

Is there ANY way to enable/configure the phone to "pull" or "find" the IP address of the PC Port??

Anyone know why it's always blank?

Is there any other command I can issue on the phone that could pull this?

Thanks!

S

1 Reply 1

Erick Bergquist
Level 6
Level 6

It gets that info from CDP. Since PC isn't doing CDP the phone doesn't know. You could go to the switch and look at the CAM/MAC-address-table for that port and do a ARP to get IP address of MAC address.