Book now with code EOY2025
control wrote: » Ok, so if PC1 and PC 2 are in different networks, we would need to assume some sort of Layer 3 device is now in the equation, be it a layer3 switch or an actual router. Once the router receives the packet, it would check the IP destination address against the info in its routing table and route it according to what information ir holds........... I think!!
knwminus wrote: » There you go. Now consider you have this network PC1>>Switch1>>>Router1>>>Switch2>>>PC2 PC1 has an ip address of 192.168.1.2 PC2 has an ip address of 172.16.1.2 They want to talk to each other. What will be the layer 2 and layer 3 addresses during each stage of the conversation? (hint 1 will stay the same and 1 will change, going both ways)
control wrote: » Would this not just be the same process as I described above? Can you talk me through this please, just so I understand where you're coming from? Thank You
control wrote: » Ok, so my understanding (high probability this is crap!), is - the router will take packet in through E1, and looking at the layer3 will know to route it out to its E2 port. Before routing it out through E2, it will amend the current layer 2 information within the packet. The layer 2 info will now have E2 (MAC Address) as the source address, and PC2 (MAC) as the destination address.............. Shoot me down...cmon
control wrote: » Thanks for all this Knwminus. I'm guessing that all requests to the webserver will have a source IP of 190.1.1.1, and this change happens at layer 3?
knwminus wrote: » So when PC1 is putting together a frame to be sent to PC2, it will arp in the local broadcast domain to try to find out where PC2 is. The router will reply to the broadcast with send it to me, here is my mac.
knwminus wrote: » So when PC1 is putting together a frame to be sent to PC2, it will arp in the local broadcast domain to try to find out where PC2 is. The router will reply to the broadcast with send it to me, here is my mac. It will send out the mac address of its Ethernet port 1. l
ConstantlyLearning wrote: » Doesn't PC1 use ARP to determine if PC2 is on the same network and if not, send the frame to it's default gateway? Not "The router will reply to the broadcast..."?
kalebksp wrote: » Whoa there guys, neither of those are quite how it works. knwminus's description is roughly how proxy ARP works, but in a normal network proxy ARP isn't used. How it should work is PC1 determines whether PC2 is on it's network by comparing its network (identified by it's IP address and subnet mask) with the IP address of PC2. If it is on the same network it ARPs for PC2's MAC address and uses that for communication. If it determines PC2 is not on the same network it will ARP for it's default gateway's MAC (assuming that it hasn't already been cached) and sends the packet to the default gateway (router). The header addressing when sending a packet to the router is how knwminus described; layer 2 destination = router's MAC, layer 3 destination = PC2's IP.
Agent6376 wrote: » I'm sitting my CCENT soon and I had hoped that someone was going to throw this out there. Thank God all that reading wasn't for nothing. And to the OP, yes. DNS works like this (if you don't already know)... ... ...
Use code EOY2025 to receive $250 off your 2025 certification boot camp!