Question #1362
SIMULATION
-
Guidelines
-
This is a lab item in which tasks will be performed on virtual devices
• Refer to the Tasks tab to view the tasks for this lab item.
• Refer to the Topology tab to access the device console(s) and perform the tasks.
• Console access is available for all required devices by clicking the device icon or using the tab(s) above the console window.
• All necessary pre-configurations have been applied.
• Do not remove any existing configurations from the devices, only those necessary to make the appropriate changes required to fulfill the listed tasks.
• Do not change the enable password or hostname for any device.
• Save your configurations to NVRAM before moving to the next item.
• Click Next at the bottom of the screen to submit this lab and move to the next question.
• When Next is clicked, the lab closes and cannot be reopened.
Topology
-
Tasks
-
Task 1
-
• Configure a host route on R5 for the destination of 10.200.220.6.
• Configure a static default route on R1 preferring the path through R3 towards R6.
• From R5, use traceroute and ping to verify the path towards and reachability of R6.
Task 2
-
• Configure a floating static default route on R1, preferring the path through R2 towards R6 if the link to R3 should fail.
• Configure the administrative distance for 225.
• Configure a static route on R2 to forward the return traffic towards 10.100.110.0/25.
• After shutting interface e0/1 on R1, use traceroute and ping from R5 to verify path towards and reachability of R6.
English
This analysis details a practical CCNA exam question focused on static routing concepts, including host routes, default routes, and floating static routes. The goal is to configure routing on a given topology and verify connectivity.
---
## Exam Question Analysis: Static Routing
This lab simulation requires configuring specific static routes on routers R1, R2, and R5, and then verifying the reachability and path using `ping` and `traceroute`. It covers essential routing concepts for network beginners.
### 1. Topology Overview
The provided topology consists of six routers (R1, R2, R3, R4, R5, R6) interconnected with various IP subnets. Each link is labeled with its network address and mask (CIDR notation), as well as the interface name and the last octet of the IP address assigned to each router's interface on that segment.
* **R5** is connected to **R1** on the `10.100.110.0/25` network.
* R5's e0/0 interface IP: `10.100.110.5`
* R1's e0/2 interface IP: `10.100.110.1`
* **R1** has two upstream connections:
* To **R2** on the `10.122.12.0/30` network.
* R1's e0/0 interface IP: `10.122.12.1`
* R2's e0/0 interface IP: `10.122.12.2`
* To **R3** on the `10.133.13.0/28` network.
* R1's e0/1 interface IP: `10.133.13.1`
* R3's e0/0 interface IP: `10.133.13.3`
* **R2** is also connected to **R4** on the `10.240.24.0/29` network.
* R2's e0/1 interface IP: `10.240.24.2`
* R4's e0/0 interface IP: `10.240.24.4`
* **R3** is also connected to **R4** on the `10.34.34.0/29` network.
* R3's e0/1 interface IP: `10.34.34.3`
* R4's e0/1 interface IP: `10.34.34.4`
* **R4** is connected to **R6** on the `10.200.220.0/24` network.
* R4's e0/2 interface IP: `10.200.220.4`
* R6's e0/0 interface IP: `10.200.220.6`
The primary objective is to enable communication from R5 to R6, specifically to the host `10.200.220.6` on R6's segment.
---
### 2. Task 1: Initial Static Route Configuration
#### Task 1.1: Configure a host route on R5 for the destination of 10.200.220.6.
* **Concept: Host Route**
A host route is a very specific static route that points to a single IP address (a specific host) rather than an entire network. It uses a `/32` subnet mask (or `255.255.255.255`), meaning all 32 bits of the IP address must match. Host routes are typically used for specific destinations that need a unique forwarding path, or for management access.
* **Destination:** `10.200.220.6` (the specific host on R6's network).
* **Next-Hop for R5:** To reach any destination beyond its directly connected `10.100.110.0/25` network, R5 must forward traffic to R1. R1's IP address on the `10.100.110.0/25` segment is `10.100.110.1`.
* **Command Explanation:**
* `ip route`: This command is used to configure static routes.
* `10.200.220.6`: This is the destination IP address of the host.
* `255.255.255.255`: This is the subnet mask for a host route (equivalent to `/32`).
* `10.100.110.1`: This is the next-hop IP address, which is R1's interface IP on the shared segment with R5.
```
R5(config)# ip route 10.200.220.6 255.255.255.255 10.100.110.1
R5(config)# end
R5# wr
```
#### Task 1.2: Configure a static default route on R1 preferring the path through R3 towards R6.
* **Concept: Static Default Route**
A default route is a special type of static route that acts as a "gateway of last resort." If a router doesn't have a more specific route for a destination in its routing table, it will use the default route. It is represented by the network `0.0.0.0` and subnet mask `0.0.0.0`.
* **Destination:** `0.0.0.0 0.0.0.0` (all unknown destinations).
* **Preferred Path:** Through R3. R1 is connected to R3 via the `10.133.13.0/28` network. R3's IP on this segment is `10.133.13.3`.
* **Command Explanation:**
* `ip route`: Configures a static route.
* `0.0.0.0 0.0.0.0`: Represents the default route.
* `10.133.13.3`: The next-hop IP address, which is R3's interface IP on the shared segment with R1.
```
R1(config)# ip route 0.0.0.0 0.0.0.0 10.133.13.3
R1(config)# end
R1# wr
```
#### Task 1.3: From R5, use traceroute and ping to verify the path towards and reachability of R6.
* **Concept: `ping` and `traceroute`**
* `ping`: A network utility used to test the reachability of a host on an Internet Protocol (IP) network and to measure the round-trip time for messages sent from the originating host to a destination computer.
* `traceroute`: A network diagnostic tool for displaying the path and measuring transit delays of packets across an IP network. It shows the IP addresses of each router (hop) in the path.
* **Expected Path:**
1. **R5** (source)
2. `10.100.110.1` (R1's e0/2 interface)
3. `10.133.13.3` (R3's e0/0 interface - R1 uses its default route to R3)
4. `10.34.34.4` (R4's e0/1 interface - R3 forwards to R4)
5. `10.200.220.6` (R6's e0/0 interface - R4 forwards to R6)
* **Verification Commands:**
```
R5# ping 10.200.220.6
R5# traceroute 10.200.220.6
```
The `ping` command should show successful replies, indicating reachability. The `traceroute` command should show the hop-by-hop path as described above, confirming the traffic is indeed going through R1 -> R3 -> R4 -> R6.
---
### 3. Task 2: Floating Static Route and Return Path
#### Task 2.1: Configure a floating static default route on R1, preferring the path through R2 towards R6 if the link to R3 should fail.
* **Concept: Floating Static Route**
A floating static route is a backup static route that only becomes active if the primary route to the same destination becomes unavailable. This is achieved by configuring a higher **Administrative Distance (AD)** for the backup route. When multiple routes to the same destination exist, the router prefers the route with the lowest AD.
* **Destination:** `0.0.0.0 0.0.0.0` (default route).
* **Backup Path:** Through R2. R1 is connected to R2 via the `10.122.12.0/30` network. R2's IP on this segment is `10.122.12.2`.
* **Administrative Distance (AD):**
* Default AD for a static route is `1`.
* To make this route a backup, its AD must be higher than `1`. The task specifies `225`.
* **Command Explanation:**
* `ip route 0.0.0.0 0.0.0.0`: The default route.
* `10.122.12.2`: The next-hop IP address, R2's interface IP.
* `225`: The administrative distance. Since `225` is higher than `1` (the AD of the primary default route to R3), this route will only be installed in the routing table if the primary route becomes unreachable.
```
R1(config)# ip route 0.0.0.0 0.0.0.0 10.122.12.2 225
R1(config)# end
R1# wr
```
#### Task 2.2: Configure a static route on R2 to forward the return traffic towards 10.100.110.0/25.
* **Concept: Return Path**
For successful communication, traffic must be able to flow in both directions (request and reply). If R5 sends traffic to R6, R6's reply must find its way back to R5. When R1 switches its default route to go via R2, R2 needs a way to send traffic back to R5's network (`10.100.110.0/25`).
* **Destination:** `10.100.110.0` (R5's network).
* **Subnet Mask:** `255.255.255.128` (equivalent to `/25`).
* **Next-Hop for R2:** To reach `10.100.110.0/25`, R2 needs to send traffic to R1. R1's IP address on the `10.122.12.0/30` segment is `10.122.12.1`.
* **Command Explanation:**
* `ip route`: Configures a static route.
* `10.100.110.0`: The destination network for R5.
* `255.255.255.128`: The subnet mask for the `10.100.110.0/25` network.
* `10.122.12.1`: The next-hop IP address, R1's interface IP on the shared segment with R2.
```
R2(config)# ip route 10.100.110.0 255.255.255.128 10.122.12.1
R2(config)# end
R2# wr
```
#### Task 2.3: After shutting interface e0/1 on R1, use traceroute and ping from R5 to verify path towards and reachability of R6.
* **Simulating Link Failure:**
Shutting down interface `e0/1` on R1 (which connects R1 to R3) simulates a link failure. This will cause the primary default route on R1 (which pointed to R3) to become invalid. The floating static route (which points to R2 with AD 225) will then become the active default route in R1's routing table.
* **Command to shut the interface:**
```
R1(config)# interface e0/1
R1(config-if)# shutdown
R1(config-if)# end
R1# wr
```
* **Expected Path After Failure:**
1. **R5** (source)
2. `10.100.110.1` (R1's e0/2 interface)
3. `10.122.12.2` (R2's e0/0 interface - R1 uses its *floating* default route to R2)
4. `10.240.24.4` (R4's e0/0 interface - R2 forwards to R4)
5. `10.200.220.6` (R6's e0/0 interface - R4 forwards to R6)
* **Verification Commands:**
```
R5# traceroute 10.200.220.6
R5# ping 10.200.220.6
```
The `ping` should still be successful, demonstrating resilience. The `traceroute` should show the new path through R1 -> R2 -> R4 -> R6, confirming the floating static route has taken over.
---
### Technical Terms Explained
* **Router (R1, R2, etc.):** A network device that forwards data packets between computer networks. Routers perform the traffic directing functions on the Internet.
* **Interface (e0/0, e0/1, etc.):** A physical or logical connection point on a router (or other network device) through which it sends and receives data. `e0/0` typically refers to an Ethernet interface.
* **IP Address:** A numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. Used for identification and location.
* **Subnet Mask:** A 32-bit number that distinguishes the network address portion of an IP address from the host address portion.
* **CIDR Notation (e.g., /24, /25, /29, /30):** Classless Inter-Domain Routing. A method for allocating IP addresses and IP routing that improves data packet routing. The `/xx` indicates the number of bits in the IP address that represent the network portion.
* `/24` = `255.255.255.0` (254 usable hosts)
* `/25` = `255.255.255.128` (126 usable hosts)
* `/28` = `255.255.255.240` (14 usable hosts)
* `/29` = `255.255.255.248` (6 usable hosts)
* `/30` = `255.255.255.252` (2 usable hosts, often used for point-to-point links between two routers)
* `/32` = `255.255.255.255` (1 usable host, a host route)
* **Static Route:** A manually configured entry in a router's routing table that directs traffic to a specific destination network or host via a specified next-hop router or exit interface. They are simple to configure but do not adapt to network changes automatically.
* **Host Route:** A type of static route configured for a single specific IP address (a /32 prefix). It's the most specific route possible.
* **Default Route (Gateway of Last Resort):** A static route that matches all packets for which there is no more specific route in the routing table. It's represented as `0.0.0.0 0.0.0.0`.
* **Floating Static Route:** A backup static route that has a higher Administrative Distance (AD) than the primary route(s) to the same destination. It only becomes active if the primary route fails.
* **Administrative Distance (AD):** A value (0-255) that a router uses to rate the trustworthiness of routing information received from a routing source. Lower AD is preferred.
* Directly connected: 0
* Static route: 1
* EIGRP summary route: 5
* External BGP: 20
* Internal EIGRP: 90
* OSPF: 110
* RIP: 120
* **Next-Hop IP Address:** The IP address of the adjacent router to which a packet should be forwarded to reach its ultimate destination.
* **`ping`:** A command-line utility to test connectivity and measure round-trip time to a destination host.
* **`traceroute`:** A command-line utility to display the path (hops) a packet takes to reach a destination and measure the time taken for each hop.
* **NVRAM (Non-Volatile RAM):** A type of memory in Cisco routers used to store the startup configuration. Configurations are saved to NVRAM using `copy running-config startup-config` or `wr` (write memory) command so they persist across reboots.
---
日本語
## Cisco CCNA シミュレーション問題 解説
Cisco のネットワーク技術者として、この度の CCNA シミュレーション問題の解説を担当させていただきます。この問題は、ルーティングの基本と応用を実機に近い環境で学ぶ良い機会です。ネットワーク初心者の方にも分かりやすいように、専門用語には一つずつ丁寧な説明を加えていきますのでご安心ください。
---
### はじめに:この問題で学ぶこと
このシミュレーション問題では、主に以下のネットワーク設定スキルと概念を習得することを目指します。
* **スタティックルートの基本**: 特定の宛先への経路を手動で設定する方法。
* **ホストルート**: 特定の1つのIPアドレスだけに適用される経路設定。
* **デフォルトルート**: 「それ以外のすべての宛先」への経路を設定する方法。
* **フローティングスタティックルート**: メインの経路がダウンしたときに自動的に切り替わる予備の経路設定。
* **管理距離 (Administrative Distance)**: 複数の経路情報がある場合に、どの経路を優先するかを決める仕組み。
* **ルーティングの確認**: `ping` や `traceroute` コマンドを使って、設定した経路が正しく機能しているかを確認する方法。
それでは、各タスクを詳しく見ていきましょう。
---
### 拓撲図(トポロジー)の確認
まず、今回のネットワーク構成図(トポロジー図)をよく見てみましょう。
* 複数のルータ (R1, R2, R3, R4, R5, R6) が相互に接続されています。
* 各ルータのインターフェース (例: e0/0, e0/1) には IP アドレスとネットワークアドレスが割り当てられています。
* R5 と R6 は末端のネットワークを表しており、R1, R2, R3, R4 がその間の経路を担っています。
この図を頭に入れながら、タスクに取り組んでいきます。
---
### タスク1 の解説
タスク1では、特定の宛先への通信を確立するための基本的なルーティング設定を行います。
#### タスク1-1: R5 に 10.200.220.6 宛のホストルートを設定する
* **設定目的**: R5 から **R6 のインターフェース e0/0 の IP アドレス (10.200.220.6)** に直接通信できるようにするための経路を設定します。
* **専門用語**:
* **ホストルート (Host Route)**: 特定の1つのIPアドレス(ホスト)にだけ到達するための経路です。一般的なネットワークへのルートとは異なり、ピンポイントで1台の機器を狙います。サブネットマスクは `255.255.255.255` (または `/32`)となります。
* **ネクストホップ (Next-Hop)**: パケットを目的の宛先へ転送するために、次にパケットを送るべき隣接ルータのIPアドレスのことです。今回は R5 から見て R1 のインターフェース e0/0 の IP アドレス `10.100.110.1` がネクストホップとなります。
* **コマンド**:
```
R5(config)# ip route 10.200.220.6 255.255.255.255 10.100.110.1
```
* `ip route`: ルーティングエントリ(経路情報)を設定するためのコマンドです。
* `10.200.220.6`: 目的の宛先IPアドレス(R6のe0/0)。
* `255.255.255.255`: ホストルートを示すサブネットマスク。これにより、`10.200.220.6` というIPアドレスを持つ機器にのみこの経路が適用されます。
* `10.100.110.1`: ネクストホップのIPアドレス。R5がパケットを`10.200.220.6`へ送りたい場合、まずこのIPアドレスを持つR1のインターフェースへパケットを転送します。
#### タスク1-2: R1 にデフォルトルートを設定し、R3 経由で R6 へ向かうパスを優先させる
* **設定目的**: R1 が、**知らない宛先へのパケット** をすべて R3 経由で転送するように設定します。これは、R1 が R6 を含む多くの外部ネットワークへの経路を知らない場合に非常に便利です。
* **専門用語**:
* **スタティックデフォルトルート (Static Default Route)**: 管理者が手動で設定する「最後の頼みの綱」となる経路です。特定の宛先への明示的な経路がない場合、このデフォルトルートが使用されます。宛先アドレス `0.0.0.0` とサブネットマスク `0.0.0.0` で表現されます。
* **コマンド**:
```
R1(config)# ip route 0.0.0.0 0.0.0.0 10.133.13.3
```
* `0.0.0.0 0.0.0.0`: すべての宛先IPアドレス(「その他すべて」)を意味します。
* `10.133.13.3`: ネクストホップのIPアドレス。R1 から見て R3 のインターフェース e0/0 の IP アドレスです。これにより、R1 は知らない宛先へのパケットをすべて R3 へ転送するようになります。
#### 検証: R5 から R6 への到達性と経路を確認する
* **目的**: 設定したホストルートとデフォルトルートが正しく機能しているか確認します。
* **コマンド**:
```
R5# ping 10.200.220.6
R5# traceroute 10.200.220.6
```
* **`ping`**: ネットワーク上の特定のホストが到達可能であるか(つまり、通信できるか)を確認するコマンドです。ICMPエコー要求/応答メッセージを送受信します。
* **期待される結果**: 成功すれば `!` (Exclamation mark) が表示され、通信が成功したことを示します。
* **`traceroute`**: パケットが宛先に到達するまでに経由するルータ(ホップ)のリストを表示するコマンドです。これにより、パケットがどの経路を通って目的地に到達したかを確認できます。
* **期待される結果**:
1. `10.100.110.1` (R1のe0/0)
2. `10.133.13.3` (R3のe0/0)
3. `10.34.34.4` (R4のe0/1)
4. `10.200.220.6` (R6のe0/0)
このような経路が表示されれば、R1がR3経由でR6に向かっていることが確認できます。
* **NVRAMへの保存**:
```
R5(config)# end
R5# wr
R1(config)# end
R1# wr
```
* `wr` (または `copy running-config startup-config`): 現在メモリ上にある設定(Running Configuration)を、ルータの電源を切っても消えない不揮発性メモリ (NVRAM - Non-Volatile RAM) に保存するコマンドです。これにより、ルータが再起動しても設定が失われません。
---
### タスク2 の解説
タスク2では、経路に障害が発生した場合に備えた冗長化設定と、戻りのトラフィック(リターントラフィック)の設定を行います。
#### タスク2-1: R1 にフローティングスタティックデフォルトルートを設定する
* **設定目的**: R1 が R3 へのメインの経路が利用できなくなった場合に、R2 経由で R6 へ向かう予備の経路(バックアップパス)を用意します。
* **専門用語**:
* **フローティングスタティックルート (Floating Static Route)**: 通常のスタティックルートよりも高い管理距離(後述)を設定することで、メインの経路がダウンしたときにだけ有効になる「浮動」する予備のスタティックルートです。
* **管理距離 (Administrative Distance - AD)**: ルータが同じ宛先に対して複数の経路情報を持っている場合に、どの情報源(ルーティングプロトコルやスタティックルートなど)の経路を優先するかを決定するための値です。値が小さいほど優先度が高くなります。
* 直結インターフェース: 0 (最も優先)
* スタティックルート: 1
* 外部BGP: 20
* EIGRP: 90
* OSPF: 110
* RIP: 120
今回は、メインのスタティックルート (AD=1) よりも低い優先度 (AD=225) を設定することで、R3への経路が利用できなくなった場合にのみ、R2への経路が使用されるようにします。
* **コマンド**:
```
R1(config)# ip route 0.0.0.0 0.0.0.0 10.122.12.2 225
```
* `0.0.0.0 0.0.0.0`: デフォルトルートを表します。
* `10.122.12.2`: ネクストホップのIPアドレス。R1 から見て R2 のインターフェース e0/0 の IP アドレスです。
* `225`: このスタティックルートの管理距離です。タスク1で設定したR3経由のデフォルトルート(管理距離はデフォルトで1)よりも大きいため、通常時はR3経由の経路が優先されます。R3への経路が利用不能になった場合のみ、このR2経由の経路がルーティングテーブルに登録されます。
#### タスク2-2: R2 に 10.100.110.0/25 宛のスタティックルートを設定する
* **設定目的**: R5 から R6 への通信は R1 を経由して行われますが、R6 から R5 (10.100.110.0/25 ネットワーク) への「戻りのトラフィック」が正しく R5 に到達できるように、R2 に経路を設定します。
* **専門用語**:
* **リターントラフィック (Return Traffic)**: あるホストから別のホストへ送られたデータに対して、応答として返されるデータのことです。インターネット通信は通常、双方向で行われるため、行きと帰りの両方の経路が正しく設定されている必要があります。
* **コマンド**:
```
R2(config)# ip route 10.100.110.0 255.255.255.128 10.122.12.1
```
* `10.100.110.0`: 目的の宛先ネットワークアドレス(R5が接続されているネットワーク)。
* `255.255.255.128`: 宛先ネットワークのサブネットマスク。これは `/25` を意味します。
* `10.122.12.1`: ネクストホップのIPアドレス。R2 から見て R1 のインターフェース e0/0 の IP アドレスです。R2は R5 ネットワークへのパケットを R1 へ転送します。
#### 検証: R1 のインターフェース e0/1 をシャットダウンし、R5 から R6 への到達性と経路を確認する
* **目的**: R1 の R3 へのリンクを意図的にダウンさせ、フローティングスタティックルートが正しく機能し、R5 から R6 への通信が R2 経由に切り替わることを確認します。
* **コマンド**:
```
R1(config)# interface e0/1
R1(config-if)# shutdown
R1(config)# end
R1# wr
R5# traceroute 10.200.220.6
R5# ping 10.200.220.6
```
* `interface e0/1`: R1 のインターフェース e0/1 の設定モードに入ります。このインターフェースは R3 へ接続しています。
* `shutdown`: 選択したインターフェースを論理的にダウンさせる(無効にする)コマンドです。これにより、R1 と R3 の間の接続が切断された状態をシミュレートできます。
* **`traceroute` の期待される結果**:
1. `10.100.110.1` (R1のe0/0)
2. `10.122.12.2` (R2のe0/0)
3. `10.240.24.4` (R4のe0/0)
4. `10.200.220.6` (R6のe0/0)
この結果が表示されれば、R1のデフォルトルートがR2経由に切り替わった(フローティングスタティックルートが有効になった)ことが確認できます。
* **`ping` の期待される結果**: `!` が表示され、引き続き R5 から R6 へ通信が可能なことが確認できます。
* **NVRAMへの保存**:
```
R1(config)# end
R1# wr
R2(config)# end
R2# wr
```
---
### まとめ:この問題で学んだこと
このシミュレーション問題を通じて、あなたは以下の重要なルーティングの概念と設定方法を実践的に学びました。
1. **スタティックルート**: 特定のネットワークやホストへの経路を手動で定義する基本的な方法。
2. **デフォルトルート**: 不明な宛先へのパケットを処理するための「最後の頼みの綱」となる経路。
3. **フローティングスタティックルートと管理距離**: メインの経路に障害が発生した場合に備えて、予備の経路を設定し、自動的に切り替える仕組み。管理距離を使って優先順位を制御します。
4. **リターントラフィックの重要性**: 双方向通信を確立するためには、往路だけでなく、戻りの経路も正しく設定する必要があること。
5. **検証の重要性**: `ping` や `traceroute` などのツールを使って、設定したルーティングが期待通りに機能しているかを確認するスキル。
これらの知識は、実際のネットワーク設計やトラブルシューティングにおいて非常に役立ちます。今後も学習を続け、さらに深いネットワークの世界を探求してください。
繁體中文
好的,身為 Cisco 的技術專家,我來為你詳細解析這個 CCNA 考試的實作題目。別擔心,我會用你剛學習者能夠理解的方式來解釋,並把專業名詞都說明清楚!
---
## CCNA 實作題解析
這個題目是一個模擬 (SIMULATION) 實作題,代表你需要登入虛擬設備的命令行介面 (CLI) 去輸入指令來完成指定的網路配置。
### 考試環境說明 (Guidelines)
這些都是考試時的固定要求,你只要記住幾個重點:
* **在虛擬設備上操作:** 你會看到一個網路拓撲圖,然後有路由器的圖示可以點擊進去操作。
* **不要移除現有配置:** 只能新增或修改,不能把別人已經設好的東西刪掉。
* **不要改啟用密碼或主機名稱:** 這是考官為了方便檢查你的設定,不要去動。
* **儲存配置到 NVRAM:** 每完成一個任務,記得用 `copy running-config startup-config` (簡寫 `wr` 或 `write mem`) 把設定存起來,這樣路由器重開機後設定才不會消失。
* **點擊 Next 送出:** 送出後就不能再回頭修改了。
### 網路拓撲圖 (Topology) 解析
首先,我們來看看這個網路圖。它由多台路由器 (R1, R2, R3, R4, R5, R6) 組成,它們之間透過不同的介面 (例如 e0/0, e0/1, e0/2) 連接,並分配了 IP 位址和子網路遮罩。
**重要資訊概覽:**
* **R6** 連接到 `10.200.220.0/24` 網路,R6 的介面是 `e0/0`,IP 是 `10.200.220.6`。
* **R5** 連接到 `10.100.110.0/25` 網路,R5 的介面是 `e0/0`,IP 是 `10.100.110.5`。
* **R1** 是中心點,連接到 R5、R2 和 R3。
* R1 (e0/2) `10.100.110.1` 與 R5 相連。
* R1 (e0/0) `10.122.12.1` 與 R2 相連 (網路 `10.122.12.0/30`)。
* R1 (e0/1) `10.133.13.1` 與 R3 相連 (網路 `10.133.13.0/28`)。
* **R2** 連接到 R1 和 R4。
* R2 (e0/0) `10.122.12.2` 與 R1 相連。
* R2 (e0/1) `10.240.24.2` 與 R4 相連 (網路 `10.240.24.0/29`)。
* **R3** 連接到 R1 和 R4。
* R3 (e0/0) `10.133.13.3` 與 R1 相連。
* R3 (e0/1) `10.34.34.3` 與 R4 相連 (網路 `10.34.34.0/29`)。
* **R4** 連接到 R2, R3 和 R6。
* R4 (e0/0) `10.240.24.4` 與 R2 相連。
* R4 (e0/1) `10.34.34.4` 與 R3 相連。
* R4 (e0/2) `10.200.220.4` 與 R6 相連。
看懂這個圖,知道每個路由器的介面和 IP 位址,是完成任務的關鍵!
### 任務解析 (Tasks)
現在我們來逐一解析每個任務。
---
### Task 1
#### 任務目標:
1. 在 R5 上為目標 IP `10.200.220.6` 配置一條主機路由 (Host Route)。
2. 在 R1 上配置一條靜態預設路由 (Static Default Route),優先選擇透過 R3 的路徑到達 R6。
3. 從 R5 使用 `traceroute` 和 `ping` 驗證到 R6 的路徑和可達性。
#### 概念解釋:
* **主機路由 (Host Route):**
* 想像你是一位包裹派送員 (R5),有人給你一個包裹,上面寫著 *非常非常精確* 的收件人地址 (例如:台北市信義區信義路七段 1 號 2 樓,精確到門牌號碼和樓層)。
* 這條路由就是告訴路由器 (R5),當你要發送資料到 *特定的一個 IP 位址* (例如 `10.200.220.6`) 時,應該把資料交給誰 (下一個跳點,next-hop)。
* 它的子網路遮罩會是 `255.255.255.255` (也就是 `/32`),表示只針對這 *一個* IP 有效。
* **靜態預設路由 (Static Default Route):**
* 這就像公司的總務 (R1),如果他收到一個包裹,上面寫的地址他 *完全不認識*,他就會把它交給一個 *預設的同事* (例如 R3) 讓這位同事去處理,而不用去煩惱包裹最終要去哪裡。
* 它的目標 IP 位址是 `0.0.0.0`,子網路遮罩也是 `0.0.0.0`,表示 "任何未知的目標"。
* 通常作為路由器的「最後手段」,當路由表中沒有更具體的路由時,就會使用預設路由。
* **`traceroute`:**
* 就像你打電話問快遞公司,你的包裹從寄出到收到,中間經過了哪些轉運站。
* 它會顯示資料封包從來源地到達目的地所經過的所有路由器 (跳點,hop)。
* **`ping`:**
* 就像你打電話確認對方有沒有接通,或對方有沒有在家。
* 它用來測試兩個設備之間的網路連線是否通暢,確認目的地是否可達。
#### 操作步驟與指令解析:
1. **在 R5 上配置主機路由 (Host Route):**
* **目標:** R5 要知道怎麼把資料送到 `10.200.220.6`。
* **路徑:** R5 自己無法直接到達,需要透過 R1。從拓撲圖看,R5 的 `e0/0` 連接到 R1 的 `e0/2`,R1 在這個介面上的 IP 是 `10.100.110.1`。所以,R1 就是 R5 的下一個跳點 (next-hop)。
* **指令:**
```
R5(config)# ip route 10.200.220.6 255.255.255.255 10.100.110.1
```
* `ip route`:這是設定靜態路由的指令。
* `10.200.220.6`:這是目標 IP 位址。
* `255.255.255.255`:這是主機路由的子網路遮罩 (表示 `/32`)。
* `10.100.110.1`:這是下一個跳點的 IP 位址 (Next-Hop IP),也就是 R1 在 R5 所在網段的 IP。
```
R5(config)# end
R5# wr // 儲存配置到 NVRAM
```
2. **在 R1 上配置靜態預設路由 (Static Default Route) 透過 R3:**
* **目標:** R1 如果收到它不知道要去哪的資料,就預設交給 R3。
* **路徑:** R1 的 `e0/1` 連接到 R3 的 `e0/0`,R3 在這個介面上的 IP 是 `10.133.13.3`。所以,R3 就是 R1 的預設下一個跳點。
* **指令:**
```
R1(config)# ip route 0.0.0.0 0.0.0.0 10.133.13.3
```
* `0.0.0.0 0.0.0.0`:表示任何未知的目標網路。
* `10.133.13.3`:這是下一個跳點的 IP 位址,也就是 R3 在 R1 所在網段的 IP。
```
R1(config)# end
R1# wr // 儲存配置到 NVRAM
```
3. **從 R5 驗證路徑和可達性:**
* **指令:**
```
R5# ping 10.200.220.6
R5# traceroute 10.200.220.6
```
* **預期路徑:** `R5` -> `R1` (10.100.110.1) -> `R3` (10.133.13.3) -> `R4` (10.34.34.4) -> `R6` (10.200.220.6)。
* 如果你看到 `ping` 成功 (出現 `!!!!!`) 且 `traceroute` 顯示這個路徑,就代表任務成功。
---
### Task 2
#### 任務目標:
1. 在 R1 上配置一條浮動靜態預設路由 (Floating Static Default Route),當連接到 R3 的連線失敗時,切換到透過 R2 的路徑到達 R6。
2. 設定這條浮動路由的管理距離 (Administrative Distance) 為 `225`。
3. 在 R2 上配置一條靜態路由,用於轉發回傳流量到 `10.100.110.0/25`。
4. 在 R1 關閉介面 `e0/1` 後,從 R5 使用 `traceroute` 和 `ping` 驗證到 R6 的路徑和可達性。
#### 概念解釋:
* **浮動靜態路由 (Floating Static Route):**
* 這就像 R1 除了主要的包裹派送員 (R3) 之外,還找了一個 *備用的* 派送員 (R2)。但 R1 會告訴自己,除非主要派送員那條路 *真的不能用了*,否則我 *不會* 用備用的。
* 它的原理是設定一個比主要路由 *更高* 的**管理距離 (Administrative Distance, AD)**。當主要路由失效時,備用路由因為 AD 值較高,才會被加入路由表並啟用。
* **管理距離 (Administrative Distance, AD):**
* 想像這是一個「路由資訊可信度」的評分機制。當路由器從不同來源(例如:直接連接、靜態路由、OSPF、EIGRP 等)學習到到達同一個目標的多條路徑時,它會選擇 AD 值 *最小* 的那條路徑放入路由表。
* 常見的 AD 值:
* 直接連接網路 (Directly Connected):`0` (最可信)
* 靜態路由 (Static Route):`1`
* EIGRP:`90`
* OSPF:`110`
* RIP:`120`
* 外部 EIGRP (External EIGRP):`170`
* 未知來源 (未知):`255` (完全不可信,不會加入路由表)
* 題目要求設定為 `225`,這顯然比一般靜態路由的 `1` 要高很多,所以它會是備用路由。
* **回傳流量 (Return Traffic):**
* 當 R5 發送資料到 R6 時,R6 接收到後,通常會發送一個回覆資料給 R5。這個回覆的資料就是回傳流量。
* 路由器必須知道如何將這些回傳流量正確地送回到發送方 (R5 所在的 `10.100.110.0/25` 網路)。
#### 操作步驟與指令解析:
1. **在 R1 上配置浮動靜態預設路由透過 R2,並設定 AD 為 225:**
* **目標:** 當 R1 到 R3 的主要路徑斷掉時,預設路徑改走 R2。
* **路徑:** R1 的 `e0/0` 連接到 R2 的 `e0/0`,R2 在這個介面上的 IP 是 `10.122.12.2`。所以,R2 就是這條備用預設路由的下一個跳點。
* **指令:**
```
R1(config)# ip route 0.0.0.0 0.0.0.0 10.122.12.2 225
```
* `0.0.0.0 0.0.0.0`:這是預設路由的目標網路。
* `10.122.12.2`:這是下一個跳點的 IP 位址,也就是 R2 在 R1 所在網段的 IP。
* `225`:這就是管理距離 (AD)。因為它比預設靜態路由的 `1` 還要大,所以這條路由會保持在「備用」狀態,只有當 AD 為 `1` 的那條路由失效時,它才會被啟用。
```
R1(config)# end
R1# wr // 儲存配置到 NVRAM
```
2. **在 R2 上配置靜態路由,用於轉發回傳流量到 `10.100.110.0/25`:**
* **目標:** R2 要知道如何把資料送回 `10.100.110.0/25` 這個網路 (R5 所在的網路)。
* **路徑:** 從拓撲圖看,R2 要到達 `10.100.110.0/25` 網路,必須透過 R1。R2 的 `e0/0` 連接到 R1 的 `e0/0`,R1 在這個介面上的 IP 是 `10.122.12.1`。
* **指令:**
```
R2(config)# ip route 10.100.110.0 255.255.255.128 10.122.12.1
```
* `10.100.110.0`:這是目標網路位址。
* `255.255.255.128`:這是目標網路的子網路遮罩 (對應 `/25`)。
* `10.122.12.1`:這是下一個跳點的 IP 位址,也就是 R1 在 R2 所在網段的 IP。
```
R2(config)# end
R2# wr // 儲存配置到 NVRAM
```
* **為什麼需要這個?** 當 R5 透過 R1-R2-R4 達到 R6 時,R6 回覆的資料會經過 R4-R2。這時候 R2 收到要回給 `10.100.110.0/25` 的資料,它需要這條路由才能知道要往 R1 送,否則可能會丟包。
3. **在 R1 關閉介面 `e0/1` 後,從 R5 驗證路徑和可達性:**
* **模擬故障:** 首先,我們手動讓 R1 到 R3 的主要路徑失效。
```
R1(config)# interface e0/1
R1(config-if)# shutdown // 關閉介面
R1(config-if)# end
R1# wr // 儲存配置到 NVRAM
```
* `interface e0/1`:進入 `e0/1` 介面的配置模式。
* `shutdown`:關閉這個介面,模擬線路故障。
* **驗證:** 現在 R1 的主要預設路由已經失效,浮動靜態路由應該會接管。
```
R5# traceroute 10.200.220.6
R5# ping 10.200.220.6
```
* **預期路徑:** `R5` -> `R1` (10.100.110.1) -> `R2` (10.122.12.2) -> `R4` (10.240.24.4) -> `R6` (10.200.220.6)。
* 你會看到 `ping` 仍然成功,但 `traceroute` 顯示的路徑已經改變,經過 R2 而非 R3。這證明了浮動靜態路由成功發揮作用。
---
### 總結
這個題目主要考驗你對靜態路由、主機路由、預設路由、浮動靜態路由以及管理距離 (Administrative Distance) 的理解和實際配置能力。同時,也考驗你使用 `ping` 和 `traceroute` 這兩個基本工具來驗證網路連線和路徑的能力。
對於剛學習者來說,最重要的是理解這些路由類型「為什麼」要這樣配置,以及它們在網路中扮演什麼角色。多看拓撲圖,理解資料流向,並將抽象的網路概念與實際生活中的例子結合,會非常有幫助!
简体中文
好的,各位新来的技术伙伴们,大家好!我是思科的技术专家,今天我们来一起分析一道CCNA考试中常见的模拟题。这种题目非常注重实际操作能力,但别担心,我们会一步步拆解,确保大家都能理解。
---
## CCNA 模拟题解析:静态路由与浮动静态路由
### 题目概述
这道题是一个“实作题”(SIMULATION),意味着你需要通过命令行界面在虚拟设备上进行实际配置。题目提供了一个网络拓扑图、两项主要任务(Task 1 和 Task 2)以及一些通用的操作指南和参考命令。
**重要指南提醒:**
* **不要删除任何现有配置!** 只添加或修改完成任务所需的配置。
* **不要更改设备名称或密码。**
* **完成任务后记得保存配置到 NVRAM!** 命令是 `wr` 或 `copy run start`。
### 拓扑图概览
在开始之前,我们先快速看一下网络拓扑图。
* 图中有 6 台路由器:R1, R2, R3, R4, R5, R6。
* 每个路由器都有接口(例如 e0/0, e0/1, e0/2),并且接口上配置了 IP 地址和子网掩码。
* 线路上的 `/24`, `/25`, `/28`, `/29`, `/30` 这些是**子网掩码(Subnet Mask)** 的简写,表示网络中可用 IP 地址的数量和划分方式。例如,`/24` 对应子网掩码 `255.255.255.0`。
**专业名词解释:**
* **路由器 (Router):** 网络设备,负责在不同网络之间转发数据包,是实现不同网络通信的关键。
* **接口 (Interface):** 路由器上连接其他设备(如交换机、电脑或另一台路由器)的端口。每个接口通常配置一个 IP 地址。
* **IP 地址 (IP Address):** 设备在网络上的唯一标识。
* **子网掩码 (Subnet Mask):** 用于区分 IP 地址的网络部分和主机部分,决定了一个网络的大小。
* **NVRAM (Non-Volatile RAM):** 路由器中用来保存启动配置(startup-config)的内存,即使断电也不会丢失。
### 任务解析
#### Task 1
**任务要求:**
1. 在 R5 上为目标地址 10.200.220.6 配置一个**主机路由 (host route)**。
2. 在 R1 上配置一个**静态默认路由 (static default route)**,优先选择通过 R3 通往 R6 的路径。
3. 从 R5 使用 `traceroute` 和 `ping` 命令验证到 R6 的路径和可达性。
---
**详细解析:**
**1. 配置 R5 的主机路由:`ip route 10.200.220.6 255.255.255.255 10.100.110.1`**
* **主机路由 (Host Route):**
* **概念:** 是一种非常精确的路由,它只指向网络中的**单个特定 IP 地址**,而不是一个整个网络。它的子网掩码总是 `255.255.255.255`(或 `/32`),表示这个路由规则只对这一个 IP 地址生效。
* **为什么需要?** 在这个场景中,R5 需要明确知道如何到达 R6 的一个特定接口 IP (10.200.220.6)。虽然 R1 会有默认路由,但有时候为了特定的策略或优化,我们会配置主机路由。
* **命令结构:** `ip route [目标IP地址] [主机路由子网掩码] [下一跳IP地址]`
* **参数分析:**
* `10.200.220.6`: 这是目标 IP 地址,也就是 R6 的 e0/0 接口的 IP。
* `255.255.255.255`: 这是主机路由的子网掩码,表示只针对 10.200.220.6 这个 IP 地址。
* `10.100.110.1`: 这是**下一跳 IP 地址 (Next-Hop IP Address)**。对于 R5 来说,要访问外部网络,它必须把数据包发送给直接连接的 R1 接口。根据拓扑图,R5 的 e0/0 接口是 10.100.110.5,与它直接相连的 R1 的 e0/2 接口的 IP 地址是 10.100.110.1。所以,R5 要把数据包发给 `10.100.110.1`,R1 才能继续转发。
* **配置步骤:**
```
R5> enable
R5# configure terminal
R5(config)# ip route 10.200.220.6 255.255.255.255 10.100.110.1
R5(config)# end
R5# write memory // 或 copy running-config startup-config 保存配置
```
**2. 配置 R1 的静态默认路由:`ip route 0.0.0.0 0.0.0.0 10.133.13.3`**
* **静态默认路由 (Static Default Route):**
* **概念:** 是一种“包罗万象”的路由。当路由器不知道如何到达某个特定的目标网络时,它会把数据包发送给默认路由指定的地方。就像你问路,没人知道具体怎么走,但大家都会指你往大方向走。它的目标网络和子网掩码都是 `0.0.0.0`,表示“任何网络,任何子网”。
* **为什么需要?** R1 知道如何到达直接连接的网络 (10.100.110.0/25, 10.122.12.0/30, 10.133.13.0/28),但它不知道如何到达 R6 的网络 (10.200.220.0/24)。为了让 R1 能把去往 R6 的流量以及其他未知目的地的流量发送出去,需要一个默认路由。
* **“优先选择通过 R3”:** 这意味着这条默认路由的下一跳应该是 R3。
* **命令结构:** `ip route 0.0.0.0 0.0.0.0 [下一跳IP地址]`
* **参数分析:**
* `0.0.0.0 0.0.0.0`: 表示这是一个默认路由,匹配所有未知目标网络。
* `10.133.13.3`: 这是下一跳 IP 地址。根据拓扑图,R1 的 e0/1 接口 (10.133.13.1) 直接连接到 R3 的 e0/0 接口 (10.133.13.3)。所以,R1 要把数据包发给 `10.133.13.3`,R3 才能继续转发。
* **配置步骤:**
```
R1> enable
R1# configure terminal
R1(config)# ip route 0.0.0.0 0.0.0.0 10.133.13.3
R1(config)# end
R1# write memory
```
**3. 验证路径和可达性:`ping 10.200.220.6` 和 `traceroute 10.200.220.6`**
* **Ping (Packet Internet Groper):**
* **概念:** 一个网络工具,用于测试数据包能否到达特定的主机,并测量来回所需的时间。如果 Ping 成功,说明目标可达。
* **预期结果:** 应该显示成功 (!!!!!)。
* **Traceroute (Trace Route):**
* **概念:** 一个网络诊断工具,用于显示 IP 数据包从源主机到目标主机所经过的路由器(跳数)列表,可以帮助我们了解数据包的实际路径。
* **预期路径:** 从 R5 发送数据到 10.200.220.6 (R6),根据我们配置的路由:
* R5 (10.100.110.5) 将数据包发送给 R1 (10.100.110.1)。
* R1 (10.133.13.1) 使用默认路由,将数据包发送给 R3 (10.133.13.3)。
* R3 收到后,可能会有自己的路由规则将数据包发送给 R4 (在 10.34.34.0/29 网络中,R3 是 .3,R4 是 .4)。
* R4 (10.200.220.4) 收到后,直接连接到 R6 的 10.200.220.6。
* 所以,`traceroute` 应该会显示类似 `10.100.110.1 -> 10.133.13.3 -> 10.34.34.4 -> 10.200.220.6` 这样的路径。
* **执行命令:**
```
R5# ping 10.200.220.6
R5# traceroute 10.200.220.6
```
---
#### Task 2
**任务要求:**
1. 在 R1 上配置一个**浮动静态默认路由 (floating static default route)**,如果通往 R3 的链路失败,则优先选择通过 R2 通往 R6 的路径。
2. 将该浮动静态路由的**管理距离 (administrative distance)** 配置为 225。
3. 在 R2 上配置一个静态路由,用于转发返回 10.100.110.0/25 网络的流量。
4. 在 R1 上关闭接口 e0/1 后,从 R5 使用 `traceroute` 和 `ping` 验证到 R6 的路径和可达性。
---
**详细解析:**
**1. 配置 R1 的浮动静态默认路由:`ip route 0.0.0.0 0.0.0.0 10.122.12.2 225`**
* **浮动静态路由 (Floating Static Route):**
* **概念:** 这是一个备用的静态路由。它和普通的静态路由一样,但有一个更高的**管理距离 (Administrative Distance, AD)**。当主路由(比如上一任务中通过 R3 的默认路由,它的 AD 默认是 1)可用时,浮动静态路由不会被使用。只有当主路由因为某种原因失效时,这个浮动静态路由才会变得活跃,接替转发任务。
* **为什么需要?** 这是为了实现网络冗余和故障切换。如果 R1 到 R3 的链路或 R3 自身出现故障,我们不希望 R1 完全失去到外部网络的连接。通过 R2 作为备用路径,可以保证网络的持续运行。
* **命令结构:** `ip route 0.0.0.0 0.0.0.0 [下一跳IP地址] [管理距离]`
* **参数分析:**
* `0.0.0.0 0.0.0.0`: 同样表示这是一个默认路由。
* `10.122.12.2`: 这是备用路径的下一跳 IP 地址。根据拓扑图,R1 的 e0/0 接口 (10.122.12.1) 连接到 R2 的 e0/0 接口 (10.122.12.2)。所以,当主路径失败时,R1 会将数据包发送给 `10.122.12.2`。
* `225`: 这是**管理距离 (Administrative Distance, AD)**。这是一个非常关键的参数。静态路由的默认 AD 是 1。动态路由协议(如 OSPF 默认 AD 是 110,EIGRP 默认 AD 是 90)也有自己的默认 AD。路由器的原则是:**AD 值越小,这条路由越优先被采纳**。我们把这个备用路由的 AD 设置为 225(任何大于 1 的值都可以,但通常会设置一个比较大的值,比如 200-250 之间),这样它就比通过 R3 的主默认路由 (AD=1) 不优先。只有当 AD 为 1 的路由不可用时,AD 为 225 的路由才会生效。
* **配置步骤:**
```
R1> enable
R1# configure terminal
R1(config)# ip route 0.0.0.0 0.0.0.0 10.122.12.2 225
R1(config)# end
R1# write memory
```
**2. 配置 R2 的静态路由:`ip route 10.100.110.0 255.255.255.128 10.122.12.1`**
* **为什么需要?** 在 Task 1 中,流量从 R5 经过 R1 -> R3 -> R4 -> R6。现在 Task 2 引入了 R2 作为备用路径。当 R1 到 R3 的路径失败时,流量将变为 R5 -> R1 -> R2 -> R4 -> R6。当 R6 收到数据包并需要回复时,它的回复会沿着 R6 -> R4 -> R2 的路径回到 R2。此时,**R2 需要知道如何将回复流量送回 R5 的网络** (10.100.110.0/25)。如果 R2 没有这条返回路由,它就不知道怎么把数据包发给 R5,回复就会中断。
* **命令结构:** `ip route [目标网络地址] [子网掩码] [下一跳IP地址]`
* **参数分析:**
* `10.100.110.0`: 这是目标网络地址,即 R5 所在的网络。
* `255.255.255.128`: 这是 10.100.110.0/25 网络的子网掩码。`/25` 意味着网络号有 25 位,所以子网掩码是 `255.255.255.128`。
* `10.122.12.1`: 这是下一跳 IP 地址。对于 R2 来说,要将数据包发送到 R5 的网络,它必须经过 R1。根据拓扑图,R2 的 e0/0 接口 (10.122.12.2) 直接连接到 R1 的 e0/0 接口 (10.122.12.1)。所以,R2 要把数据包发给 `10.122.12.1`,R1 才能将数据包送回 R5。
* **配置步骤:**
```
R2> enable
R2# configure terminal
R2(config)# ip route 10.100.110.0 255.255.255.128 10.122.12.1
R2(config)# end
R2# write memory
```
**3. 验证路径和可达性:`interface e0/1`, `shutdown`, `ping`, `traceroute`**
* **模拟链路故障:** 首先,我们需要在 R1 上模拟通往 R3 的链路故障。这通过关闭 R1 连接 R3 的接口来完成。
```
R1> enable
R1# configure terminal
R1(config)# interface e0/1 // 进入连接 R3 的接口 e0/1
R1(config-if)# shutdown // 关闭接口
R1(config-if)# end
R1# write memory
```
**专业名词解释:**
* **Shutdown (关闭):** 关闭接口,使其停止工作,模拟链路断开。
* **No shutdown (开启):** 重新开启接口。
* **验证:** 接口关闭后,R1 到 R3 的默认路由将不再可用,这时之前配置的浮动静态路由 (通过 R2,AD=225) 应该会自动生效。
* **预期 Ping 结果:** 应该仍然成功 (!!!!!),因为有了备用路径。
* **预期 Traceroute 路径:** 从 R5 发送数据到 10.200.220.6 (R6),现在路径应该变为:
* R5 (10.100.110.5) 将数据包发送给 R1 (10.100.110.1)。
* R1 (10.122.12.1) 现在使用通过 R2 的浮动静态默认路由,将数据包发送给 R2 (10.122.12.2)。
* R2 (10.240.24.2) 收到后,可能会有自己的路由规则将数据包发送给 R4 (在 10.240.24.0/29 网络中,R2 是 .2,R4 是 .4)。
* R4 (10.200.220.4) 收到后,直接连接到 R6 的 10.200.220.6。
* 所以,`traceroute` 应该会显示类似 `10.100.110.1 -> 10.122.12.2 -> 10.240.24.4 -> 10.200.220.6` 这样的路径。
* **执行命令:**
```
R5# traceroute 10.200.220.6
R5# ping 10.200.220.6
```
---
### 总结与要点
这道模拟题考察了几个核心的路由概念:
1. **主机路由 (Host Route):** 用于精确匹配单个 IP 地址的路由,通常子网掩码是 `255.255.255.255`。
2. **静态默认路由 (Static Default Route):** 用于处理所有未知目的地的流量,是网络的“出口”,目标网络和子网掩码都是 `0.0.0.0`。
3. **浮动静态路由 (Floating Static Route):** 利用**管理距离 (Administrative Distance, AD)** 来实现备份路径。通过给备份路由一个更高的 AD 值,确保它只在主路由不可用时才被激活。**AD 值越低,路由越优先**。
4. **返回路径 (Return Path):** 永远要考虑双向通信。当配置了去往某个目的地的路由时,也要确保目的地知道如何将回复流量送回来。
5. **验证工具 (`ping` 和 `traceroute`):** 它们是网络工程师验证网络连通性和路径最重要的工具。
通过这道题,我们不仅学会了如何配置这些路由,更重要的是理解了它们背后的设计思想和用途,这对大家未来构建和维护网络至关重要。
希望这次的解析对大家有所帮助!继续努力,加油!