Site Tools


cisco:certification_topics:ccie-ei:managing_mac_table

This is an old revision of the document!


1.1aii Managing MAC table

  • The MAC address type can either be static or dynamic.
  • Show the VLAN, MAC address, Type, and Port.
    • sh mac address-table
                Mac Address Table
      -------------------------------------------
      
      Vlan    Mac Address       Type        Ports
      ----    -----------       --------    -----
       All    0100.0ccc.cccc    STATIC      CPU
         1    0011.321b.6374    DYNAMIC     Po1
         1    0060.2e01.b9ab    DYNAMIC     Gi1/0/22
         6    e063.da86.8322    DYNAMIC     Gi1/0/48
         6    f099.bf03.2158    DYNAMIC     Gi1/0/43
        99    0040.9d43.3597    DYNAMIC     Gi1/0/38
         3    e063.da86.8322    DYNAMIC     Gi1/0/48
         4    e063.da86.8322    DYNAMIC     Gi1/0/48
         5    e063.da86.8322    DYNAMIC     Gi1/0/48
        97    e063.da86.8322    DYNAMIC     Gi1/0/48
        98    e063.da86.8322    DYNAMIC     Gi1/0/48
       971    e063.da86.8322    DYNAMIC     Gi1/0/48
       202    e063.da86.8322    DYNAMIC     Gi1/0/48
    • STATIC means the Type was manually set either from the factory or user.
    • DYNAMIC means the Type was derived from the switch's base MAC address.
  • Determine the port a MAC address belongs to.
    • switch#show mac address-table address 588a.5af5.69da
                Mac Address Table
      -------------------------------------------
      
      Vlan    Mac Address       Type        Ports
      ----    -----------       --------    -----
      1611    588a.5af5.69da    DYNAMIC     Gi1/0/15
  • Determine the MAC address for a port.
    • switch#show mac address-table interface gigabitEthernet 1/0/15 
                Mac Address Table
      -------------------------------------------
      
      Vlan    Mac Address       Type        Ports
      ----    -----------       --------    -----
      1611    588a.5af5.69da    DYNAMIC     Gi1/0/15
  • A port may contain more than one MAC address.
    • switch#show mac address-table interface gigabitEthernet 1/0/48
                Mac Address Table
      -------------------------------------------
      
      Vlan    Mac Address       Type        Ports
      ----    -----------       --------    -----
         1    e063.da86.8318    DYNAMIC     Gi1/0/48
         1    e063.da86.8322    DYNAMIC     Gi1/0/48
         6    e063.da86.8322    DYNAMIC     Gi1/0/48
        99    e063.da86.8322    DYNAMIC     Gi1/0/48
         3    e063.da86.8322    DYNAMIC     Gi1/0/48
         4    e063.da86.8322    DYNAMIC     Gi1/0/48
         5    e063.da86.8322    DYNAMIC     Gi1/0/48
        97    e063.da86.8322    DYNAMIC     Gi1/0/48
        98    e063.da86.8322    DYNAMIC     Gi1/0/48
       971    e063.da86.8322    DYNAMIC     Gi1/0/48
       202    e063.da86.8322    DYNAMIC     Gi1/0/48
       131    e063.da86.8322    DYNAMIC     Gi1/0/48
         7    e063.da86.8322    DYNAMIC     Gi1/0/48
      3939    e063.da86.8322    DYNAMIC     Gi1/0/48
       200    e063.da86.8322    DYNAMIC     Gi1/0/48
       201    e063.da86.8322    DYNAMIC     Gi1/0/48
      1612    e063.da86.8322    DYNAMIC     Gi1/0/48
      1613    e063.da86.8322    DYNAMIC     Gi1/0/48
      1614    e063.da86.8322    DYNAMIC     Gi1/0/48
      1615    e063.da86.8322    DYNAMIC     Gi1/0/48
      1611    e063.da86.8322    DYNAMIC     Gi1/0/48
      1610    e063.da86.8322    DYNAMIC     Gi1/0/48
        32    e063.da86.8322    DYNAMIC     Gi1/0/48
      Total Mac Addresses for this criterion: 23
  • Filter results for only VLAN 202.
    • switch#show mac address-table interface gigabitEthernet 1/0/48 vlan 202
                Mac Address Table
      -------------------------------------------
      
      Vlan    Mac Address       Type        Ports
      ----    -----------       --------    -----
       202    e063.da86.8322    DYNAMIC     Gi1/0/48
      Total Mac Addresses for this criterion: 1
  • Other combinations include.
    • switch#show mac address-table ?                                        
        address       Address to lookup in the table
        aging-time    MAC address table aging parameters
        count         Number of MAC addresses in the table
        dynamic       List dynamic MAC addresses
        interface     List MAC adresses on a specific interface
        learning      Display learning on VLAN or interface
        move          MAC Move information
        multicast     List multicast MAC addresses
        notification  MAC notification parameters and history table
        secure        List secure MAC addresses
        static        List static MAC addresses
        vlan          List MAC addresses on a specific vlan
        |             Output modifiers
        <cr>
cisco/certification_topics/ccie-ei/managing_mac_table.1763527206.txt.gz ยท Last modified: by Name