华为交换机配置_第1页
华为交换机配置_第2页
华为交换机配置_第3页
华为交换机配置_第4页
华为交换机配置_第5页
已阅读5页,还剩16页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、华为S3526交换机配置命令首先通过配置线连接电脑与交换机的co nsole 口,在电脑上按以下步骤打开超级终端连接交换机:开始-程序-附件-通讯-超级终端连接选择COM口在COM属性对话框中选样属性参散如下Wit选择还原默认值,按确定,即可与交换机交互、视图设置: 接入交换机既进入用户视图,可查看交换机运行状态 system-view 进入系统视图S3526系统视图,可进行系统参数配置S3526 quit返回用户视图二、还原出厂设置:只能在用户视图下 reset saved-co nfigurati on清除交换机配置文件This will delete the configuration

2、in the flash memory.The switch configurations will be erased to reconfigure.Are you sureY/N 输入Y,按回车确认清除交换机配置 reboot 重启交换机This will reboot Switch. Continue Y/N 输入 Y,按回车确认重启三、保存命令: save 只能在用户视图下save保存数据This will save the configuration in the flash memory.The switch configurations will be written to fl

3、ash.Are you sureY/N 输入Y,按回车确认当完成交换机配置后一定要记得 save 保存四、交换机命名 system-view 进入系统视图S3526 sys name BOSS 在系统视图下将交换机名字命名为BOSS五、设置管理 ipBOSS int vlan 1 BOSS-Vlan-interface1 ip address进入 vlan1端口设置管理ipBOSS int vlan 1进入 vlan1端口BOSS-Vlan-interface1 undo ip addressBOSS undo int vlan 1六、查看信息BOSS dis curr#sysname Qui

4、dway#radius scheme systemserver-type huaweiprimary authentication 1645primary accounting 1646 user-name-format without-domaindomain default enable system查看全部配置信息删除管理 vlan 和 iplocal-server nas-ip key huawei#queue-scheduler wrr 1 2 4 8#vlan 1#vlan 25description boss#description cmnet#interface Vlan-in

5、terface1#interface Aux0/0#interface Ethernet0/1description up-to-608port link-type trunkundo port trunk permit vlan 1port trunk permit vlan 18 25 40 101 738 800 995 1042 1116查看端口信息BOSSdis cur int Ethernet 0/2对此端口的描述, 描述为 to 李interface Ethernet0/2 description to lisi 四duplex full此端口双工模式配置为全双工speed 10

6、0 此端口速率配置为 100Mflow-control此端口已配置流量控制port access vlan 2 此端口属于 VLAN 2查看 vlan 信息Quidwaydis vlan allVLAN ID: 1VLAN Type: staticRoute Interface: not configuredDescription: VLAN 0001Name: VLAN 0001Tagged Ports: noneUntagged Ports:Ethernet0/15Ethernet0/16Ethernet0/19Ethernet0/20Ethernet0/21Ethernet0/22Eth

7、ernet0/24Ethernet0/25VLAN ID: 25VLAN Type: staticRoute Interface: not configuredDescription: bossName: VLAN 0025Tagged Ports:Ethernet0/1Untagged Ports:Ethernet0/17 Ethernet0/18BOSS dis vlan 1VLAN ID: 1VLAN Type: staticRoute Interface: not configuredDescription: VLAN 0001Name: VLAN 0001Tagged Ports:

8、noneUntagged Ports:Ethernet0/15Ethernet0/16Ethernet0/19Ethernet0/20Ethernet0/21Ethernet0/22Ethernet0/24Ethernet0/25七、Telnet配置密码认证模式,需要输入 password 登录交换机BOSS user-interface vty 0 4BOSS-ui-vty0-4 authentication-mode password BOSS-ui-vty0-4 set authentication password simple huawei huaweiBOSS-ui-vtyO-4

9、user privilege level 3配置为密码认证模式设置明文密码为设 telnet 权限等级为最高级 3 级配置本地TELNET用户认证模式,需要输入username和password才可以登陆交换机BOSS user-interface vty 0 4BOSS-ui-vty0-4 authentication-mode scheme配置为本地TELNET用户BOSS-ui-vty0-4 quit返回系统视图BOSS local-user boss设置明文密码为 111设 telnet 权限等级为最高建立本地用户,名字为 bossBOSS-luser-boss password si

10、mple 111 BOSS-luser-boss service-type telnet level 3级3级注意:若不是等级 3,可以登录到交换机,但无法对交换机进行配置)设置以上命令后,从电脑连根网线到交换机以太网口(注意:接入的网口必须是属于管理vlan 的,可通过 dis vlan all 查看哪些网口属于管理 vlan ), 即可通过 telent 管理 交换机, telnet 后需要输入用户名 boss 和密码 111 才可与交换机交互。管理 ip ,用户名和密码可通过 console 口的连接使用 dis cur 命令来查看BOSS dis cur#sysname BOSS#ra

11、dius scheme systemserver-type huaweiprimary authentication 1645primary accounting 1646user-name-format without-domain用户名password simple 111 service-type telnet level 3 #vlan 1description manage-vlanname admin#vlan 2#密码tel net 权限等级vlan 3#interface Vlan-interface1vlan 1ip address管理 ip七、交换机端口配置BOSS int

12、 Ethernet 0/2关闭端口与开启端口BOSS-Ethernet0/2 shutdown进入端口 Ether net 0/2 关闭Ethernet0/2 端口BOSS-Ethernet0/2 undo shutdown重新开启 Ethernet0/2端口local-user boss端口描述BOSS-EthernetO/2 description to lisi对端口进行描述,例如,此端口是连接到李四的电脑上,可描述为 to lisi配置交换机速率与双工模式BOSS-EthernetO/2 speed 设置端口速率10Specify speed of curre nt port 10Mb

13、/s 10M100Specify speed of curre nt port 100Mb/s 100MautoEn able ports speed n egotiati on automatically 自动协商BOSS-Ethernet0/2 duplex 设置端口双工模式autoEn able ports duplex n egotiati on automatically 自动协商fullFull-duplex 全双工halfHalf-duplex 半双工配置端口的链路类型,默认为 access般情况下使用 access交换机级联的端口采用 trunkBOSS-Ethernet0/2

14、 port link-type access Access link-type hybrid Hybrid VLAN link-type trunk VLAN trunk link-type查看全接口状态BOSS dis brief intInterface : EEthernet , G-GigabitEthernet , VlanIF-Vlan-interfaceLink : ADMDOWN-ADMINISTRATIVELY DOWNSpeed : a-auto Duplex : a-autoInterface DescriptionLink Speed Duplex Link-type

15、PVIDPort-typeAux0/0 HUAWEI, Quidway UP - - -E0/1DOWN aa accessE0/2to lisiDOWN100BASE-TXE0/3DOWNaa100BASE-TXE0/4DOWNaa100BASE-TXE0/5DOWNaa100BASE-TXE0/6DOWNa100BASE-TXE0/7DOWNaa100BASE-TXE0/8DOWNaa100BASE-TXa a access 2access 2access 2access 3access 3100BASE-TXa access 3trunk 1E0/21 DOWN a100BASE-TXa

16、 access 1E0/22UPa100M afullaccess1100BASE-TXE0/23DOWN aa access1100BASE-TXE0/24DOWN aa access1100BASE-TX查看全接口配置dis cur int#interface Vlan-interface1 ip address Aux0/0#interface Ethernet0/1#interface Ethernet0/2 description to lisi port access vlan 2 #interface Ethernet0/3port access vlan 2#interface

17、 Ethernet0/4port access vlan 2# interface Ethernet0/5 port access vlan 3# interface Ethernet0/6 port access vlan 3# interface Ethernet0/7 port access vlan 3#interface Ethernet0/8 port link-type trunk port trunk permit vlan all #interface Ethernet0/23#interface Ethernet0/24#查看单个接口配置BOSS-Ethernet0/2 d

18、is cur int e0/2 #interface Ethernet0/2description to lisiport access vlan 2八、交换机VLAN配置首先划分 vlanBOSS vlan 2创建 vlan 2,并进入 vlanBOSS-vlan2 port Ethernet 0/2把端口 0/2 放入 vlan2BOSS-vlan2 port Ethernet 0/3 to Ethernet 0/4把端口 0/3 到 0/4放入 vlan2BOSS vlan 3创建 vlan 3 ,并进入 vlanBOSS-vlan3 port Ethernet 0/5 to Ether

19、net 0/7把端口0/5 到 0/7放入 vlan2接下来把交换机级联端口设为 trunk 模式BOSS int Ethernet 0/8BOSS-Ethernet0/8 port link-type trunkBOSS-Ethernet0/8 port trunk permit vlan all查看 vlanBOSS dis vian all 查看每一个VLAN里包含哪些端口VLAN ID: 1此 VLAN 为 VLAN 1VLAN Type: staticARP proxy disabled.Route Interface: configuredIP Address: Subnet Ma

20、sk: Description: manage-vlanName: adminTagged Ports: noneUntagged Ports:Ethernet0/1Ethernet0/10Ethernet0/12Ethernet0/13Ethernet0/15Ethernet0/16Ethernet0/18Ethernet0/19Ethernet0/21Ethernet0/22Ethernet0/24Ethernet0/8 Ethernet0/9Ethernet0/11Ethernet0/14Ethernet0/17Ethernet0/20Ethernet0/23VLAN ID: 2此 VL

21、AN 为 VLAN 2VLAN Type: staticARP proxy disabled.Route Interface: not configuredDescription: VLAN 0002Name: VLAN 0002Tagged Ports:Ethernet0/8Untagged Ports:Ethernet0/2Ethernet0/3Ethernet0/4VLAN ID: 3此 VLAN 为 VLAN 3EthernetO/7VLAN4VLAN Type: staticARP proxy disabled.Route Interface: not configuredDescr

22、iption: VLAN 0003Name: VLAN 0003Tagged Ports:Ethernet0/8Untagged Ports:Ethernet0/5 Ethernet0/6从 vlan 中删除端口BOSS vlan 3BOSS-vlan3 undo port Ethernet 0/7更改VLAN例如把端口 EthernetO/7 划分到BOSS vlan 4BOSS-vlan4 port Ethernet O/7BOSS dis vlan allVLAN ID: 3VLAN Type: static ARP proxy disabled.Route Interface: not configuredDescription: VLAN 0003 Name: VLAN 0003Tagged Ports:Ethernet0/8Untagged Ports:Ethernet0/5Ethernet0/6VLAN ID: 4VLAN Type:

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论