常用命令
•
show ip route 显示存储在 RAM 中的 IPv4 路由表的内容。
•
show ipv6 route 显示存储在 RAM 中的 IPv6 路由表的内容。
•
show ip route connected 显示存储在 RAM 中的 IPv4 路由表的内容。
•
show interfaces 显示设备上所有接口的统计信息。
•
show ip interface 显示路由器上所有接口的 IPv4 统计信息。
•
show ip interface brief 简短信息
•
show ip interface ... 显示特定接口的信息
•
interface type and num 进入线路配置模式
intterface g0/1 进入高速以太网口
•
show running-config 显示运行配置。
•
show running-config interface ... 显示特定接口运行配置。
•
nsloolup 查找网址的ip。
•
tracert ipAddress 显示经过的路由。
过滤命令
show running-config|section line vty # 显示运行配置里vty节show running-config brief|include up # 显示包括up的show running-config brief|exclude unassigned # 显示不包括unassigned的show running-config brief|begin Gateway # 显示从begin开始的 区分大小写
跟踪命令
traceroute IPAddress 显示途中经过的路由
历史命令
show history 特权执行命令显示缓冲区的内容terminal history size 用户执行命令来增加或减小缓冲区的大小。
评论区