32-MAC Address
32-MAC Address
o Switch manage & use MAC address table to forward traffic from one interface to another.
o Address table is combination of VLAN ID, MAC Address, Address Type and Port number.
o MAC address table are two types, these are dynamic address and static address.
o Dynamic MAC address is the address that the switch learns dynamically.
o Dynamic MAC address is that the switch learns & then ages when it is not in use.
o Static MAC address is the address that manually put by the administrator.
o Static address is no aging time and will not be removed if switch rebooted.
o If frame receives & destination MAC address is not found, it flooded to all ports.
o When the destination replies, the switch adds that source MAC address to the table.
o Cisco Switches default-aging time is 300 seconds or five mints, which can be, modify.
o Aging timer is used to remove inactive Media Access Control addresses from the table.
Managing MAC Address Table
SW1(config)# mac address-table aging-time seconds
SW1(config)# mac address-table static mac-address vlan vlan-id interface
SW1(config)# no mac address-table static mac-address vlan vlan-id interface
Device Configuration
R1(config)#interface f0/0
R1(config-if)#mac-address aaaa.aaaa.1111
R1(config-if)#ip address 1.1.1.1 255.0.0.0
R1(config-if)#no shutdown
R2(config)#interface f0/0
R2(config-if)#mac-address aaaa.aaaa.2222
R2(config-if)#ip address 1.1.1.2 255.0.0.0
R2(config-if)#no shutdown
R3(config)#interface f0/0
R3(config-if)#mac-address aaaa.aaaa.3333
R3(config-if)#ip address 1.1.1.3 255.0.0.0
R3(config-if)#no shutdown