当前位置:文档之家› (完整版)show命令大全

(完整版)show命令大全

(完整版)show命令大全
(完整版)show命令大全

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 查看)

里面估计会有重复的,见谅。。。。。

思科交换机命令大全

思科交换机常用命令大全 1.1 用户模式与特权模式 用户模式:可以使用一些基本的查询命令 特权模式:可以对交换机进行相关的配置 进入特权模式命令:Switch>enable 退出特权模式命令:Switch#exit 启用命令查询:? 时间设置:Switch#clock set 时间(自选参数,参数必须符合交换机要求) 显示信息命令:Switch#show 可选参数 注意:可以用TAB键补齐命令,自选参数为用户自定义参数,可选参数为交换机设定参数 查看交换机配置: Switch#show running-config 保存交换机配置:Switch#copy running-config startup-config Switch#wr 查看端口信息:Switch#show interface 查看MAC地址表:Switch#show mac-address-table 查看交换机CPU的状态信息:Switch#show processes 1.2 全局配置模式 进入全局配置模式:Switch#configure terminal

主机名修改:Switch(config)#hostname 主机名(自选参数) 特权模式进入密码: Switch(config)#enable secret 密码(自选参数) 取消特权模式密码:Switch(config)#no enable secret 取消主机名设置: Switch(config)#no hostname 退出配置模式: Switch(config)#exit 需要特别注意的是在配置模式中无法使用show命令,如果要使用 的话show前必须加do和空格,例如:do show * 指定根交换机命令:Switch(config)#spanning-tree vlan 自选参数(VLAN号)root primary 例如: Switch(config)#spanning-tree vlan 1 root primary 需要注意的是:设置根交换机是基于VLAN的 关闭生成树协议命令:Switch(config)#no spanning-tree vlan 自选参数(VLAN 号) 例如: Switch(config)#no spanning-tree vlan 1 1.3 接口配置模式 进入接口配置模式:Switch(config)#interface 端口名称(可选参数) 启用端口:Switch(config-if)#no shutdown 停用端口:Switch(config-if)#shutdown 进入同种类型多端口配置:Switch(config)# interface range fastethernet 0/1-5 进入不同类型多端口配置:Switch(config)#interface range fastethernet 0/1-5,gigabitethernet 0/1-2

linux命令大全--分类汇总版

LINUX命令大全 一、通用命令 1、date :打印或者设置系统的日期和时间 2、stty -a:可以查看或者打印控制字符(Ctrl-C、Ctrl-D、Ctrl-Z等) 3、passwd:用passwd -h查看 4、logout,login:登录shell的登录和注销命令 5、more,less,head tail:显示或部分显示文件内容 6、lp/lpstat/cancel,lpr/lpq/lprm:打印文件 7、chmod u+x:更改文件权限 8、rm -fr dir:删除非空目录 9、cp -R dir:拷贝目录 10、fg jobid :可以将一个后台进程放到前台 11、kill 的作用:send a signal to a process、eg:kill -9 发送的是SIG_KILL信号,具体发送什么信号可以通过man kill 查看、 12、ps 的用法,ps -e 或ps -o pid,ppid,session,tpgid,comm (其中session显示的sessionid,tpgid显示前台进程组id,comm显示命令名称) 二、常用命令 1、dpkg:package manager for Debian * 安装:dpkg -i package

* 卸载:dpkg -r package * 卸载并删除配置文件:dpkg -P |--purge package * 如果安装一个包时、说依赖某些库、可以先apt-get install somelib * 查看软件包安装内容:dpkg -L package * 查看文件由哪个软件包提供:dpkg -S filename * 另外dpkg还有dselect和aptitude 两个frontend 2、apt * 安装:apt-get install packs * 更新源:apt-get update * 升级系统:apt-get upgrade * 智能升级、安装新软件包,删除废弃的软件包:apt-get dist-upgrade * f --fix broken 修复依赖:apt-get -f install * 自动删除无用的软件:apt-get autoremove * 删除软件:apt-get remove packages * 删除包并清除配置文件:apt-get remove package --purge * 清除所以删除包的残余配置文件:dpkg -l |grep ^rc|awk '{print $2}' |tr ["/n"] [" "]|sudo xargs dpkg -P * 安装软件时候包的临时存放目录:/var/cache/apt/archives * 清除该目录:apt-get clean * 清除该目录的旧版本的软件缓存:apt-get autoclean

CISCO命令全集

CISCO命令全集-思科命令汇总 视图模式介绍: 普通视图router> 特权视图router# /在普通模式下输入enable 全局视图router(config)# /在特权模式下输入config t 接口视图router(config-if)# /在全局模式下输入int 接口名称例如int s0或int e0 路由协议视图router(config-route)# /在全局模式下输入router 动态路由协议名称 1、基本配置: router>enable /进入特权模式 router#conf t /进入全局配置模式 router(config)# hostname xxx /设置设备名称就好像给我们的计算机起个名字 router(config)#enable password /设置特权口令 router(config)#no ip domain lookup /不允许路由器缺省使用DNS解析命令 router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密 router(config)#line vty 0 4 /进入设置telnet服务模式 router(config-line)#password xxx /设置telnet的密码 router(config-line)#login /使能可以登陆 router(config)#line con 0 /进入控制口的服务模式 router(config-line)#password xxx /要设置console的密码 router(config-line)#login /使能可以登陆 2、接口配置: router(config)#int s0 /进入接口配置模式serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口) router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码

锐捷基本命令大全

>Enable 进入特权模式 #Exit 返回上一级操作模式 #End 返回到特权模式 #write memory 或copy running-config startup-config 保存配置文件 #del flash:config.text 删除配置文件(交换机及1700系列路由器) #erase startup-config 删除配置文件(2500系列路由器) #del flash:vlan.dat 删除Vlan配置信息(交换机) #Configure terminal 进入全局配置模式 (config)# hostname switchA配置设备名称为switchA (config)#banner motd & 配置每日提示信息&为终止符 (config)#enable secret level 1 0 star 配置远程登陆密码为star (config)#enable secret level 15 0 star 配置特权密码为star Level 1为普通用户级别,可选为1~15,15为最高权限级别;0表示密码不加密 (config)#enable services web-server 开启交换机WEB管理功能 Services 可选以下:web-server(WEB管理)、telnet-server(远程登陆)等 查看信息 #show running-config 查看当前生效的配置信息 #show interface fastethernet 0/3 查看F0/3端口信息 #show interface serial 1/2 查看S1/2端口信息 #show interface 查看所有端口信息 #show ip interface brief 以简洁方式汇总查看所有端口信息 #show ip interface 查看所有端口信息 #show version 查看版本信息 #show mac-address-table 查看交换机当前MAC地址表信息 #show running-config 查看当前生效的配置信息 #show vlan 查看所有VLAN信息 #show vlan id 10 查看某一VLAN (如VLAN10)的信息 #show interface fastethernet 0/1 switchport 查看某一端口模式(如F 0/1) #show aggregateport 1 summary 查看聚合端口AG1的信息 #show spanning-tree 查看生成树配置信息 #show spanning-tree interface fastethernet 0/1 查看该端口的生成树状态 #show port-security 查看交换机的端口安全配置信息 #show port-security address 查看地址安全绑定配置信息 #show ip access-lists listname 查看名为listname的列表的配置信息 #show access-lists 端口的基本配置 (config)#Interface fastethernet 0/3 进入F0/3的端口配置模式 (config)#interface range fa 0/1-2,0/5,0/7-9 进入F0/1、F0/2、F0/5、F0/7、F0/8、F0/9的端口配置模式 (config-if)#speed 10 配置端口速率为10M,可选10,100,auto (config-if)#duplex full 配置端口为全双工模式,可选full(全双工),half(半双式),auto(自适应)

cisco交换机(Switch)配置命令大全

1.在基于IOS的交换机上设置主机名/系统名: switch(config)# hostname hostname 在基于CLI的交换机上设置主机名/系统名: switch(enable) set system name name-string 2.在基于IOS的交换机上设置登录口令: switch(config)# enable password level 1 password 在基于CLI的交换机上设置登录口令: switch(enable) set password switch(enable) set enalbepass 3.在基于IOS的交换机上设置远程访问: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交换机上设置远程访问: switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway 4.在基于IOS的交换机上启用和浏览CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable

为了查看Cisco邻接设备的CDP通告信息: switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交换机上启用和浏览CDP信息: switch(enable) set cdp {enable|disable} module/port 为了查看Cisco邻接设备的CDP通告信息: switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交换机的端口描述: switch(config-if)# description description-string 基于CLI的交换机的端口描述: switch(enable)set port name module/number description-string 6.在基于IOS的交换机上设置端口速度: switch(config-if)# speed{10|100|auto} 在基于CLI的交换机上设置端口速度: switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto} 7.在基于IOS的交换机上设置以太网的链路模式: switch(config-if)# duplex {auto|full|half} 在基于CLI的交换机上设置以太网的链路模式: switch(enable) set port duplex module/number {full|half}

迈普路由器常用show命令

1.查看配置命令:sh run 作用:查看路由器的配置 2.查看路由表ship route 作用查看路由器的路由表,如下 WANGHUA_DANDONGLU#ship route Codes: C - connected, S - static, R - RIP, O - OSPF, OE-OSPF External, M - Management D - Redirect, E - IRMP, EX - IRMP external, o - SNSP, B - BGP Gateway of last resort is 0.0.0.0 to network 0.0.0.0 S 0.0.0.0/0 [1/78125] is directly connected, 1138:18:02, serial0/0 C 21.38.249.4/30 is directly connected, 1138:18:02, serial0/0 C 21.38.250.32/28 is directly connected, 1138:18:36, fastethernet0 C 21.38.250.56/30 is directly connected, 1138:18:37, loopback0 C 22.38.250.32/28 is directly connected, 1138:18:36, fastethernet0 C 22.38.250.56/30 is directly connected, 1138:18:37, loopback1 C 127.0.0.0/8 is directly connected, 1138:18:46, lo0 C 21.38.249.5/32 is directly connected, 1138:18:02, serial0/0 3.简明接口信息查询ship interface brif 作用:查看各个接口的状态,这里可以看到接口的对应的ip,以及接口状态,up表示接口在使用并且链路正常。 LNFS2_WN_AR_01#sh ip interface brief Interface IP-Address Status Description gigaethernet0 21.0.225.10 UP LINK TO RG5750 lo0 127.0.0.1 UP gigaethernet2 unassigned DOWN gigaethernet3 unassigned DOWN switchethernet5/0 21.0.227.21 UP switchethernet5/2 21.0.227.25 UP serial4/0 21.0.224.34 DOWN TO ShenYang serial4/1 21.0.229.45 DOWN qingyuan serial4/2 21.0.229.49 DOWN to Xinbin serial4/3 unassigned DOWN null0 unassigned UP 4.查看内存使用情况:sh memory,会出现很多信息,重点查看总使用率如下总使用率为 20.32% STATISTICS ---------- Used bytes Free bytes Total bytes Used percent ---------- ---------- ----------- ------------ 54544868 213885452 268430320 20.32% 5.查看cpu使用率分为三步,第一打开监控cpu命令:spy cpu。第二步查看cpu情况命令: shcpu。第三步,查看完毕后关闭监控:no spy cpu。如下cpu空闲为100%

Cisco设备的基本配置命令

switch> 用户模式 1:进入特权模式 enable switch> enable switch# 2:进入全局配置模式 configure terminal switch> enable switch#c onfigure terminal switch(conf)# 3:交换机命名 hostname aptech2950 以aptech2950为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令 enable password cisco 以cisco为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码 enable secret ciscolab 以cicsolab为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip 和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 192.168.254 设置网关地址 7:进入交换机某一端口 interface fastehernet 0/17 以17端口为例switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)#

Linux命令大全

Linux命令大全 1.主题 Linux命令大全。 2.摘要 本文分三篇介绍常用Linux命令,分别是入门篇、进阶篇和高级篇。 3.关键字 Linux。 4.作者 陈明辉。 5.简介 无。 6.背景 无。 7.具体内容 (一)入门篇 对于一个新手来说,如果计划从Windows换到Linux系统平台上来,或刚刚换到Linux上来,使用Linux命令来帮助执行所有任务是一个基础的途径。毫无疑问,在线文档,技术社区能提供很多相关的内容帮助,但是一篇文章收集到如何简单学习和理解Linux命令,这将会激发很多菜鸟掌握Linux和使用的积极性。 1)ls 首先ls命令,指列出目录内容(List Directory Contents)的意思。运行它可以列出文件夹里的内容。

“ls -l”命令以详情模式(long listing fashion)列出文件夹的内容。 “ls -a”命令会列出文件夹里的所有内容,包括以“.”开头的隐藏文件。 注意:在Linux中,文件以“.”开头的就是隐藏文件,并且每个文件、文件夹,设备或者命令都是以文件对待。ls -l命令输出: 1.d (代表了是目录). 2.rwxr-xr-x是文件或者目录所属用户、用户组。 3.上面例子中第一个ravisaive代表了文件文件属于用户ravisaive 4.上面例子中的第二个ravisaive代表了文件文件属于用户组ravisaive 5.4096代表了文件大小为4096字节. 6.May 8 01:06代表了文件最后一次修改的日期和时间. 7.最后代表就是文件/文件夹的名字 2)lsblk “lsblk”就是列出块设备。除了RAM外,以标准的树状输出格式整齐地显示块设备。

Cisco的命令大全

Cisco的命令大全 序号/类别基于ios的交换机命令基于CLI的交换机命令 1.设置主机名/系统名 switch(config)# hostname "hostname" switch(enable) set sys tem name name-string 2.设置登录口令 switch(config)# enable password level 1 password switch(enable) set password switch(enable) set enalbepass 3.设置远程访问 switch(config)# inte***ce vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address switch(enable) set inte***ce s c0 ip-address netmask broadcast-address switch(enable) set inte***ce sc0 vlan switch(enable) set ip route default gateway 4.启用和浏览CDP信息 switch(config-if)# cdp enable switch(config-if)# no cdp enable switch(enable) set cdp {enable|disable} module /port 5.查看Cisco邻接设备的CDP通告 switch# show cdp inte***ce [type modle/port] switch# show cdp neighbors [type module/port] [detail] switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 6.端口描述 switch(config-if)#description escription-string switch(enable)set p ort name module/number description-string 7.设置端口速度 switch(config-if)# speed{10|100|auto} switch(enable) set port s peed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto} 8.设置以太网的链路模式 switch(config-if)# duplex {auto|full|half} switch(enabl e) set port duplex module/number {full|half 9.配置静态VLAN switch# vlan database switch(vlan)# vlan vlan-num name vla switch(vlan)# exit switch# configure teriminal switch(config)#inte***ce inte***ce module/number switch(config-if)# switchport mode access switch(config-if)# switchport access vlan vlan-num switch(config-if)# end switch(enable) set vlan vlan-num [name name] switch(enable) set vlan vlan-num mod-num/port-list 10.配置VLAN中继线 switch(config)# inte***ce inte***ce mod/port

show命令

show advanced-copy-license - Display the Extended Advanced Copy license status. show advanced-copy-parameters - Display the Advanced Copy parameters. show advanced-copy-policy - Display the currently registered Advance Copy policy. show advanced-copy-sessions - Display the list of Advance Copy sessions. show affinity-groups - Display a list of affinity groups or display the details of a specified affinity group. This command is deprecated. It has been superceded by "show lun-groups". show ais-connect - Display the AIS Connect Parameters. show audit - Display settings of the audit log. show backup-rec-path-information - Display a summary of the REC path information contained in the backup copy. show bad-data-info - Display bad data information of which either all of volumes or specified volume. show balancing-thin-pro-volumes - Display a list and the status of thin-pro-volumes that are undergoing balance. show boxid - Display the BOX-ID. show btu-date - Display the date of the replacement battery units. show ca-reset-group - Display the list of host interface ports that are in each reset group. show cache-parameters - Display the cache data control parameters of all volumes. show community-profile - Display a list of all existing SNMP communities. show config-information - Displays a list of configuration information that is stored in the system. show date - Display the date and time parameters. show diagnosis - Display the results of disks or RAID groups diagnosis. show disk-error - Display the disk error information. show disks - Display the details and the status of the disks. show eco-mode - Display the current ECO mode status. show eco-raid-group - Display a list of RAID groups that have an ECO schedule assigned.

思科交换机路由器命令大全

思科交换机路由器命令 大全 YUKI was compiled on the morning of December 16, 2020

1. 交换机支持的命令:交换机基本状态: 交换机口令设置: switch>enable ;进入特权模式switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口 令switch(config)#enable password xxa ;设置特权非 密口令switch(config)#line console 0 ;进入控制台 口switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令 xxswitch#exit ;返回命令 交换机VLAN设置:

switch(vlan)#vlan 2 ;建VLAN 2switch(vlan)#no vlan 2 ;删vlan 2switch(config)#int f0/1 ;进入端 口1switch(config-if)#switchport access vlan 2 ; 当前端口加入vlan 2switch(config-if)#switchport mode trunk ;设置为干线switch(config- if)#switchport trunk allowed vlan 1,2 ;设置允许 的vlanswitch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain ;设置发vtp域名switch(config)#vtp password ;设置发vtp密码switch(config)#vtp mode server ;设置发vtp模式switch(config)#vtp mode client ;设置发vtp模式 交换机设置IP地址: 交换机显示命令:

交换机维护常用show命令

1.查看交换机的版本信息 通过show ver命令可以查看交换机具体型号、软件版本、硬件版本、交换机序列号等信息 2.查看交换机CPU利用率 通过show cpu进行查看,可以查看5分钟、1分钟、5秒钟的CPU利用率。

说明:健康状态下,“CPU utilization in five minutes”应该维持在30%以下;承载业务的压力越大,CPU会越高,也属正常现象,但超出60%时就务必引起注意 3.查看交换机内存利用率 通过show memory进行查看,可以查看总的内存大小,可用内存大小及当前内存利用率 4.查看交换机的电源信息 通过show power命令可以查看交换机的电源供电状态 5.查看交换机的风扇信息 通过show fan命令可以查看交换机的风扇是否正常

6.查看交换机的温度 通过show tem命令可以查看交换机的温度 7.查看交换机时间命令 在特权模式下使用showclock命令查看交换机的时间,如下:Ruijie#show clock ------>查看交换机的时间18:01:03 beijing Tue, Dec 3, 2013 8.查看交换机的log信息: 在特权模式下使用show log命令查看日志信息

2)通过more flash:xxx来查看保存到flash中的log信息 说明:需要用命令Ruijie(config)#logging file flash:syslog 131072来将缓存区的log保存到flash 9.查看交换机FLASH空间大小及文件 通过dir命令进行查看,可以查看主程序文件、配置文件、总FLASH空间大小及当前空闲的FLASH空间大小

cisco配置命令大全

933a LMI使用Q933A标准.LMI(Local management Interface)有3种:ANSI:T1.617;CCITTY:Q933A和CISCO特有的标准。 # fram-relay intf-typ ABC ABC为帧中继设备类型,它们分别是DTE设备,DCE交换机或NNI(网络接点接口)支持。# frame_relay interface_dlci 110 br 配置DLCI(数据链路连接标识符)。 # frame-relay map ip ABCD XXXX broadcast 建立帧中继映射。ABCD为对方ip地址,XXXX为本地DLCI号,broadcast允许广播向前转发或更新路由。 # no shutdown 激活本端口. # exit ---- 5 .帧中继子接口的配置: # conf t # int s0.1 point-to-point

对应S0的子接口1,点对点方式。 # ip addr ABCD XXXX ABCD为子口1的IP地址,XXXX为子网掩码。# frame-relay intreface-dlci 100 br 6.配置拨号备份 (1).配置备份主口 # conf t # int s0 S0为主口. # backup int asy 1 A1口为备份口. # backup delay 0 1 延时1秒. (2).配置虚拟接口 # conf t # ip addr ABCD XXXX

ABCD为虚拟接口IP地址,XXXX为子网掩码。 # encap ppp 封装ppp协议. # dialer in-band 激活随叫随拨功能. # dialer idle-timeout 7200 # dialer map ip ABCD modem-script call broadcast 6225481 br 映射对应的拨号口.ABCD为对方拨号口的ip地址,6225481为对应的电话号码。 # dialer_group 1 定义拨号组成员. (3).配置防火墙 # dialer_list 1 pro ip permit 允许ip协议通过。 (4).配置连接口令 # user name ABCD pass XXXX ABCD为对方主机名,XXXX为连接口令. (5).配置拨号字符串

Linux命令大全完整版

Linux命令大全完整版 目录 目录..................................................................... I 1. linux系统管理命令.. (1) adduser (1) chfn(change finger information) (1) chsh(change shell) (1) date (2) exit (3) finger (4) free (5) fwhois (5) gitps(gnu interactive tools process status) (5) groupdel(group delete) (6) groupmod(group modify) (6) halt (7) id (7) kill (8) last (8) lastb (8) login (9) logname (9) logout (9) logrotate (9) newgrp (10) nice (10) procinfo(process information) (11) ps(process status) (11) pstree(process status tree) (14) reboot (15)

rlogin(remote login) (16) rsh(remote shell) (16) rwho (16) screen (17) shutdown (17) sliplogin (18) su(super user) (18) sudo (19) suspend (19) swatch(simple watcher) (20) tload (20) top (21) uname (21) useradd (22) userconf (22) userdel (23) usermod (23) vlock(virtual console lock) (24) w (24) who (25) whoami (25) whois (25) 2. linux系统设置命令 (27) alias (27) apmd(advanced power management BIOS daemon) (27) aumix(audio mixer) (27) bind (29) chkconfig(check config) (29) chroot(change root) (30)

思科路由器命令大全详解

一 switch> 用户模式 1:进入特权模式enable switch> enable switch# 2:进入全局配置模式configure terminal switch> enable switch#c onfigure terminal switch(conf)# 3:交换机命名hostname aptech2950 以aptech2950为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch-2950 aptech2950(conf)# 4:配置使能口令enable password cisco 以cisco为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable password cisco 5:配置使能密码enable secret ciscolab 以cicsolab为例 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# enable secret ciscolab 6:设置虚拟局域网vlan 1 interface vlan 1 switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface vlan 1 aptech2950(conf-if)#ip address 配置交换机端口ip和子网掩码 aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exit aptech2950(conf)#ip default-gateway 设置网关地址 7:进入交换机某一端口interface fastehernet 0/17 以17端口为例switch> enable switch#c onfigure terminal switch(conf)#hostname aptch2950 aptech2950(conf)# interface fastehernet 0/17 aptech2950(conf-if)# 8:查看命令show switch> enable

相关主题
文本预览
相关文档 最新文档