# of Ways to Show MAC/Port on Native CatOS
RoUtermOnKey Discussion Forums
February 06, 2012, 03:18:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Account registration is disabled for now. Some folks who want to advertise garbage on routermonkey.org are who you can thank!  Remember - this is a totally FREE site, If you vandalize the free info sites - they go away and then there is nobody to research the technology that you little script kiddies are using to hassle us.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: # of Ways to Show MAC/Port on Native CatOS  (Read 1200 times)
notoriousBG
Global Moderator
Sr. Member
*****
Posts: 308


No! Monkey


« on: November 14, 2007, 10:47:09 AM »

Requesting comments on MAC Address/Port Show Commands for Native CatOS.  So Far I have:

1. sh mac-address-table interface gigabitEthernet 0/3 (or) sh mac-address-table

Question is, what other ways can you show this?  sh ip arp and sh arp only show the Logical interface the MAC is associated with and not the physical interface?

-noto
Logged
notoriousBG
Global Moderator
Sr. Member
*****
Posts: 308


No! Monkey


« Reply #1 on: January 19, 2008, 06:22:01 PM »

Here is some cool info from the "show adjacency" command in Cisco's IOS.  It has a dependency on CEF.
As you can see in the example below, the layer 3 address of the adjacent node is shown along with the interface that it was learned on.  But what I think is cool is the layer 2 stuff that is included.  I've colour coded the example for you.  Green is the MAC of the adjacent node, red is the MAC of the interface it was learned on and blue is the ethernet protocol ID.

Other details that are seen is the use of ARP for IPv4 and Neighbor Discovery for IPv6 (for details on Ipv6 ND see RFC 2461).

lab-3750#sh adjacency detail
Protocol Interface                 Address
IP       Vlan1                     10.200.2.2(12)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 51
                                   Encap length 14
                                   0002FDC4D442001243663D400800
                                   ARP
IP       Vlan1                     10.200.2.10(7)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 51
                                   Encap length 14
                                   00105AA52326001243663D400800
                                   ARP
IP       Vlan1                     10.200.2.11(7)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 51
                                   Encap length 14
                                   005004434363001243663D400800
                                   ARP
IPV6     Vlan1                     FE80::202:FDFF:FEC4:D442(3)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 4
                                   Encap length 14
                                   0002FDC4D442001243663D4086DD
                                   IPv6 ND
IPV6     Vlan1                     FE80::210:5AFF:FEA5:2326(3)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 51
                                   Encap length 14
                                   00105AA52326001243663D4086DD
                                   IPv6 ND
IPV6     Vlan1                     FE80::250:4FF:FE43:4363(3)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 29
                                   Encap length 14
                                   005004434363001243663D4086DD
                                   IPv6 ND
IPV6     Vlan1                     FEC0:0:1:2:202:FDFF:FEC4:D442(7)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 4
                                   Encap length 14
                                   0002FDC4D442001243663D4086DD
                                   IPv6 ND
IPV6     Vlan1                     FEC0:0:1:2:210:5AFF:FEA5:2326(7)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 51
                                   Encap length 14
Protocol Interface                 Address
                                   00105AA52326001243663D4086DD
                                   IPv6 ND
IPV6     Vlan1                     FEC0:0:1:2:250:4FF:FE43:4363(7)
                                   0 packets, 0 bytes
                                   epoch 0
                                   sourced in sev-epoch 29
                                   Encap length 14
                                   005004434363001243663D4086DD
                                   IPv6 ND
« Last Edit: January 21, 2008, 09:37:08 PM by notoriousBG » Logged
CCIE2008
Newbie
*
Posts: 7


Grrrr - Give me all your routers!


« Reply #2 on: April 03, 2008, 09:15:08 AM »

noto - what are you using this for?  Interesting in any regards!  By the way, I looked up the epoch value that you emailed me about.  The short ver:

Moment in time

    * epoch (reference date) - a significant event, time, or moment which is chosen as a new origin for time measurements, usually as the delimiting factor of an era.

        * January 1, 1970 is called the epoch in Linux and BSD in this sense. See Unix time.

    * epoch (astronomy) - a precise moment in time for which celestial coordinates or orbital elements are specified


Check it out on wiki (Thats like, ur fav site)
http://en.wikipedia.org/wiki/Epoch
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!