The IP Connectivity section is crucial for understanding how data packets are routed across networks.
Routing is the process of selecting a path for data packets to travel from a source device to a destination device across a network.
Next-Hop Address:
Administrative Distance (AD):
Metric:
Static routing involves manually configuring routes on a router to define the path packets should take.
To configure a static route, you specify:
Example command:
ip route 192.168.2.0 255.255.255.0 192.168.1.1
Imagine a small network with two routers:
192.168.1.0/24.192.168.2.0/24.192.168.2.0/24 via Router B.Configuration on Router A:
ip route 192.168.2.0 255.255.255.0 192.168.1.2
Configuration on Router B:
ip route 192.168.1.0 255.255.255.0 192.168.2.1
Dynamic routing automatically learns and updates routes based on changes in the network. Routers share routing information using specific protocols.
Distance Vector Protocols:
Link-State Protocols:
Hybrid Protocols:
OSPF is a link-state routing protocol used in large and complex networks. It organizes routers into areas to reduce overhead and improve scalability.
Enable OSPF:
router ospf 1
1 is the process ID, locally significant on the router.Define a network:
network 192.168.1.0 0.0.0.255 area 0
0.0.0.255) is the inverse of the subnet mask.IPv6 routing is the process of forwarding IPv6 packets between networks. Similar to IPv4, IPv6 supports both static and dynamic routing. However, IPv6 addresses are 128 bits long and are represented in hexadecimal, offering a much larger address space than IPv4.
Static Routing in IPv6 is configured similarly to IPv4 but uses IPv6 addresses.
Example:
Suppose you have two routers:
2001:db8:1::/64.2001:db8:2::/64.Configuration on Router A:
Add a static route to reach the 2001:db8:2::/64 network:
ipv6 route 2001:db8:2::/64 2001:db8:1::2
Explanation:
2001:db8:2::/64: Destination network.2001:db8:1::2: Next-hop address (Router B's IPv6 interface).Configuration on Router B:
Add a route to reach the 2001:db8:1::/64 network:
ipv6 route 2001:db8:1::/64 2001:db8:2::1
IPv6 supports dynamic routing protocols, including:
Example Configuration for OSPFv3:
Enable OSPFv3:
ipv6 router ospf 1
Assign an interface to OSPFv3:
interface GigabitEthernet0/0
ipv6 ospf 1 area 0
A routing table is a database stored in a router or Layer 3 switch that contains information about how to reach different networks.
192.168.1.0/24 is connected to the router, it will appear as a directly connected route.192.168.2.0/24.Here’s an example of what a routing table might look like:
C 192.168.1.0/24 is directly connected, GigabitEthernet0/0
S 192.168.2.0/24 [1/0] via 192.168.1.1
O 10.0.0.0/8 [110/2] via 192.168.1.2, GigabitEthernet0/1
IPv4 Routing Table:
show ip route
IPv6 Routing Table:
show ipv6 route
| Subtopic | Key Points |
|---|---|
| Routing Concepts | Defines how packets are forwarded between networks, involving next-hop IPs, AD, and metrics. |
| Static Routing | Manually configured routes, useful for small or backup networks. |
| Dynamic Routing | Automatically learns and adapts to changes; includes protocols like OSPF and RIP. |
| OSPF | A link-state protocol that calculates the shortest path using Dijkstra’s algorithm. |
| IPv6 Routing | Similar to IPv4, with both static and dynamic routing capabilities. |
| Routing Table | A database used by routers to determine the best path for forwarding packets. |
Static routing is manual but predictable. While it is often used in small networks, it also plays important roles in backup, secure, or specialized routing situations.
ip route 192.168.2.0 255.255.255.0 192.168.1.2
This routes traffic destined for 192.168.2.0/24 via the next-hop 192.168.1.2.
You can create a backup static route that only becomes active if the primary route fails. This is done by assigning a higher administrative distance (AD).
Example:
ip route 10.0.0.0 255.255.255.0 192.168.1.1 1 ! Primary route (AD 1)
ip route 10.0.0.0 255.255.255.0 192.168.2.1 200 ! Backup route (AD 200)
If the primary next hop becomes unreachable, the router will fall back to the backup route.
| Protocol | Type | Metric | Scalability | Use Case |
|---|---|---|---|---|
| RIP | Distance Vector | Hop count (max 15) | Low | Very small networks, legacy compatibility |
| OSPF | Link-State | Cost (bandwidth-based) | High | Scalable enterprise networks |
| EIGRP | Advanced Distance Vector (Hybrid) | Composite metric (delay + bandwidth) | Medium to High | Cisco environments with faster convergence |
router eigrp 100
network 192.168.1.0 0.0.0.255
no auto-summary
Explanation:
Autonomous System number 100
EIGRP advertises 192.168.1.0/24 network
Disables automatic summarization for VLSM support
IPv6 static routing is configured similarly to IPv4 but uses different syntax and addresses.
Just like IPv4 uses 0.0.0.0/0, IPv6 uses ::/0 to represent the default route.
Example:
ipv6 route ::/0 2001:db8:1::1
This means "send all traffic not in the routing table to the next-hop IPv6 address 2001:db8:1::1".
Use Case: Connecting to an ISP or backbone router.
IPv6 supports dedicated versions of traditional protocols with some syntax changes.
ipv6 router ospf 1
router-id 1.1.1.1
interface GigabitEthernet0/0
ipv6 ospf 1 area 0
Notes:
OSPFv3 is configured per interface, not via the network command like in IPv4.
ipv6 unicast-routing must be enabled globally.
ipv6 router rip CCNA
On each interface:
interface GigabitEthernet0/0
ipv6 rip CCNA enable
Notes: RIPng is rarely used in production but required knowledge for exam.
ipv6 router eigrp 100
eigrp router-id 1.1.1.1
On each interface:
interface GigabitEthernet0/0
ipv6 eigrp 100
Enable IPv6 Routing:
ipv6 unicast-routing
A routing table is the central map a router uses to forward packets.
Route summarization combines several routes into one summary route, reducing table size and improving efficiency.
Example: Instead of storing:
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24
You can summarize with:
ip route 192.168.0.0 255.255.252.0 <next-hop>
(192.168.0.0 to 192.168.3.255)
Benefits:
Reduced routing table size
Faster lookups
Hides internal topology from upstream routers
Each route is labeled with a code:
C: Directly connected
S: Static
O: OSPF
D: EIGRP
R: RIP
L: Local (specific to the interface’s IP)
Command to view:
show ip route
Look for [AD/Metric], next hop, and outgoing interface.
| Area | Enhanced Topic |
|---|---|
| Static Routing | Floating static routes for redundancy |
| Dynamic Routing | Comparative analysis of RIP, OSPF, EIGRP + full EIGRP example |
| IPv6 Static | ::/0 default route explained |
| IPv6 Dynamic | Full syntax for OSPFv3, RIPng, EIGRPv6 |
| Routing Tables | Route summarization and real-world table interpretation |
A router receives two routes to the same destination network: one learned via OSPF with administrative distance 110 and one configured as a static route with administrative distance 1. Which route will be installed in the routing table?
The static route.
When multiple routing sources provide routes to the same destination, the router selects the route with the lowest administrative distance. Administrative distance represents the trustworthiness of a routing source. Static routes have an administrative distance of 1 by default, while OSPF routes use 110. Because 1 is lower than 110, the static route is considered more reliable and will be installed in the routing table. Dynamic routing protocols such as OSPF are ignored in this case unless the static route is removed or configured with a higher administrative distance.
Demand Score: 86
Exam Relevance Score: 94
Which routing table code indicates a directly connected network?
C
The letter “C” in a Cisco routing table represents a directly connected network. This entry appears automatically when an interface is configured with an IP address and is in an up/up state. Because the network is directly attached to the router, no routing protocol or manual configuration is required to learn it. Directly connected routes have the highest reliability and are always preferred when forwarding packets destined for that subnet. These routes also provide the next-hop reference for dynamic routing protocols.
Demand Score: 78
Exam Relevance Score: 90
Which command enables OSPF on a router for networks within a specified wildcard mask?
The network command within OSPF configuration mode.
In Cisco OSPF configuration, the network command is used to define which interfaces participate in OSPF and which networks are advertised. The command includes a network address and wildcard mask that match interface IP addresses. When an interface matches the specified network statement, OSPF is enabled on that interface and the associated network is advertised to neighbors. This mechanism allows administrators to control which interfaces participate in the routing process without directly configuring OSPF under each interface.
Demand Score: 85
Exam Relevance Score: 92
A router must route traffic to network 10.10.10.0/24 via next hop 192.168.1.1. Which configuration creates the correct static route?
ip route 10.10.10.0 255.255.255.0 192.168.1.1
Static routes are manually configured routes that define a specific path to reach a destination network. The Cisco syntax requires the destination network, subnet mask, and next-hop IP address or exit interface. In this configuration, traffic destined for the 10.10.10.0/24 network will be forwarded to the next hop at 192.168.1.1. Static routes are often used for small networks, default routes, or backup routes when dynamic routing protocols are unnecessary or unavailable.
Demand Score: 89
Exam Relevance Score: 93
Which protocol provides redundancy for default gateway services by allowing multiple routers to share a virtual IP address?
First Hop Redundancy Protocol (FHRP).
First Hop Redundancy Protocols allow multiple routers to cooperate so that hosts can use a single virtual default gateway address. If the active router fails, another router automatically takes over the role, ensuring continued connectivity for hosts. Common Cisco FHRP implementations include HSRP, VRRP, and GLBP. These protocols improve network availability by preventing gateway failure from interrupting host communication with external networks.
Demand Score: 80
Exam Relevance Score: 91