欢迎来到天天文库
浏览记录
ID:48406285
大小:364.00 KB
页数:12页
时间:2020-01-19
《实训、华为交换机的配置.ppt》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、华为交换机的配置重点内容华为交换机的基本配置命令;掌握华为交换机的配置;实训一、华为交换机的基本配置Console线PCA图20-1登录华为交换机一、配置PC机的IP地址IP地址:172.16.1.5;子网掩码:255.255.0.0;网关:172.16.1.1;二、配置S3026交换机systemPassword://输入口令[Quidway]sysnameS3026//设置交换机名称[S3026]superpassword111//设置系统视图口令[S3026]user-inte
2、rfacevty04//进入用户界面视图配置虚拟终端[S3026-ui-vty0-4]authentication-modepassword//设置验证方式为口令方式[S3026-ui-vty0-4]setauthentication-modepasswordsimple222//设置口令为222[S3026-ui-vty0-4]userprivilegelevel3//设置用户级别为3[S3026-ui-vty0-4]quit//退回上一级模式[S3026]quit//从系统视图返回用户视图3、26>system-viewPassword://输入“111”口令[S3026]displaycurrect-config//显示配置信息[S3026]interfacevlan1//配置交换机的管理IP地址[S3026-Vlan-interface1]ipaddress172.16.1.1255.255.0.0//为Vlan1配置IP地址[S3026-Vlan-interface1]quit[S3026]iproute-static0.0.0.00.0.0.0172.16.1.2//配置交换机的静4、态路由[S3026]ipdefault-gateway172.16.1.2//设置交换机默认网关[S3026]discurr[S3026]save//保存配置信息三、验证测试PCA:ping172.16.1.1PCA:telnet172.16.1.1实训二、华为交换机端口聚合的配置SwitchASwitchB图20-2端口聚合配置一、配置SwitchA交换机[Quidway]sysnameSwitchA//更改交换机名称为SwitchA[SwitchA]interfaceethernet0/1//进入5、交换机e0/1端口[SwitchA-Ethernet0/1]duplexfull//设置端口工作模式为全双工[SwitchA-Ethernet0/1]speed100//设置端口速率为100Mbps[SwitchA-Ethernet0/1]portlink-typetrunk//设置该端口为trunk模式[SwitchA-Ethernet0/1]porttrunkpermitvlanall//该trunk允许所有VLAN信息通过[SwitchA-Ethernet0/1]inte0/2[SwitchA-6、Ethernet0/2]duplexfull[SwitchA-Ethernet0/2]speed100[SwitchA-Ethernet0/2]portlink-typetrunk[SwitchA-Ethernet0/2]porttrunkpermitvlanall二、配置SwitchB交换机[Quidway]sysnameSwitchB[SwitchB]interfaceethernet0/1[SwitchB-Ethernet0/1]duplexfull[SwitchB-Ethernet0/1]sp7、eed100[SwitchB-Ethernet0/1]portlink-typetrunk[SwitchB-Ethernet0/1]porttrunkpermitvlanall[SwitchB-Ethernet0/1]inte0/2[SwitchB-Ethernet0/2]duplexfull[SwitchB-Ethernet0/2]speed100[SwitchB-Ethernet0/2]portlink-typetrunk[SwitchB-Ethernet0/2]porttrunkpermitvl8、anall三、配置端口聚合[SwitchA]link-aggregationethernet0/1toethernet0/2both//将e0/1和e0/2端口聚合[SwitchB]link-aggregationethernet0/1toethernet0/2both[SwitchA]displaylink-aggregationethernet0/1//显示端口聚合[SwitchA]undolink-aggregationall//删除端口聚合实训三
3、26>system-viewPassword://输入“111”口令[S3026]displaycurrect-config//显示配置信息[S3026]interfacevlan1//配置交换机的管理IP地址[S3026-Vlan-interface1]ipaddress172.16.1.1255.255.0.0//为Vlan1配置IP地址[S3026-Vlan-interface1]quit[S3026]iproute-static0.0.0.00.0.0.0172.16.1.2//配置交换机的静
4、态路由[S3026]ipdefault-gateway172.16.1.2//设置交换机默认网关[S3026]discurr[S3026]save//保存配置信息三、验证测试PCA:ping172.16.1.1PCA:telnet172.16.1.1实训二、华为交换机端口聚合的配置SwitchASwitchB图20-2端口聚合配置一、配置SwitchA交换机[Quidway]sysnameSwitchA//更改交换机名称为SwitchA[SwitchA]interfaceethernet0/1//进入
5、交换机e0/1端口[SwitchA-Ethernet0/1]duplexfull//设置端口工作模式为全双工[SwitchA-Ethernet0/1]speed100//设置端口速率为100Mbps[SwitchA-Ethernet0/1]portlink-typetrunk//设置该端口为trunk模式[SwitchA-Ethernet0/1]porttrunkpermitvlanall//该trunk允许所有VLAN信息通过[SwitchA-Ethernet0/1]inte0/2[SwitchA-
6、Ethernet0/2]duplexfull[SwitchA-Ethernet0/2]speed100[SwitchA-Ethernet0/2]portlink-typetrunk[SwitchA-Ethernet0/2]porttrunkpermitvlanall二、配置SwitchB交换机[Quidway]sysnameSwitchB[SwitchB]interfaceethernet0/1[SwitchB-Ethernet0/1]duplexfull[SwitchB-Ethernet0/1]sp
7、eed100[SwitchB-Ethernet0/1]portlink-typetrunk[SwitchB-Ethernet0/1]porttrunkpermitvlanall[SwitchB-Ethernet0/1]inte0/2[SwitchB-Ethernet0/2]duplexfull[SwitchB-Ethernet0/2]speed100[SwitchB-Ethernet0/2]portlink-typetrunk[SwitchB-Ethernet0/2]porttrunkpermitvl
8、anall三、配置端口聚合[SwitchA]link-aggregationethernet0/1toethernet0/2both//将e0/1和e0/2端口聚合[SwitchB]link-aggregationethernet0/1toethernet0/2both[SwitchA]displaylink-aggregationethernet0/1//显示端口聚合[SwitchA]undolink-aggregationall//删除端口聚合实训三
此文档下载收益归作者所有