网络实验 文档 打开模拟器 →

静态路由 — egress-interface 形式(point-to-point)

与 static-routes-basic 相同的 hub-and-spoke 拓扑,但采用另一种静态路由形式:不指定 IP next-hop,而是指定出接口。仅适用于 point-to-point 链路;FIB 直接从该接口发包,并在线路上对目的地址进行 ARP。

在浏览器中打开本实验 →

免费 · 无需安装 · 无需注册

场景

ip route 接受两种 next-hop 形式: | 形式 | 示例 | 适用场景 | | --- | --- | --- | | IP next-hop | ip route 10.0.2.0 255.255.255.252 10.0.1.1 | 多路访问链路、递归查找 | | 出接口 | ip route 10.0.2.0 255.255.255.252 Gi0/0 | point-to-point 链路与隧道 | 出接口形式更短,且避免了 FIB 递归查找 —— 路由器立刻知道 从哪个接口发包,并在该接口上对 *目的* IP 进行 ARP。在 /30 P2P 链路上是安全的,因为只有一个对端。在多路访问链路 (多台主机的 /24 以太网)上则 *不安全* —— 路由器会对每 个目的地址做 proxy-ARP,从而为每个远端主机生成一条 CAM 表项。 本实验中,S1 通过 Gi0/0 与 H(hub)以 /30 链路相连。 你将使用出接口形式为 S2 的子网配置一条静态路由。

拓扑

4 × 路由器 · Cisco IOS-style

你将完成的任务

  1. 在 S1 上,使用 Gi0/0 作为出接口,为 10.0.2.0/30(S2 的子网)配置一条静态路由。

  2. 在 S1 上用 show ip route 验证。新条目应出现在 S(static)来源下。

在浏览器中打开本实验 →

同主题的更多实验

本实验的其他语言版本

Static routes — egress-interface form (point-to-point)Statische Routen — Egress-Interface-Form (Point-to-Point)Rutas estáticas — forma de interfaz de salida (point-to-point)Rotas estáticas — forma de interface de saída (point-to-point)Routes statiques — forme d'interface de sortie (point-to-point)Static routes — egress-interface रूप (point-to-point)Rotte statiche — forma di interfaccia di uscita (point-to-point)静的ルート — 出力インターフェイス形式(point-to-point)정적 경로 — egress-interface 형태 (point-to-point)Статические маршруты — форма с выходным интерфейсом (point-to-point)Statik rotalar — çıkış arayüzü biçimi (point-to-point)Tuyến tĩnh — dạng interface đi ra (point-to-point)