I created a new switch and connected to two hosts in GNS3.Like this: Host1--->LS<---Host2, i think the mac-table in the switch should be empty before i sent data between two hosts. But when i just set ip address to the two hosts, and i found there are the two hosts mac address in switch! Is this the expected result? I even didn't ping between the two hosts, how the switch learned the mac address?
Vlan Mac Address Type Ports ---- ----------- -------- ----- 1 cc01.1064.0000 DYNAMIC Et0/0 1 cc02.0a98.0000 DYNAMIC Et0/1
R1#show interfaces FastEthernet0/0 is up, line protocol is up Hardware is AmdFE, address is cc01.1064.0000 (bia cc01.1064.0000) Internet address is 126.96.36.199/24 MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, R1#show running-config Building configuration... Current configuration : 1056 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model ip subnet-zero no ip routing no ip icmp rate-limit unreachable ip tcp synwait-time 5 ! ! no ip cef no ip domain lookup
R2#sh interfaces FastEthernet0/0 is up, line protocol is up Hardware is AmdFE, address is cc02.0a98.0000 (bia cc02.0a98.0000) Internet address is 188.8.131.52/24 MTU 1500 bytes, BW 100000 Kbit, DLY 100