(完整版)show命令大全
- 格式:doc
- 大小:35.51 KB
- 文档页数:5
Sh cdp nei 查看设备邻居
Sh cdp entry 显示所有邻居详细信息
Sh cdp traffic 显示CDP包,出入数
Sh cdp int s0/0 查看指定接口信息
Sh fram-relay route 查看映射表
Sh fram-relay map 查看帧中继的状态
Sh fram pvc 查看PVC详细信息
Sh fram lmi 查看lmi 详细信息
Sh run | sec CGM 查看帧中继的调用
Sh run | sec fram 查看帧中继
查看交换里的:
Sh run | be int 查看所有交换接口配置
Switch(config)#interface range f0/1 - 2 , f0/4 , f0/6 –7
Sh ip bgp 10.5.5.5.5 查看由谁发来的数据。
Sh ip access 查看ACL
Sh int rate-limit 查看接口管制
Sh ceeess
配置MPLS首先要开启IP CEF sh run | in cef
Sh mpls label range 查看所使用的标签的范围可修改
Mpls label range 16 1001024 修改MPLS的范围
如果邻居还没up 接口下开启:mpls ldp discovery transport-address interface Sh mpls interfaces 查看运行MPLS 接口
Sh mpls ldp parameters 查看运行mpls的详细信息(有时间,版本,)
一般时间hello interval为5s holdtime 为15s keepalive 为60s hold time 180s
时间可修改全局:mpls ldp discovery hello interval 3
或sh mpls ldp discovery detail local ldp
修改transport ip 为e0/0口全局:mpls ldp router-id e0/0 force (使三层可达)
Sh mpls ip binding 1.1.1.1/32 查看FIB表
Sh mpls ldp binding 查看LIB表
sh mpls ldp neighbor
Sh mpls forwarding-table 查看LFIB表
Sh mpls forwarding-table 4.4.4.4 detail 查看某个具体的路由标签
Mpls ldp neighbor 12.12.12.2 labels accept 6
Sh run | sec ip nat
Clea ip nat *
Clea ip nat tra * 清理nat转换路径的记录
Sh ip access-list 该命令用来查看所定义的IP 访问控制列表。
Sh ip prefix-list
R2(config)#do sh run | sec ip (可看静态、ip、)
Sh frame-relay route
Sh frame-relay map
Sh sys mtu
Sh run | sec key
Sh run | sec rip
Sh run | sec
Sh run | sec router 协议(Sh run | begin router 协议)
Sh run | include
Sh arp
sh run | in ip route 查看已配的静态或是sh run | section ip route
show ip route 查看所有路由
sh ip pro 查看拓扑表
混合命令:
sh version 查看所使用的IOS的版本
clear line vty 清理登陆接口信息
sh run int f0/0 查看接口配置信息
sh ip int br 查看所有接口的up down信息
Sh ip route 1.1.20.0 可以查看次路由的AD、metric、来自哪、接口、跳数、MTU、掩码、带宽……
sh int f0/0 查看接口的MTU 带宽掩码时间
sh ip int f0/0
clear ip cef 清除
debug ip icmp un all 关闭debug信息
Sh run linenum (大sh run 并加上行号)
奇偶跳数:
100.1.1.1 255.255.255.0 100.1.0000 0001.0
100.1.2.1 255.255.255.0 100.1.0000 0010.0
100.1.3.1 255.255.255.0 100.1.0000 0011.0
100.1.4.1 255.255.255.0 100.1.0000 0100.0
100.1.5.1 255.255.255.0 100.1.0000 0101.0
100.1.6.1 255.255.255.0 100.1.0000 0110.0 (看有颜色的图)
access-list 1 permit 100.1.0.0 0.0.254.255
offset-list 1 out 10 (全局下RIP协议下针对偶数地址的跳数加10)
access-list 1 permit 100.1.1.0 0.0.254.255
offset-list 1 out 11 (对奇数的地址跳数加11)
Sh run | sec key
Sh key chain
Sh key chain | begin
Sh key chain | include
接口:ip rip send version 2 发送
:ip rip receive version 1 接收
:ip rip v2-broadcast 可以强制rip 用广播更新
Sh ip rip database 分类路由数据库
Sh ip protocol 查看RIP的信息
Sh ip router rip 查看路由表
sh ip route
用户sh access-lists 查看access
改时间协议:timers basic 9 31 40 72 (要改的时间一般是无效时间大于最大的更新时间,更新时间小于最小的无效时间)
Sh ip eigrp interfaces 查看eigrp的接口
Sh ip eigrp inter detail 可以查看hello时间(60/180只有在FR中才有)
Sh ip eigrp neighbors 查看邻居
Sh ip eigrp traffic 可以查看5个报文收发的量(正常情况只有hello增加其他不变)
Sh ip eigrp topology (地址+掩码)查看拓扑当前可用的Sh ip eigrp topology 10.3.3.0/24 还有eigrp route-id
Sh ip protology 可以查看5K、默认跳数、默认variance、AS、hold time 、默认支持负均条数本地宣告的路由、网关、AD值、
Sh ip eigrp topology all-links 查看所有可用的拓扑(可以查看备份路径)
Sh ip route eigrp
Sh ip route eigrp | begin
Sh ip eigrp int f0/0
Sh ip ei to pending | begin
Sh ip ei to pendint | include
Debug eigrp packets
Sh ip protocols
Sh ip ospf 查看route-id 进程号域的数量
Sh ip route os
Sh ip os int br
Sh ip os virtual-links 查看virtual-links的时间(10/40s)