




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
华为网络工程师学习资料交换机命令之一--华为
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版本:
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-announcetypenumberscopettlgroup-listaccess-list-number
为管理范围组通告RP的地址:
dallasr1>#ippimsend-rp-announceethernet0scope16group-list1
dallasr1>#access-list1permit255
设定一个RP映像代理:
dallasr1>#ippimsend-rp-discoveryscopettl
核实组到RP的映像:
dallasr1>#showippimrpmapping
dallasr1>#showippimrp[group-name|group-address][mapping]
70.在路由器接口上用命令ipmulticastttl-thresholdttl-value设定TTL阀值:
dallasr1>(config-if)#ipmulticastttl-thresholdttl-value
71.用showippimneighbor显示PIM邻居表。
72.显示组播通信路由表中的各条记录:
dallasr1>showipmroute[group-name|group-address][scoure][summary][count][activekbps]
73.要记录一个路由器接受和发送的全部IP组播包:
dallasr1>#debugipmpacket[detail][access-list][group]
74.要在CISCO路由器上配置CGMP:
dallasr1>(config-if)#ipcgmp
75.配置一个组播路由器,使之加入某一个特定的组播组:
dallasr1>(config-if)#ipigmpjoin-groupgroup-address
76.关闭CGMP:
dallasr1>(config-if)#noipcgmp
77.启动交换机上的CGMP:
dallasr1>(enable)setcgmpenable
78.核实Catalyst交换机上CGMP的配置情况:
catalystla1>(enable)showconfig
setpromptcatalystla1>
setinterfacesc0
setcgmpenable
79.CGMP离开的设置:
Dallas_SW(enable)setcgmpleave
80.在Cisco设备上修改控制端口密码:
R1(config)#lineconsole0
R1(config-line)#login
R1(config-line)#passwordLisbon
R1(config)#enablepasswordLilbao
R1(config)#loginlocal
R1(config)#usernamestudentpasswordcisco
81.在Cisco设备上设置控制台及vty端口的会话超时:
R1(config)#lineconsole0
R1(config-line)#exec-timeout510
R1(config)#linevty04
R1(config-line)#exec-timeout52
82.在Cisco设备上设定特权级:
R1(config)#privilegeconfigurelevel3username
R1(config)#privilegeconfigurelevel3copyrunstart
R1(config)#privilegeconfigurelevel3ping
R1(config)#privilegeconfigurelevel3showrun
R1(config)#enablesecretlevel3cisco
83.使用命令privilege可定义在该特权级下使用的命令:
router(config)#privilegemodelevellevelcommand
84.设定用户特权级:
router(config)#enablesecretlevel3dallas
router(config)#enablesecretsan-fran
router(config)#usernamestudentpasswordcisco
85.标志设置与显示:
R1(config)#bannermotd‘unauthorizedaccesswillbeprosecuted!’
86.设置vty访问:
R1(config)#access-list1permit
R1(config)#linevty04
R1(config)#access-class1in
87.配置HTTP访问:
Router3(config)#access-list1permit
Router3(config)#iphttpsever
Router3(config)#iphttpaccess-class1
Router3(config)#iphttpauthenticationlocal
Router3(config)#usernamestudentpasswordcisco
88.要启用HTTP访问,请键入以下命令:
switch(config)#iphttpsever
89.在基于set命令的交换机上用setCL1启动和核实端口安全:
switch(enable)setportsecuritymod_num/port_num…enablemacaddress
switch(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}}{sourcesourc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025至2030年中国柔性石墨模压填料环数据监测研究报告
- 2025至2030年中国月饼吸塑托盘数据监测研究报告
- 商标挂靠企业合同范本
- 合资协议合同范本格式
- 2025至2030年中国建筑预埋铁件数据监测研究报告
- 2025至2030年中国屋顶轴流通风机数据监测研究报告
- 2025至2030年中国容积式配麦器数据监测研究报告
- 加工木床厂转让合同范例
- 公司要签合同合同范本
- 卤菜招学员合同范例
- 八大员-劳务员模考试题与答案
- 2024危重症患儿管饲喂养护理-中华护理学会团体标准课件
- 《《中央企业合规管理办法》解读》课件
- 脱硫自动化控制-洞察分析
- 医务人员医德医风培训
- 人教版初中历史八上-第2课 第二次鸦片战争
- 2025年中考语文专题复习:写作技巧 课件
- 60岁以上务工免责协议书
- 2024年社区工作者考试必考1000题【历年真题】
- 黑龙江省哈尔滨市2024年高三一模试题(数学试题理)试题
- 媒介文化十二讲课件
评论
0/150
提交评论