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

下载本文档

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

文档简介

华为S3526交换机配置命令首先通过配置线连接电脑与交换机的console口,在电脑上按以下步骤打开超级终端连接交换机: 开始-程序-附件-通讯-超级终端 连接选择COM口选择还原默认值,按确定,即可与交换机交互 一、 视图设置: 接入交换机既进入用户视图,可查看交换机运行状态 system-view 进入系统视图S3526 系统视图,可进行系统参数配置S3526 quit 返回用户视图二、 还原出厂设置:只能在用户视图下 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,按回车确认清除交换机配置 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 flash.Are you sure?Y/N 输入Y,按回车确认当完成交换机配置后一定要记得 save 保存四、交换机命名 system-view 进入系统视图S3526 sysname BOSS 在系统视图下将交换机名字命名为 BOSSBOSS 交换机名字已更改为 BOSS五、设置管理ipBOSS int vlan 1 进入vlan1 端口BOSS-Vlan-interface1 ip address 192.168.1.175 255.255.255.0 设置管理ip删除管理vlan和ipBOSS 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 system server-type huawei primary authentication 127.0.0.1 1645 primary accounting 127.0.0.1 1646 user-name-format without-domain domain default enable system # local-server nas-ip 127.0.0.1 key huawei # queue-scheduler wrr 1 2 4 8#vlan 1#vlan 25 description boss#description cmnet#interface Vlan-interface1#interface Aux0/0#interface Ethernet0/1 description up-to-608 port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 18 25 40 101 738 800 995 1042 1116查看端口信息BOSSdis cur int Ethernet 0/2#interface Ethernet0/2 description to lisi 对此端口的描述,描述为 to 李四 duplex full 此端口双工模式配置为 全双工 speed 100 此端口速率配置为 100M flow-control 此端口已配置 流量控制 port access vlan 2 此端口属于 VLAN 2查看vlan信息Quidwaydis vlan all VLAN ID: 1 VLAN Type: static Route Interface: not configured Description: VLAN 0001 Name: VLAN 0001 Tagged Ports: none Untagged Ports: Ethernet0/15 Ethernet0/16 Ethernet0/19 Ethernet0/20 Ethernet0/21 Ethernet0/22 Ethernet0/24 Ethernet0/25 VLAN ID: 25 VLAN Type: static Route Interface: not configured Description: boss Name: VLAN 0025 Tagged Ports: Ethernet0/1 Untagged Ports: Ethernet0/17 Ethernet0/18 BOSS dis vlan 1 VLAN ID: 1 VLAN Type: static Route Interface: not configured Description: VLAN 0001 Name: VLAN 0001 Tagged Ports: none Untagged Ports: Ethernet0/15 Ethernet0/16 Ethernet0/19 Ethernet0/20 Ethernet0/21 Ethernet0/22 Ethernet0/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 设置明文密码为huaweiBOSS-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 建立本地用户,名字为bossBOSS-luser-boss password simple 111 设置明文密码为 111BOSS-luser-boss service-type telnet level 3 设telnet权限等级为最高级3级 (注意:若不是等级3,可以登录到交换机,但无法对交换机进行配置)设置以上命令后,从电脑连根网线到交换机以太网口(注意:接入的网口必须是属于管理vlan的,可通过 dis vlan all 查看哪些网口属于管理vlan), 即可通过 telent 192.168.1.175 管理交换机,telnet后需要输入用户名boss和密码 111 才可与交换机交互。管理ip,用户名和密码可通过console口的连接使用 dis cur 命令来查看BOSS dis cur# sysname BOSS#radius scheme system server-type huawei primary authentication 127.0.0.1 1645 primary accounting 127.0.0.1 1646 user-name-format without-domainlocal-user boss 用户名 password simple 111 密码 service-type telnet level 3 telnet权限等级#vlan 1 description manage-vlan name admin#vlan 2#vlan 3#interface Vlan-interface1 vlan 1 ip address 192.168.1.175 255.255.255.0 管理ip七、交换机端口配置BOSS int Ethernet 0/2 进入端口Ethernet 0/2关闭端口与开启端口BOSS-Ethernet0/2 shutdown 关闭Ethernet0/2 端口BOSS-Ethernet0/2 undo shutdown 重新开启Ethernet0/2 端口端口描述BOSS-Ethernet0/2 description to lisi 对端口进行描述,例如,此端口是连接到李四的电脑上,可描述为 to lisi 配置交换机速率与双工模式BOSS-Ethernet0/2speed ? 设置端口速率 10 Specify speed of current port 10Mb/s 10M 100 Specify speed of current port 100Mb/s 100M auto Enable ports speed negotiation automatically 自动协商BOSS-Ethernet0/2duplex ? 设置端口双工模式 auto Enable ports duplex negotiation automatically 自动协商 full Full-duplex 全双工 half Half-duplex 半双工配置端口的链路类型,默认为 accessBOSS-Ethernet0/2 port link-type ? access Access link-type 一般情况下使用access hybrid Hybrid VLAN link-type trunk VLAN trunk link-type 交换机级联的端口采用trunk查看全接口状态BOSS dis brief intInterface : EEthernet , G-GigabitEthernet , VlanIF-Vlan-interfaceLink : ADMDOWN-ADMINISTRATIVELY DOWN Speed : a-auto Duplex : a-autoInterface Description Link Speed Duplex Link-type PVID Port-typeAux0/0 HUAWEI, Quidway UP - - - - -E0/1 DOWN a a access 1 100BASE-TXE0/2 to lisi DOWN a a access 2 100BASE-TXE0/3 DOWN a a access 2 100BASE-TXE0/4 DOWN a a access 2 100BASE-TXE0/5 DOWN a a access 3 100BASE-TXE0/6 DOWN a a access 3 100BASE-TXE0/7 DOWN a a access 3 100BASE-TXE0/8 DOWN a a trunk 1 100BASE-TX.E0/21 DOWN a a access 1 100BASE-TXE0/22 UP a100M afull access 1 100BASE-TXE0/23 DOWN a a access 1 100BASE-TXE0/24 DOWN a a access 1 100BASE-TX查看全接口配置dis cur int#interface Vlan-interface1 ip address 192.168.1.175 255.255.255.0#interface Aux0/0#interface Ethernet0/1#interface Ethernet0/2 description to lisi port access vlan 2#interface Ethernet0/3 port access vlan 2#interface Ethernet0/4 port 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 dis cur int e0/2#interface Ethernet0/2 description to lisi port access vlan 2八、交换机VLAN配置首先划分vlanBOSS vlan 2 创建vlan 2,并进入vlan 2BOSS-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,并进入vlan 3BOSS-vlan3 port Ethernet 0/5 to Ethernet 0/7 把端口0/5到0/7放入vlan2接下来把交换机级联端口设为trunk 模式BOSS int Ethernet 0/8BOSS-Ethernet0/8 port link-type trunk BOSS-Ethernet0/8 port trunk permit vlan all查看vlanBOSSdis vlan all 查看每一个VLAN里包含哪些端口 VLAN ID: 1 此VLAN 为VLAN 1 VLAN Type: static ARP proxy disabled. Route Interface: configured IP Address: 192.168.1.175 Subnet Mask: 255.255.255.0 Description: manage-vlan Name: admin Tagged Ports: none Untagged Ports: Ethernet0/1 Ethernet0/8 Ethernet0/9 Ethernet0/10 Ethernet0/11 Ethernet0/12 Ethernet0/13 Ethernet0/14 Ethernet0/15 Ethernet0/16 Ethernet0/17 Ethernet0/18 Ethernet0/19 Ethernet0/20 Ethernet0/21 Ethernet0/22 Ethernet0/23 Ethernet0/24 VLAN ID: 2 此VLAN 为VLAN 2 VLAN Type: static ARP proxy disabled. Route Interface: not configured Description: VLAN 0002 Name: VLAN 0002 Tagged Ports: Ethernet0/8 Untagged Ports: Ethernet0/2 Ethernet0/3 Ethernet0/4 VLAN ID: 3 此VLAN 为VLAN 3 VLAN Type: static ARP proxy disabled. Route Interface: not configured Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: Ethernet0/8 Untagged Ports: Ethernet0/5 Ethernet0/6 Ethernet0/7从vlan中删除端口BOSS vlan 3BOSS-vlan3 undo port Ethernet 0/7更改VLAN,例如把端口Ethernet0/7划分到VLAN4BOSS vlan 4BOSS-vlan4 port Ethernet 0/7BOSS dis vlan all.VLAN ID: 3 VLAN Type: static ARP proxy disabled. Route Interface: not configured Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: Ethernet0/8 Untagged Ports: Ethernet0/5 Ethernet0/6 VLAN ID: 4 VLAN Type: static ARP proxy disabled

温馨提示

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

评论

0/150

提交评论