第 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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
问题解决:Try to run this command from the system terminal. Make sure that you use the...
问题解决:Try to run this command from the system terminal. Make sure that you use the...
|
Shell
bash: accelerate: command not found
bash: accelerate: command not found
2818 3
autoreconf: command not found
autoreconf: command not found
452 0
g++: command not found
g++: command not found
81 0
|
Linux Shell Windows
Shell - line 2: $‘\r‘: command not found
拷贝脚本提交后报错 line 2: $'\r': command not found,但是这是别的同学可以运行后发给我的,随后开始排查。安装 dos2unix 需要使用 yum。安装 yum 需要使用 brew。
505 0
Shell - line 2: $‘\r‘: command not found
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
237 0
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
162 0
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
Command line is too long. Shorten command line for AppWebStarter or...(已解决)
找到你项目中 .idea/workspace.xml文件 找到 < component name=“PropertiesComponent” > 在标签内部加上这句
172 0
Command line is too long. Shorten command line for AppWebStarter or...(已解决)
|
网络虚拟化 内存技术
|
开发工具 git 人工智能