华为小综合实验(MSTP+VRRP+OSPF)

一、实验拓扑

二、实验要求

1.进行基础配置,配置对应的IP地址、access、trunk、接口。

2.实验运行MSTP协议,域名为MSTP1,设置修订版本号为1,实例1映射的vlan为1,实例2映射的vlan为2.

设置SW1为实例1的根桥,实例2的备份根桥.

SW2为实例2的根桥,实例1的备份根桥。

3.配置vrrp,设置vrrp组为2,虚拟网关为192.168.2.254, SW1为vid2中的master,SW2为backup.

设置vrrp组为3,虚拟网关为192.168.3.254, SW2为vid3中的master,SW1为backup。

在SW1和SW2上配置VRRP备份组监视接口。

4.在SW1,SW2,R1上配置OSPF 所有IP地址宣告进区域0中,router-id依次为2.2.2.2 ,3.3.3.3, 1.1.1.1。

5.最终目的是实现流量的负载均衡,使得pc1通过SW1可以访问到环回口,pc2通过SW2可以访问到环回口

三、实验配置

基础配置:

SW1,SW2:

interface GigabitEthernet0/0/2

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

SW3:

interface GigabitEthernet0/0/1

port link-type access

port default vlan 2

#

interface GigabitEthernet0/0/2

port link-type access

port default vlan 3

#

interface GigabitEthernet0/0/3

port link-type trunk

port trunk allow-pass vlan 2 to 4094

#

interface GigabitEthernet0/0/4

port link-type trunk

port trunk allow-pass vlan 2 to 4094

MSTP配置:

SW2:#

stp instance 1 priority 4096

stp instance 2 priority 0

stp region-configuration

region-name yqing

revision-level 1

instance 1 vlan 2

instance 2 vlan 3

active region-configuration

interface Vlanif2

ip address 192.168.2.253 255.255.255.0

#

interface Vlanif3

ip address 192.168.3.253 255.255.255.0

SW1:

interface Vlanif2

ip address 192.168.2.252 255.255.255.0

#

interface Vlanif3

ip address 192.168.3.252 255.255.255.0

stp region-configuration

region-name yqing

revision-level 1

instance 1 vlan 2

instance 2 vlan 3

active region-configuration

#

stp instance 1 priority 0

stp instance 2 priority 4096

vrrp 配置

SW1:

interface Vlanif2

vrrp vrid 2 virtual-ip 192.168.2.254

vrrp vrid 2 priority 150

vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 60

interface Vlanif3

vrrp vrid 3 virtual-ip 192.168.3.254

SW2:

interface Vlanif3

ip address 192.168.3.253 255.255.255.0

vrrp vrid 3 virtual-ip 192.168.3.254

vrrp vrid 3 priority 150

vrrp vrid 3 track interface GigabitEthernet0/0/1 reduced 60

#

interface Vlanif2

vrrp vrid 2 virtual-ip 192.168.2.254

#

ospf:

R1:

ospf router-id 1.1.1.1

area 0

g0/0/0,g0/0/1,looback0:

ospf enable 1 area 0.0.0.0

SW1:

ospf router-id 2.2.2.2

area 0

vlanif2,vlanif3,vlanif12:

ospf enable 1 area 0.0.0.0

interface GigabitEthernet0/0/1

port link-type access

port default vlan 12

SW2:

ospf router-id 2.2.2.2

area 0

vlanif2,vlanif3,vlanif13:

ospf enable 1 area 0.0.0.0

interface GigabitEthernet0/0/1

port link-type access

port default vlan 13

四、配置验证

不好的的地方,或者有哪些地方有错误,请大家批评指正。谢谢!

  • 39
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
华为1x是华为公司推出的一款高级模拟实验设备。该设备采用先进的模拟技术,可以模拟出各种实际场景,并进行多种综合实验华为1x高级模拟实验的主要特点有以下几点。 首先,华为1x高级模拟实验具备高精度的模拟能力。它可以准确模拟出各种实际场景的条件,如气候条件、地理条件等,从而使实验结果更加真实可信。这对于科学研究和新技术研发非常重要。 其次,华为1x高级模拟实验具有高度灵活性。它可以根据实际需求,任意调整实验条件和参数,以适应不同的研究目的。这使得研究人员可以在一个设备上开展多种实验,提高实验效率。 第三,华为1x高级模拟实验具备高性能的运算能力。它采用了先进的处理器和算法,能够快速进行大规模数据的计算和分析。这对于处理复杂的模拟实验数据非常有帮助,提高了数据处理的效率和准确性。 最后,华为1x高级模拟实验具备良好的扩展性。它可以通过软硬件的升级,增加新的功能和实验模块,以满足不断变化的研究需求。这使得华为1x成为一个长期可持续发展的实验设备。 综上所述,华为1x高级模拟实验是一款具备高精度模拟能力、高度灵活性、高性能运算能力和良好扩展性的实验设备。它在科研和技术研发中有着广泛的应用前景,对于推动科技进步和创新具有重要意义。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值