Home | 简体中文 | 繁体中文 | 杂文 | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | Github | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 19 章 H3C Command

目录

19.1. config
19.1.1. current-configuration
19.1.2. saved-configuration
19.1.3. 保存配置
19.2. boot-loader
19.3. display
19.3.1. 显示设备工作状态
19.3.2. 接口相关信息
19.4. SNMP

19.1. config

19.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]

			
			

19.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

			
			

19.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.