Hi mhm cisco World,
I agree with you, if two switches connected via trunk link and hosts in that two switches are in same vlan and now we give the command (sh mac -add table vlan 3) then it will shows all pc 's mac addresses ? . I think so i have not tried yet I will try and let me know you. (Means we don't need to log on two switches)
I must kick in here, because this is not correct. Imagine 2 switches swA and swB connected to each other. On swA there is pc1 and pc2 connected. Pc1 want to talk to pc2, it then sends an arp request to find out the mac of pc2. This arp is a broadcast, so it is flooded out all ports on swA it reaches swB who also floods to all ports (not the incoming port), and also swB updates it's mac address table, so it now knows pc1 is reachable from the port to swA. Now, if pc1 and pc2 is sending packets to each other, this conversation is only between the 2 ports on swB. No traffic for this conversation is seen on swB, so after 5 minutes swB flushes the mac entry for pcA in it's mac address table. So now you can't see pc1 mac address anymore in swB.
More than 24, how many you see in total.
1. 24 ports does not mean it should learn only 24 MAC address here.
2. if the Phone and PC connected for 24 ports, then it will be 48 MAC or more (some system MAC address)
3. if you have any PC have virtual running, then you see more MAC address from that device (depends on end port configuration)
4. if the switch Layer 3 vlan configured, it is acting as gateway you see more arp tables.
what model of Cat 2K switch ?