CISCO交换机配置命令大全.docx

上传人:b****3 文档编号:10920727 上传时间:2023-05-28 格式:DOCX 页数:13 大小:21.88KB
下载 相关 举报
CISCO交换机配置命令大全.docx_第1页
第1页 / 共13页
CISCO交换机配置命令大全.docx_第2页
第2页 / 共13页
CISCO交换机配置命令大全.docx_第3页
第3页 / 共13页
CISCO交换机配置命令大全.docx_第4页
第4页 / 共13页
CISCO交换机配置命令大全.docx_第5页
第5页 / 共13页
CISCO交换机配置命令大全.docx_第6页
第6页 / 共13页
CISCO交换机配置命令大全.docx_第7页
第7页 / 共13页
CISCO交换机配置命令大全.docx_第8页
第8页 / 共13页
CISCO交换机配置命令大全.docx_第9页
第9页 / 共13页
CISCO交换机配置命令大全.docx_第10页
第10页 / 共13页
CISCO交换机配置命令大全.docx_第11页
第11页 / 共13页
CISCO交换机配置命令大全.docx_第12页
第12页 / 共13页
CISCO交换机配置命令大全.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

CISCO交换机配置命令大全.docx

《CISCO交换机配置命令大全.docx》由会员分享,可在线阅读,更多相关《CISCO交换机配置命令大全.docx(13页珍藏版)》请在冰点文库上搜索。

CISCO交换机配置命令大全.docx

CISCO交换机配置命令大全

CISCO交换机配置命令大全

2008-05-2113:

21

1.在基于IOS的交换机上设置主机名/系统名:

switch(config)#hostnamehostname

在基于CLI的交换机上设置主机名/系统名:

switch(enable)setsystemnamename-string

2.在基于IOS的交换机上设置登录口令:

switch(config)#enablepasswordlevel1password

在基于CLI的交换机上设置登录口令:

switch(enable)setpassword

switch(enable)setenalbepass

3.在基于IOS的交换机上设置远程访问:

switch(config)#interfacevlan1

switch(config-if)#ipaddressip-addressnetmask

switch(config-if)#ipdefault-gatewayip-address

在基于CLI的交换机上设置远程访问:

switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-address

switch(enable)setinterfacesc0vlan

switch(enable)setiproutedefaultgateway

4.在基于IOS的交换机上启用和浏览CDP信息:

switch(config-if)#cdpenable

switch(config-if)#nocdpenable

为了查看Cisco邻接设备的CDP通告信息:

switch#showcdpinterface[typemodle/port]

switch#showcdpneighbors[typemodule/port][detail]

在基于CLI的交换机上启用和浏览CDP信息:

switch(enable)setcdp{enable|disable}module/port

为了查看Cisco邻接设备的CDP通告信息:

switch(enable)showcdpneighbors[module/port][vlan|duplex|capabilities|detail]

5.基于IOS的交换机的端口描述:

switch(config-if)#descriptiondescription-string

基于CLI的交换机的端口描述:

switch(enable)setportnamemodule/numberdescription-string

6.在基于IOS的交换机上设置端口速度:

switch(config-if)#speed{10|100|auto}

在基于CLI的交换机上设置端口速度:

switch(enable)setportspeedmoudle/number{10|100|auto}

switch(enable)setportspeedmoudle/number{4|16|auto}

7.在基于IOS的交换机上设置以太网的链路模式:

switch(config-if)#duplex{auto|full|half}

在基于CLI的交换机上设置以太网的链路模式:

switch(enable)setportduplexmodule/number{full|half}

8.在基于IOS的交换机上配置静态VLAN:

switch#vlandatabase

switch(vlan)#vlanvlan-numnamevla

switch(vlan)#exit

switch#configureteriminal

switch(config)#interfaceinterfacemodule/number

switch(config-if)#switchportmodeaccess

switch(config-if)#switchportaccessvlanvlan-num

switch(config-if)#end

在基于CLI的交换机上配置静态VLAN:

switch(enable)setvlanvlan-num[namename]

switch(enable)setvlanvlan-nummod-num/port-list

9.在基于IOS的交换机上配置VLAN中继线:

switch(config)#interfaceinterfacemod/port

switch(config-if)#switchportmodetrunk

switch(config-if)#switchporttrunkencapsulation{isl|dotlq}

switch(config-if)#switchporttrunkallowedvlanremovevlan-list

switch(config-if)#switchporttrunkallowedvlanaddvlan-list

在基于CLI的交换机上配置VLAN中继线:

switch(enable)settrunkmodule/port[on|off|desirable|auto|nonegotiate]

Vlan-range[isl|dotlq|dotl0|lane|negotiate]

10.在基于IOS的交换机上配置VTP管理域:

switch#vlandatabase

switch(vlan)#vtpdomaindomain-name

在基于CLI的交换机上配置VTP管理域:

switch(enable)setvtp[domaindomain-name]

11.在基于IOS的交换机上配置VTP模式:

switch#vlandatabase

switch(vlan)#vtpdomaindomain-name

switch(vlan)#vtp{sever|cilent|transparent}

switch(vlan)#vtppasswordpassword

在基于CLI的交换机上配置VTP模式:

switch(enable)setvtp[domaindomain-name][mode{sever|cilent|transparent}][passwordpassword]

12.在基于IOS的交换机上配置VTP版本:

switch#vlandatabase

switch(vlan)#vtpv2-mode

在基于CLI的交换机上配置VTP版本:

switch(enable)setvtpv2enable

13.在基于IOS的交换机上启动VTP剪裁:

switch#vlandatabase

switch(vlan)#vtppruning

在基于CLI的交换机上启动VTP剪裁:

switch(enable)setvtppruningenable

14.在基于IOS的交换机上配置以太信道:

switch(config-if)#portgroupgroup-number[distribution{source|destination}]

在基于CLI的交换机上配置以太信道:

switch(enable)setportchannelmoudle/port-rangemode{on|off|desirable|auto}

15.在基于IOS的交换机上调整根路径成本:

switch(config-if)#spanning-tree[vlanvlan-list]costcost

在基于CLI的交换机上调整根路径成本:

switch(enable)setspantreeportcostmoudle/portcost

switch(enable)setspantreeportvlancostmoudle/port[costcost][vlan-list]

16.在基于IOS的交换机上调整端口ID:

switch(config-if)#spanning-tree[vlanvlan-list]port-priorityport-priority

在基于CLI的交换机上调整端口ID:

switch(enable)setspantreeportpri{mldule/port}priority

switch(enable)setspantreeportvlanpri{module/port}priority[vlans]

17.在基于IOS的交换机上修改STP时钟:

switch(config)#spanning-tree[vlanvlan-list]hello-timeseconds

switch(config)#spanning-tree[vlanvlan-list]forward-timeseconds

`switch(config)#spanning-tree[vlanvlan-list]max-ageseconds

在基于CLI的交换机上修改STP时钟:

switch(enable)setspantreehellointerval[vlan]

switch(enable)setspantreefwddelaydelay[vlan]

switch(enable)setspantreemaxageagingtiame[vlan]

18.在基于IOS的交换机端口上启用或禁用PortFast特征:

switch(config-if)#spanning-treeportfast

在基于CLI的交换机端口上启用或禁用PortFast特征:

switch(enable)setspantreeportfast{module/port}{enable|disable}

19.在基于IOS的交换机端口上启用或禁用UplinkFast特征:

switch(config)#spanning-treeuplinkfast[max-update-ratepkts-per-second]

在基于CLI的交换机端口上启用或禁用UplinkFast特征:

switch(enable)setspantreeuplinkfast{enable|disable}[rateupdate-rate][all-protocolsoff|on]

20.为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令:

switch(config)#clusterenablecluster-name

21.为了从一条中继链路上删除VLAN,可使用下列命令:

switch(enable)cleartrunkmodule/portvlan-range

22.用showvtpdomain显示管理域的VTP参数.

23.用showvtpstatistics显示管理域的VTP参数.

24.在Catalyst交换机上定义TrBRF的命令如下:

switch(enable)setvlanvlan-name[namename]typetrbrfbridgebridge-num[stp{ieee|ibm}]

25.在Catalyst交换机上定义TrCRF的命令如下:

switch(enable)setvlanvlan-num[namename]typetrcrf

{ringhex-ring-num|decringdecimal-ring-num}parentvlan-num

26.在创建好TrBRFVLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:

switch(enable)setvlanvlan-nummod-num/port-num

27.命令showspantree显示一个交换机端口的STP状态.

28.配置一个ELAN的LES和BUS,可以使用下列命令:

ATM(config)#interfaceatmnumber.subintmultioint

ATM(config-subif)#laneserber-busethernetelan-name

29.配置LECS:

ATM(config)#lanedatabasedatabase-name

ATM(lane-config-databade)#nameelan1-nameserver-atm-addressles1-nsap-address

ATM(lane-config-databade)#nameelan2-nameserver-atm-addressles2-nsap-address

ATM(lane-config-databade)#name…

30.创建完数据库后,必须在主接口上启动LECS.命令如下:

ATM(config)#interfaceatmnumber

ATM(config-if)#laneconfigdatabasedatabase-name

ATM(config-if)#laneconfigauto-config-atm-address

31.将每个LEC配置到一个不同的ATM子接口上.命令如下:

ATM(config)#interfaceatmnumber.subintmultipoint

ATM(config)#laneclientethernetvlan-numelan-num

32.用showlaneserver显示LES的状态.

33.用showlanebus显示bus的状态.

34.用showlanedatabase显示LECS数据库可内容.

35.用showlaneclient显示LEC的状态.

36.用showmodule显示已安装的模块列表.

37.用物理接口建立与VLAN的连接:

router#configureterminal

router(config)#interfacemediamodule/port

router(config-if)#descriptiondescription-string

router(config-if)#ipaddressip-addrsubnet-mask

router(config-if)#noshutdown

38.用中继链路来建立与VLAN的连接:

router(config)#interfacemodule/port.subinterface

router(config-ig)#encapsulation[isl|dotlq]vlan-number

router(config-if)#ipaddressip-addresssubnet-mask

39.用LANE来建立与VLAN的连接:

router(config)#interfaceatmmodule/port

router(config-if)#noipaddress

router(config-if)#atmpvc105qsaal

router(config-if)#atmpvc2016ilni

router(config-if)#interfaceatmmodule/port.subinterfacemultipoint

router(config-if)#ipaddressip-addresssubnet-mask

router(config-if)#laneclientethernetelan-num

router(config-if)#interfaceatmmodule/port.subinterfacemultipoint

router(config-if)#ipaddressip-addresssubnet-name

router(config-if)#laneclientethernetelan-name

router(config-if)#…

40.为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:

router(config)#iprouting

router(config)#routerip-routing-protocol

router(config-router)#networkip-network-number

router(config-router)#networkip-network-number

41.配置默认路由:

switch(enable)setiproutedefaultgateway

42.为一个路由处理器分配VLANID,可在接口模式下使用下列命令:

router(config)#interfaceinterfacenumber

router(config-if)#mlsrpvlan-idvlan-id-num

43.在路由处理器启用MLSP:

router(config)#mlsrpip

44.为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:

router(config)#interfaceinterfacenumber

router(config-if)#mlsrpvtp-domaindomain-name

45.查看指定的VTP域的信息:

router#showmlsrpvtp-domainvtpdomainname

46.要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:

router(config-if)#mlsrpmanagement-interface

47.要检验MLS-RP的配置情况:

router#showmlsrp

48.检验特定接口上的MLS配置:

router#showmlsrpinterfaceinterfacenumber

49.为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:

setmlsflow[destination|destination-source|full]

50.为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:

router(config)#mlsrpipinput-acl

51.当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:

switch(enable)setmlsenable

52.若想改变老化时间的值,可在特权模式下输入以下命令:

switch(enable)setmlsagingtimeagingtime

53.设置快速老化:

switch(enable)setmlsagingtimefastfastagingtimepkt_threshold

54.确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:

switch(enable)showmlsinclude

55.显示MLS高速缓存记录:

switch(enable)showmlsentry

56.用命令showinarp显示ARP高速缓存区的内容。

57.要把路由器配置为HSRP备份组的成员,可以在接口配置模式下使用下面的命令:

router(config-if)#standbygroup-numberipip-address

58.为了使一个路由器重新恢复转发路由器的角色,在接口配置模式下:

router(config-if)#standygroup-numberpreempt

59.访问时间和保持时间参数是可配置的:

router(config-if)#standygroup-numbertimershellotimeholdtime

60.配置HSRP跟踪:

router(config-if)#standygroup-numbertracktype-numberinterface-priority

61.要显示HSRP路由器的状态:

router#showstandbytype-numbergroupbrief

62.用命令showipigmp确定当选的查询器。

63.启动IP组播路由选择:

router(config)#ipmuticast-routing

64.启动接口上的PIM:

dalllasr1>(config-if)#ippim{dense-mode|sparse-mode|sparse-dense-mode}

65.启动稀疏-稠密模式下的PIM:

router#ipmulticast-routing

router#interfacetypenumber

router#ippimsparse-dense-mode

66.核实PIM的配置:

dallasr1>#showippiminterface[typenumber][count]

67.显示PIM邻居:

dallasr1>#showipneighbortypenumber

68.为了配置RP的地址,命令如下:

dallasr1>#ippimrp-addressip-address[group-access-list-number][override]

69.选择一个默认的RP:

dallasr1>#ippimrp-address

通告RP和它所服务的组范围:

dallasr1>#ippimsend-rp-announcetypenumberscope

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2