whanzens
0 pts. | Jan 24 2007 7:05AM GMT
1. The router knows the mac addres of the directly attached devices (same ip-range), as it needs this in case of a hub or such device and local packets are send to mac address (I believe).
2. the router only knows the mac addresses of devices he has communicated with within a certain timespan, a switch knows all mac addresses connected to all ports. The router and switch don’t know mac-addresses beyond a second router in a netwerk, because this is all done on ip-address.
3. I’m not so familiar with the L2 and L3 layers, but the router at least changes the hop-count in the packet.
4. Don’t know.
5. A router is not always directly connected between two ethernet networks, but can also, depending on the type communicate over ADSL, ISDN, PSTN or FDDI, Tokenring, Atm or all kinds of other protocols.
tbitner
495 pts. | Jan 24 2007 10:04AM GMT
1. Yes a router maintains an ARP table…just do a “show arp” to see all the IP->MAC addresses it knows. A router doesn’t keep a “master” table per se, but keeps it’s own local arp cache for traffic that it needs to frame for a local LAN. Every device has an arp cache including Windows that it consults before framing a packet as it passes down through the stack.
2. Yes a router has to know MAC addresses. On the local LAN, hosts communicate ONLY via hardware address. the router needs to frame the packet to send it to the next hop or local LAN.
3. A router has to append a L2 header for the packet to traverse the local LAN or proceed to next hop router. A switch does not add L2 headers to a packet. That is done either at the router or Windows TCP/IP stack. The switch only sends frames to the correct port based on L2 header.
4. On an L3 switch the switch examines past the L2 frame (mac address) to L3 header (packet). It then looks up the IP address and makes routing decisions (using ASIC). It effectively takes away local LAN routing decisions from the router (except for WAN routing).
5. You need a router for your WAN connection and for the default route. Plus L3 switches are more expensive. L3 switches are made for ASIC-based routing between VLANs, not for routing out to the Internet.
MennoT
0 pts. | Jan 30 2007 7:39AM GMT
The statement, that a router ‘changes’ the MAC address gives a wrong impression of the process. The router picks the L3 content, makes its routing decision and prepares a packet (frame) for the outgoing interface.
Depending on the connected media, other L2 protocols than Ethernet could be used that do not use Ethernet MAC addresses at all. Also, fragmenting or reassembly may be involved and in that case too, the view as if an Ethernet frame came out of the router with a changed MAC address cannot be maintainded.






