How do I find out what port I am on, on a 4509

Answered Question

I am trying to find out how I can display what port I am on when telneted into my 4509

Correct Answer by mattcalderon about 9 years 1 month ago

I understand what you mean. Normally that should be planned out and patched back to the switch with some descriptive notations.


If you don't know what port you are on then ya, you have to figure it out by seeing what MAC is on what switchport. Hope this has helped and please rate if so. If you have any other questions just reply back.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
Loading.
mattcalderon Fri, 05/09/2008 - 10:47
User Badges:
  • Silver, 250 points or more

issue the command "show user" to see where you are coming from. Look at the vty line in show user. Also you can use "show line"

mattcalderon Fri, 05/09/2008 - 10:51
User Badges:
  • Silver, 250 points or more

look for your MAC on your PC. Once you have discovered your MAC you need to trace it down using the command " show mac-address-table" you can filter the output by doing "show mac-address table | begin xxxx" Insert the last four of your MAC in to search that way.

mattcalderon Fri, 05/09/2008 - 10:58
User Badges:
  • Silver, 250 points or more

so you know what port you are in then right? Ok I was thinking that you did not know what port you are plugged into. You can do a "sh run interface fa0/22" to see the configuration or a "sh ip interface brief" to see the up/down status of the port.


Hope this clears some things up.



That "sh ip interface brief" command is awesome I can can use that!! thanks.


But back to the port thing I don't know what port I am on so I guess I will have to do the sh mac-address-table command then huh?


My goal is to put a discription on each port on the 4509 but i have no idea where the wall jack connects to the 4509? you understand?

Correct Answer
mattcalderon Fri, 05/09/2008 - 11:10
User Badges:
  • Silver, 250 points or more

I understand what you mean. Normally that should be planned out and patched back to the switch with some descriptive notations.


If you don't know what port you are on then ya, you have to figure it out by seeing what MAC is on what switchport. Hope this has helped and please rate if so. If you have any other questions just reply back.

joseph.derrick Fri, 05/09/2008 - 11:54
User Badges:

Issue the command "sh mac-address-table address | inc " or you could simply do "sh mac-address-table address | inc " but this will probably give you multiple results so I suggest doing the first command.


Please rate if it helps.


Thanks.

deepak.pandey Sat, 05/10/2008 - 09:51
User Badges:

Lets say a machine is having a mac-address 0002.a563.670c


then do show mac-address-table | i 0002.a563.670c


e.g


Switch#show mac-address-table | i 0002.a563.670c

0002.a563.670c Dynamic 325 FastEthernet0/3


or



C3BS1#show mac-address-table address 0002.a563.670c

Non-static Address Table:

Destination Address Address Type VLAN Destination Port

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

0002.a563.670c Dynamic 325 FastEthernet0/3



By seeing the above results we can say the machine having mac 0002.a563.670c is connected to FastEthernet0/3


Hope it will help

Actions

This Discussion