千家信息网

双核心网络综合实验

发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,【实验名称】双核心网络综合实验【实验目的】1、 掌握MSTP部署2、 掌握VRRP协议配置3、 掌握MSTP+VRRP的双机热备技术4、 了解基于内部源的动态NAPT配置方法5、 掌握动态路由(默认路
千家信息网最后更新 2026年11月01日双核心网络综合实验

【实验名称】双核心网络综合实验

【实验目的】

1、 掌握MSTP部署

2、 掌握VRRP协议配置

3、 掌握MSTP+VRRP的双机热备技术

4、 了解基于内部源的动态NAPT配置方法

5、 掌握动态路由(默认路由分发)或者浮动路由配置技术

【实验拓扑】

详见附件

【配置要求及配置步骤】

(1)按照图示完成实验设备连接和地址规划,设备名设置为"组号-设备编号-设备名" (如A1-S3550-1-H1)。

(2)二层交换机的VLAN规划:

VL10

VL20

VL30

VL40

F0/5-F0/10

F0/11-F0/15

F0/15-F0/20

F0/21-F0/24

(3)按要求配置交换机VLAN、SVI接口。


前三个是非常基础的配置,这里不再给出!需要注意的是交换机之间互联需要将端口配置为trunk!


(4)按要求配置路由器和三层交换机路由接口,使用ping验证链路联通。

H1:

H1(config)#interface f0/4

H1(config-if)#no switchport

H1(config-if)#ip address 172.16.1.2 255.255.255.252

H1(config-if)#no shutdown

H2:

H2(config)#interface f0/4

H2(config-if)#no switchport

H2(config-if)#ip address 172.16.1.6 255.255.255.252

H2(config-if)#no shutdown

R2:

R1(config)#interface f1/0

R1(config-if)#ip address 172.16.1.1 255.255.255.252

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#interface f1/1

R1(config-if)#ip address 172.16.1.5 255.255.255.252

R1(config-if)#no shutdown

(5)在四台交换机上部署MSTP协议,要求设置两个实例,实例1关联VL10、VL30;实例2关联VL20、VL40。要求MST修订号设置为1,名称为组号。要求H1为实例1的根交换机、H2为实例2的根交换机,互为备份。

使用show spanning-tree mst configuration命令查看MST配置信息,使用show spanning-tree mst和show spanning-tree mst interface命令分别查看交换机的MST1和MST2以及相应接口的信息验证配置结果。

S1:

开启生成树

S1 (config)#spanning-tree

!配置生成树模式为MSTP

S1 (config)#spanning-tree mode mstp

! 进入MSTP配置模式

S1 (config)#spanning-tree mst configuration

!配置instance 1(实例1)并关联Vlan 10和30

S1 (config-mst)#instance 1 vlan 10,30

!配置实例2并关联Vlan 20和40

S1 (config-mst)#instance 2 vlan 20,40

!配置域名称

S1 (config-mst)#name fsy

!配置版本(修订号)

S1 (config-mst)#revision 1

S2:

S2 (config)#spanning-tree

S2 (config)#spanning-tree mode mstp

S2 (config)#spanning-tree mst configuration

S2 (config-mst)#instance 1 vlan 10,30

S2 (config-mst)#instance 2 vlan 20,40

S2 (config-mst)#name fsy

S2 (config-mst)#revision 1

H1:

H1 (config)#spanning-tree

H1 (config)#spanning-tree mode mstp

H1 (config)#spanning-tree mst configuration

H1 (config-mst)#instance 1 vlan 10,30

H1 (config-mst)#instance 2 vlan 20,40

H1 (config-mst)#name fsy

H1 (config-mst)#revision 1

!配置交换机H1在instance 1中的优先级为4096 ,缺省是32768,值越小越优先成为该instance中的root switch

H1 (config)#spanning-tree mst 1 priority 4096

H2:

H2 (config)#spanning-tree

H2 (config)#spanning-tree mode mstp

H2 (config)#spanning-tree mst configuration

H2 (config-mst)#instance 1 vlan 10,30

H2 (config-mst)#instance 2 vlan 20,40

H2 (config-mst)#name fsy

H2 (config-mst)#revision 1

H2 (config)#spanning-tree mst 2 priority 4096

(6)在两台三层交换机上部署VRRP协议,各VLAN的网关地址统一使用*.*.*.254。要求VRRP主路由与MSTP根桥保持一致性,使用show vrrp (brief)检查结果。注意新旧版本中的standby和vrrp的使用差别。

H1:

H1(config)# interface vlan 10

!配置VRRP10虚拟路由器IP

H1(config-if)# standby 10 ip 172.16.10.254

!配置VRRP10优先级200

H1(config-if)# standby 10 priority 200

H1(config-if)# exit

H1(config)# interface vlan 20

H1(config-if)# standby 20 ip 172.16.20.254

H1(config-if)# standby 20 priority 100

H1(config-if)# exit

H1(config)# interface vlan 30

H1(config-if)# standby 30 ip 172.16.30.254

H1(config-if)# standby 30 priority 200

H1(config-if)# exit

H1(config)# interface vlan 40

H1(config-if)# standby 40 ip 172.16.40.254

H1(config-if)# standby 40 priority 100

H1(config-if)# exit

H2:

H2(config)# interface vlan 10

H2(config-if)# standby 10 ip 172.16.10.254

H2(config-if)# standby 10 priority 100

H2(config-if)# exit

H2(config)# interface vlan 20

H2(config-if)# standby 20 ip 172.16.20.254

H2(config-if)# standby 20 priority 200

H2(config-if)# exit

H2(config)# interface vlan 30

H2(config-if)# standby 30 ip 172.16.30.254

H2(config-if)# standby 30 priority 100

H2(config-if)# exit

H2(config)# interface vlan 40

H2(config-if)# standby 40 ip 172.16.40.254

H2(config-if)# standby 40 priority 200

H2(config-if)# exit

(7)以路由器回环口模拟运营商接入线路,在路由器和三层交换机上完成路由配置,可使用动态路由或者静态路由加浮动路由解决,注意各三层设备的默认路由如何实现?使用show ip route查看结果。

R1:

R1(config)#interface loopback 1

R1(config-if)#ip address 202.100.1.1 255.255.255.252

R1(config)#router ospf 1

R1(config)#exit

R1(config-router)#network 202.100.1.1 0.0.0.3 area 0

R1(config-router)#network 172.16.1.1 0.0.0.3 area 0

R1(config-router)#network 172.16.1.5 0.0.0.3 area 0

H1:

H1(config)#ip routing 0.0.0.0 0.0.0.0 202.100.1.1

H1(config)#router ospf 1

H1(config-router)#network 172.16.1.2 0.0.0.3 area 0

H1(config-router)#network 172.16.10.0 0.0.0.255 area 0

H1(config-router)#network 172.16.20.0 0.0.0.255 area 0

H1(config-router)#network 172.16.30.0 0.0.0.255 area 0

H1(config-router)#network 172.16.40.0 0.0.0.255 area 0

H2:

H2(config)#ip routing 0.0.0.0 0.0.0.0 202.100.1.1

H2(config)#router ospf 1

H2(config-router)#network 172.16.1.6 0.0.0.3 area 0

H2(config-router)#network 172.16.10.0 0.0.0.255 area 0

H2(config-router)#network 172.16.20.0 0.0.0.255 area 0

H2(config-router)#network 172.16.30.0 0.0.0.255 area 0

H2(config-router)#network 172.16.40.0 0.0.0.255 area 0

(8)在路由器上配置基于内部源的动态NAPT,实现VL10、VL20和VL30用户可以访问互联网。

R1:

R1(config)#access-list 10 permit 172.16.10.0 0.0.0.255

R1(config)#access-list 10 permit 172.16.20.0 0.0.0.255

R1(config)#access-list 10 permit 172.16.30.0 0.0.0.255

R1(config)#ip nat pool fsy 202.100.1.1 202.100.1.1 netmask 255.255.255.252

R1(config)#ip nat inside source list 10 pool fsy overload

R1(config)#ip nat inside source list 20 pool fsy overload

R1(config)#ip nat inside source list 30 pool fsy overload

R1(config)#interface f1/0

R1(config-if)#ip nat inside

R1(config)#interface f1/1

R1(config-if)#ip nat inside

R1(config)#interface loopback 1

R1(config-if)#ip nat outside

此时,配置完成,可以开始测试!

(因为思科默默器无法实现上述配置,我是在做完实验的基础上总结的,难免有错误,欢迎指正)


欢迎批评指正!


配置 路由 交换机 实例 实验 设备 路由器 动态 关联 接口 结果 优先级 信息 名称 命令 地址 基础 技术 模式 版本 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 互联网黑科技 广州淘业互联网络科技 互联网科技公司经营范围 河南云网互联网络科技有限公司 广州百单互联网科技有限公司 互联网科技有限公司经营范围 互联网科技论文 联恩商钥互联网科技有限公司 太原新华互联网科技学校怎么样 济南和联互联网科技有限公司 老年人脱离互联网科技的作文 深圳市运趣互联网科技有限公司 金融科技与互联网金融相同和不同 全球顶尖互联网科技公司 昭通互联网科技选哪家 互联网公司黑科技创始人 企晟互联网信息科技有限公司 互联网科技和医药行业 互联网科技大会大佬 长沙易易互联网科技有限公司 华服互联网科技怎么样 深圳互联网科技公司 碳银互联网科技有限公司 顺玮阁互联网科技 中国互联网金融科技基金 崇明区互联网教育科技售后服务 互联网媒体平台算高科技产业 兰石爱特工业互联网科技分公司 西安左小互联网科技有限公司 众联互联网络科技
0