码迷,mamicode.com
首页 > 其他好文 > 详细

H3C交换机基本配置

时间:2017-10-20 15:53:44      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:h3c配置

H3C交换机基本配置

  1. 通过console连接到交换机。


技术分享

2. 在启动界面下,输入sys进行配置模式,输入sysname修改主机名

技术分享

3.  通过local-user 命令创建本地用户,设置密码及权限。

[meac-core-p01-luser-huawei]authorization-attribute level 3
[meac-core-p01-luser-huawei]ser
[meac-core-p01-luser-huawei]service-type ?
  ftp         FTP service type
  lan-access  LAN-ACCESS service type
  ssh         Secure Shell service type
  telnet      TELNET service type
  terminal    TERMINAL service type
  web         Web service type

[meac-core-p01-luser-huawei]service-type s
[meac-core-p01-luser-huawei]service-type ssh te
[meac-core-p01-luser-huawei]service-type ssh telnet
[meac-core-p01-luser-huawei]

4. 开启telnet服务,并且设置console和VTY的连接认证。

[meac-core-p01]telnet server enable
[meac-core-p01]user
[meac-core-p01]user-i
[meac-core-p01]user-interface
[meac-core-p01]user-interface a
[meac-core-p01]user-interface aux 0
[meac-core-p01-ui-aux0]au
[meac-core-p01-ui-aux0]auth
[meac-core-p01-ui-aux0]authentication-mode sc
[meac-core-p01-ui-aux0]authentication-mode scheme
[meac-core-p01-ui-aux0]quit
[meac-core-p01]user
[meac-core-p01]user-i
[meac-core-p01]user-interface v
[meac-core-p01]user-interface vty 0 15
[meac-core-p01-ui-vty0-15]auth
[meac-core-p01-ui-vty0-15]authentication-mode sc
[meac-core-p01-ui-vty0-15]authentication-mode scheme
[meac-core-p01-ui-vty0-15]

5. 创建VLAN, 设置端口模式。

[meac-core-p01]
[meac-core-p01]vlan 200
[meac-core-p01-vlan200]name management-vlan
[meac-core-p01-vlan200]quit
[meac-core-p01]int ra
[meac-core-p01]int range e
[meac-core-p01]int range Ethernet 1/0/1 to e
[meac-core-p01]int range Ethernet 1/0/1 to Ethernet 1/0/6
[meac-core-p01-if-range]port li
[meac-core-p01-if-range]port link-t
[meac-core-p01-if-range]port link-type tru
[meac-core-p01-if-range]port link-type trunk
[meac-core-p01-if-range]port tr
[meac-core-p01-if-range]port trunk per
[meac-core-p01-if-range]port trunk permit vl
[meac-core-p01-if-range]port trunk permit vlan ?
  INTEGER<1-4094>  VLAN ID
  all              All the VLANs

[meac-core-p01-if-range]port trunk permit vlan 100 ?
  INTEGER<1-4094>  VLAN ID
  to               Range of VLAN ID
  <cr>            

[meac-core-p01-if-range]port trunk permit vlan 100 200
 Please wait... Done.
 Please wait... Done.
 Please wait... Done.
 Please wait... Done.



本文出自 “红尘有爱” 博客,请务必保留此出处http://19335.blog.51cto.com/9335/1974624

H3C交换机基本配置

标签:h3c配置

原文地址:http://19335.blog.51cto.com/9335/1974624

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!