CISCO交Q机配置命令大全
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)#interfacemodule/port
router(config-if)#descriptiondescription-string
router(config-if)#switchaccessvlannum
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
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,可先显示交换机引用列表中的内容再确定:
评论