Chapter 16 - Configuring IPv4 Addresses and Static Routes Flashcards
What is the function of IP Routing?
To carry packets across IP networks from sender to receiver and use routing decisions to decide on the best route for this.
What is the process of IP routing with reference to local and non-local addresses specifically for hosts?
If the destination address is in the same local subnet as the host that is sending the packet, it will be sent directly to the destination by:
- Finding the destination host’s MAC address using ARP.
- Encapsulating the packet in a frame with the destination MAC address of the destination host.
If the destination address is not in the same local subnet as the host that is sending the packet, it will be sent to the default gateway by:
- Finding the default gateway’s MAC address using ARP.
- Encapsulating the packet in a frame with the destination MAC address of the default gateway.
What is the process of IP routing for routers?
- For each frame received the router decides whether or not to process the frame. If the frame has no errors (as checked in the FCS field) and the frames destination MAC address is the router’s MAC address then it will be processed.
- If the frame is processed then the router will de-encapsulate it to get to the packet.
- Here the router makes a routing decision by comparing the packet’s destination IP to its routing table to find a route that matches the packet’s destination address. This route will identify the outgoing interface and sometimes the net-hop router’s IP address.
- Once the routing decision has been made the router will encapsulate the packet into a frame appropriate for the outgoing interface. When forwarding out of LAN interfaces, the router will use ARP to find the next devices MAC address.
- Finally the frame will be transmitted out of the route’s outgoing interface.
What will happen if a router receives a frame that is destined for a unicast MAC other than its own?
The router will ignore said frame.
True or false. Routes for connected subnets don’t include a next-hop IP address.
True. Connected subnet routes don’t need to go to another router to reach their destination so they will only include the outgoing interface that they need to follow in order to reach their destination.
True or False. Routers can only route packets out of interfaces that are in an up/up state.
True.
What are the two methods that a router can add routes to its routing tables? Provide examples
- Static Routes - Added because of the configuration of the ip route command on the local router.
- Dynamic Routes:
- Routing Protocols - Added via a process that dynamically causes routers to tell each other about
their networks so they all learn routes.
- Connected Routes - Added because of the configuration of the ‘interface ip address’ command on
the local router. (i.e If a subnet is configured on an interface this will be added to the router’s routing
table).
When will a router add a connected route for a connected subnet to its routing table?
- When the interface is in a working state (when it shows up/up) otherwise it will be removed.
- When the interface has an IP address configured to it via the ‘interface ip address’ command.
What is a Local Route?
- A local route is a route for a specific address used on the interface of a router instead of an entire subnet. If an interface is configured with 192.168.1.1/24 then a connected route will be added for the entire network (192.168.1.0/24) and a local route will be added for the address of that interface (192.168.1.1/32).
- Local routes are always configured as /32 and therefore have a subnet mask of 255.255.255.255.
- They are used to allow routers to more efficiently forward packets sent to the router itsself.
What is the Routing Protocol Code?
These are the letters shown when entering the ‘show ip route’ command that define the characteristics of routes. (e.g. C = Connected L = Local S = Static O = OSPF)
How long does it take for an ARP entry to time out on Cisco IOS?
240 minutes after it not being used.
How does a router show an ARP entry that will not time out?
It will have a ‘-‘ in the Age collumn.
What information will be included when adding a static route?
- A destination address with a subnet ID and mask
- Forwarding instructions which take the form of either the next-hop router’s IP or the outgoing interface that leads to the next-hop router
What are the functions of a network route, local route, and default route?
- A network route is a route where the destination is a network/subnet
- A local route is a route that points to a single IP address
- A default route is used if there are no more specific routes in the routing table
What does it mean if a static route pointing at an outgoing interface disappears from a routing table?
Either this route has been deleted or the outgoing interface is currently down. If it has not been deleted the route will appear once the interface comes back up.