Chapter 7: Routing

206 flashcardsby Manethel
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What is the primary function of a router?
Interconnects different network IDs by filtering and forwarding traffic based on IP addresses.
2
How does a router differ from a switch?
Switch: Forwards traffic based on MAC addresses (Layer 2).

Router: Forwards traffic based on IP addresses (Layer 3).
3
What is a routing table?
A table that lists known networks and how to reach them (directly connected or via a gateway).
4
What does a default route (0.0.0.0/0) do?
Tells the router where to send traffic if no specific route exists (usually to an ISP’s gateway).
5
How does a router handle multiple default routes?
Uses metrics to prioritize paths (lower metric = preferred route).
6
Does a router modify the IP packet?
No, it only changes the MAC address (unless NAT is involved).
7
Can routers use non-Ethernet connections?
Yes (DSL, fiber, etc.)—they only care about the IP layer.
8
What happens if a router receives a packet for an unknown network?
It forwards it via the default route (if one exists).
9
What kind of address does a switch use to filter and forward traffic?

What kind of address does a router use to filter and forward traffic?
MAC address.

IP address.
10
Why do routers need at least two interfaces?
To connect to two or more different networks (each with its own network ID).
11
What is a routing table?
A list in the router that tells it where to send packets based on their destination IP addresses.
12
What are the four main components of a routing table entry?
Destination network, subnet mask, gateway, and interface.
13
What is a default route in a router’s routing table?
A route used when no other route matches the destination IP, typically forwarding packets to an upstream router or ISP.
14
What is the IP address format of a default route?
Destination and subnet mask are both all 0s (0.0.0.0/0).
15
What happens if a router receives a packet for an unknown destination?
It sends it through the default route to the next-hop router.
16
How does a router find the MAC address of a next-hop device?
By sending an ARP request to that device.
17
If a router has two default routes, how does it choose which to use?
Based on the metric value; lower metrics have higher priority.
18
What is the purpose of having two ISPs connected to one router?
For redundancy—if one connection fails, the router can switch to the other.
19
What is NAT, and why was it created?
Network Address Translation (NAT) allows multiple devices to share a single public IP.

Created because IPv4 addresses were running out in the 1990s.
20
How does NAT work for outgoing traffic?
The router replaces the private source IP with its public IP, logs the change in a NAT table, and reverses the process for incoming replies.
21
What is Static NAT used for?
Hosting servers (e.g., web, email). Maps a public IP/port to a single private device (port forwarding).
22
What is Dynamic NAT (Pooled NAT)?
A router assigns public IPs from a pool to devices dynamically. If all IPs are used, new devices can’t connect.
23
What is PAT (Port Address Translation)?
The most common NAT type in homes. Uses one public IP + unique port numbers to track sessions.
24
What is a limitation of NAT?
Breaks end-to-end connectivity (devices behind NAT can’t be directly contacted without port forwarding).
25
Why did IPv4 run out of addresses?
Only 4.3 billion addresses exist, and they were allocated inefficiently in the early internet.
26
How does NAT help with security?
Hides internal IPs from the internet, acting as a basic firewall (devices can’t be directly targeted).
27
Why do all devices on the internet need a legitimate IP address?
Because the internet requires unique public IPs for routing data between devices.
28
What kind of IP addresses are used inside most private networks?
Private IP addresses like 192.168.x.x.
29
What happens to a packet when it leaves a private network through NAT?
The router replaces the internal IP with its own public IP and records the translation in a table.
30
What happens when a reply is received by the router?
The router checks the NAT table and forwards the packet to the correct internal IP.
31
What is one downside of NAT?
Devices outside the network cannot initiate communication with internal devices unless NAT is specially configured.
32
What is Static NAT
A one-to-one mapping between a public IP and a private IP, often used for hosting services.
33
What is another name for Static NAT in practical setups?
Port forwarding.
34
What is Dynamic NAT?
A method where multiple internal devices share a limited pool of public IPs, assigned temporarily as needed.
35
What is a drawback of Dynamic NAT?
If the pool runs out of IPs, some devices won’t be able to access the internet.
36
Is NAT enabled by default on home routers?
Yes—home routers (Linksys, Netgear) have NAT enabled by default.
37
What happens if you disable NAT on a home router?
Devices on the LAN lose internet access (no IP translation occurs).
38
How do most users get internet without configuring NAT?
ISPs auto-configure routers with NAT + DHCP (plug-and-play).
39
Why is NAT usually disabled on enterprise routers?
Enterprises often need direct public IP assignments (e.g., for servers).
40
What’s the difference between WAN and LAN IPs in NAT?
WAN IP: Public (e.g., 161.16.513.x from ISP).

LAN IP: Private (e.g., 192.168.13.1 assigned by router).
41
What protocol assigns private IPs to devices in a NAT network?
DHCP (Dynamic Host Configuration Protocol).
42
What does the DHCP server on a home router do?
Automatically assigns IP addresses (e.g., 192.168.13.100 and up) to internal devices.
43
What would happen if NAT is disabled on a typical home router?
Internal devices would lose internet access unless manually configured with public IPs and routing rules.
44
Why do most users never have to manually configure NAT or IP addresses at home?
Because modern routers handle NAT and DHCP automatically, making setup seamless for typical users.
45
Why use non-standard ports (e.g., 8181) for port forwarding?
To evade automated scans/attacks targeting common ports (e.g., 80, 443).
46
What is the difference between port forwarding and port triggering?
Port Forwarding: Static mapping (always open).

Port Triggering: Dynamic (opens ports only after detecting outbound traffic).
47
What is port forwarding used for?
To allow external access to a specific internal device (e.g., camera, game server) by mapping a public port to a private IP.
48
Why does FTP require port triggering?
Active FTP uses Port 21 for requests but Port 20 for responses, which SOHO firewalls block by default.
49
What is a SOHO DMZ, and why is it risky?
Exposes one internal device to all inbound traffic.

High risk of hacking (no firewall protection).
50
How do cloud-based cameras bypass port forwarding?
They phone home to a cloud server, allowing remote access without router config (but sacrifice privacy).
51
When might you use port range forwarding?
For applications requiring multiple ports (e.g., game servers).
52
What is the key security risk of enabling SOHO DMZ?
The exposed device becomes a prime target for attacks (often compromised quickly).
53
What does a SOHO firewall typically block by default?
Any incoming information that wasn't initiated from inside the network.
54
What is port forwarding?
A router configuration that allows unsolicited traffic to be sent to a specific device inside the network.
55
Why is port forwarding useful?
It lets you access internal services (like security cameras or remote desktop) from outside the network.
56
What is port range forwarding used for?
Forwarding multiple ports at once, useful for games or servers that require many open ports.
57
How is port range forwarding different from port forwarding?
Port range forwarding handles a series of ports, while port forwarding maps a single port.
58
What is port triggering?
A method that opens ports dynamically based on outbound traffic from inside the network.
59
Why is port triggering useful for FTP?
FTP uses two ports (20 and 21), and port triggering allows both to work correctly when one is initiated.
60
What is passive FTP mode?
A mode where the FTP server responds back on the same port (21), avoiding the need for port triggering.
61
What does a SOHO DMZ do?
It forwards all unsolicited internet traffic to one internal device—risky and not recommended.
62
Why is a SOHO DMZ dangerous?
It exposes a device directly to the internet, making it vulnerable to attacks.
63
What’s the safer alternative to DMZ for remote access?
Use port forwarding or VPNs with proper authentication and firewall rules.
64
What is the default IP for most SOHO routers?
192.168.0.1 or 192.168.1.1.
65
Why change the router’s default LAN IP?
Security—avoids predictable attacks targeting default IPs.
66
What is MAC address cloning used for?
To spoof a device’s MAC (e.g., when ISP locks to a specific MAC).
67
How do you access a router’s admin interface?
Connect to LAN → Open browser → Enter router’s IP → Log in with credentials.
68
Why disable remote admin access?
Prevents external hacking attempts on the router’s interface.
69
What does the 30-30-30 reset do?
Fully resets the router to factory defaults.
70
When should you update router firmware?
Only when necessary (security patches/new features) due to bricking risks.
71
What is the primary risk of third-party firmware?
Instability or permanent damage if installed incorrectly.
72
What three pieces of info are critical in router documentation?
Default IP, username, and password
73
How can you access a router’s interface?
Connect via LAN, use DHCP, enter the gateway IP in a browser
74
What command shows your computer's IP and default gateway?
ipconfig
75
What is the WAN side of a router?
The external internet-facing side
76
How do most routers receive their WAN IP address?
Via DHCP from the ISP
77
Why would you change the LAN IP from 192.168.1.1 to something else?
Security through obscurity — avoid defaults
78
What custom firmware allows advanced features like SSH access?
DD-WRT
79
Why should you change the default admin credentials on your router?
To prevent unauthorized access
80
What does enabling HTTPS for web access do?
Encrypts the connection to the router’s interface
81
Is remote access to your router recommended?
No, unless absolutely necessary
82
What does the router’s firewall do?
Blocks unsolicited incoming traffic
83
What do Access Control Lists (ACLs) allow?
Restrictions on apps, sites, times, and keywords
84
What is the risk of a failed firmware update?
It can "brick" the router
85
What are two physical differences between SOHO and enterprise routers?
SOHO: Plastic, built-in switch/Wi-Fi.

Enterprise: Metal, modular, rack-mounted.
86
Why do enterprise routers lack built-in Wi-Fi?
Enterprise networks use dedicated wireless access points (APs) for scalability/security.
87
What is the primary management interface for enterprise routers?
Command Line Interface (CLI) (e.g., Cisco IOS).
88
Name a dynamic routing protocol supported by enterprise routers.
OSPF, BGP, or EIGRP.
89
Why might a SOHO router need frequent reboots?
Consumer-grade hardware lacks redundancy/cooling for 24/7 operation.
90
What is the purpose of modular slots in enterprise routers?
To addpgrade interfaces (e.g., fiber, copper, SFP+).
91
Which router type uses a web GUI for configuration?
SOHO routers (e.g., Linksys, Netgear).
92
What certification focuses on enterprise router configuration?
Cisco CCNA/CCNP.
93
What is the purpose of the default route (0.0.0.0)?
Sends all traffic not matching other routes to the default gateway (e.g., ISP).
94
How does a loopback route (127.0.0.0/8) work?
Directs traffic to the local machine (testing/internal services).
95
What command shows the routing table in Windows?
route print or netstat -r
96
Why are static routes unsuitable for large networks?
They require manual updates and lack adaptability to failures.
97
What is the multicast IP range?
224.0.0.0/4 (Class D addresses).
98
How do you add a static route in Cisco IOS?
ip route [destination] [subnet] [next-hop]
99
What happens if a static route’s next-hop is unreachable?
Traffic is dropped (no automatic rerouting).
100
What is a routing table?
A routing table is a list of rules that determine where to send data packets based on their destination IP address.
101
What are the two main types of routes in a routing table?
Static routes and dynamic routes.
102
What does a destination of 0.0.0.0 with a subnet mask of 0.0.0.0 represent?
The default route — used when no other specific route matches.
103
What is the loopback address and why is it important?
127.0.0.1; it's used by a computer to send traffic to itself.
104
In a routing table, what does "on-link" mean?
It means the destination is reachable directly through the specified interface, without going through a gateway.
105
What does the routing table do when the destination IP is within the same subnet?
Sends the data directly through the NIC (network interface card) without using the default gateway.
106
How do routers connect two networks using static routes?
By manually specifying which IP ranges should be routed through which gateway or interface.
107
Why are static routes less common in large networks?
They require manual configuration and don't adapt to network changes or failures.
108
What is the term for a private routed network that doesn’t use the internet?
An intranet.
109
What happens if a static route’s physical connection goes down?
The route fails and data cannot be delivered unless manually rerouted.
110
Where are static routes still commonly used?
In small internal networks, labs, or specific use cases where routing doesn’t change often.
111
What is the main advantage of dynamic routing over static routing?
Automatically adapts to network changes (e.g., failures, congestion).
112
Which metric does RIP (Routing Information Protocol) use?
Hop count (least number of routers to destination).
113
What is an LSA (Link-State Advertisement)?
A message sent by link-state routers to announce topology changes (e.g., OSPF).
114
Why is BGP the only EGP used today?
It’s the standardized protocol for routing between autonomous systems (ISPs).
115
What is convergence in routing?
When all routers agree on the network topology (no conflicting routes).
116
How does link-state routing improve convergence time?
Sends updates only when changes occur (vs. fixed intervals in distance vector).
117
What is an AS (Autonomous System)?
A network managed by a single organization (e.g., an ISP or large corp).
118
Which dynamic routing protocol is best for a large enterprise network?
OSPF (link-state, fast convergence, supports complex metrics).
119
What is convergence in networking?
The state when all routers in a network have accurate and updated routing tables.
120
Why is static routing impractical for large networks?
Because any change requires manual updates on each router, which is inefficient and error-prone.
121
What is dynamic routing?
A method where routers automatically update their routing tables in response to network changes.
122
Name 5 common routing metrics.
Hop count, MTU, bandwidth, cost, and latency.
123
What is MTU and why does it matter?
Maximum Transmission Unit — it defines the largest packet size that can pass without fragmentation.
124
What is the disadvantage of using a satellite link in networking?
High latency due to the long distance data must travel to space and back.
125
How does a distance vector protocol work?
It sends entire routing tables to neighboring routers at regular intervals.
126
Give an example of a distance vector protocol.
RIP (Routing Information Protocol).
127
How is a link state protocol different from a distance vector protocol?
It sends updates only when changes occur, not the entire routing table, and converges faster.
128
What are Hello or Link State Advertisements used for?
To notify neighboring routers about changes in routing information.
129
What are the two major categories of routing protocols based on scope?
Interior Gateway Protocols (IGP) and Exterior Gateway Protocols (EGP).
130
What is the only Exterior Gateway Protocol (EGP)?
BGP (Border Gateway Protocol).
131
What is BGP used for?
To route data between autonomous systems across the internet.
132
What do BGP routers use to identify networks instead of just IP addresses?
Autonomous System Numbers (ASNs).
133
What type of protocol is OSPF?
Link-state IGP (Interior Gateway Protocol).
134
How does OSPF calculate its metric?
Based on bandwidth (cost = 10⁸/BW in bps).
135
What is the purpose of a Designated Router (DR) in OSPF?
To reduce LSA flooding by managing updates on multi-access networks.
136
What triggers an OSPF update?
Link-state changes (e.g., link failure), not periodic intervals.
137
Why is OSPF faster than RIP?
Uses event-driven LSAs and hierarchical areas for quick convergence.
138
What is Area 0 in OSPF?
The backbone area that connects all other areas.
139
Which OSPF LSA type advertises external routes (e.g., from BGP)?
Type 5 (AS External LSA).
140
How is the OSPF Router ID determined?
Manually set, or automatically chosen as the highest loopback/IP interface.
141
What are Link State Advertisements (LSAs)?
Messages sent between OSPF routers to advertise the networks they are connected to.
142
What is an OSPF Area ID?
A numerical ID that groups routers in OSPF; it looks like an IP address but has no IP function.
143
What is the Designated Router (DR) in OSPF?
The main router elected to manage LSA communication in a broadcast network segment.
144
What is the Backup Designated Router (BDR)?
A secondary router elected to take over if the DR fails.
145
Are Designated Routers set manually or automatically in OSPF?
They are elected automatically, though manual configuration is possible.
146
What is the main advantage of OSPF over RIP?
Faster convergence and more efficient updates—only link changes are advertised, not entire routing tables.
147
Is OSPF compatible with CIDR?
Yes, OSPF fully supports CIDR addressing.
148
Does OSPF work well with BGP?
Yes, OSPF integrates well with BGP, especially in larger networks.
149
What is BGP’s primary role?
Route traffic between autonomous systems (ASes) on the internet.
150
What is an ASN?
A 32-bit number (e.g., AS15169) uniquely identifying an autonomous system.
151
Which BGP attribute prioritizes paths based on AS hops?
AS Path (shorter path = preferred).
152
How does BGP differ from OSPF in convergence speed?
BGP converges slowly (minutes) vs. OSPF (seconds).
153
What is the purpose of Local Preference in BGP?
Manually prioritize outgoing paths within an AS.
154
Why is BGP policy-based?
To let ASes control traffic flow (e.g., cost, partnerships).
155
What is an IXP?
A physical hub where ASes interconnect to exchange traffic.
156
How does BGP reduce routing table size?
Route aggregation (combining subnets into larger blocks).
157
What type of routing protocol is BGP?
A hybrid protocol with aspects of both distance vector and link state.
158
What are the two types of networks described in the internet’s structure?
Local Area Networks (LANs) and router networks (owned by ISPs).
159
Why can’t OSPF be used to route data across the entire internet?
Because it can’t handle routing tables with millions of entries — it’s not scalable at a global level.
160
What is an ASN?
Autonomous System Number — a 32-bit identifier used to identify each AS on the internet.
161
How do routers inside an AS typically communicate?
Using protocols like OSPF (Interior Gateway Protocols).
162
What does BGP allow ASes to do?
Communicate and route traffic between each other across the internet.
163
What does a router sending traffic to the internet need to know?
Only the location of the BGP router at the edge of its AS.
164
Why is BGP so scalable?
It only requires routers to know paths to ASes, not to individual LANs or IPs, reducing load and complexity.
165
What type of protocol is EIGRP?
Advanced Distance Vector (Cisco proprietary).
166
Which two metrics does EIGRP use by default?
Bandwidth + Delay (K1 and K3 weights).
167
What is a Feasible Successor (FS)?
A backup path that meets the feasibility condition (loop-free).
168
What EIGRP table stores all possible routes?
Topology Table (includes successors and feasible successors).
169
Which packet type does EIGRP use for neighbor discovery?
Hello packets (multicast).
170
What triggers an EIGRP route to enter "Active" state?
Loss of successor and no feasible successor (DUAL recomputes).
171
How does EIGRP mark external routes in the routing table?
"D EX" (in Cisco CLI).
172
What algorithm does EIGRP use to prevent loops?
DUAL (Diffusing Update Algorithm).
173
What does EIGRP stand for?
Enhanced Interior Gateway Routing Protocol.
174
What type of routing protocol is EIGRP?
A distance vector protocol (with link-state characteristics; hybrid).
175
What are the primary metrics EIGRP uses to select routes?
Bandwidth and latency (composite metrics), hop count.
176
What are the four key components of EIGRP?
Neighbor Discovery & Recovery, RTP, DUAL, and PDM.
177
What protocol in EIGRP ensures reliable delivery of routing messages?
RTP (Reliable Transport Protocol).
178
What algorithm does EIGRP use to prevent routing loops and recalculate paths?
What algorithm does EIGRP use to prevent routing loops and recalculate paths?
179
What condition does DUAL use to ensure a path is loop-free?
Feasibility condition.
180
What is a successor in EIGRP?
The best known path to a destination; added to the routing table.
181
What is a feasible successor in EIGRP?
A backup path that meets feasibility condition; stored in the topology table.
182
What does the EIGRP neighbor table contain?
Neighbor router info: IP, interface type, hold-down timer.
183
What does the EIGRP topology table contain?
All learned routes with their distances and states (active or passive).
184
What are the five packet types in EIGRP?
Hello, Update, Query, Reply, Request.
185
What’s the difference between an internal and external EIGRP route?
Internal = from within same AS; External = from outside AS or static.
186
What is the purpose of FHRP?
To provide gateway redundancy by creating a virtual router shared by multiple physical routers.
187
Which FHRP protocol supports load balancing?
GLBP (Gateway Load Balancing Protocol).
188
What multicast IP does HSRP use?
224.0.0.2 (UDP port 1985).
189
How does VRRP differ from HSRP in preemption?
VRRP enables preemption by default; HSRP requires manual configuration.
190
What is the role of the AVG in GLBP?
The Active Virtual Gateway assigns MACs to AVFs for load balancing.
191
Which FHRP protocol is vendor-neutral?
VRRP (Virtual Router Redundancy Protocol).
192
What command verifies HSRP status?
show standby brief
193
How does GLBP distribute traffic?
Per-host or round-robin across Active Virtual Forwarders (AVFs).
194
What does FHRP stand for?
irst Hop Redundancy Protocol
195
What problem does FHRP solve?
It ensures continued internet access by providing a backup virtual gateway when the primary router fails.
196
What is the “first hop” in FHRP?
The first router (default gateway) a device uses to send traffic outside the local network.
197
How does FHRP appear to client devices?
As a single virtual IP and MAC address (default gateway), even though multiple routers exist.
198
What happens if the active router fails in an FHRP configuration?
A standby router takes over using the same virtual IP/MAC without disrupting service.
199
Name the 3 types of FHRP.
HSRP, VRRP, GLBP
200
Who developed HSRP?
Cisco (proprietary)
201
Does HSRP use preemption by default?
No, it must be manually enabled.
202
How many roles are there in HSRP?
One active router, one or more standbys.
203
What makes GLBP different from HSRP and VRRP?
It supports load balancing, not just failover.
204
Who developed GLBP?
Cisco (proprietary)
205
How does GLBP perform load balancing?
Using ARP replies that return different MAC addresses, based on router weights.
206
What multicast IP and port does GLBP use?
IP: 224.0.0.102, Port: UDP 3222
Study all 206 cards for free