Book now with code EOY2025
Rearden wrote: I'm a bit confused on part of the operation of clients and switches. When a client has data that it wants to send a remote web server, it knows that web servers ip address, and nothing more. Since this web server is not on the same subnet as the client, the client says 'okay, i need to send this to the default gateway' and since I know the IP of the gateway, i can just send it there. So, what happens? Is the layer 2 address changed to that of the gateway router? is the layer 3 address changed from that of the webserver to that of the router? It seems more likely to me that it's the layer 2 address since we most liekly don't know the mac of the web server to start with. What does this have to do with switching, you might ask? Well, the question arised when I started considering the idea concept in the operation of a switch recieving a unicast address, how if it recieves a packet for an unknown mac, it forwards it out all interfaces aside from the one that it came in on. Since I know that packet sniffing other people's traffic is impossible without arp poisioning, I'm trying to figure out what mac our imaginary frame has when it reaches the switch.
bmauro wrote: Alright - I haven't done this in awhile so hopefully I'll either get this right or someone will correct me If PC1 wants to send a packet to PC2, but PC2 is on another network, and the two have NEVER communicated before, first PC1 will send an ARP request. This request is a broadcast to all devices on the LAN segment, since PC2 is on another network, the Rotuer will respond to this request with IT'S OWN MAC address.
sprkymrk wrote: However, if it is a remote network it will not do an arp broadcast at all, but forward the arp request to the default gateway. It will only broadcast the arp request if the logical address (IP) is on the same network. Hope that helps.
ed_the_lad wrote: an arp request will be broadcast with the destination ip address of the default gateway.Arp's are always broadcast, the arp frame has FF.FF.FF.FF.FF.FF as the destination mac address, i.e. its broadcast at layer 2.
Paul Boz wrote: Router A has a routing table entry for the remote network, however, so the router now encapsulates the packet into a layer two frame and sends it out s0 with the following information: Source IP address: 192.168.7.3 Source MAC: 0c:43:29:fd:ab:c1 (MAC of s0 on Router A)
ed_the_lad wrote: Paul Boz wrote: Router A has a routing table entry for the remote network, however, so the router now encapsulates the packet into a layer two frame and sends it out s0 with the following information: Source IP address: 192.168.7.3 Source MAC: 0c:43:29:fd:ab:c1 (MAC of s0 on Router A) Nice Pic, i hope you dont cry when i tell you this, but a serial interface doesnt have a mac address.
Kaminsky wrote: So, just to clarify, the source and destination Layer 3 IP stay the same (unless NAT or some such) but it's the MAC addresses and default routes on routers which do the driving to an unknown host on the other side of the world?
Use code EOY2025 to receive $250 off your 2025 certification boot camp!