05-19-2018 11:31 AM - edited 03-05-2019 10:28 AM
Experts,
I have 2 questions. Its bit confusing me every time. Hope my confusions can resolve by experts like you.
1. Did switch learn all MAC address's? I mean both the through traffic & to the box traffic?
2. My data center has multiple production servers & data transferring is happening every second even then the switch is not learning all the MAC address from the servers. Sometimes i have to ping the server IP & get the MAC address. Why is that? If the servers are communicating all the time then how come a MAC address gets time out?
05-19-2018 01:14 PM
Hello,
in general, a MAC address times (ages) out only if it is not being used (default is 300 seconds).
Which switch do you have ? Post the output of 'show ver'...
05-20-2018 06:26 AM
Thanks for taking time to reply. Its not related to any specific device or a manufacturer. Same behavior can be seen in N5k,7k,3850,3750 etc...
05-21-2018 04:13 AM
Hi
I wonder what command you are using, because, mac adresses are learnt when traffic is passing the switch. The switch looks at the source address and updates its cam table with that info together with the interface the traffic was receives, and as Georg say, the timeout for that is 300 seconds.
To look at this table, use " sh mac address-table".
However you said you have to ping it to see it, that sounds you are looking at the arp table, wich in turn, is only used by layer3, and the command for that is "sh arp"
/Mikael
05-21-2018 06:25 AM
I absolutely understand ARP & MAC address.Let me be little more specific here. Consider that in a data center we have 100's of servers , all are online & passing the traffic back and forth. Still sometimes we dont see their MAC address in mac address table. I understand that MAC address will age out after a certain period of time but in this case there is no chance for that since all servers are online & exchanging the packet. Do we have an option to find a server MAC with out doing the ARP?
05-21-2018 08:04 AM
05-21-2018 10:05 AM
Mikael makes an important point that a switch learns the source mac of every frame that passes through the switch. I believe that Joseph makes another important point that in a network that is designed to have some redundancy that it is quite likely that traffic from a server will pass through some switches but not through other switches.
Perhaps we can think of an example to illustrate this. Suppose that the server is connected to switch S. Switch S is connected to three downstream switches S1 S2 and S3. When the server comes on line it checks for duplicate IP by sending an arp which is flooded through the entire network. At this point all switches have learned its source mac. As it is in operation traffic from the server passes through Switch S and through S1. So S2 and S3 are not seeing this traffic and they time out the mac address from their switch mac address table. Now if you happen to be connected to S2 or S3 and attempt to see the server it will not be in the mac address table of your switch. After you ping the server then the mac does show up in the table of your switch.
HTH
Rick
05-21-2018 11:03 AM
05-22-2018 01:49 AM
Thanks everyone for their reply. I have to add 2 more components here which will give a better understanding.
What if i have only 2 Nexus switches & along with Fabric interconnect & FEX module. Does the server/UCS blade packet really reach the switch? Does that can be reason why the switch mac address age out? I know FI is a L2 switch.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide