In a classless environment, when a router needs to send a packet to a particular destination, it performs the following check in this order:
1. Is the destination address one of my connected interface addresses? If yes, use ARP for the address and then encapsulate the packet in an Ethernet frame and send it to the destination.
2. If no, do I have a route in my routing table for this destination address? If yes, use that route from the routing table and send the packet.
3. If no, check whether the gateway of last resort is set. If it is set, send the packet to the address mentioned in the gateway of last resort. (In Example 5-74, the packets will be sent to 22.214.171.124. If there is no gateway of last resort, the packet is dropped.)
Example 5-74 shows that the gateway of last resort is set to 126.96.36.199. This means that if a router does not have an entry in the routing table, it will send the packet to 188.8.131.52.
Was this article helpful?