2020-09-18

2 篇文章 0 订阅
2 篇文章 0 订阅

cisco

 

网络规划与部署模块

查看stp配置

show spanning-tree

查看某个vlan生成树配置

show spanning-tree vlan vlan-id detail

查看hsrp配置

show standby (brief)

查看acl

show access-lists

显示当前存在的转换

show ip nat translations

显示nat统计信息

show ip nat statistics

ospf模块

查看路由表

show ip route

只查看ospf学到的路由

show ip route ospf

查看路由协议配置

show ip protocol

查看ospf配置

show ip ospf

查看LSDB内所有LSA

show ip ospf datebase

查看接口上ospf配置

show ip ospf interface

查看ospf接口的数据结构

show ip ospf interface type number

查看ospf的邻居信息

show ip ospf neighbor

查看ospf邻居的详细信息

show ip ospf neighbor detail

查看虚链路的状态

show ip ospf virtual-links

 

 

QOS与防火墙模块

查看策略配置

show policy-map

查看GTS配置信息

show traffic-shape f0/0

查看CAR配置信息

show int f0/0 rate-limit

查看conn表

show conn detail

查看nat表

show xlate detail

查看当前工作模式

show firewall

查看防火墙路由

show route

查看log Buffer

show logging

tcp/ip模块

查看ios名称及版本信息

show version

查看mac地址表

show mac-address-table

查看接口状态

show int f0/24

查看接口ip

show ip int brief

查看当前配置

show running-config

查看已保存配置

show startup-config

查看vlan

show vlan brief

查看vlan的某个信息

show vlan id vlan-id

查看接口模式

show int f0/0 swtichport

查看以太网通道配置

show entherchannel 1 summary

查看接口

show interface

查看路由协议

show ip protocol

查看ARP缓存表

show arp

查看arp

show ip arp

查看接口模式

show interface-id switchport

查看指定接口的trunk

show interface-id trunk

查看交换机所有的trunk接口

show interface trunk

查看以太网通道配置

show etherchannel 1 summary

查看vtp的配置信息

show vtp password

查看其它vtp的配置信息

show vtp status

课外扩充

Show buffers

显示缓存器统计信息

Show cdp entry

显示CDP表中所列相邻设备的信息

Show cdp interface

显示打开的CDP接口信息

Show cdp neighbors

显示CDP查找进程的结果

Show flash

显示闪存的布局和内容信息

Show frame-relay lmi

显示关于本地管理接口(LMI)的统计信息

Show frame-relay map

显示关于连接的当前映射入口和信息

Show hosts

显示主机名和地址的缓存列表

Show interfaces serial

显示关于一个串口的信息

 

华为和H3C

HUAWEI

H3C

解释

华为与H3C模块

display stp

查看当前的所有生成树信息

display stp brief

查看当前处于up状态的生成树的接口状态,接口角色,生成树特性信息

display stp int G0/0/1

 

查看当前 G0/0/1

display stp bridge  

 

查看桥的生成树状态详细信息

display stp vlan 1

 

查看 MSTP 的 vlan 1 信息(默认情况下)

display stp instance 1

 

查看 MSTP 实例1状态信息

display stp instance 1 brief

 

查看 MSTP 实例1状态的简要信息

display stp region-configuration

 

查看已经生效的 MSTP 的配置信息

vrrp模块

display hrp state

 

查看双机热备的状态信息

display hrp interface

 

查看心跳线的状态

display firewall session table

 

查看会话表

NAT模块

display nat session

 

查看nat转换表

display nat outbound

 

查看已经配置Easy IP

display nat address-group

 

查看已经定义的公网地址池

display nat static

 

查看静态NAT配置

display nat server

 

查看已完成的NAT Server配置

display nat mapping table all

 

查看所有的NAT映射表

display nat session all verbose

 

查看NAT转换触发的事件内容

 

 

 

ospf模块

display ospf peer

查看 OSPF 邻居的相关信息

display ip routing-table protocol  ospf

 

查看 OSPF 协议路由表

display ospf interface

查看运行 OSPF 协议的接口信息

display ospfv3 peer

查看 OSPFv3 邻居的相关信息

display ospf vlink

 

查看虚拟链路信息

display ospf routing

 

查看本设备通过 OSPF 协议写到的动态路由

display ospf peer brief

 

查看本设备 OSPF

display ospf interface GigabitEthernet 0/0/0

 

查看接口 GigabitEthernet 0/0/0 的详细信息

display current-configuration section ospf

 

查看本设备的 OSPF 配置

display ospf lsdb

 

查看本设备的 OSPF 链路状态数据库表

QOS与防火墙模块

display qos queue statistics int G0/0/0

 

查看 G0/0/0

display qos map-table

 

查看本设备针对报文优先级指定的映射关系

display qos map-table dot1p-dscp

 

查看配置的映射关系表

display firewall session table

 

查看防火墙会话表

display firewall server-map

 

查看防火墙server-map

BGP模块

display bgp peer

查看本设备的 BGP 邻居表

display bgp routing-table

查看本设备的 BGP 路由表

display bgp routing-table X.X.X.X 32

 

查看X.X.X.X 32 这条 BGP 路由的详细信息

display bgp routing-table community

 

查看带有团体属性的路由条目

display bgp multicast network

 

查看 MBGP 发布的路由信息

display bgp multicast peer

 

查看 MBGP 对等体关系信息

display default-parameter bgp

 

查看 BGP 协议的默认参数

display bgp routing-table dampening parameter

 

查看 BGP 衰减的配置参数

 

display bgp routing-table flag-info

 

查看 BGP 路由抖动信息

 

display bgp bfd session all

 

查看 BGP 建立的所有BFD回话

 

常用命令

display this

查看当前接口、模式下的配置

display acl 2000

查看acl 2000

display ip interface brief

查看接口的描述信息

display rip 1 route

查看 RIP 1 的路由表

display port vlan

 

查看 VLAN 中包含的接口信息

display     dhcp statistics

 

查看 DHCP 报文统计信息

display interface

 

用于显示接口的详细信息

display ip routing-table

查看路由表

display device

 

查看交换机的部件类型及状态信

display tcp status

 

查看 TCP 状态

display acl all

 

查看 acl 信息

display packet-filter

 

查看包过滤的应用信息

扩展:

华为配置命令范例:

sysname Huawei-R2831\\设置主机名
interface Ethernet 0/0\\进入接口模式
description T0 Switch-A\\接口描述
ip address 192.168.10.222 255.255.255.0\\配置接口IP地址
undo shutdown\\启用接口

local-user huawei\\建立用户名huawei
password simple huawei\\设置密码为huawei
service-type telnet\\服务类型为telnet
user-interface vty 0 4\\进入telnet通道,设置5个用户可以同时登陆
authentication-mode scheme\\设置telnet的模式为本地用户名与密码登陆
user-interface console 0\\设置console密码
authentication-mode password\\密码认证
set authentication password simple huawei

super password simple huawei\\设置super密码,
display version\\查看VRP软件版本
display current-configuration\\查看当前运行的配置
display saved-configuration\\查看已保存过的配置
display interface Ethernet 0/0\\查看接品参数
display brief interface\\查看接口基本状态
delete flash:/config.cfg\\删除用SAVE保存过的配置
delete flash:/main.bin\\删除VRP的映像文件(谨慎操作)
ave\\保存配置

display 和ping 命令在任何视图下都可执行,不必切换到全局配置视图

cisco常用命令解释

视图模式介绍:

普通视图 router>

特权视图 router#    /在普通模式下输入enable

全局视图 router(config)#   /在特权模式下输入config t

接口视图 router(config-if)#       /在全局模式下输入int 接口名称 例如int s0或int e0

路由协议视图 router(config-route)#     /在全局模式下输入router 动态路由协议名称

基本配置:

router>enable       /进入特权模式

router#conf t       /进入全局配置模式

router(config)#hostname xxx       /设置设备名称就好像给我们的计算机起个名字

router(config)#enable password    /设置特权口令

router(config)#no ip domain-lookup       /不允许路由器缺省使用DNS解析命令

router(config)#line console 0     /进入控制口的服务模式

router(config-line)#password xxx  /要设置console的密码

router(config-line)#login  /使能可以登陆

router(config-line)#logging synchronous  /日志同步

router(config-line)#exec-timeout 0 0     /设置时间溢出为0

router(config-line)#line vty 0 4  /进入设置telnet服务模式

router(config-line)#password xxx  /设置telnet的密码

router(config-line)#login  /使能可以登陆

router(config-line)#exit   /保存退出到特权模式

router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值