Configuring IPv4 and IPv6 routing
The term "router" in this chapter refers to both routers and Layer 3 switches.
Overview
A router selects an appropriate route according to the destination address of a received packet and forwards the packet to the next router. The last router on the path is responsible for sending the packet to the destination host. Routing provides the path information that guides the forwarding of packets.
Routing table
A router selects optimal routes from the routing table, and sends them to the forwarding information base (FIB) table to guide packet forwarding. Each router maintains a routing table and a FIB table.
Routes discovered by different routing protocols are available in a routing table and they can be divided into the following categories by origin:
•Direct
•Static
•Dynamic
Each entry in the FIB table specifies a physical interface that packets destined for a certain address should go out to reach the next
A route entry includes the following items:
•Destination IP
•Mask (IPv4)/prefix length
•
•Outbound
•Next
Static route
Static routes are manually configured. If a network's topology is simple, you only need to configure static routes for the network to work correctly.
278