华为[S3526]交换机配置命令首先通过配置线连接电脑与交换机的console口,在电脑上按以下步骤打开超级终端连接交换机:开始--程序--附件--通讯--超级终端连接选择COM口选择还原默认值,按确定,即可与交换机交互一、视图设置:<S3526> ·······················接入交换机既进入用户视图,可查看交换机运行状态<S3526> system-view ··························进入系统视图[S3526] ··························系统视图,可进行系统参数配置[S3526] quit ··························返回用户视图<S3526>二、还原出厂设置:只能在用户视图下<S3526> reset saved-configuration ····························清除交换机配置文件This will delete the configuration in the flash memory.The switch configurations will be erased to reconfigure.Are you sure?[Y/N] ·······················输入Y,按回车确认清除交换机配置<S3526> reboot ·······················重启交换机This will reboot Switch. Continue? [Y/N] ················输入Y,按回车确认重启三、保存命令:<S3526> save ····························只能在用户视图下save保存数据This will save the configuration in the flash memory.The switch configurations will be written to flash.Are you sure?[Y/N] ······························输入Y,按回车确认当完成交换机配置后一定要记得save 保存四、交换机命名<S3526> system-view ··························进入系统视图[S3526] sysname BOSS ····················在系统视图下将交换机名字命名为BOSS [BOSS] ························交换机名字已更改为BOSS五、设置管理ip[BOSS] int vlan 1 ·················进入vlan1 端口[BOSS-Vlan-interface1] ip address 192.168.1.175 255.255.255.0 ·············设置管理ip 删除管理vlan和ip[BOSS] int vlan 1 ·················进入vlan1 端口[BOSS-Vlan-interface1] undo ip address 192.168.1.175 255.255.255.0[BOSS] undo int vlan 1六、查看信息[BOSS] dis curr ································查看全部配置信息#sysname Quidway#radius scheme systemserver-type huaweiprimary authentication 127.0.0.1 1645primary accounting 127.0.0.1 1646user-name-format without-domaindomain default enable system#local-server nas-ip 127.0.0.1 key huawei#queue-scheduler wrr 1 2 4 8#vlan 1#vlan 25description boss#description cmnet#interface Vlan-interface1#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 ………………………………………………………………………………………………………………………………查看端口信息[BOSS]dis cur int Ethernet 0/2#interface Ethernet0/2description to lisi ·······················对此端口的描述,描述为to 李四duplex full ·······················此端口双工模式配置为全双工speed 100 ·······················此端口速率配置为100Mflow-control ·······················此端口已配置流量控制port access vlan 2 ·······················此端口属于VLAN 2查看vlan信息[Quidway]dis vlan allVLAN ID: 1VLAN Type: staticRoute Interface: not configuredDescription: VLAN 0001Name: VLAN 0001Tagged Ports: noneUntagged Ports:Ethernet0/15 Ethernet0/16 Ethernet0/19Ethernet0/20 Ethernet0/21 Ethernet0/22Ethernet0/24 Ethernet0/25VLAN ID: 25VLAN Type: staticRoute Interface: not configuredDescription: bossName: VLAN 0025Tagged Ports:Ethernet0/1Untagged Ports:Ethernet0/17 Ethernet0/18[BOSS] dis vlan 1VLAN ID: 1VLAN Type: staticRoute Interface: not configuredDescription: VLAN 0001Name: VLAN 0001Tagged Ports: noneUntagged Ports:Ethernet0/15 Ethernet0/16 Ethernet0/19Ethernet0/20 Ethernet0/21 Ethernet0/22Ethernet0/24 Ethernet0/25七、Telnet配置密码认证模式,需要输入password登录交换机[BOSS] user-interface vty 0 4[BOSS-ui-vty0-4] authentication-mode password ····配置为密码认证模式[BOSS-ui-vty0-4] set authentication password simple huawei ····设置明文密码为huawei [BOSS-ui-vty0-4] user privilege level 3 ···············设telnet权限等级为最高级3级配置本地TELNET用户认证模式,需要输入username和password才可以登陆交换机[BOSS] user-interface vty 0 4[BOSS-ui-vty0-4]authentication-mode scheme ····配置为本地TELNET用户[BOSS-ui-vty0-4] quit ·······················返回系统视图[BOSS] local-user boss ······················建立本地用户,名字为boss [BOSS-luser-boss] password simple 111 ···········设置明文密码为111[BOSS-luser-boss] service-type telnet level 3 ·········设telnet权限等级为最高级3级(注意:若不是等级3,可以登录到交换机,但无法对交换机进行配置)设置以上命令后,从电脑连根网线到交换机以太网口(注意:接入的网口必须是属于管理vlan的,可通过dis vlan all 查看哪些网口属于管理vlan),即可通过telent 192.168.1.175 管理交换机,telnet后需要输入用户名boss和密码111 才可与交换机交互。