Link to home
Start Free TrialLog in
Avatar of Dragon0x40
Dragon0x40

asked on

mac-address-table command

I have never seen the mac table explained in depth.

What do all the heading mean?

* primary? as opposed to secondary?

vlan is the port the vlan is in that learned the mac but what if it is a static mac?

type and learn: how can you learn a static mac?

age: counts up or down to 300 seconds?

Ports: port that the mac was learned on? what about when it says switch or router?

what good is *  ---  xxxx.xxxx.xxxx    static  No           -   Router?



sh mac-address-table
Legend: * - primary entry
        age - seconds since last seen
        n/a - not available

  vlan   mac address     type    learn     age              ports
------+----------------+--------+-----+----------+--------------------------
*  720  xxxx.xxxx.xxxx   dynamic  Yes          5   Gi3/24
*  888  xxxx.xxxx.xxxx   dynamic  Yes         30   Gi3/7
*  836  xxxx.xxxx.xxxx    static  Yes          -   Switch
*  639  xxxx.xxxx.xxxx    static  Yes          -   Switch
*  720  xxxx.xxxx.xxxx   dynamic  Yes         75   Gi3/7
*  720  xxxx.xxxx.xxxx   dynamic  Yes         25   Gi3/24
*   12  xxxx.xxxx.xxxx   dynamic  Yes         70   Gi3/24
*  720  xxxx.xxxx.xxxx   dynamic  Yes        105   Gi3/7
*  836  xxxx.xxxx.xxxx   dynamic  Yes          0   Gi3/24
*  639  xxxx.xxxx.xxxx   dynamic  Yes          0   Gi3/24
*  ---  xxxx.xxxx.xxxx    static  No           -   Router
*  720  xxxx.xxxx.xxxx   dynamic  Yes          0   Gi3/7
*  888  xxxx.xxxx.xxxx    static  Yes          -   Switch
*   12  xxxx.xxxx.xxxx   dynamic  Yes          0   Gi3/24
ASKER CERTIFIED SOLUTION
Avatar of Istvan Kalmar
Istvan Kalmar
Flag of Hungary image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dragon0x40
Dragon0x40

ASKER

The age appears to be counting up from 0? If not wouldn't the entries with age 0 be gone? Everytime the mac communicates the timer is reset to 0?

I thought static mac entry meant that the mac was associated with a specific physcial port?

Layer 2 or 3 protocol detected on which port? No port is listed?

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So age of 0 means it has 300 more seconds before timing out?

Age of 105 means it 195 more seconds before it ages out of the mac-address-table?

Assuming the default aging time of 300 seconds is still in effect.

correct