Book now with code EOY2025
typesh wrote: » Hey, Had a question about a switches MAC address. When I do a "show version" I see what is called a Base ethernet MAC Address, however when I do a "show interface Fa0/1" I also see another MAC Address... When I do a "show interface Fa0/2" there is also another MAC Address. There appears to be a MAC Address for every interface... Does that mean that the switch itself has a MAC Address (called the Base ethernet MAC Address), and also that each interface has it's own MAC Address? Thank you.
typesh wrote: » Sounds good. I understand. Thanks for all the replies. Just out of curiosity... Since each interface has it's own MAC Address, what is the point of the switch having a Base ethernet MAC Address? Is it ever used anywhere?
jason_lunde wrote: » yep... do a show spanning tree. The bridge id of the switch uses the base Ethernet mac address.
trackit wrote: » This is something that i havent understood fully yet: switches and mac addresses... If every port on a switch has its own mac address then what are they used for? Lets say if i send a frame then i use ARP to find a mac address of my next hop device (router or host, not switch) and i address the frame to that next hop mac address... So... when does actually mac addresses of switch ports come into play? im quite sure the switch dont modify the frame... or does it?
beh wrote: » So a frame going from a switch to a host would have the switch interface's mac address as the source address, and the host's network adapter's mac address as the destination address.
trackit wrote: » EDIT: On the other hand receiving host may use source ip address to determine sending host though i dont see any point in changing the source mac address.
trackit wrote: » Are you sure? actually im pretty sure thats not the case... im pretty sure swicth doesnt alter the frame and source/destination mac addresses remain how sending host specifyed them. If switch would indeed change the source mac address, then how would destination host know to whome it needs to reply to? EDIT: On the other hand receiving host may use source ip address to determine sending host though i dont see any point in changing the source mac address. I wonder why this "swiching" concept is not explaind in any networking book or study guide i have come across.
beh wrote: » Ethernet frames operate on a point-to-point basis. Let's say we have two hosts connected to a switch (under the same subnet of course), and let's say that one host (host A) pings the other host (host . A frame is sent to the switch, with the switch's interface's mac address as the destination, and host A's NIC as the source. When the switch receives the frame, it "unpacks" it, so to speak, to look at the IP packet contained inside. It then uses the destination IP (host B's IP address) of the packet in conjunction with ARP to determine the destination MAC address for the next frame and which interface it's attached to. After this mac address is determined, the switch then creates another frame with the destination mac address being the one that was just determined, and the source address being the mac address of the interface the frame is being sent out of. This process then happens in reverse in order for host B to reply. EDIT: What I described might have more to do with passing through a router than a switch since layer 3 is involved. Double-checking my answer now... EDIT2: Ok, what I said above seems to apply to passing through a layer 3 device. The switch does not change the source/destination address of a frame.
typesh wrote: » Does that mean that the switch itself has a MAC Address (called the Base ethernet MAC Address), and also that each interface has it's own MAC Address?
dtlokee wrote: » The base MAC address is buned into the parameter block of the switch and can be modified by breaking the boot sequence and resetting the MAC_ADDRESS parameter and then written to the parameter block (although this should not need to be done). On a layer 3 switch the mac address of any layer 3 interface is based off the base mac address + offset of the port number. Layer 2 interfaces don't have an individual MAC addres, only the VLAN interface used for management.
trackit wrote: » so... what are switchports MAC addresses used for? i still dont know
mikej412 wrote: » My 2950 has the + offset of the port number added to the Base Ethernet MAC..... but for layer 3 protocols it isn't getting used. A layer 2 switch isn't rewriting frames and putting in it's switchport MAC Address as a source.... Check out some of the layer 2 protocol formats and see what they use as a source address. I think ISL uses the switchport MAC address.
Use code EOY2025 to receive $250 off your 2025 certification boot camp!