高级搜索 返回首页  
名人名言
技术文章
    - LINUX文章
袍江主页技术文章H3C 常用命令
H3C 常用命令
2020-12-21 16:19:44
by 技术文章  
Rating: not rated yet
1 2 3 4 5 6 7 8 9 10

H3C 设置用户和密码

# 进入系统视图。
system-view
[H3C] user-interface aux 0
[H3C-ui-aux0] authentication-mode password
[H3C-ui-aux0] set authentication password cipher 123456
[H3C-ui-aux0] user privilege level 2

3、配置Telnet
system-view
[H3C] user-interface vty 0 4
[H3C-ui-vty0] authentication-mode password
[H3C-ui-vty0] set authentication password cipher 123456
[H3C-ui-vty0] user privilege level 3
[H3C-ui-vty0] protocol inbound telnet

4、配置交换机VLAN 1 管理地址
system-view
[H3C] interface vlan-interface 1
[H3C-VLAN-interface1] ip address 192.168.0.129 255.255.255.0

5、配置交换机网关地址
[H3C]ip route-static 0.0.0.0 0.0.0.0 192.168.0.1

6、配置HTTP服务
[H3C] local-user admin                              #创建http用户
[H3C-luser-admin] service-type telnet 
[H3C-luser-admin] authorization-attribute level 3
[H3C-luser-admin] password cipher admin  #设置http用户密码,并加密显示

7、配置SNMP
[H3C]snmp-agent
[H3C]snmp-agent community read 123456  #设置snmp团体名称 ,权限为只读
[H3C]snmp-agent sys-info version v1 v2c   #设置snmp版本v1 和v2

8、Qos端口限速
[H3C] interface gigabitethernet 1/0/1
[H3C-GigabitEthernet1/0/1] qos lr inbound cir 5120
[H3C-GigabitEthernet1/0/1] qos lr outbound cir 5120

9、创建VLAN
[H3C] vlan 100

10、删除VLAN
[H3C] undo vlan 100

11、将端口加入vlan 100
[H3C] interface GigabitEthernet 1/0/24
[H3C] port access vlan 100 


12、查看VLAN
[H3C]display vlan all

12、查看端口状态
[H3C]display interface GigabitEthernet 1/0/24

14、启用端口
[H3C]interface GigabitEthernet 1/0/24
[H3C]undo shutdown

15、关闭端口
[H3C]interface GigabitEthernet 1/0/24
[H3C]shutdown

16、查看MAC地址列表
[H3C]display mac-address

17、查看arp信息
[H3C]display arp

18、查看current配置
[H3C]display current-configuration

19、查看saved配置
[H3C]display saved-configuration
注:current 配置是保存在交换机内存里面,当交换机重启时,不会生效
   要交换机重启时生效,必须保存在saved-configureation配置里

20、保存交换机配置
[H3C]save

推荐给好??? 打包下载这篇文章 打印这篇文章

Copyright © 2002 myarticle.com.cn
All rights reserved.

备案号:浙ICP备17002154号-1 Powered by: MyArticle Version 1.0dev
Processed Time: 0.0025 s Querys: 5 [ Gzip Level 0 ]