C 系列光纤交换机 - Cisco MDS san switch 中常用的命令
- 格式:docx
- 大小:13.33 KB
- 文档页数:3
C 系列光纤交换机- Cisco MDS san switch 中常用的命令1. 通过以下命令可以查看接口信息:Cisco9124e# show interface brief-------------------------------------------------------------------------------Interface Vsan Admin Admin Status SFP Oper Oper PortMode Trunk Mode Speed ChannelMode (Gbps)------------------------------------------------------------------------------- bay1 2 auto on up -- F 4 -- bay2 1 auto on extDisabled -- -- -- bay3 1 auto on down -- -- -- bay4 1 auto on extDisabled -- -- -- bay5 1 auto on extDisabled -- -- -- bay6 1 auto on extDisabled -- -- -- bay7 1 auto on extDisabled -- -- -- bay8 1 auto on extDisabled -- -- -- bay9 1 auto on extDisabled -- -- -- bay10 1 auto on extDisabled -- -- -- bay11 1 auto on down -- -- -- bay12 1 auto on extDisabled -- -- -- bay13 1 auto on extDisabled -- -- -- bay14 1 auto on extDisabled -- -- -- bay15 1 auto on extDisabled -- -- -- bay16 1 auto on extDisabled -- -- ---------------------------------------------------------------------------------Interface Vsan Admin Admin Status SFP Oper Oper PortMode Trunk Mode Speed ChannelMode (Gbps)------------------------------------------------------------------------------ ext1 2 auto on up swl FL 4 -- ext2 2 auto on up swl FL 4 -- ext3 1 auto on sfpAbsent -- -- -- ext4 1 auto on sfpAbsent -- -- -- ext5 1 auto on sfpAbsent -- -- -- ext6 1 auto on sfpAbsent -- -- -- ext7 1 auto on sfpAbsent -- -- -- ext8 1 auto on sfpAbsent -- -- --------------------------------------------------------------------------------- Interface Status Speed(Gbps)------------------------------------------------------------------------------- sup-fc0 up 1 ------------------------------------------------------------------------------- Interface Status IP Address Speed MTU------------------------------------------------------------------------------- mgmt0 up 16.157.125.51/22 100 Mbps 15002. 查看VSAN的情况:Cisco9124e# show fcdomain domain-listVSAN 1 Number of domains: 1Domain ID WWN--------- -----------------------0x64(100) 20:01:00:0d:ec:80:f6:c1 [Local] [Principal]VSAN 2 Number of domains: 1Domain ID WWN--------- -----------------------0x11(17) 20:02:00:0d:ec:80:f6:c1 [Local] [Principal]3. 查看zone的配置:Cisco9124e# show zone status vsan 1VSAN: 1 default-zone: deny distribute: active only Interop: default mode: basic merge-control: allowsession: nonehard-zoning: enabled broadcast: unsupportedDefault zone:qos: none broadcast: unsupported ronly: disabledFull Zoning Database :DB size: 4 bytesZonesets:0 Zones:0 Aliases: 0Active Zoning Database :Database Not AvailableStatus:Cisco9124e# show zone status vsan 2VSAN: 2 default-zone: permit distribute: active only Interop: default mode: basic merge-control: allowsession: nonehard-zoning: enabled broadcast: unsupportedDefault zone:qos: none broadcast: unsupported ronly: disabledFull Zoning Database :DB size: 4 bytesZonesets:0 Zones:0 Aliases: 0Active Zoning Database :Database Not Available Status:4. 配置zone:Cisco9124e# conf tEnter configuration commands, one per line. End with CNTL/Z. Cisco9124e(config)# zone name zone2 vsan 2Cisco9124e(config-zone)# member fwwn 20:10:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# member fwwn 20:0a:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# member fwwn 20:0e:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# exitCisco9124e(config)# zoneset name zoneset2 vsan 2Cisco9124e(config-zoneset)# member zone2Cisco9124e(config-zoneset)# exitCisco9124e(config)# zoneset activate name zoneset2 vsan 2 Zoneset activation initiated. check zone statusCisco9124e(config)# exitCisco9124e# show zoneset activezoneset name zoneset2 vsan 2zone name zone2 vsan 2* fcid 0x110200 [fwwn 20:10:00:0d:ec:80:f6:c0]* fcid 0x1100ef [fwwn 20:0a:00:0d:ec:80:f6:c0]* fcid 0x1101ef [fwwn 20:0e:00:0d:ec:80:f6:c0]zone name $default_zone$ vsan 2Cisco9124e#。
Brocade SAN交换机常用命令使用电脑连接管理网口,默认IP地址为:10.77.77.77,掩码:255.255.255.0 默认用户名:admin,默认密码password1. switchStatusShow查看交换机的总体健康状态2. switchShow查看交换机基本配置信息3. portShow4. fanShow5. psShow查看交换机的电源状态6. tempShow7. errDump、errShow、errClear查看交换机的内部消息日志8. supportShow、supportSave、pdShow 收集交换机的诊断数据9. nsShow、nsAllShow、fabricShow10. licenseShow、wwn检查license文件和交换机的WWN号11. version12. haShow查看Control Blade的状态13. slotShow查看各个Blade的状态14. portCfgSpeed修改端口的速率15. portEnable或portCfgPersistentEnableReset端口16. 检查WWN卡状态下列命令如果不能正确执行,则说明WWN卡需要更换:www,chassisShow:显示交换机的WWN号chassisShow:显示chassis和WWN卡的状态ipAddrShow,ipAddrSet:显示CP Blades的IP地址historyShow、historyLastShow:显示历史日志信息switchName:显示交换机的名字修改Domain ID1. 查看当前的Domain ID输入命令fabricShow,输出结果中的Switch ID即包括交换机的Domain ID。
2. 先关闭交换机输入命令swichDisable3. 配置Domain ID输入命令configure4. 重新启用交换机输入命令swichEnable升级FirmwareFC10-6 Blade需要Firmware Version 5.3以上FC4-16IP Blade、FC4-48 Port Blade需要Firmware Version 5.2以上FR4-18i router blade需要Firmware Version 5.1以上如果M48有主备Control Processor,且主备CP处于synchronized状态,则升级过程可在线进行,不干扰数据流量。
Cisco思科光纤交换机配置说明及常⽤命令你还在为不知道Cisco思科光纤交换机配置说明⽽烦恼么?下⾯⼩编为⼤家收集的Cisco思科光纤交换机配置说明教程,希望能帮到⼤家,⼀起来看看吧!Cisco思科光纤交换机配置说明的⽅法1. 初始化信息⾸次设置,必须通过console进⾏连接(需要U⼝转DB9针的接⼝线,专门卖接⼝线的有卖⼤约30元),然后进⾏初始化设计,以后设定IP后可通过LAN进⾏登陆具体步骤:(红⾊字体部分着重注意,需要进⾏设置,⼤部分按照默认设置即可,⽽且设置的部分进⼊管理⼯具软件可以更改)---- System Admin Account Setup ----Enter the password for "admin": passwordConfirm the password for "admin": password--- Basic System Configuration Dialog ---This setup utility will guide you through the basic configuration of the system. Setup configures only enough connectivity for management of the system.Press Enter at any time to skip any dialog. Use ctrl-c at anytime to skip the remaining dialogs.Would you like to enter the basic configuration dialog (yes/no): yCreate another login account (yes/no) [n]:Configure read-only SNMP community string (yes/no) [n]:Configure read-write SNMP community string (yes/no) [n]:Enter the switch name: Pxx-MDS-x (where xx is your pod number and x is the switch number; for example:P01-MDS-1) Continue with Out-of-band (mgmt0) management configuration? (yes/no) [y]:Mgmt0 IPv4 address : <10.0.x.y> (where x is your pod number and y is 5 for MDS-1 and 3 for MDS-2)(客户)0.16Mgmt0 IPv4 netmask : 255.255.255.0Configure the default gateway? (yes/no) [y]:IPv4 address of the default gateway : 10.0.x.254 (where x is your pod number)Configure advanced IP options? (yes/no) [n]:Enable the telnet service? (yes/no) [y]:Enable the ssh service? (yes/no) [n]:Configure the ntp server? (yes/no) [n]:Configure default switchport interface state (shut/noshut) [shut]: (注意⼀下)noshutConfigure default switchport trunk mode (on/off/auto) [on]:Configure default zone policy (permit/deny) [deny]:Enable full zoneset distribution (yes/no) [n]:NOTE:初始设定的配置对新的VSAN起作⽤,即原始VSAN1⽆这些配置解决办法:1 zone default-zone permit VSAN2 新建 NEW VSAN2 将port转移VSAN2⾥⾯。
系统要求:使用WEB方式连接,配置机器需要安装有JAVA2015年7月28号光纤交换机默认的IP地址:10.77.77.77默认的子网掩码:255.255.255.01. 1. 给配置机器配置一个和光纤交换机相同网段的IP地址.例如:10.77.77.50/242. 2. 把网线一端插入光前交换机的网络配置口,备注:光纤交换机上有2个管理口,1个是用串口方式,这里使用的是IP管理口.3. 3. 使用IE,直接键入:10.77.77.77输入用户名和密码.默认用户名:admin默认密码:password4. 图为初试界面5. 5. 点击界面左侧的Zone Admin6.下图为Zone Admin的界面7.先点击红线标出的Zone,然后点击绿线标出New Zone,会出现输入Zone Name 的对话框.8. 先选择Zone名称,然后把交换机的端口添加进Zone内.9. 然后创建Zone Congfig组10. 选择congfig名称,然后把配置好的Zone添加进congfig中11. 然后Save Config ,然后Enable Config激活LIC步骤:1. 1. telnet 10.77.77.772. 2. admin /password3. 3. licenseidshow -----可以看到LICENSE ID4. 4. 记录WWN号,如10:00:XX:XX:XX5. 5. 上网,键入:/storage/key6. 6. 根据表单上的要求填写。
7. 7.8. 8. 按continue 后会产生一个Activation Key,9. 9. 在交换机上键入:licenseAdd +网上生成的Activation Key,10. licenseidshow 看是否已经激活。
关于“SAN光纤交换机技术知识之BrocadeCisco SAN 交换机如何做健康检查”的文档,请大家仔细阅读以下资料。
C三层交换机配置命令 Document serial number【NL89WT-NY98YT-NC8CB-NNUUT-NUT108】H3C三层交换机配置命令[Quidway]discur;显示当前配置[Quidway]displaycurrent-configuration;显示当前配置[Quidway]displayinterfaces;显示接口信息[Quidway]displayvlanall;显示路由信息[Quidway]displayversion;显示版本信息[Quidway]superpassword;修改特权用户密码[Quidway]sysname;交换机命名[Quidway]interfaceethernet0/1;进入接口视图[Quidway]interfacevlanx;进入接口视图[Quidway]iproute-static0.0.0[Quidway]rip;三层交换支持[Quidway]local-userftp增加用户名[Quidway]user-interfacevty04;进入虚拟终端[S3026-ui-vty0-4]authentication-modepassword;设置口令模式[S3026-ui-vty0-4]setauthentication-modepasswordsimple222;设置口令[S3026-ui-vty0-4]userprivilegelevel3;用户级别[Quidway]interfaceethernet0/1;进入端口模式[Quidway]inte0/1;进入端口模式[Quidway-Ethernet0/1]duplex{half|full|auto};配置端口工作状态[Quidway-Ethernet0/1]speed{10|100|auto};配置端口工作速率[Quidway-Ethernet0/1]flow-control;配置端口流控[Quidway-Ethernet0/1]mdi{across|auto|normal};配置端口平接扭接[Quidway-Ethernet0/1]portlink-type{trunk|access|hybrid};设置端口工作模式[Quidway-Ethernet0/1]portaccessvlan3;当前端口加入到VLAN[Quidway-Ethernet0/2]porttrunkpermitvlan{ID|All};设trunk允许的VLAN[Quidway-Ethernet0/3]porttrunkpvidvlan3;设置trunk端口的PVID[Quidway-Ethernet0/1]undoshutdown;激活端口[Quidway-Ethernet0/1]shutdown;关闭端口[Quidway-Ethernet0/1]quit;返回[Quidway]vlan3;创建VLAN[Quidway-vlan3]portethernet0/1;在VLAN中增加端口[Quidway-vlan3]porte0/1;简写方式[Quidway-vlan3]portethernet0/1toethernet0/4;在VLAN中增加端口[Quidway-vlan3]porte0/1toe0/4;简写方式[Quidway]monitor-port<interface_typeinterface_num>;指定镜像端口[Quidway]portmirror<interface_typeinterface_num>;指定被镜像端口[Quidway]portmirrorint_listobserving-portint_typeint_num;指定镜像和被镜像[Quidway]descriptionstring;指定VLAN描述字符[Quidway]description;删除VLAN描述字符[Quidway]displayvlan[vlan_id];查看VLAN设置[Quidway]stp{enable|disable};设置生成树,默认关闭[Quidway]stppriority4096;设置交换机的优先级[Quidway]stproot{primary|secondary};设置为根或根的备份[Quidway-Ethernet0/1]stpcost200;设置交换机端口的花费[Quidway]link-aggregatione0/1toe0/4ingress|both;端口的聚合[Quidway]undolink-aggregatione0/1|all;始端口为通道号[SwitchA-vlanx]isolate-user-vlanenable;设置主vlan[SwitchA]isolate-user-vlan<x>secondary<list>;设置主vlan包括的子vlan[Quidway-Ethernet0/2]porthybridpvidvlan<id>;设置vlan的pvid[Quidway-Ethernet0/2]porthybridpvid;删除vlan的pvid[Quidway-Ethernet0/2]porthybridvlanvlan_id_listuntagged;设置无标识的vlan如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。
SAN交换机常用命令brocadesan交换机常用命令使用电脑连接管理网口,默认ip地址为:10.77.77.77,掩码:255.255.255.0预设用户名:admin,预设密码password1.switchstatusshow查阅交换机的总体身心健康状态2.switchshow查阅交换机基本布局信息3.portshow4.fanshow5.psshow查阅交换机的电源状态6.tempshow7.errdump、errshow、errclear查看交换机的内部消息日志8.supportshow、supportsave、pdshow收集交换机的诊断数据9.nsshow、nsallshow、fabricshow10.licenseshow、wwn检查license文件和交换机的wwn号11.version12.hashow查阅controlblade的状态13.slotshow查阅各个blade的状态14.portcfgspeed修正端口的速率15.portenable或portcfgpersistentenablereset端口16.检查wwn卡状态以下命令如果无法恰当继续执行,则表明wwn卡须要更改:chassisshow:显示chassis和wwn卡的状态ipaddrshow,ipaddrset:表明cpblades的ip地址historyshow、historylastshow:显示历史日志信息switchname:表明交换机的名字修改domainid1.查阅当前的domainid输入命令fabricshow,输出结果中的switchid即包括交换机的domainid。
2.先停用交换机输入命令swichdisable3.布局domainid输入命令configure4.再次投入使用交换机输入命令swichenable升级firmwarefc10-6blade需要firmwareversion5.3以上fc4-16ipblade、fc4-48portblade须要firmwareversion5.2以上fr4-18irouterblade需要firmwareversion5.1以上如果m48存有主备controlprocessor,且主备cp处在synchronized状态,则升级过程可以在线展开,不阻碍数据流量。
Cisco switch命令大全1.在基于IOS的交换机上设置主机名/系统名:switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable为了查看Cisco邻接设备的CDP通告信息:switch# show cdp interface [type modle/port]switch# show cdp neighbors [type module/port] [detail] 网管u家 在基于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-string6.在基于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}8.在基于IOS的交换机上配置静态VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exit中国网管联盟switch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交换机上配置静态VLAN:switch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9. 在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq}switch(config-if)# switchport trunk allowed vlan remove vlan-list switch(config-if)# switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp [domain domain-name]11.在基于IOS的交换机上配置VTP 模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp {sever|cilent|transparent}switch(vlan)# vtp password password在基于CLI的交换机上配置VTP 模式:switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]12. 在基于IOS的交换机上配置VTP版本:switch# vlan databaseswitch(vlan)# vtp v2-mode在基于CLI的交换机上配置VTP版本:switch(enable) set vtp v2 enable13. 在基于IOS的交换机上启动VTP剪裁:switch# vlan databaseswitch(vlan)# vtp pruning在基于CL I 的交换机上启动VTP剪裁:switch(enable) set vtp pruning enable14.在基于IOS的交换机上配置以太信道:switch(config-if)# port group group-number [distribution {source|destination}]在基于CLI的交换机上配置以太信道:switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto} 中国网管联盟15.在基于IOS的交换机上调整根路径成本:switch(config-if)# spanning-tree [vlan vlan-list] cost cost在基于CLI的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]16.在基于IOS的交换机上调整端口ID:switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority在基于CLI的交换机上调整端口ID:switch(enable) set spantree portpri {mldule/port}priorityswitch(enable) set spantree portvlanpri {module/port}priority [vlans]17. 在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tree [vlan vlan-list] hello-time secondsswitch(config)# spanning-tree [vlan vlan-list] forward-time seconds` switch(config)# spanning-tree [vlan vlan-list] max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello interval[vlan]switch(enable) set spantree fwddelay delay [vlan]switch(enable) set spantree maxage agingtiame[vlan]网管u家18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switch(enable) set spantree portfast {module/port}{enable|disable}19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name21. 为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22. 用show vtp domain 显示管理域的VTP参数.23. 用show vtp statistics显示管理域的VTP参数.24. 在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}] 网管联盟bitsCN_com25. 在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num [name name] type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switch(enable) set vlan vlan-num mod-num/port-num27. 命令show spantree显示一个交换机端口的STP状态.28. 配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29. 配置LECS:ATM(config)# lane database database-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name …30. 创建完数据库后,必须在主接口上启动LECS.命令如下: ATM(config)# interface atm numberATM(config-if)# lane config database database-name网管u家ATM(config-if)# lane config auto-config-atm-address31. 将每个LEC配置到一个不同的ATM子接口上.命令如下: ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32. 用show lane server 显示LES的状态.33. 用show lane bus显示bus的状态.34. 用show lane database显示LECS数据库可内容.35. 用show lane client显示LEC的状态.36. 用show module显示已安装的模块列表.37. 用物理接口建立与VLAN的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# description description-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38. 用中继链路来建立与VLAN的连接:router(config)# interface module/port.subinterfacerouter(config-ig)# encapsulation[isl|dotlq] vlan-numberrouter(config-if)# ip address ip-address subnet-mask39. 用LANE 来建立与VLAN的连接: 网管u家u.bitscn@com router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# …40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:router(config)# ip routingrouter(config)# router ip-routing-protocolrouter(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number41. 配置默认路由:switch(enable) set ip route default gateway42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:router(config)# interface interface number网管网www_bitscn_comrouter(config-if)# mls rp vlan-id vlan-id-num43. 在路由处理器启用MLSP:router(config)# mls rp ip44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name45. 查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:router(config-if)#mls rp management-interface47. 要检验MLS-RP的配置情况:router# show mls rp48. 检验特定接口上的MLS配置:router# show mls rp interface interface number49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow [destination|destination-source|full]50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip input-acl51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:网管联盟bitsCN@comswitch(enable) set mls enable52. 若想改变老化时间的值,可在特权模式下输入以下命令:switch(enable) set mls agingtime agingtime53. 设置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:switch(enable) show mls include55. 显示MLS高速缓存记录:switch(enable) show mls entry56. 用命令show in arp显示ARP高速缓存区的内容。
思科光纤交换机基本指令show interface fc x/x transceiver details/link?url=zQ1lfBIy40JkgAxS9ONkbwVlLlsAq_3umIWd6O5mbObcQfcM3Ly 88PhZNq9fBUOq7FJy92eRp0oMmJc58Md8hNePQ0ZVXKpSAwPua6Cvlk_1、配置VSANVSAN的作用是隔离每一个交换机端口:switch2# conf tswitch2(config)# vsan databaseswitch2(config-vsan-db)# vsan 4000 name sw2switch2(config-vsan-db)# vsan 4000 interface fc1/1Traffic on fc1/1 may be impacted. Do you want to continue? (y/n) yswitch2(config-vsan-db)# vsan 4000 interface fc1/2Traffic on fc1/2 may be impacted. Do you want to continue? (y/n) yswitch2(config-vsan-db)# vsan 4000 interface fc1/72、创建ZONE并且添加ZONE成员。
witch2# conf tEnter configuration commands, one per line. End with CNTL/Z.switch2(config)# zone name db2_3652_1 vsan 4000switch2(config-zone)# member interface fc1/1switch2(config-zone)# member interface fc1/2switch2(config-zone)# zone name db2_3652_2 vsan 4000switch2(config-zone)# member interface fc1/7switch2(config-zone)# member interface fc1/83、配置ZONESET包含2个ZONEswitch2(config-zone)# zoneset name db2_3652 vsan 4000switch2(config-zoneset)# member db2_3652_1switch2(config-zoneset)# member db2_3652_24、察看ZONE成员switch2# show zonezone name db2_3652_1 vsan 4000interface fc1/1 swwn 20:00:00:0d:ec:be:0d:40interface fc1/2 swwn 20:00:00:0d:ec:be:0d:40zone name db2_3652_2 vsan 4000interface fc1/7 swwn 20:00:00:0d:ec:be:0d:40interface fc1/8 swwn 20:00:00:0d:ec:be:0d:405、察看ZONESET成员switch2# show zonesetzoneset name db2_3652 vsan 4000zone name db2_3652_1 vsan 4000interface fc1/1 swwn 20:00:00:0d:ec:be:0d:40interface fc1/2 swwn 20:00:00:0d:ec:be:0d:40zone name db2_3652_2 vsan 4000interface fc1/7 swwn 20:00:00:0d:ec:be:0d:40interface fc1/8 swwn 20:00:00:0d:ec:be:0d:406、激活ZONESETswitch2# conf tEnter configuration commands, one per line. End with CNTL/Z.switch2(config)# zoneset activate name db2_3652 vsan 4000Zoneset activation initiated. check zone status7、察看激活ZONE的switch2# show zone activezone name db2_3652_1 vsan 4000* fcid 0x810000 [interface fc1/1 swwn 20:00:00:0d:ec:be:0d:40]* fcid 0x810100 [interface fc1/2 swwn 20:00:00:0d:ec:be:0d:40]zone name db2_3652_2 vsan 4000* fcid 0x810200 [interface fc1/7 swwn 20:00:00:0d:ec:be:0d:40]* fcid 0x810300 [interface fc1/8 swwn 20:00:00:0d:ec:be:0d:40]conf t 进入conf模式show zone act 显示活跃的zone,注意记录zoneset名称和vsan名称zone name zone_name vsan xxx 新建zonemem interface fc x/x,fc x/x,fc x/x 加入端口exitzoneset name zoneset_name vsan xxx 编辑zonesetmem zone_name 加入zoneexitzoneset activate name zoneset_name vsan xxx 使zoneset生效copy running-config startup-config 保存配置。
1SAN交换机基础1.1登录方式➢串口➢以太网口➢光纤口➢缺省的串口参数是:9600,N,8,1➢缺省IP访问方式是:➢IP地址: 10.77.77.77➢用户名: admin➢密码:password➢时区: Pacific time➢交换机名称:switch1.2登录用户➢admin: 可以执行所有的命令并查看交换机状态和修改交换机的配置➢user: 执行Show命令来查看交换机的状态➢改变密码➢以admin身份执行passwd命令➢会显示每个用户,可以依次修改他们的密码➢博科交换机还提供其它2个用户。
➢root:可以登录到系统内核,进行底层的调试➢factory:生产工厂使用,用于生产检验用户和服务工程师最好不要采用这两个帐号登陆,以便造成不必要的麻烦。
在第一次登陆时,交换机允许客户修改4个用户帐号的密码,其中包括root和factory,建议用户不要修改root和factory的,可以修改admin和user密码。
交换机通常的配置:Domain ID configureSwitch Name switch nameSwitch Data and Time dateTelnet Timeout timeout2zone规划2.1Z one定义Zoning是Brocade交换机上的标准功能,通过在SAN网络中交换机上进行Zoning的配置,可以将连接在SAN网络中的设备,逻辑上划分为不同的区域,使各区域的设备相互间不能访问,是网络中的主机和设备间相互隔离。
对于设备来说是透明的。
这里的区域划分都是在Brocade交换机上完成的,划分区域的工作对于主机和存储设备来说都是透明的,在他们上面不需要进行任何配置。
他们会以为SAN网络中只有Zone中的几台设备,根本没有其他的设备存在。
2.2Z one分类要实现这种SAN网络中区域的划分,思路有两种:在名字服务器中隔离和在数据转发时过滤数据包,用这两种方法实现的Zone分别被称作Software Zone 和Hardware Zone。
Cisco交换机常用配置命令Cisco交换机常用配置命令CISCO交换机基本配置switch>ena 進入特权模式switch#erase nvram 全部清除交换机的所有配置switch#reload 重新启动交换机(初始提示符为switch> )------------------------------------------------------------------------------------CISCO交换机基本配置:Console端口连接用户模式hostname> ;特权模式hostname(config)# ;全局配置模式hostname(config-if)# ;交换机口令设置:switch>enable ;进入特权模式switch#config;进入全局配置模式switch(config)#hostname cisco ;设置交换机的主机名switch(config)#enable secret csico1 ;设置特权加密口令switch(config)#enable password csico8 ;设置特权非密口令switch(config)#line console 0 ;进入控制台口switch(config-line)#line vty 0 4 ;进入虚拟终端switch(config-line)#login ;虚拟终端允许登录switch(config-line)#password csico6 ;设置虚拟终端登录口令csico6 switch#write 保存配置設置switch#copy running-config startup-config 保存配置設置,與write一樣switch#exit ;返回命令配置终端过一会时间就会由全局配置模式自动改为用户模式,将超时设置为永不超时switch#conf tswitch(config)#line con 0switch(config-line)#exec-timeout 0---------------------------------------------------------------------------------交换机显示命令:switch#write ;保存配置信息switch#show vtp ;查看vtp配置信息switch#show run ;查看当前配置信息switch#show vlan ;查看vlan配置信息switch#show vlan name vlan2switch#show interface ;查看端口信息switch(config)#int f0/1 ;进入端口1switch(config)#speed ? 查看speed命令的子命令switch(config)#speed 100 设置该端口速率为100mb/s (10/auto)switch(config-if)#do show int f0/21 显示21口配置信息switch(config-if)#shut ;shutdown 关闭当前端口switch(config-if)#no shut ;no shutdown 开启当前端口switch(config)#duplex ? 查看duplex的子命令switch(config)#duplex full 设置该端口为全双工(auto/half)switch(config)#description TO_PC1 这是该端口描述为TO_PC1switch(config)#interface f0/21switch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2switch(config-if)#switchport mode trunk ;设置为trunk模式(access模式) switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain vtpserver ;设置vtp域名相同switch(config)#vtp password ;设置发vtp密码switch(config)#vtp server ;设置vtp服务器模式switch(config)#vtp client ;设置vtp客户机模式---------------------------------------------------------------------------------------交换机设置IP地址,默认网关,域名,域名服务器,配置和查看MAC地址表:switch(config)#interface vlan 1 ;进入vlan 1switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;设置IP地址switch(config)#ip default-gateway 192.168.1.6 ;设置默认网关switch(config)#ip domain-name 设置域名switch(config)#ip name-server 192.168.1.18 设置域名服务器switch(config)#mac-address-table? 查看mac-address-table的子命令switch(config)#mac-address-table aging-time 100 设置超时时间为100msswitch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3 加入永久地址在f0/3端口switch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6f0/7 加入静态地址目标端口f0/6源端口f0/7switch(config)#endswitch#show mac-address-table 查看整个MAC地址表switch#clear mac-address-table restricted static 清除限制性静态地址-----------------------------------------------------------------------------------交换机端口加入vlan将多个端口加入到VLAN2switch(config)#interface range fa 0/17-24switch(config-if-range)#switchport access vlan 2单个端口加入VLANswitch(config)#interface f0/1switch(config-if-range)#switchport access vlan 2-------------------------------------------------------------------------------- 交换机的端口和MAC地址表的设置2960交换机配置端口属性switch#conf tswitch#interface ethernet 0/1进入第1个端口switch#description switch-e0/1-pc1给端口写入注释信息switch#duplex auto/full/full-flow-control/half设置端口的工作模式switch#port secure启用端口安全性switch#port secure max-mac-count 1设置该端口允许对应的MAC地址数(默认132个)switch#sh mac-address-table security查看端口安全性2912交换机配置端口属性switch#conf t进入全局配置模式switch#interface fastethernet 0/1进入第1个端口switch#description switch-f0/1-pc1给端口写入注释信息switch#duplex auto/full/half设置端口的工作模式switch#port security启用端口安全性switch#port security max-mac-count 1设置该端口允许对应的MAC地址数(默认132个)switch#end返回特权模式switch#sh port security查看端口安全性配置和查看MAC地址表1924交换机配置MAC地址表switch#mac-address-table aging-time 600设置动态地址超时时间switch#mac-address-table permanent 0000.0cdd.5a4d e0/3定义永久MAC地址(绑定MAC地址)switch#mac-address-table restricted static 0000.0cdd.aaed e0/6 e0/7 定义受限MAC地址switch#address-violation disable/ignore/suspend定义地址安全违规switch#show mac-address-table查看上述配置switch#clear mac-addr restric static清除受限MAC地址表项2912交换机配置MAC地址表switch#mac-address-table aging-time 700设置动态地址超时时间switch#mac-address-table static 0000.0cdd.5a4d e0/3定义永久MAC地址(绑定MAC地址)switch#mac-address-table secure 00d0.f80d.3333 f0/3 vlan 1定义受限MAC地址switch#port security action shutdown/trap定义地址安全违规switch#show port security查看上述配置配置VTP、VLAN、VLAN Trunk和STP配置VTPswitch#conf tswitch#vtp server定义VTP的工作模式switch#vtp domain cisco定义VTP的域名switch#trunk on启用干道switch#vtp domain cisco加入VTP域switch#vtp client定义VTP的工作模式switch#trunk on启用干道switch#show trunk bswitch#show trunk b allowed-vlans 查看干道信息配置VLANswitch#vlan 10 dept1switch#vlan 20 dept2switch#vlan 30 dept3switch#vlan 40 dept4定义所需VLANswitch#show vlan查看VLAN信息switch#show vlanswitch#show vtp查看VTP的信息switch#int e0/1switch#vlan-membership static 10 switch#int e0/2switch#vlan-membership static 20 switch#int e0/3switch#vlan-membership static 30 switch#int e0/4switch#vlan-membership static 40 把接口划入各自VLAN配置spanning treeswitch#spantree vlan 1对vlan1启用生成树协议switch#sh spantree vlan 1查看生成树信息switch#no spantree vlan 1关闭生成树协议switch#sh spantree vlan 1查看生成树信息交换机上屏蔽个别MAC地址方法configure terminalinterface gigabitEthernet 0/20 switchportsw mode accsw port-secsw port-sec mac-add [macaddress] sw port-sec max 1sw port-sec violation restrict部分命令缩写要看详细按tab键。
思科交换机的基本命名规则-电脑资料Cisco 的交换机产品以“Catalyst”为商标,包含1900 、2800 、2900 、3500 、4000 、5000 、5500 、6000 、8500 等十多个系列,。
Catalyst可以分为两类,一类是固定配置交换机,包括3500 及以下的大部分型号,除了有限的软件升级之外,这些交换机不能扩展。
另一类是模块化交换机,主要指4000 及以上的机型。
Catalyst的命名格式如下:Catalyst NNXX [-C] [-M] [-A/-EN]其中,NN 是交换机的系列号,XX 对于固定配置的交换机来说是端口数,对于模块化交换机来说是插槽数,有-C 标志表明带光纤接口,-M 表示模块化,-A 和-EN 分别是指交换机软件是标准版或企业版,电脑资料《思科交换机的基本命名规则》(https://www.)。
对于企业数据网来说,Catalyst 6000 系列是最常用的产品。
Catalyst 6000 系列是由Catalyst 6000 和Catalyst 6500 两种型号的交换机构成,包含6 个、9 个或13个插槽型号,分别为6006 、6009 、6506 、6509和6513 。
Cisco交换机的命名一般是WS开头,这个是固定的。
再下一个字母有两种情况,一种是C,一种是X,C代表固化交换机或者机箱,X 代表的是模块。
比如看到WS-C3750-24TS-S这个型号的时候我们可以知道它是CISCO交换机,固化交换机3750系列,24个以太网口,TS表示是以太口+SFP口后面的S表示是标准版的,相应的型号就是E 的,属于增强型或者叫企业版。
再如WS-X6748-SFP,WS还是代表交换设备,x表示模块,6表示6000系列,7表示7代产品,48表示48口,SFP表示端口类型(SFP是一种mini接口模块)。
思科存储解决方案孟召运 Channel SE zmeng@ 85155117© 2006 Cisco Systems, Inc. All rights reserved.1PDF created with pdfFactory Pro trial version 内容§ 思科智能存储网络产品线概述 § 思科MDS9500产品介绍 § 思科MDS9222i产品介绍 § 思科MDS9124, 9134产品介绍© 2006 Cisco Systems, Inc. All rights reserved.2PDF created with pdfFactory Pro trial version 题外话§ 当你给用户进行思科存储交换机产品的介绍时,客户可能会跟你说 打算买IBM/ EMC / HDS / HP / SUN品牌的存储交换机。
这个时候, 请你一定要跟用户澄清:上述的这些公司的存储交换机都是OEM 思 科、博科(Brocade ),McData(已经被Brocade收购)和其它 小规模的存储交换机厂家的产品的。
§ 目前,主流的存储交换机的生产厂家是思科和博科. § 存储导向器(SAN Director):一般是指64个端口以上的存储交换 机,具有较高的可靠性,至少包括了双引擎,双电源等等多种冗余 要求 § 存储交换机(SAN Switch) :一般是指64个端口密度以下的存储交 换机,一般只具有双电源等基本冗余性要求。
© 2006 Cisco Systems, Inc. All rights reserved.3PDF created with pdfFactory Pro trial version MDS 9000 光纤存储网络产品家族Enterprise and Service Provider Small/Medium BusinessMDS 9000 Family SystemsMDS 9124 MDS 9134 MDS 9222i MDS 9506 MDS 9509 MDS 9513MDS 9000 Modules•12/24/48 x 1/2/4-Gb FC •24/48 x 1/2/4/8Gb FC •4 x 8Gb + 44 x 4Gb FC4-Port 10Gb FC18/4-Port MultiserviceIP Storage Services iSCSI and FCIPSSM (Virtualization;Intelligent Fabric Applications)Management O/S© 2006 Cisco Systems, Inc. All rights reserved.Cisco Fabric Manager Cisco MDS 9000 Family NX-OS4PDF created with pdfFactory Pro trial version 思科高端存储导向器MDS 9500§ 全冗余架构:不存在单点故障 超过99.999%的高可用性 双引擎,双电源,双交换矩阵 crossbars, 双系统时钟, 冗余风扇 热插拔的模块 Nondisruptive code upgrades§ 业界领先的端口密度和扩 展性:系统整体交换能力高达2.2 Tbps 每个槽位100 Gbps交换能力 Up to 528 ports per chassis and 1584 ports per rackMDS 9506MDS 9509MDS 9513§ 6 chassis slots § 2 supervisors § 4 line cards § 192 FC ports© 2006 Cisco Systems, Inc. All rights reserved.§ 9 chassis slots § 2 supervisors § 7 line cards § 336 FC ports§ 13 chassis slots § 2 supervisors § 11 line cards § 528 max ports5PDF created with pdfFactory Pro trial version Cisco MDS 9000 扩展模块ISSU§ Network Processing Engine to enable storage servicesFCIP SAN Extension Data-At-Rest Encryption§ Expansion slotScales up to 66 Fibre Channel ports Enables Storage Virtualization with SSM12, 24, 48-Port 1/2/4-Gbps FC 24, 48 port 1/2/4 8Gbps FC 4 x 8G + 44 x 1/2/4Gbps FC§ Redundant, hot-swappable power supplies and fans4-Port 10Gb FC§ Complete MDS 9500 Director feature-set with market leading enterprise-class SAN-OS § In Service Software Upgrade (ISSU) enables hitless SAN-OS upgradeSSM (IntelligentFabric Applications)8-Port IP Storage Services iSCSI and FCIP18/4-Port Multiservice Module18/4-Port Multiservice FIPS Module6© 2006 Cisco Systems, Inc. All rights reserved.PDF created with pdfFactory Pro trial version MDS 9222i 多服务模块化存储交换机• 通过FCIP SAN的扩展 • 基于硬件的数据压缩和加密,保障 在FCIP传输过程中的安全 Data-At-Rest 加密 • 通过FC方式实现 SAN的扩展 • Storage Media Encryption • FCIP/FC 写加速 模块化中等端口密度 • Tapes and VTLs • 缺省具有18个 4-Gbps FC端口+4 个GE端口 • Transparent Fabric Service • 能扩展到最多66个4Gbps的 FC端口 • Key Management • 仅3 RU的高度灾难恢复/ 业务永续SAN路由 SAN整合的能力支持VSAN间的路由 • Virtual SANs (VSANs) • Multiprotocol Integration – FC, FICON, FCIP, iSCSI• Online Data Migration 存储虚拟化 • Ease-of-Deployment • Volume Management • Data Migration • Copy across Heterogeneous Tiers© 2006 Cisco Systems, Inc. All rights reserved.数据迁移• Immediate Data Recovery • Reduced WAN Expenses持续性远程复制 / 持续 性数据保护(CDP)7PDF created with pdfFactory Pro trial version MDS 9222i上支持的扩展模块DS-X9308-SMIP额外可扩充8个GE端口,主要用于高密度的 iSCSI环境和FCIP环境 额外可扩充12个1/2/4G bps FC端口,这12个 端口适用于接入磁盘阵列 额外可扩充24个1/2/4G bps FC端口,这24个 FC端口适用于接入服务器和磁盘阵列或者磁带 库 额外可扩充48个1/2/4G bps FC端口,这48 个FC端口适合做服务器的接入 额外可扩充44个1/2/4G bps FC端口,4个 8Gpbs FC 接口,适合做服务器的接入 额外可扩充4个10 Gbps的FC端口,这4个端口适 合做存储交换机之间的10Gbps级联用 额外可扩充18个1/2/4Gbps FC端口,以及4个GE 端口,适合增加磁盘阵列的接口,以及FCIP接口 额外可扩充32个支持虚拟化能力和FC写加速的的 FC端口,存储的虚拟化功能,另外进行专题介绍8MDS 9222i: 缺省具有18个 4Gbps FC,以 及 4个GE端口,此 外还具有一个空 闲槽位可进行扩 展:DS-X9112DS-X9124DS-X9148DS-X9248-K9DS-X9704DS-X9304-18K9DS-X9032-SSM© 2006 Cisco Systems, Inc. All rights reserved.PDF created with pdfFactory Pro trial version MDS 9222i的使用环境与定位§ 中低端口密度的存储网络:66个FC端口密度以下 § 主/备数据中心之间需要进行存储网互通,但是由于距离太远,无法 通过裸光纤/CWDM/DWDM进行 存储互联的环境使用环境一(双中心存储基于FCIP方式进行互联):MDS 9222i的GE端口接入到以太网交换 机上,与远端存储建立起FCIP隧道进行传输,硬件方式执行压缩和加密服务器 MDS 9222i FCIP FCIP MDS 9222i 服务器磁盘阵列 或者 磁带库MDS 9222iFCIP路由器WAN路由器FCIPMDS 9222i以太网交换机以太网交换机磁盘阵列 或者 磁带库数据中心 使用环境二(iSCSI应用):MDS 9222i 的GE端口接入到以太网交换机上,做 iSCSI的gateway,具有存储访问需求的 服务器可通过IP方式进行访问。
网络工程师=兴趣+恒心+勤奋http://192.168.34.200)
本节内容常用信息查看命令常用设备管理命令密码配置其他控制台命令
41
2
3
本节主要帮助大家熟悉交换机常用指令的使用方法,加深对
交换机配置环境的认识。
课程议题
常用信息查看命令
常用信息查看命令
•查看版本信息
switch#show version
•查看当前配置
常用信息查看命令
•查看时钟
switch#show clock
•查看历史指令
课程议题
常用设备管理命令
常用设备管理命令
•配置主机名
switch (config)#hostname{主机名}•配置交换机时间
常用设备管理命令
•配置交换机的网关
switch (config)#ip default-gateway{ip address}•保存配置信息
课程议题
密码配置
密码配置
•特权模式明文密码
switch (config)#enable password {password}
•控制台密码
switch (config)#line console 0
•虚拟终端密码
switch (config)#line vty0 4
课程议题
其他控制台命令
•配置控制台会话自动退出时间间隔switch (config)#line console 0
•重显被打乱的控制台输入(光标跟随)switch (config)#line console 0
网络工程师=兴趣+恒心+勤奋http://192.168.34.200)。
博科交换机查看IP地址命令swd77:admin> ipaddrshowSWITCHEthernet IP Address: 10.77.77.77Ethernet Subnetmask: 255.255.255.0Fibre Channel IP Address: noneFibre Channel Subnetmask: noneGateway IP Address: noneDHCP: Offswd77:admin>设置博科Brocade交换机IP地址博科交换机的默认IP地址是10.77.77.77,在命令行模式下可以通过ipaddrset命令对交换机的IP地址进行设置和修改swd77:admin> ipaddrsetEthernet IP Address [10.77.77.77]: #输入交换机需要设置的IP地址Ethernet Subnetmask [255.255.255.0]: #输入掩码Fibre Channel IP Address [none]:Fibre Channel Subnetmask [none]:Gateway IP Address [none]: # 输入网关DHCP [Off]: #是否开启DHCPswd77:admin>博科brocade交换机查看OS版本信息swd77:admin> versionKernel: 2.6.14.2 //linux内核版本Fabric OS: v6.1.0a // 交换机OS版本Made on: Thu Apr 17 21:45:31 2008 // 生产日期Flash: Tue Jan 13 23:33:44 2009BootProm: 4.6.6swd77:admin>博科brocade交换机添加license授权信息swd77:admin> licenseadd XXXXXXXX(博科的激活号)查看博科brocade交换机license授权信息在命令行模式下使用licenseshow命令可以查看博科交换机的授权情况,使用licenseadd命令可以添加授权。
CISCO Switch命令大全1.switch(config)# hostname hostname在基于CLI的交换机上设置主机名/系统名:switch(enable) set system name name-string2.在基于IOS的交换机上设置登录口令:switch(config)# enable password level 1 password在基于CLI的交换机上设置登录口令:switch(enable) set passwordswitch(enable) set enalbepass3.在基于IOS的交换机上设置远程访问:switch(config)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交换机上设置远程访问:switch(enable) set interface sc0 ip-address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway4.在基于IOS的交换机上启用和浏览CDP信息:switch(config-if)# cdp enableswitch(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-string6.在基于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}8.在基于IOS的交换机上配置静态VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# exitswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交换机上配置静态VLAN:switch(enable) set vlan vlan-num [name name]switch(enable) set vlan vlan-num mod-num/port-list9. 在基于IOS的交换机上配置VLAN中继线:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation {isl|dotlq}switch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)# switchport trunk allowed vlan add vlan-list在基于CLI的交换机上配置VLAN中继线:switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]Vlan-range [isl|dotlq|dotl0|lane|negotiate]10.在基于IOS的交换机上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain-name在基于CLI的交换机上配置VTP管理域:switch(enable) set vtp [domain domain-name]11.在基于IOS的交换机上配置VTP 模式:switch# vlan databaseswitch(vlan)# vtp domain domain-nameswitch(vlan)# vtp {sever|cilent|transparent}switch(vlan)# vtp password password在基于CLI的交换机上配置VTP 模式:switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password] 12. 在基于IOS的交换机上配置VTP版本:switch# vlan databaseswitch(vlan)# vtp v2-mode在基于CLI的交换机上配置VTP版本:switch(enable) set vtp v2 enable13. 在基于IOS的交换机上启动VTP剪裁:switch# vlan databaseswitch(vlan)# vtp pruning在基于CL I 的交换机上启动VTP剪裁:switch(enable) set vtp pruning enable14.在基于IOS的交换机上配置以太信道:switch(config-if)# port group group-number [distribution {source|destination}]在基于CLI的交换机上配置以太信道:switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}15.在基于IOS的交换机上调整根路径成本:switch(config-if)# spanning-tree [vlan vlan-list] cost cost在基于CLI的交换机上调整根路径成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]16.在基于IOS的交换机上调整端口ID:switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority在基于CLI的交换机上调整端口ID:switch(enable) set spantree portpri {mldule/port}priorityswitch(enable) set spantree portvlanpri {module/port}priority [vlans]17. 在基于IOS的交换机上修改STP时钟:switch(config)# spanning-tree [vlan vlan-list] hello-time secondsswitch(config)# spanning-tree [vlan vlan-list] forward-time seconds` switch(config)# spanning-tree [vlan vlan-list] max-age seconds在基于CLI的交换机上修改STP时钟:switch(enable) set spantree hello interval[vlan]switch(enable) set spantree fwddelay delay [vlan]switch(enable) set spantree maxage agingtiame[vlan]18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:switch(config-if)#spanning-tree portfast在基于CLI的交换机端口上启用或禁用Port Fast 特征:switch(enable) set spantree portfast {module/port}{enable|disable}19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]在基于CLI的交换机端口上启用或禁用UplinkFast 特征:switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name21. 为了从一条中继链路上删除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range22. 用show vtp domain 显示管理域的VTP参数.23. 用show vtp statistics显示管理域的VTP参数.24. 在Catalyst交换机上定义TrBRF的命令如下:switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]25. 在Catalyst交换机上定义TrCRF的命令如下:switch (enable) set vlan vlan-num [name name] type trcrf{ring hex-ring-num|decring decimal-ring-num} parent vlan-num26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:switch(enable) set vlan vlan-num mod-num/port-num27. 命令show spantree显示一个交换机端口的STP状态.28. 配置一个ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint multiointATM(config-subif)# lane serber-bus ethernet elan-name29. 配置LECS:ATM(config)# lane database database-nameATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-addressATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-addressATM(lane-config-databade)# name …30. 创建完数据库后,必须在主接口上启动LECS.命令如下:ATM(config)# interface atm numberATM(config-if)# lane config database database-nameATM(config-if)# lane config auto-config-atm-address31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:ATM(config)# interface atm number.subint multipointATM(config)# lane client ethernet vlan-num elan-num32. 用show lane server 显示LES的状态.33. 用show lane bus显示bus的状态.34. 用show lane database显示LECS数据库可内容.35. 用show lane client显示LEC的状态.36. 用show module显示已安装的模块列表.37. 用物理接口建立与VLAN的连接:router# configure terminalrouter(config)# interface media module/portrouter(config-if)# description description-stringrouter(config-if)# ip address ip-addr subnet-maskrouter(config-if)# no shutdown38. 用中继链路来建立与VLAN的连接:router(config)# interface module/port.subinterfacerouter(config-ig)# encapsulation[isl|dotlq] vlan-numberrouter(config-if)# ip address ip-address subnet-mask39. 用LANE 来建立与VLAN的连接:router(config)# interface atm module/portrouter(config-if)# no ip addressrouter(config-if)# atm pvc 1 0 5 qsaalrouter(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-maskrouter(config-if)# lane client ethernet elan-numrouter(config-if)# interface atm module/port.subinterface multipointrouter(config-if)# ip address ip-address subnet-namerouter(config-if)# lane client ethernet elan-namerouter(config-if)# …40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:router(config)# ip routingrouter(config)# router ip-routing-protocolrouter(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number41. 配置默认路由:switch(enable) set ip route default gateway42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:router(config)# interface interface numberrouter(config-if)# mls rp vlan-id vlan-id-num43. 在路由处理器启用MLSP:router(config)# mls rp ip44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name45. 查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:router(config-if)#mls rp management-interface47. 要检验MLS-RP的配置情况:router# show mls rp48. 检验特定接口上的MLS配置:router# show mls rp interface interface number49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:set mls flow [destination|destination-source|full]50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip input-acl[page]51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:switch(enable) set mls enable52. 若想改变老化时间的值,可在特权模式下输入以下命令:switch(enable) set mls agingtime agingtime53. 设置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:switch(enable) show mls include55. 显示MLS高速缓存记录:switch(enable) show mls entry56. 用命令show in arp显示ARP高速缓存区的内容。
思科交换机常用命令大全1.1 用户模式与特权模式用户模式:可以使用一些基本的查询命令特权模式:可以对交换机进行相关的配置进入特权模式命令:Switch>enable退出特权模式命令:Switch#exit启用命令查询:?时间设置:Switch#clock set 时间(自选参数,参数必须符合交换机要求)显示信息命令:Switch#show 可选参数注意:可以用TAB键补齐命令,自选参数为用户自定义参数,可选参数为交换机设定参数查看交换机配置: Switch#show running-config保存交换机配置:Switch#copy running-config startup-configSwitch#wr查看端口信息:Switch#show interface查看MAC地址表:Switch#show mac-address-table查看交换机CPU的状态信息:Switch#show processes1.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 11.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退出接口配置模式:Switch(config-if)#exit1.4 二层端口的配置端口速率: Switch(config-if)#speed 可选参数双工模式: Switch(config-if)#duplex 可选参数禁用链路协商:Switch(config-if)#no negotiation auto 启用链路协商:Switch(config-if)#negotiation auto1.5 VLAN的配置新建VLAN:Switch(config)#vlan 自选参数(VLAN号)Switch(config-vlan)#name自选参数(VLAN名)例如:Switch(config)#vlan 1Switch(config-vlan)#name lab1Switch(config-vlan)#exit删除VLAN: Switch#vlan databaseSwitch(vlan)#no vlan 自选参数(vlan号)例如:Switch#vlan databaseSwitch(vlan)#no vlan 2将一个接口加入VLAN:Switch(config)#interface 可选参数(接口号)Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 自选参数(VLAN号)Switch(config-if)#no shutdownSwitch(config-if)#exit例如:Switch(config)#interface f0/1Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 1Switch(config-if)#no shutdownSwitch(config-if)#exit将一个接口退出VLAN:Switch(config)#interface 可选参数(接口号)Switch(config-if)#no switchport access vlan 自选参数(VLAN号)例如:Switch(config)#interface f0/1Switch(config-if)#no switchport access vlan 2修改一个接口为端口汇聚模式Switch(config)#interface 可选参数(接口号)Switch(config-if)#switchport mode trunkVLAN的验证命令:Switch#show vlan 显示VLAN列表Switch#show interface switchport 查看具体接口的VLAN成员资格信息1.6 VTP的配置VTP Domain Name(VTP域名)Switch#configure terminalSwitch(config)#vtp domain 自选参数例如: Switch(config)#vtp domain Lab_NetworkVTP mode(VTP模式)Switch(config)#vtp mode 可选参数(Server|Client| Transparent)例如: Switch(config)#vtp mode ServerVTP Pruning(VTP修剪)Switch(config)#vtp pruning注意:有的交换机不支持VTP修剪命令查看VTP的配置命令:Switch#show vtp status显示交换机运行的VTP模式,配置修订号和交换机所属的VTP域Switch#show vtp counters显示VTP消息相关的统计数据1.7 远程登录交换机设置配置管理VLAN:Switch(conf)#interface vlan 1Switch(config-if)#ip address x.x.x.x 255.255.255.0Switch(config-if)#no shutdown注意:IP地址必须与远程连接交换机的PC机地址在同一网段在交换机上指定默认网关:Switch(config)#ip default-gateway x.x.x.x注意:指定的默认网关仅当前交换机有效。
c交换机配置命令详解集团标准化小组:[VVOPPT-JOPP28-JPPTL98-LOPPNN]华为3COM交换机配置命令详解1、配置文件相关命令[Quidway]displaycurrent-configuration;显示当前生效的配置[Quidway]displaysaved-configuration;显示flash中配置文件,即下次上电启动时所用的配置文件<Quidway>resetsaved-configuration;檫除旧的配置文件<Quidway>reboot;交换机重启<Quidway>displayversion;显示系统版本信息2、基本配置[Quidway]superpassword;修改特权用户密码[Quidway]sysname;交换机命名[Quidway]interfaceethernet0/1;进入接口视图[Quidway]interfacevlanx;进入接口视图[Quidway-Vlan-interfacex]ipaddress;配置VLAN的IP地址[Quidway]iproute-static;静态路由=网关3、telnet配置[Quidway]user-interfacevty04;进入虚拟终端[S3026-ui-vty0-4]authentication-modepassword;设置口令模式[S3026-ui-vty0-4]setauthentication-modepasswordsimple222;设置口令[S3026-ui-vty0-4]userprivilegelevel3;用户级别4、端口配置[Quidway-Ethernet0/1]duplex{half|full|auto};配置端口工作状态[Quidway-Ethernet0/1]speed{10|100|auto};配置端口工作速率[Quidway-Ethernet0/1]flow-control;配置端口流控[Quidway-Ethernet0/1]mdi{across|auto|normal};配置端口平接扭接[Quidway-Ethernet0/1]portlink-type{trunk|access|hybrid};设置端口工作模式[Quidway-Ethernet0/1]undoshutdown;激活端口[Quidway-Ethernet0/2]quit;退出系统视图5、链路聚合配置[DeviceA]link-aggregationgroup1modemanual;创建手工聚合组1[DeviceA]interfaceethernet1/0/1;将以太网端口Ethernet1/0/1加入聚合组1[DeviceA-Ethernet1/0/1]portlink-aggregationgroup1[DeviceA-Ethernet1/0/1]interfaceethernet1/0/2;将以太网端口Ethernet1/0/1加入聚合组1[DeviceA-Ethernet1/0/2]portlink-aggregationgroup1[DeviceA]link-aggregationgroup1service-typetunnel#在手工聚合组的基础上创建Tunnel业务环回组。
C 系列光纤交换机- Cisco MDS san switch 中常用的命令
1. 通过以下命令可以查看接口信息:
Cisco9124e# show interface brief
-------------------------------------------------------------------------------
Interface Vsan Admin Admin Status SFP Oper Oper Port
Mode Trunk Mode Speed Channel
Mode (Gbps)
------------------------------------------------------------------------------- bay1 2 auto on up -- F 4 -- bay2 1 auto on extDisabled -- -- -- bay3 1 auto on down -- -- -- bay4 1 auto on extDisabled -- -- -- bay5 1 auto on extDisabled -- -- -- bay6 1 auto on extDisabled -- -- -- bay7 1 auto on extDisabled -- -- -- bay8 1 auto on extDisabled -- -- -- bay9 1 auto on extDisabled -- -- -- bay10 1 auto on extDisabled -- -- -- bay11 1 auto on down -- -- -- bay12 1 auto on extDisabled -- -- -- bay13 1 auto on extDisabled -- -- -- bay14 1 auto on extDisabled -- -- -- bay15 1 auto on extDisabled -- -- -- bay16 1 auto on extDisabled -- -- --
-------------------------------------------------------------------------------
Interface Vsan Admin Admin Status SFP Oper Oper Port
Mode Trunk Mode Speed Channel
Mode (Gbps)
------------------------------------------------------------------------------ ext1 2 auto on up swl FL 4 -- ext2 2 auto on up swl FL 4 -- ext3 1 auto on sfpAbsent -- -- -- ext4 1 auto on sfpAbsent -- -- -- ext5 1 auto on sfpAbsent -- -- -- ext6 1 auto on sfpAbsent -- -- -- ext7 1 auto on sfpAbsent -- -- -- ext8 1 auto on sfpAbsent -- -- --
------------------------------------------------------------------------------- Interface Status Speed
(Gbps)
------------------------------------------------------------------------------- sup-fc0 up 1 ------------------------------------------------------------------------------- Interface Status IP Address Speed MTU
------------------------------------------------------------------------------- mgmt0 up 16.157.125.51/22 100 Mbps 1500
2. 查看VSAN的情况:
Cisco9124e# show fcdomain domain-list
VSAN 1 Number of domains: 1
Domain ID WWN
--------- -----------------------
0x64(100) 20:01:00:0d:ec:80:f6:c1 [Local] [Principal]
VSAN 2 Number of domains: 1
Domain ID WWN
--------- -----------------------
0x11(17) 20:02:00:0d:ec:80:f6:c1 [Local] [Principal]
3. 查看zone的配置:
Cisco9124e# show zone status vsan 1
VSAN: 1 default-zone: deny distribute: active only Interop: default mode: basic merge-control: allow
session: none
hard-zoning: enabled broadcast: unsupported
Default zone:
qos: none broadcast: unsupported ronly: disabled
Full Zoning Database :
DB size: 4 bytes
Zonesets:0 Zones:0 Aliases: 0
Active Zoning Database :
Database Not Available
Status:
Cisco9124e# show zone status vsan 2
VSAN: 2 default-zone: permit distribute: active only Interop: default mode: basic merge-control: allow
session: none
hard-zoning: enabled broadcast: unsupported
Default zone:
qos: none broadcast: unsupported ronly: disabled
Full Zoning Database :
DB size: 4 bytes
Zonesets:0 Zones:0 Aliases: 0
Active Zoning Database :
Database Not Available Status:
4. 配置zone:
Cisco9124e# conf t
Enter configuration commands, one per line. End with CNTL/Z. Cisco9124e(config)# zone name zone2 vsan 2
Cisco9124e(config-zone)# member fwwn 20:10:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# member fwwn 20:0a:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# member fwwn 20:0e:00:0d:ec:80:f6:c0 Cisco9124e(config-zone)# exit
Cisco9124e(config)# zoneset name zoneset2 vsan 2
Cisco9124e(config-zoneset)# member zone2
Cisco9124e(config-zoneset)# exit
Cisco9124e(config)# zoneset activate name zoneset2 vsan 2 Zoneset activation initiated. check zone status
Cisco9124e(config)# exit
Cisco9124e# show zoneset active
zoneset name zoneset2 vsan 2
zone name zone2 vsan 2
* fcid 0x110200 [fwwn 20:10:00:0d:ec:80:f6:c0]
* fcid 0x1100ef [fwwn 20:0a:00:0d:ec:80:f6:c0]
* fcid 0x1101ef [fwwn 20:0e:00:0d:ec:80:f6:c0]
zone name $default_zone$ vsan 2
Cisco9124e#。