双核心网络综合实验-创新互联

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

10多年的旌德网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。营销型网站的优势是能够根据用户设备显示端的尺寸不同,自动调整旌德建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。创新互联公司从事“旌德网站设计”,“旌德网站推广”以来,每个客户项目都认真落实执行。

【实验目的】

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

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

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

           欢迎批评指正!

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


标题名称:双核心网络综合实验-创新互联
URL网址:http://pwwzsj.com/article/dsjcei.html