静态路由 — egress-interface 形式(point-to-point)
- 路由
- 入门
- 8 分钟
- 2 个步骤
- Cisco IOS-style
与 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
Hub— 路由器Spoke1— 路由器Spoke2— 路由器Spoke3— 路由器
你将完成的任务
在
S1上,使用Gi0/0作为出接口,为10.0.2.0/30(S2 的子网)配置一条静态路由。在
S1上用show ip route验证。新条目应出现在S(static)来源下。
同主题的更多实验
- 语法差异——静态路由(Extreme EXOS)入门 · 4 分钟
- 语法差异——静态路由(Cisco IOS)入门 · 4 分钟
- 语法差异——静态路由(Juniper Junos)入门 · 5 分钟
- 语法差异 — 静态路由(VyOS)入门 · 5 分钟
- 静态路由 — 修复 hub-and-spoke入门 · 12 分钟
- EIGRP:三路由器链路上的 AS 100中级 · 14 分钟
本实验的其他语言版本
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)