收藏 分销(赏)

show命令大全.doc

上传人:天**** 文档编号:2461227 上传时间:2024-05-30 格式:DOC 页数:5 大小:35.51KB 下载积分:6 金币
下载 相关 举报
show命令大全.doc_第1页
第1页 / 共5页
show命令大全.doc_第2页
第2页 / 共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) Sh ip os neighbor Sh ip os database 查看lsa 、标签、 Sh ip os date router 查看LSDB 1类LSA (router link states ) Sh ip os data network 2类 (net link states) Sh ip os data summary 3 类 (summary net link states ) Sh ip os data asbr-summary 4类 (summary ASB link states) Sh ip os data external 5类 (Type-5 AS external link states) Sh ip os data nssa-external 7类 (type-7 AS external link states) Sh ip os data nssa-external 1.1.12.0 查看某条具体的路由 Sh ip int f0/0 可以查看MTU Sh ip int br f0/0 Sh run int f0/0 Sh ip ospf int f0/0 接口类型,area ,ip,r-id,优先级,hello,dead,cost,as, Sh ip route 12.12.12.0 OE2的路由传递时带有一个参数---forward metric,这个参数记录了OE2的路由所穿越链路的总COST值,如果一个路由器收到两条COST相同的OE2路由,将比较它们的forward metric来选出最优路由 某台路由器做了七转五就成了假的ASBR,也就可以做域外的汇总了 BGP : Sh ip bgp summary 查看bgp的邻居状态(AS 建立的时间) Sh ip bgp neighbors 可以查看版本号 R-ID 时间 AS 四种消息的数量 (其他很多) Sh ip bgp 查看可用路由(拓扑)metric 优先级 weight path 以及下一跳 Sh ip route bgp 查看bgp路由表 Sh ip bg 50.1.1.1 查看某条路由的详细信息 Sh tcp brief 可以看到和谁建立的连接(一边是随机号一边是TCP的179端口号 还有邻居状态)还有timewait状态 Sh ip bg rib-failure 提示有更高AD的路由 Sh ip bgp neighbors 2.2.2.2 advertised-routes 查看想这个邻居发了那些路由信息 sh ip bg neighbors 4.4.4.4 received-routes 在本路由器上用 看着这个邻居给我发了什么路由信息 Sh run | sec router (show running-config | section router) sh run | sec bgp IGP 路由部分 show run | s r e 查看eigrp有关配置 show run | s r o 查看ospf有关配置 show run | s r r 查看rip有关配置 sh ip route 查看路由 sh ip ospf nei 查看eigrp邻居信息 sh ip eigrp nei 查看ospf邻居信息 sh ip eigrp to sh ip ospf dat sh ip ospf int b 这条是我最喜欢用的了 sh ip eigrp int sh ip rip dat BGP 部分 sh run | s r b sh ip bgp sh ip bgp x.x.x.x 查看某条BGP 路由详细信息用于查看来源和各种属性 sh ip bgp su sh bgp ipv4 mu 查看组播BGP 和组播BGP 邻居 sh bgp ipv4 mu su MPLS vpn部分 ip cef 记得随手开启 sh mpls ldp nei sh mpls fo sh run | s vrf sh run | s mpls sh ip bgp vpnv4 all 看vpnv4v路由,vpnv4邻居都能看到 sh ip bgp vpnv4 all su 看vpnv4邻居 sh ip bgp vpnv4 all neighbor 12.12.12.12 advertised-routes 看向vpnv4邻居12.12.12.12通告了什么路由 sh ip route vrf * 看所有的vrf路由表 access部分 show run | se interface | access show run | in interface | access 你就可以看到各个acl应用在什么借口 show run | sec list | map | ntr 把control-plan显示出来(未验证) 组播部分 show ip pim interface 查看哪些接口开启了pim show bgp ipv4 multicast summary 查看bgp ipv4组播邻居 show bgp ipv4 multicast 看bgp表里的(主要是组播源)路由 show ip msdp sa-cache 查看sa表项 show ip rpf *****(组播源地址) 看rpf接口、邻居、type类型 查看配置是否改过的命令 以下这两条命令是用来查看MD5值,只用看后4位 R1#verify /md5 nvram:startup-config 这条命令必须是在修改配置保存过的情况下才会变·不保存不变 R1#verify /md5 system:running-config 这条命令是在不保存的情况下·修改任何配置·MD5值也会变 Connect和active 都是TCP连接阶段active是发起方,connect是应答方,(可用sh ip bgp summary、debug ip bgp events 、 debug ip bgp 查看) 里面估计会有重复的,见谅。。。。。
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 考试专区 > 中考

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服