网络工程实验基于华为路由器交换机Word文档格式.docx

上传人:b****6 文档编号:19116947 上传时间:2023-01-03 格式:DOCX 页数:19 大小:597.76KB
下载 相关 举报
网络工程实验基于华为路由器交换机Word文档格式.docx_第1页
第1页 / 共19页
网络工程实验基于华为路由器交换机Word文档格式.docx_第2页
第2页 / 共19页
网络工程实验基于华为路由器交换机Word文档格式.docx_第3页
第3页 / 共19页
网络工程实验基于华为路由器交换机Word文档格式.docx_第4页
第4页 / 共19页
网络工程实验基于华为路由器交换机Word文档格式.docx_第5页
第5页 / 共19页
点击查看更多>>
下载资源
资源描述

网络工程实验基于华为路由器交换机Word文档格式.docx

《网络工程实验基于华为路由器交换机Word文档格式.docx》由会员分享,可在线阅读,更多相关《网络工程实验基于华为路由器交换机Word文档格式.docx(19页珍藏版)》请在冰豆网上搜索。

网络工程实验基于华为路由器交换机Word文档格式.docx

[switch-Ethernet0/3]quit

[switch]discurr

[switch]interfacevlan1

[switch-Vlan-interface1]ipaddress10.65.1.8255.255.0.0

[switch-Vlan-interface1]quit

[switch]iproute-static0.0.0.00.0.0.010.65.1.2

[switch]ipdefault-gateway10.65.1.2

[switch]save

(4)配置主机地址

login:

root

linux

[rootPCAroot]#ifconfigeth010.65.1.1netmask255.255.0.0

[rootPCAroot]#ifconfig

[rootPCAroot]#routeadddefaultgw10.65.1.2

[rootPCAroot]#route

(5)主机与交换机间的连通测试

[rootPCAroot]#ping10.65.1.8

[rootPCAroot]#telnet10.65.1.8

4.思考总结

(1)特权密码的作用是什么?

密码丢失如何处理?

(2)主机地址与交换机IP地址设置应注意哪些问题。

实验2端口聚合配置

(1)熟悉端口聚合命令的使用场合与注意事项

(2)掌握端口聚合配置的基本方法

(3)了解端口的属性类型

3.实验容步骤

(1)打开实验软件调用两台交换机并按实验拓扑连接

(2)配置交换机A的端口参数

端口E0/1

[Quidway]sysnameSwitchA

[SwitchA]interfaceethernet0/1

[SwitchA-Ethernet0/1]duplexfull

[SwitchA-Ethernet0/1]speed100

[SwitchA-Ethernet0/1]portlink-typetrunk

[SwitchA-Ethernet0/1]porttrunkpermitvlanall

端口E0/2

[SwitchA-Ethernet0/1]inte0/2

[SwitchA-Ethernet0/2]duplexfull

[SwitchA-Ethernet0/2]speed100

[SwitchA-Ethernet0/2]portlink-typetrunk

[SwitchA-Ethernet0/2]porttrunkpermitvlanall

(3)配置交换机B的端口参数

[Quidway]sysnameSwitchB

[SwitchB]interfaceethernet0/1

[SwitchB-Ethernet0/1]duplexfull

[SwitchB-Ethernet0/1]speed100

[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]porttrunkpermitvlanall

(4)配置端口聚合

[SwitchA]link-aggregationethernet0/1toethernet0/2both

[SwitchB]link-aggregationethernet0/1toethernet0/2both

[SwitchA]displaylink-aggregationethernet0/1

[SwitchA]undolink-aggregationall

(1)TRUNK端口可否属于多个VLAN?

(2)如何测试TRUNK端口的工作状态?

实验3VLAN的配置

(1)掌握VLAN命令使用的基本原则

(2)掌握VLAN划分的规则

(3)熟悉VLAN地址的分配方法

(4)学会如何测试VLAN间的连通性

3.实验容与步聚

(1)调用主机和交换机并按拓扑结构连

(2)配置交换机A的VLAN

[SwitchA]vlan2

[SwitchA-vlan2]porte0/2

[SwitchA-vlan2]porte0/3toe0/4

[SwitchA-vlan2]vlan3

[SwitchA-vlan3]porte0/5toe0/6

[SwitchA]disvlanall

[SwitchA]discurrent

(3)配置交换机B的VLAN

[SwitchB]vlan2

[SwitchB-vlan2]porte0/3toe0/4

[SwitchB-vlan2]vlan3

[SwitchB-vlan3]porte0/5toe0/6

[SwitchB-vlan3]quit

[SwitchB]disvlanall

[SwitchB]discurrent

(4)配置主机的IP

设置计算机的IP为:

PCA:

10.65.1.1PCB:

10.66.1.1PCC:

10.65.1.3PCD:

10.66.1.3

(5)测试VLAN的连通性

[rootPCAroot]#ping10.65.1.1通(本机IP)

[rootPCAroot]#ping10.65.1.3不通(中间连接线是vlan1)

[rootPCAroot]#ping10.66.1.1不通(不同网络,不同vlan)

[rootPCAroot]#ping10.66.1.3不通(不同网络,不同vlan)

[rootPCBroot]#ping10.66.1.3不通(中间连接线是vlan1)

4.思考与总结

(1)不同交换机的端口是不可在同一VLAN上?

(2)不同VLAN间主机是否可以通信?

(3)不同交换机上相同ID的VLAN可否通信?

实验4VLAN的高级配置

(1)学习主VLAN与附VLAN的配置方法

(2)了解主VLAN与子VLAN的关系

(3)了解子VLAN间的连通关系

(4)学会用VLAN技术管理网络

[SwitchA-vlan2]portethernet0/5toethernet0/6

[SwitchA]vlan3

[SwitchA-vlan3]portethernet0/7toethernet0/8

[SwitchA]vlan5

[SwitchA-vlan5]portethernet0/1toethernet0/4

[SwitchA-vlan5]isolate-user-vlanenable;

vlan5是主vlan

[SwitchA-vlan5]quit

[SwitchA]isolate-user-vlan5secondary2,3;

vlan2,3是子vlan

[SwitchB-vlan2]portethernet0/5toethernet0/6

[SwitchB]vlan3

[SwitchB-vlan3]portethernet0/7toethernet0/8

[SwitchA]vlan4

[SwitchB-vlan4]portethernet0/1toethernet0/4

[SwitchB-vlan4]isolate-user-vlanenable;

vlan4是主vlan

[SwitchB-vlan4]quit

[SwitchB]isolate-user-vlan4secondary2,3;

(4)按拓扑结构配置主机地址

A:

10.65.1.1

B:

10.65.1.2

C:

10.65.1.3

D:

10.65.1.4

(5)测试主VLAN与子VLAN的连通性

(6)测试子VLAN间的边通性

4.思考与总结

(1)分析主与附VLAN的连通性

(2)分析子VLAN间的连能性

(3)附VLAN设置的必要性分析

实验5交换机STP的配置

(1)了解STP配置的目的和用途

(2)了解STP解决广播风暴的基本原理

(3)学会STP配置方法

(2)启动各交换机的STP协议及优先级

[Quidway]stp{enable|disable}

[Quidway]stppriority4096设置交换机的优先级

[Quidway]stprootprimary设置交换机为树根

[Quidway-Ethernet0/1]stpcost200设置交换机端口的花费

(3)查看STP的运行情况

[Quidway]displaystp

(4)查看端口STP状态运行信息

[Quidway]displaystpinterfaceEthernet0/7

(1)分析STP抑制广播风暴的基本原理

(2)分析STP应用的环境要求

实验6直连路由测试

(1)掌握访问路由器的基本方法

(2)掌握主机与路由连通的测试

(3)网关的配置与连通性测试

(1)调用路由器及主机,按拓扑结构要求连接设备

(2)配置路由器口令及端口IP

<

Quidwqy>

[Quidway]interfaceethernet0/0

[Quidway-Ethernet0/0]ipaddr10.65.1.2255.255.255.0

[Quidway-Ethernet0/0]undoshutdown

[Quidway-Ethernet0/0]inte0/1

[Quidway-Ethernet0/1]ipaddr10.66.1.2255.255.255.0

[Quidway-Ethernet0/1]undoshutdown激活端口

(3)配置主机IP地址

[rootPCBroot]#ifconfigeth010.66.1.1netmask255.255.0.0

(4)主机与路由器的连通性测试

[rootPCAroot]#ping10.65.1.2(通,没网关只能ping直连的口)

[rootPCAroot]#ping10.66.1.2(不通,PCA没有设置网关)

(5)网关的配置与连通性测试

[rootPCAroot]#ping10.66.1.2(通)

[rootPCAroot]#ping10.66.1.1(不通,因PCB没有网关)

[rootPCBroot]#routeadddefaultgw10.66.1.2

[rootPCAroot]#ping10.66.1.1(通)

(6)主机与路由端口连通性测试

去掉计算机HostB与Router的连线,再ping:

[rootPCAroot]#ping10.66.1.2不通(没有接线端口会自动down掉)

再连接HostB与Router的连线,再ping:

(1)分析网关地址与网络连通的关系

(2)通过实验结果分析路由端口配置的技术要求

实验7单臂路由测试

(1)学习交换机与路由器通信的基本原理

(2)学习子接口的应用

(3)学习子接口与VLAN配置的对应关系

(4)学习主机与路由的连通性测试

(1)调用路由器、交换机和主机,按拓扑结构要求连接设备

(2)配置主机IP和网关

设置PCAip:

10.65.1.1gateway:

10.65.1.2

设置PCBip:

10.66.1.1gateway:

10.66.1.2

(3)配置子接口两个IP的情况

[Quidway-Ethernet0/0]ipaddr10.66.1.2255.255.255.0secondary

[rootPCAroot]#ping10.66.1.1

(4)划分两个子接口与两个vlan的路由应关系

[SwitchA-vlan2]porte0/3

[SwitchA-vlan3]porte0/6

[SwitchA]inee0/1

[SwitchA-Ethernet0/1]porttrunkencapdot1q

[SwitchA]discurr

[Quidway]inte0/0

[SwitchA-Ethernet0/0]inte0/0.1

[SwitchA-Ethernet0/0.1]encapsulationdot1q2

[SwitchA-Ethernet0/0.1]ipaddr10.65.1.2255.255.255.0

[SwitchA-Ethernet0/0.1]nudoshut

[SwitchA-Ethernet0/0.1]inte0.2

[SwitchA-Ethernet0/0.2]encapsulationdot1q2

[SwitchA-Ethernet0/0.2]ipaddr10.66.1.2255.255.255.0

[SwitchA-Ethernet0/0.2]nudoshut

(5)连通性测试

[rootPCAroot]#ping10.66.1.1通

(1)分析子接口的作用

(2)总结子接口配置的关键技术指标

实验8静态路由实验

(1)了解静态路由配置的环境要求

(2)掌握静态路由的配置方法

(3)学会查看路由表,分析路由参数

(1)调用设备并按拓扑要求连接设备

(2)配置主机地址

10.65.1.1netmask255.255.0.0

PCB:

10.71.1.1netmask255.255.0.0

PCC:

10.66.1.1netmask255.255.0.0

(3)配置路由器A端口

[RouterA]interfaceethernet0/0

[RouterA-Ethernet0/0]ipaddrress10.65.1.2255.255.0.0

[RouterA-Ethernet0/0]undoshutdown

[RouterA-Ethernet0/0]inte0/1

[RouterA-Ethernet0/1]ipaddrress10.66.1.2255.255.0.0

[RouterA-Ethernet0/1]undoshutdown

[RouterA-Ethernet0/1]ints0/1

[RouterA-Serial0/1]ipaddrress10.68.1.2255.255.0.0

[RouterA-Serial0/1]undoshutdown

[RouterA-Serial0/1]clockrate64000

[RouterA-Serial0/1]quit

[RouterA]iprouting

[RouterA]discurr

(4)配置路由器B端口

[RouterB]interfaceethernet0/0

[RouterB-Ethernet0/0]ipaddrress10.70.1.2255.255.0.0

[RouterB-Ethernet0/0]undoshutdown

[RouterB-Ethernet0/0]inte0/1

[RouterB-Ethernet0/1]ipaddrress10.71.1.2255.255.0.0

[RouterB-Ethernet0/1]undoshutdown

[RouterB-Ethernet0/1]ints0/0

[RouterB-Serial0/0]ipaddrress10.68.1.1255.255.0.0

[RouterB-Serial0/0]undoshutdown

[RouterB-Serial0/0]quit

[RouterB]iprouting

[RouterB]discurr

(5)配置主机A的网关及以太网端口IP

(6)测试主机A与路由器的连能性

[rootPCAroot]#ping10.65.1.2通

[rootPCAroot]#ping10.66.1.2通

[rootPCAroot]#ping10.67.1.2通

[rootPCAroot]#ping10.68.1.2不通

[rootPCAroot]#ping10.69.1.2不通

[RouterA]iproute-static10.69.0.0255.255.0.010.67.1.1

[rootPCAroot]#ping10.69.1.1通

(7)配置路由器的静态路由

设置RouterA的IP:

f0/0:

10.65.1.2--->

10.65.1.1

f0/1:

10.66.1.2--->

10.66.1.1

s0/0:

10.67.1.2

s0/1:

10.68.1.2--->

接RouterCs0/0

设置RouterB的IP:

10.78.1.1<

---

10.67.1.1

10.69.1.2--->

10.69.1.1

10.70.1.2--->

PCD:

10.70.1.1

(8)设置从PCA到PCC的静态路由

[ROA]iprouting

[ROA]iproute-static10.69.0.0255.255.0.010.68.1.1

[ROA]displayiproute

[ROB]iproute-static10.69.0.0255.255.0.010.78.1.1

[ROB]displayiproute

(9)连通性测试

[rootPCAroot]#ping10.69.1.1(通)

[rootPCAroot]#ping10.78.1.1(不通)

[rootPCAroot]#ping10.70.1.1(不通)

(1)分析实验结果,为什么PCA到10.78.1.1不通?

(2)查看路由表分析路由表各项参数

实验9动态路由实验

(1)了解动态路由协议的使用环境

(2)学会动态路由的配置方法

(3)学会子网连通性的测试

(4)动态路由与静态路由的应用对比

3.实验步骤与容

(1)调用设备并按拓扑要求连接

(2)配置路由器的动态路由协议

[RouterA]ripversion2multicast

[RouterA-rip]network10.0.0.0;

可以用all

[RouterA-rip]iprouting

[RouterB]ripversion2multicast

[RouterB-rip]network10.0.0.0

[Rou

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 自然科学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1