cisco_interfaces_in_use

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cisco_interfaces_in_use [2024/01/12 20:28] – [Interface Status] walkeradmincisco_interfaces_in_use [2024/01/12 20:37] (current) – [Show the Mac Address Table] walkeradmin
Line 125: Line 125:
       a4bf.016a.d0e9    DYNAMIC     Gi0/45       a4bf.016a.d0e9    DYNAMIC     Gi0/45
 </file> </file>
 +\\ 
 +I want to look at this specific interface:
 +<file>
 +Vlan    Mac Address       Type        Ports
 +2       a4bf.0169.b7af    DYNAMIC     Gi0/5
 +</file>
 +It can be seen that this is interface 5 on our Cisco, that is in VLAN2 and there is a device connected to it with the MAC Address <color #ed1c24>a4-bf-01-69-b7-af</color>.
 +\\ 
 +\\ 
 +I have logged in to the server that I know is connected to this interface (the servers eno3 is connected) and if I run the command (Linux):
 +\\ 
 +<file>
 +ip a show eno3
  
 +5: eno3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master data-out state UP group default qlen 1000
 +    link/ether a4:bf:01:69:b7:af brd ff:ff:ff:ff:ff:ff
 +    altname enp61s0f2
 +</file>
 +We can see that the link/ether address is listed as: a4:bf:01:69:b7:af
 +\\ 
 +\\ 
 +==== Look for a specific MAC Address ====
 +Because there could be many MAC addresses present on an interface when you use the command <color #ed1c24>sh mac address-table</color> we can use a simple filter to only show what we require: (remember, our last search revealed that the MAC Address on Gi05 ended in 'af'
 +\\ 
 +<file>
 +sh mac address-table | incl af
 +
 +Now the only result we get back is this:
 +2    a4bf.0169.b7af    DYNAMIC     Gi0/5
 +</file>
 +We may not know what MAC we are looking for, but if we  do this is very useful.
 +\\ 
 +\\ 
  
cisco_interfaces_in_use.1705091309.txt.gz · Last modified: 2024/01/12 20:28 by walkeradmin