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

Show and tell —— 读取路由器的状态

每位运维人员上手任何路由器的头十分钟里都会敲的三个 show 命令。另加一个管道过滤器,把嘈杂的 running-config 变得清爽可读。

在浏览器中打开本实验 →

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

场景

配置只是工作的一半;读取状态是另一半。路由器可能被配错了, 或者配得完美但接线错了,或者配得完美、接线也对,但在等对端。 show 命令就是用来分辨这些情况的。 本实验中 R1 预载了一份小配置:hostname、description、IP 地址、 loopback。没有任何故障。只需读取。

拓扑

1 × 路由器 · Cisco IOS-style

你将完成的任务

  1. 输入 show version。注意平台字串、uptime 与 config-register。

  2. 输入 show clock。信任时间戳之前先确认路由器的时间上下文。

  3. 输入 show logging。做任何更改前先读最近的本地事件。

  4. 输入 show interfaces。查看 admin / oper / line protocol —— 每个端口的三种状态信息。

  5. 用 | section interface 过滤 running-config,只抓取 interface 块。

在浏览器中打开本实验 →

同主题的更多实验

本实验的其他语言版本

Show and tell — read a router's stateShow and tell — lies den Zustand eines RoutersShow and tell — lee el estado de un routerShow and tell — leia o estado de um roteadorShow and tell — lis l'état d'un routeurShow and tell — router की state पढ़ेंShow and tell — leggi lo stato di un routerShow and tell — ルータの状態を読むShow and tell — 라우터의 상태를 읽기Show and tell — читаем состояние маршрутизатораShow and tell — bir yönlendiricinin durumunu okuShow and tell — đọc trạng thái router