s3900命令手册-Release 1510 (V1.00)03-配置文件管理命令

  • 格式:pdf
  • 大小:177.04 KB
  • 文档页数:16
1-4
第 1 章 配置文件管理命令
Quidway S3900 系列以太网交换机 命令手册-Release 1510 配置文件管理
第 1 章 配置文件管理命令
interface GigabitEthernet1/1/4 #
undo irf-fabric authentication-mode # interface NULL0 # user-interface aux 0 4
1.1 文件属性配置命令
1.1.1 display current-configuration
【命令】 display current-configuration [ configuration [ configuration-type ] | interface [ interface-type ] [ interface-number ] | vlan [ vlan-id ] ] [ by-linenum ] [ | { begin | include | exclude } 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:显示每一行的编号。
i
Quidway S3900 系列以太网交换机 命令手册-Release 1510 配置文件管理
第 1 章 配置文件管理命令
第1章 配置文件管理命令
说明: 用户可以采用下面三种形式来表示文件的路径和名称: z 如果输入文件的 URL 形式以“unit [No.]>flash:/”开头([No.]是交换机的 Unit ID),
则表示指定 Unit 上的文件。例如,如果交换机的 Unit ID 为 1,交换机根路径下 的 text.txt 文件的 URL 就是“unit1>flash:/text.txt”; z 如果输入文件的 URL 形式以“flash:/”开头,则表示当前 Unit 的 Flash 中的文件; z 如果用户直接输入路径名或者文件名,则表示当前工作路径下的路径或者文件。
Quidway S3900 系列以太网交换机 命令手册-Release 1510 配置文件管理
目录
目录
第 1 章 配置文件管理命令 .......................................................................................................1-1 1.1 文件属性配置命令 .............................................................................................................. 1-1 1.1.1 display current-configuration ................................................................................... 1-1 1.1.2 display saved-configuration..................................................................................... 1-6 1.1.3 display startup ......................................................................................................... 1-9 1.1.4 display this............................................................................................................. 1-10 1.1.5 reset saved-configuration...................................................................................... 1-11 1.1.6 save....................................................................................................................... 1-12 1.1.7 startup saved-configuration................................................................................... 1-13
1-3
Quidway S3900 系列以太网交换机 命令手册-Release 1510 配置文件管理
# interface Ethernet1/0/10
port link-type hybrid port hybrid vlan 1 3 to 4 untagged port hybrid protocol-vlan vlan 4 0 lacp enable # interface Ethernet1/0/11 # interface Ethernet1/0/12 # interface Ethernet1/0/13 # interface Ethernet1/0/14 # interface Ethernet1/0/15 # interface Ethernet1/0/16 # interface Ethernet1/0/17 # interface Ethernet1/0/18 # interface Ethernet1/0/19 # interface Ethernet1/0/20 port access vlan 2 # interface Ethernet1/0/21 # interface Ethernet1/0/22 # interface Ethernet1/0/23 # interface Ethernet1/0/24 # interface GigabitEthernet1/1/1 # interface GigabitEthernet1/1/2 # interface GigabitEthernet1/1/3 #
_
以代表如下字符:
如果第一个字符是”_”,那么连续的”_”字符个
(^|$|[,(){}])、空格、起始符、结束 数应小于 5 个;

如果”_”字符不是连续的,以第一组”_”作为输
出信息的过滤规则,对后续的”_”不作处理
(
左括号,程序中代表进栈标志 建议用户不要使用该字符建立正则表达式
句点,通配符,匹配任何一个字
idle-timeout 0 0 user-interface aux 5 7 user-interface vty 0 4
authentication-mode none user privilege level 3 set authentication password simple 1 # return
【举例】 # 显示以太网交换机当前生效的配置参数。
<Quidway> display current-configuration #
1-2
Quidway S3900 系列以太网交换机 命令手册-Release 1510 配置文件管理
第 1 章 配置文件管理命令
sysname Quidway #
gvr星号,匹配前面的子表达式零次 或多次
zo*能匹配 "z" 以及 "zoo"
+
加号,匹配前面的子表达式一次 或多次
zo+能匹配"zo"以及"zoo",但不能匹配 "z"
【描述】 display current-configuration 命令用来显示设备当前的配置。 对于某些当前配置的参数,如果与缺省参数相同,则不显示。 当 用 户 完 成 一 组 配 置 之 后 , 需 要 验 证 是 否 配 置 正 确 , 则 可 以 执 行 display current-configuration 命令来查看当前生效的参数。对于某些参数,虽然用户已经 配置,但如果这些参数对应的功能没有生效,则不予显示。 相关配置可参考命令 save,reset saved-configuration,display saved-configuration。
MAC-authentication #
queue-scheduler strict-priority # interface Aux1/0/0 # interface Ethernet1/0/1
priority 7 webcache address 1.1.1.1 mac 0000-0000-0001 vlan 1 traffic-limit inbound ip-group 3001 rule 1 640 exceed remark-dscp 4 traffic-priority inbound ip-group 2000 rule 0 dscp ef line-rate inbound 128 # interface Ethernet1/0/2 voice vlan enable # interface Ethernet1/0/3 port link-type hybrid port hybrid vlan 1 3 untagged voice vlan enable port hybrid protocol-vlan vlan 3 1 port hybrid protocol-vlan vlan 3 2 # interface Ethernet1/0/4 mirroring-group 1 monitor-port # interface Ethernet1/0/5 port link-type trunk port trunk permit vlan 1 25 # interface Ethernet1/0/6 # interface Ethernet1/0/7 # interface Ethernet1/0/8 # interface Ethernet1/0/9 voice vlan enable