Академический Документы
Профессиональный Документы
Культура Документы
The most important thing for Exam is to remember where, when, how, and why MAC
and IP addresses are changing (removed, replaced).
We are assuming that all devices have just been turned on, switch is layer 2 switch and
PCs are properly configured.
PC1 pings remote PC2. As two PCs are separated by a router, they must be on different
networks (subnets).
0. PC1 determines that destination IP is on remote networks using ANDing method of
bit calculating, so PC1 will use its Default Gateway.
1. PC1 looks in its ARP cache for default gateway IP address. If does not have it, it
sends ARP request (hey, you with IP 1.1.1.1, what is your MAC?)
2. Switch1 gets the frame; frame is ARP broadcast, so Switch1 processes the frame.
Adds MAC source address and interface # it came in.
3. ARP is broadcast (all FFFFs), Switch1 sends out the frame to all ports in the same
VLAN except the receiving port. (Frame is not move to upper layers in OSI, instead
Data link takes care of it)
4. Broadcast ARP reaches your Router1. Router1 accepts frame since target IP address
matches the receiving port's IP address.
5. Router1 updates its ARP table with received information and replies to the request
with the receiving port's MAC address. (I am 1.1.1.1, my MAC is 00-11-22-33-44-55)
At Router at Layer 3
1. The routing table finds a routing entry to the destination IP address.
2. The destination network is directly connected. The router sets destination as the nexthop.
3. The router decrements the TTL on the packet.
Router at Layer 2
1. The next-hop IP address is a unicast. The ARP process looks it up in the ARP table.
2. The next-hop IP address is not in the ARP table.
The ARP process tries to send an ARP request for that IP address and drops this
packet.
ARP at Router layer 2
1. The ARP process constructs a request for the target IP address.
2. The device encapsulates the PDU into an Ethernet frame.
Notes:
At step 3; if Switch is configured with an IP address and gateway (for management
purpose) then alternate step 3 is:
3. ARP request's target IP address does not match the receiving port's IP address on
Switch1 's VLAN 1 (if configured), so Switch 1 sends out the frame to all ports in the
same VLAN except the receiving port. (Frame is not move to upper layers in OSI,
instead Data link takes care of it)
Switches do NOT create ARP broadcast and do not care about Network layer (3),
unless the packet is destined for the switch (management purpose).
Switch has ARP table. It is empty at first until you configure IP address for management
purpose. Switch ARP table is build when hosts ping the switch, not when traffic passes
thru the switch.
PART 2
Adding another router to topology is being written.