Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • Last Modified:

How can I get a switch port address from a Cisco 4500 Switch with having only the IP Address of the device?

How can I get a switch port address from a Cisco 4500 Switch with having only the IP Address of the device?

0
Qmez
Asked:
Qmez
  • 4
  • 2
2 Solutions
 
rfc1180Commented:
what do you mean by switchport address?
0
 
Joshua_PetersCommented:
I think you mean the individual ip address for a specific port? If your cisco equipment handles your dhcp you can find out by connecting to the switch via the blue cable that has ethernet on one side and serial on the other. If your server handles your dhcp then the switch will not know what the address is.
0
 
rfc1180Commented:
>I think you mean the individual ip address for a specific port?
well, sure, but he said switchport, you can not have an IP address on a layer2 switch, that is why I want clarification.
0
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

 
QmezAuthor Commented:
Yes.... I need to get a specific port number for a specific IP address.
I can do a SHOW  MAC-ADDRESS ADDRESS XXXX.XXXX.XXXX and it will give me the assigned port.  But how can I get the assigned port if I only have the IP address?  What switch command can I use?  
0
 
rfc1180Commented:
ahhh
show arp | inc 192.168.1.1

get the mac, then do a show mac-address | inc xxxx.xxxx.xxxx

Billy
0
 
rfc1180Commented:
If there is any other questions, here is a better example:

agr01.den03#show arp | include 10.169.98.5
Internet  10.169.98.5            45   0080.cb49.093d  ARPA   Vlan811
agr01.den03#show mac-address address 0080.cb49.093d
Legend: * - primary entry
        age - seconds since last seen
        n/a - not available

  vlan   mac address     type    learn     age              ports
------+----------------+--------+-----+----------+--------------------------
Active Supervisor:
*  811  0080.cb49.093d   dynamic  Yes          5   Gi4/13



Billy
0
 
QmezAuthor Commented:
Thank you....  that answers my questions.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now