h3c交换机配置命令.docx

上传人:b****8 文档编号:9517442 上传时间:2023-02-05 格式:DOCX 页数:10 大小:18.72KB
下载 相关 举报
h3c交换机配置命令.docx_第1页
第1页 / 共10页
h3c交换机配置命令.docx_第2页
第2页 / 共10页
h3c交换机配置命令.docx_第3页
第3页 / 共10页
h3c交换机配置命令.docx_第4页
第4页 / 共10页
h3c交换机配置命令.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

h3c交换机配置命令.docx

《h3c交换机配置命令.docx》由会员分享,可在线阅读,更多相关《h3c交换机配置命令.docx(10页珍藏版)》请在冰豆网上搜索。

h3c交换机配置命令.docx

h3c交换机配置命令

h3c交换机配置命令

H3C交换机102条命令使用方法

1.switch(config)#hostnamehostname

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

switch(enable)setsystemnamename-string2.在基于IOS的交换机上设置登录口令:

switch(config)#enablepasswordlevel1password在基于CLI的交换机上设置登录口令:

switch(enable)setpassword

switch(enable)setenalbepass

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

switch(config)#interfacevlan1

switch(config-if)#ipaddressip-addressnetmaskswitch(config-if)#ipdefault-gatewayip-address在基于CLI的交换机上设置远程访问:

switch(enable)setinterfacesc0ip-addressnetmaskbroadcast-address

switch(enable)setinterfacesc0vlan

switch(enable)setiproutedefaultgateway4.在基于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-string6.在基于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的交换机上设置以太网的链路模式:

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

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

switch(enable)setportduplexmodule/number{full|half}8.在基于IOS的交换机上配置静态VLAN:

switch#vlandatabase

switch(vlan)#vlanvlan-numnamevla

switch(vlan)#exit

switch#configureteriminal

switch(config)#interfaceinterfacemodule/numberswitch(config-if)#switchportmodeaccess

switch(config-if)#switchportaccessvlanvlan-numswitch(config-if)#end

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

switch(enable)setvlanvlan-num[namename]

switch(enable)setvlanvlan-nummod-num/port-list9.在基于IOS的交换机上配置VLAN中继线:

switch(config)#interfaceinterfacemod/port

switch(config-if)#switchportmodetrunk

switch(config-if)#switchporttrunkencapsulation{isl|dotlq}switch(config-if)#switchporttrunkallowedvlanremovevlan-listswitch(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管理域:

name]switch(enable)setvtp[domaindomain-11.在基于IOS的交换机上配置VTP模式:

switch#vlandatabase

nameswitch(vlan)#vtpdomaindomain-

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)setvtppruningenable14.在基于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}priorityswitch(enable)setspantreeportvlanpri{module/port}priority[vlans]

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

17.

switch(config)#spanning-tree[vlanvlan-list]hello-timesecondsswitch(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-range22.用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-num26.在创建好TrBRFVLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用

如下命令给VLAN分配端口:

switch(enable)setvlanvlan-nummod-num/port-num27.命令showspantree显示一个交换机端口的STP状态.

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

ATM(config)#interfaceatmnumber.subintmultiointATM(config-subif)#laneserber-busethernetelan-name29.配置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-nameATM(config-if)#laneconfigauto-config-atm-address31.将每个LEC配置到一个不同的ATM子接口上.命令如下:

ATM(config)#interfaceatmnumber.subintmultipointATM(config)#laneclientethernetvlan-numelan-num32.用showlaneserver显示LES的状态.

33.用showlanebus显示bus的状态.

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

35.用showlaneclient显示LEC的状态.

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

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

router#configureterminal

router(config)#interfacemediamodule/portrouter(config-if)#descriptiondescription-stringrouter(config-if)#ipaddressip-addrsubnet-maskrouter(config-if)#noshutdown

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

router(config)#interfacemodule/port.subinterfacerouter(config-ig)#encapsulation[isl|dotlq]vlan-numberrouter(config-if)#ipaddressip-addresssubnet-mask39.用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-maskrouter(config-if)#laneclientethernetelan-numrouter(config-if)#interfaceatmmodule/port.subinterfacemultipoint

router(config-if)#ipaddressip-addresssubnet-namerouter(config-if)#laneclientethernetelan-namerouter(config-if)#…

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

router(config)#iprouting

router(config)#routerip-routing-protocolrouter(config-router)#networkip-network-numberrouter(config-router)#networkip-network-number

H3C交换机102条命令使用方法(四)

(2008-01-2310:

11:

21)

转载

标签:

分类:

IT技术

it

81.在Cisco设备上设置控制台及vty端口的会话超时:

R1(config)#lineconsole0

R1(config-line)#exec-timeout510

R1(config)#linevty04

R1(config-line)#exec-timeout52

82.在Cisco设备上设定特权级:

R1(config)#privilegeconfigurelevel3usernameR1(config)#privilegeconfigurelevel3copyrunstartR1(config)#privilegeconfigurelevel3pingR1(config)#privilegeconfigurelevel3showrunR1(config)#enablesecretlevel3cisco83.使用命令privilege可定义在该特权级下使用的命令:

router(config)#privilegemodelevellevelcommand

84.设定用户特权级:

router(config)#enablesecretlevel3dallasrouter(config)#enablesecretsan-franrouter(config)#usernamestudentpasswordcisco85.标志设置与显示:

R1(config)#bannermotd‘unauthorizedaccesswillbeprosecuted!

86.设置vty访问:

R1(config)#access-list1permit192.168.2.5R1(config)#linevty04

ss1inR1(config)#access-cla

87.配置HTTP访问:

Router3(config)#access-list1permit192.168.10.7Router3(config)#iphttpsever

Router3(config)#iphttpaccess-class1Router3(config)#iphttpauthenticationlocalRouter3(config)#usernamestudentpasswordcisco88.要启用HTTP访问,请键入以下命令:

switch(config)#iphttpsever

89.在基于set命令的交换机上用setCL1启动和核实端口安全:

switch(enable)setportsecuritymod_num/port_num…enablemacaddressswitch(enable)showportmod_num/port_num在基于CiscoIOS命令的交换机上启动和核实端口安全:

switch(config-if)#portsecure[mac-mac-countmaximum-MAC-count]

switch#showmac-address-tablesecurity[typemodule/port]

90.用命令access-list在标准通信量过滤表中创建一条记录:

Router(config)#access-listaccess-list-number{permit|deny}source-address

[source-address]

91.用命令access-list在扩展通信量过滤表中创建一条记录:

Router(config)#access-listaccess-list-number{permit|deny{protocol|protocol-keyword}}{source

source-wildcard|any}{destinationdestination-wildcard|any}[protocol-specificoptions][log]

92.对于带内路由更新,配置路由更新的最基本的命令格式是:

R1(config-router)#distribute-listaccess-list-number|namein[typenumber]93.对于带外路由更新,配置路由更新的最基本的命令格式是:

R1(config-router)#distribute-listaccess-list-number|nameout[interface-name]routing-process|autonomous-system-number

94.setsnmp命令选项:

setsnmpcommunity{read-only|ready-write|read-write-all}[community_string]95.setsnmptrap命令格式如下:

setsnmptrap{enable|disable}

[all|moudle|classis|bridge|repeater|auth|vtp|ippermit|vmps|config|entity|stpx]setsnmptraprvcr_addrrcvr_community

96.启用SNMPchassis陷阱:

Console>(enable)setsnmptrapenablechassis

97.启用所有SNMPchassis陷阱:

Console>(enable)setsnmptrapenable

98.禁用SN

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

当前位置:首页 > 高等教育 > 医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1