第 1 章 H3C Command

简介:

目录

1.1. config
1.1.1. current-configuration
1.1.2. saved-configuration
1.1.3. 保存配置
1.2. boot-loader
1.3. display
1.3.1. 显示设备工作状态
1.3.2. 接口相关信息

1.1. config

1.1.1. current-configuration

current-configuration

			
[WA2220E-AG]display current-configuration
#
 version 5.20, Release 1110P01
#
 sysname WA2220E-AG
#
 domain default enable system
#
 telnet server enable
#
 port-security enable
#
vlan 1
#
radius scheme system
#
domain system
 access-limit disable
 state active
 idle-cut disable
 self-service-url disable
#
user-group system
#
local-user admin
 password simple h3capadmin
 authorization-attribute level 3
 service-type telnet
#
wlan rrm
 dot11a mandatory-rate 6 12 24
 dot11a supported-rate 9 18 36 48 54
 dot11b mandatory-rate 1 2
 dot11b supported-rate 5.5 11
 dot11g mandatory-rate 1 2 5.5 11
 dot11g supported-rate 6 9 12 18 24 36 48 54
#
wlan service-template 1 clear
 ssid H3C
 service-template enable
#
wlan service-template 2 crypto
 ssid www.davosfair.com
#
interface NULL0
#
interface Vlan-interface1
 ip address 172.16.1.1 255.255.255.0
#
interface Ethernet1/0/1
#
interface WLAN-BSS1
#
interface WLAN-BSS2
#
interface WLAN-Radio1/0/1
 channel auto
 max-power 19
#
interface WLAN-Radio1/0/2
 channel 1
 max-power 20
 service-template 1 interface wlan-bss 1
 service-template 2 interface wlan-bss 2
#
 ip route-static 0.0.0.0 0.0.0.0 172.16.0.254
#
 load xml-configuration
#
user-interface con 0
user-interface vty 0 4
 authentication-mode scheme
#
return
[WA2220E-AG]

			
			

1.1.2. saved-configuration

saved-configuration

			
[WA2220E-AG]display saved-configuration
#
 version 5.20, Release 1110P01
#
 sysname WA2220E-AG
#
 domain default enable system
#
 telnet server enable
#
 port-security enable
#
vlan 1
#
domain system
 access-limit disable
 state active
 idle-cut disable
 self-service-url disable
#
user-group system
#
local-user admin
 password simple h3capadmin
 authorization-attribute level 3
 service-type telnet
#
wlan rrm
 dot11a mandatory-rate 6 12 24
 dot11a supported-rate 9 18 36 48 54
 dot11b mandatory-rate 1 2
 dot11b supported-rate 5.5 11
 dot11g mandatory-rate 1 2 5.5 11
 dot11g supported-rate 6 9 12 18 24 36 48 54
#
wlan service-template 1 clear
 ssid H3C
#
wlan service-template 2 clear
 ssid www.example.com
 service-template enable
#
interface NULL0
#
interface Vlan-interface1
 ip address 192.168.0.50 255.255.255.0
#
interface Ethernet1/0/1
#
interface WLAN-BSS1
#
interface WLAN-BSS2
#
interface WLAN-Radio1/0/1
 channel auto
 max-power 19
#
interface WLAN-Radio1/0/2
 channel 1
 max-power 20
 service-template 1 interface wlan-bss 1
 service-template 2 interface wlan-bss 2
#
 load xml-configuration
#
user-interface con 0
user-interface vty 0 4
 authentication-mode scheme
#
return

			
			

1.1.3. 保存配置

			
[WA2220E-AG]save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/startup.cfg exists, overwrite? [Y/N]:y
 Validating file. Please wait.............................
 Configuration is saved to device successfully.
			
			





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
8月前
|
NoSQL C语言
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
1681 0
|
Shell
bash: accelerate: command not found
bash: accelerate: command not found
2935 3
autoreconf: command not found
autoreconf: command not found
492 0
g++: command not found
g++: command not found
88 0
|
Linux Shell Windows
Shell - line 2: $‘\r‘: command not found
拷贝脚本提交后报错 line 2: $'\r': command not found,但是这是别的同学可以运行后发给我的,随后开始排查。安装 dos2unix 需要使用 yum。安装 yum 需要使用 brew。
524 0
Shell - line 2: $‘\r‘: command not found
|
网络虚拟化 内存技术
|
开发工具 git 人工智能
|
开发工具 git 人工智能
|
缓存 关系型数据库 MySQL
|
缓存 MySQL 关系型数据库