H3C S3600 系列以太网交换机命令手册配置文件管理.docx

上传人:b****5 文档编号:4397513 上传时间:2022-12-01 格式:DOCX 页数:19 大小:19.96KB
下载 相关 举报
H3C S3600 系列以太网交换机命令手册配置文件管理.docx_第1页
第1页 / 共19页
H3C S3600 系列以太网交换机命令手册配置文件管理.docx_第2页
第2页 / 共19页
H3C S3600 系列以太网交换机命令手册配置文件管理.docx_第3页
第3页 / 共19页
H3C S3600 系列以太网交换机命令手册配置文件管理.docx_第4页
第4页 / 共19页
H3C S3600 系列以太网交换机命令手册配置文件管理.docx_第5页
第5页 / 共19页
点击查看更多>>
下载资源
资源描述

H3C S3600 系列以太网交换机命令手册配置文件管理.docx

《H3C S3600 系列以太网交换机命令手册配置文件管理.docx》由会员分享,可在线阅读,更多相关《H3C S3600 系列以太网交换机命令手册配置文件管理.docx(19页珍藏版)》请在冰豆网上搜索。

H3C S3600 系列以太网交换机命令手册配置文件管理.docx

H3CS3600系列以太网交换机命令手册配置文件管理

第1章配置文件管理命令.......................................................................................................1-1

1.1文件属性配置命令..............................................................................................................1-1

1.1.1displaycurrent-configuration...................................................................................1-1

1.1.2displaysaved-configuration.....................................................................................1-6

1.1.3displaystartup.........................................................................................................1-9

1.1.4displaythis.............................................................................................................1-10

1.1.5resetsaved-configuration......................................................................................1-11

1.1.6save.......................................................................................................................1-12

1.1.7startupsaved-configuration...................................................................................1-13

第1章配置文件管理命令

..说明:

用户可以采用下面三种形式来表示文件的路径和名称:

..如果输入文件的URL形式以“unit[No.]flash”开头([No.]是交换机的UnitID),

则表示指定Unit上的文件。

例如,如果交换机的UnitID为1,交换机根路径下

的text.txt文件的URL就是“unit1flashtext.txt”;

..如果输入文件的URL形式以“flash”开头,则表示当前Unit的Flash中的文件;

..如果用户直接输入路径名或者文件名,则表示当前工作路径下的路径或者文件。

1.1文件属性配置命令

1.1.1displaycurrent-configuration

【命令】

displaycurrent-configuration[configuration[configuration-type]interface

[interface-type][interface-number]vlan[vlan-id]][by-linenum][{begin

includeexclude}regular-expression]

【视图】

任意视图

【参数】

configuration:

显示指定的配置。

configuration-type:

配置类型。

根据用户的具体配置而定,可以是acl-adv、

acl-basic、acl-ethernetframe、acl-user,hwping、isp、radius-template、system、

user-interface等。

interface:

显示接口的配置。

interface-type:

接口类型,可以是Aux、Ethernet、GigabitEthernet、LoopBack、

NULL、Vlan-interface。

interface-number:

接口编号。

vlan:

显示VLAN的配置。

vlan-id:

VLAN编号。

by-linenum:

显示每一行的编号。

使用正则表达式过滤显示设备的配置。

begin:

显示以指定文字(regular-expression)开头的配置。

include:

显示包含指定文字(regular-expression)的配置。

exclude:

显示不含指定文字(regular-expression)的配置。

regular-expression:

正则表达式。

表1-1正则表达式中的特殊字符

特殊字符

含义

使用说明

^

匹配以后面的子表达式开始的

字符串

^user匹配以user开始的配置

$

匹配以前面的子表达式开始的

字符串

user$匹配以user结尾的配置

_

下划线,类似于一个通配符,可

以代表如下字符:

(^$[,(){}])、空格、起始符、结束

如果表达式的第一个字符不是”_”,则对”_”字

符的个数不作限制;(受命令行长度的限制)

如果第一个字符是”_”,那么连续的”_”字符个

数应小于5个;

如果”_”字符不是连续的,以第一组”_”作为输

出信息的过滤规则,对后续的”_”不作处理

左括号,程序中代表进栈标志

建议用户不要使用该字符建立正则表达式

.

句点,通配符,匹配任何一个字

符,包括空格

-

星号,匹配前面的子表达式零次

或多次

zo能匹配z以及zoo

+

加号,匹配前面的子表达式一次

或多次

zo+能匹配zo以及zoo,但不能匹配z

【描述】

displaycurrent-configuration命令用来显示设备当前的配置。

对于某些当前配置的参数,如果与缺省参数相同,则不显示。

当用户完成一组配置之后,需要验证是否配置正确,则可以执行display

current-configuration命令来查看当前生效的参数。

对于某些参数,虽然用户已经

配置,但如果这些参数对应的功能没有生效,则不予显示。

相关配置可参考命令save,resetsaved-configuration,displaysaved-configuration。

【举例】

#显示以太网交换机当前生效的配置参数。

H3Cdisplaycurrent-configuration

#

sysnameH3C

#

gvrp

#

MAC-authentication

#

queue-schedulerstrict-priority

#

interfaceAux100

#

interfaceEthernet101

priority7

webcacheaddress1.1.1.1mac0000-0000-0001vlan1

traffic-limitinboundip-group3001rule1640exceedremark-dscp4

traffic-priorityinboundip-group2000rule0dscpef

line-rateinbound128

#

interfaceEthernet102

voicevlanenable

#

interfaceEthernet103

portlink-typehybrid

porthybridvlan13untagged

voicevlanenable

porthybridprotocol-vlanvlan31

porthybridprotocol-vlanvlan32

#

interfaceEthernet104

mirroring-group1monitor-port

#

interfaceEthernet105

portlink-typetrunk

porttrunkpermitvlan125

#

interfaceEthernet106

#

interfaceEthernet107

#

interfaceEthernet108

#

interfaceEthernet109

voicevlanenable

#

interfaceEthernet1010

portlink-typehybrid

porthybridvlan13to4untagged

porthybridprotocol-vlanvlan40

lacpenable

#

interfaceEthernet1011

#

interfaceEthernet1012

#

interfaceEthernet1013

#

interfaceEthernet1014

#

interfaceEthernet1015

#

interfaceEthernet1016

#

interfaceEthernet1017

#

interfaceEthernet1018

#

interfaceEthernet1019

#

interfaceEthernet1020

portaccessvlan2

#

interfaceEthernet1021

#

interfaceEthernet1022

#

interfaceEthernet1023

#

interfaceEthernet1024

#

interfaceGigabitEthernet111

#

interfaceGigabitEthernet112

#

interfaceGigabitEthernet113

#

interfaceGigabitEthernet114

#

undoirf-fabricauthentication-mode

#

interfaceNULL0

#

user-interfaceaux04

idle-timeout00

user-interfaceaux57

user-interfacevty04

authentication-modenone

userprivilegelevel3

setauthenticationpasswordsimple1

#

return

#查看配置信息中包含字符串10的行,“”表示它前面的“0”可以出现零次或连

续多次。

H3Cdisplaycurrent-configurationinclude10

line-rateinbound128

interfaceEthernet102

interfaceEthernet103

porthybridvlan13untagged

porthybridprotocol-vlanvlan31

interfaceEthernet104

mirroring-group1monitor-port

interfaceEthernet105

porttrunkpermitvlan125

interfaceEthernet106

interfaceEthernet107

interfaceEthernet108

interfaceEthernet109

interfaceEthernet1010

porthybridvlan13to4untagged

interfaceEthernet1011

interfaceEthernet1012

interfaceEthernet1013

interfaceEthernet1014

interfaceEthernet1015

interfaceEthernet1016

interfaceEthernet1017

interfaceEthernet1018

interfaceEthernet1019

interfaceEthernet1020

interfaceEthernet1021

interfaceEthernet1022

interfaceEthernet1023

interfaceEthernet1024

interfaceGigabitEthernet111

interfaceGigabitEthernet112

interfaceGigabitEthernet113

interfaceGigabitEthernet114

route-policysongpermitnode1

setauthenticationpasswordsimple1

#查看以“user”开始的配置信息。

H3Cdisplaycurrent-configurationinclude^user

user-interfaceaux0

user-interfacevty04

1.1.2displaysaved-configuration

【命令】

displaysaved-configuration[unitunit-id][by-linenum]

【视图】

任意视图

【参数】

unitunit-id:

交换机的UnitID。

by-linenum:

显示每一行的编号。

【描述】

displaysaved-configuration命令用来显示以太网交换机Flash中的主配置文件。

相关配置可参考命令save,resetsaved-configuration,display

current-configuration。

【举例】

#显示Flash中的主配置文件。

H3Cdisplaysaved-configuration

#

sysnameH3C

#

gvrp

#

MAC-authentication

#

interfaceAux100

#

interfaceEthernet101

priority7

webcacheaddress1.1.1.1mac0000-0000-0001vlan1

traffic-limitinboundip-group3001rule1640exceedremark-dscp4

traffic-priorityinboundip-group2000rule0dscpef

line-rateinbound128

#

interfaceEthernet102

voicevlanenable

#

interfaceEthernet103

portlink-typehybrid

porthybridvlan13untagged

voicevlanenable

porthybridprotocol-vlanvlan31

porthybridprotocol-vlanvlan32

#

interfaceEthernet104

mirroring-group1monitor-port

#

interfaceEthernet105

portlink-typetrunk

porttrunkpermitvlan125

#

interfaceEthernet106

#

interfaceEthernet107

#

interfaceEthernet108

#

interfaceEthernet109

voicevlanenable

#

interfaceEthernet1010

portlink-typehybrid

porthybridvlan13to4untagged

porthybridprotocol-vlanvlan40

lacpenable

#

interfaceEthernet1011

#

interfaceEthernet1012

#

interfaceEthernet1013

#

interfaceEthernet1014

#

interfaceEthernet1015

#

interfaceEthernet1016

#

interfaceEthernet1017

#

interfaceEthernet1018

#

interfaceEthernet1019

#

interfaceEthernet1020

#

interfaceEthernet1021

#

interfaceEthernet1022

#

interfaceEthernet1023

#

interfaceEthernet1024

#

interfaceGigabitEthernet111

#

interfaceGigabitEthernet112

#

interfaceGigabitEthernet113

#

interfaceGigabitEthernet114

#TOPOLOGYCFG.MUSTNOTDELETE

#

undoirf-fabricauthentication-mode

#GLBCFG.MUSTNOTDELETE

#

interfaceNULL0

#

user-interfaceaux04

idle-timeout00

user-interfaceaux57

user-interfacevty04

authentication-modenone

userprivilegelevel3

setauthenticationpasswordsimple1

#

return

所列的配置依次是全局配置、端口配置、用户接口配置。

1.1.3displaystartup

【命令】

displaystartup[unitunit-id]

【视图】

任意视图

【参数】

unitunit-id:

交换机的UnitID。

【描述】

displaystartup命令用来显示设备的启动配置信息,包括当前启动的配置文件名、

下一次主启动配置文件名和下一次备份启动配置文件名等。

相关配置可参考命令startupsaved-configuration。

【举例】

#显示Unit1的设备启动配置信息。

H3Cdisplaystartupunit1

MainBoard

CurrentStartupsaved-configurationfileNULL

Nextmainstartupsaved-configurationfileflash123.cfg

Nextbackupstartupsaved-configurationfileflashback.cfg

Bootrom-accessenablestateenabled

1.1.4displaythis

【命令】

displaythis[by-linenum]

【视图】

任意视图

【参数】

by-linenum:

显示每一行的编号。

【描述】

displaythis命令用来显示系统当前视图的运行配置。

当用户在某一视图下完成一

组配置之后,需要验证是否配置正确,则可以执行displaythis命令来查看所在视

图下当前生效的参数。

对于某些正在生效的配置参数,如果与缺省配置相同,则不显示;对于某些参数,

虽然用户已经配置,但如果这些参数对应的功能没有生效,则不予显示。

在不同接口视图下使用该命令,将直接显示相应接口下的配置;在不同协议视图下

使用该命令,将显示相应协议视图的配置;在协议子视图下使用该命令,将显示此

协议子视图下的全部配置。

相关配置可参考命令save,resetsaved-configuration,display

saved-configuration,displaycurrent-configuration。

【举例】

#显示系统在AUX0接口视图下生效的配置参数。

[H3C-ui-aux0]displaythis

#

user-interfaceaux04

idle-timeout00

user-interfaceaux57

user-interfacevty0

authentication-modenone

userprivilegelevel3

setauthenticationpasswordsimple123

idle-timeout00

user-interfacevty14

authentication-modenone

userprivilegelevel3

setauthenticationpasswordsimple1

idle-timeout00

#

return

1.1.5resetsaved-configuration

【命令】

resetsaved-configuration[backupmain]

【视图】

用户视图

【参数】

backup:

文件备属性。

main:

文件主属性。

【描述】

resetsaved-configuration命令用来

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

当前位置:首页 > 高中教育 > 英语

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

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