多生成树MSTP与VRRP+OSPF的配置(个人练习)

目录

配置要求:

实验操作:

步骤一:划分VLAN并配置IP

步骤二:配置VRRP

步骤三:配置多生成树MSTP

步骤四:配置动态路由

步骤五:配置LACP

实验验证:


配置要求:

VLAN10-server:LSW3-LSW1-AR1-server
VLAN20-server:LSW2-AR1-server

1、配置VRRP
2、配置多生成树MSTP
3、配置动态路由
4、链路聚合:手工,lacp

实验操作:

步骤一:划分VLAN并配置IP

#LSW3
vlan batch 10 20
int e0/0/1
port link-type access
port default vlan 10
int e0/0/2
port link-type access
port default vlan 20
q
port-group group-member g0/0/1 to g0/0/2
port link-type trunk
port trunk allow-pass vlan all
q
#LSW1
vlan batch 10 20 30
int g 0/0/1
port link-type trunk
port trunk allow-pass vlan all
int g 0/0/2
port link-type access
port default vlan 30
int v 30
ip add 100.1.1.1 30
int v 10
ip add 192.168.1.253 24
int v 20
ip add 192.168.2.253 24
#LSW2
vlan batch 10 20 40
int g 0/0/1
port link-type trunk
port trunk allow-pass vlan all
int g 0/0/2
port link-type access
port default vlan 40
int v 40
ip add 200.1.1.1 30
int v 10
ip add 192.168.1.252 24
int v 20
ip add 192.168.2.252 24
#R1
int g 0/0/0
ip add 100.1.1.2 30
int g0/0/1
ip add 200.1.1.2 30
int g 0/0/2
ip add 172.16.1.254 24

步骤二:配置VRRP

#LSW1
int v 10
vrrp vrid 10 virtual-ip 192.168.1.254
vrrp vrid 10 priority 150
vrrp vrid 10 track int g0/0/2 reduce 90
int v 20
vrrp vrid 20 virtual-ip 192.168.2.254
#LSW2
int v 10
vrrp vrid 10 virtual-ip 192.168.1.254
int  v 20 
vrrp vrid 20 virtual-ip 192.168.2.254
vrrp vrid 20 priority 150
vrrp vrid 20 track int g0/0/2 reduce 90

步骤三:配置多生成树MSTP

#LSW1、LSW2、LSW3
stp mode mstp
stp region-configuration
region-name huawei   
instance 10 vlan 10
instance 20 vlan 20
active region-configuration

设置LSW1为vlan10的主根,LSW2为vlan10的备根

#LSW1
stp instance 10 root primary
#LSW2
stp instance 10 root secondary
#全体设备
stp enable

步骤四:配置动态路由

#LSW1
ospf 1
area 0
net 100.1.1.0 0.0.0.3
net 192.168.1.0 0.0.0.255
net 192.168.2.0 0.0.0.255
#LSW2
ospf 1
area 0
net 200.1.1.0 0.0.0.3
net 192.168.1.0 0.0.0.255
net 192.168.2.0 0.0.0.255
#R1
ospf 1 
area 0
net 172.16.1.0 0.0.0.255
net 100.1.1.0 0.0.0.3
net 200.1.1.0 0.0.0.255

步骤五:配置LACP

#LSW1、LSW2

int e 1 
mode lacp
trunkport GigabitEthernet 0/0/23 to 0/0/24
port link-type trunk
port trunk allow-pass vlan all

实验验证:

VLAN10路径:

VLAN20路径:

VRRP(以S1为例)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值