计算机网络实验报告一交换机端口配置
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验一交换机端口汇聚实验
班级:1421302 学号:201420130315 姓名:谢英明
一、实验目的
掌握交换机端口汇聚的原理及配置方法,理解同一个网络与不同网络主机之间的区别。
二、实验设备
交换机2台,PC机4台。
三、实验拓扑图
四、实验步骤
1)配置各台交换机:
1.SwitchA配置代码:
Enter system view, return to user view with Ctrl+Z.
[Quidway]sysname SwitchA
[SwitchA]interface ethernet0/1
[SwitchA-Ethernet0/1]duplex full
[SwitchA-Ethernet0/1]speed 100
[SwitchA-Ethernet0/1]port link-type trunk
[SwitchA-Ethernet0/1]port trunk permit vlan all
[SwitchA-Ethernet0/1]quit
[SwitchA]interface ethernet0/2
[SwitchA-Ethernet0/2]int e0/2
[SwitchA-Ethernet0/2]duplex full
[SwitchA-Ethernet0/2]speed 100
[SwitchA-Ethernet0/2]port link-type trunk
[SwitchA-Ethernet0/2]port trunk permit vlan all
[SwitchA-Ethernet0/2]quit
[SwitchA]link-aggregation ethernet0/1 to ethernet0/2 both
[SwitchA]
2)SwitchB配置代码:
Enter system view, return to user view with Ctrl+Z.
[Quidway]sysname SwitchB
[SwitchB]interface ethernet0/1
[SwitchB-Ethernet0/1]duplex full
[SwitchB-Ethernet0/1]speed 100
[SwitchB-Ethernet0/1]port link-type trunk
[SwitchB-Ethernet0/1]port trunk permit vlan all
[SwitchB-Ethernet0/1]int e0/2
[SwitchB-Ethernet0/2]duplex full
[SwitchB-Ethernet0/2]speed 100
[SwitchB-Ethernet0/2]port link-type trunk
[SwitchB-Ethernet0/2]port trunk permit vlan all
[SwitchB-Ethernet0/2]quit
[SwitchB]link-aggregation ethernet0/1 to ethernet0/2 both
2)设置各个主机的IP地址:
双击小电脑1配置代码如下:
login:root
password:linux
[root@PCA root]#ifconfig eth0 10.65.1.1 netmask 255.255.0.0 小电脑2配置代码:
login:root
password:linux
[root@PCA root]#ifconfig eth0 10.65.1.2 netmask 255.255.0.0
五、实验结果及分析
1、小电脑1和2输入下列代码:
Ping 10.65.1.2 ;Ping 10.65.1.1
得到如下实验结果图:
分析:ping 命令的结果显示主机10.65.1.1与10.65.1.2是可以互相连通2)在交换机A和B中输入 dis curr 得
分析:表明聚合成功