09-19-2004 11:14 PM - edited 03-02-2019 06:36 PM
If a L3 switch has, say, two routing ports and the rest of the ports are divided into two vlans, will this switch have four MAC addresses, as appeared to the rest of the world? My guess is four, because I think that is the only way it could properly communicate on the L2 with the other L2 guys on the network.
Am I right?
09-19-2004 11:31 PM
If a station A is talking to station B through a L2 switch, then he addresses the frame to the so-called "MAC address" of station B, not the MAC address of the switch. If he is talking L2, he doesn't know anything about the MAC address of the switch. He only needs a MAC address for the switch if he is using it as a L3 router.
Kevin Dorrell
Luxembourg
09-20-2004 01:01 AM
Yes, you are right. I wasn't correctly explaining my thoughts. But every switch, even a plain old L2 switch, has a MAC address, right? So, I guess every SVI should have it's own MAC.
For example, if you want to remotely administer your switch, you need its MAC address. In the example I mentioned you don't need to know MACs of the SVI interfaces because you have routing ports, of course.
09-19-2004 11:36 PM
Hi,
Each port on the switch has it's own MAC address. If u configured ur L3 switch for say another additional 2 SVIs, then those 2 will also have MAC addresses assigned to it, 1 for each SVI.
by placing your ports on the switch into different vlans, this does not have any direct effect on MAC addresses assigned to it. Like i said earlier, by default, all ports on ur switch, be it L3/L2, they will have their very own unique MAC address.
HTH!
Cheers,
kenny
09-20-2004 01:12 AM
How does the switch assign these new MACs? Are they in any way similar to port MACs?
09-20-2004 01:28 AM
Hi,
my mistake. HSRP addresses have MAC addresses assigned to it, generated according to the vlan number. As for SVIs, all of it uses the same MAC address, which is the burnt-in-address on the PFC/MSFC. Meaning, interface vlan 10 will have the same MAC address as interface vlan 20.
09-20-2004 01:55 AM
Hmm. Tell me then, if the SVI MACs are all the same, how can one gain access to the switch from various vlans? For example, I have two SVIs with two IP addresses. I need two MACs, right? Or maybe the same MAC will be used in both vlans?
Come to think of it, vlans are separate networks, why shouldn't there be a same MAC for both SVIs?
09-20-2004 03:22 AM
when any host on a network needs to cross vlans, they will contact their default gateway. So, when the host has the right MAC address of the gateway (from arp or host cache), the mac of the gateway will be appended to the packets' destination address. Switches will then check on their cam table for an entry for this gateway mac address and will switch on until it reaches the msfc card with the svi gateway. so, since it uses mac address, doesnt really matter if they're from different vlans, they still point back to the very same place, which is the msfc card!
09-20-2004 03:58 AM
Of course. Why would anybody give a dam - the boxes only want to make sure that the frame arrives on the right place. :)
Thanks a lot. You've been patient and helpful!
09-20-2004 04:10 AM
no prob, would appreciate u give appropriate rating if u feel that i have answered ur questions! thanks.
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