2023-2024年13届新华三决赛部分实验步骤分析

2023年13届新华三决赛部分实验步骤分析

实验拓扑:

在这里插入图片描述

实验需求:

在这里插入图片描述

1.配置聚合链路组(S1 S2)
[SW1]int Bridge-Aggregation 10
[SW1-Bridge-Aggregation10]link-aggregation mode dynamic (同一厂商修改为动态)
[SW1]interface range g1/0/2 g1/0/3(进入接口)
[SW1-if-range]port link-aggregation group 10
2.配置vlan并放行(S1 S2 S3)
[SW3]int range g1/0/1 g1/0/2
[SW3-if-range]port link-type trunk 
[SW3-if-range]port trunk permit vlan 10 20

[SW1]int g1/0/1
[SW1-GigabitEthernet1/0/1]port link-type trunk 
[SW1-GigabitEthernet1/0/1]port trunk permit vlan 10 20 
[SW1]interface Bridge-Aggregation 10
[SW1-Bridge-Aggregation10]port link-type trunk 
Configuring GigabitEthernet1/0/2 done.
Configuring GigabitEthernet1/0/3 done.
[SW1-Bridge-Aggregation10]port trunk permit vlan 10 20 30
Configuring GigabitEthernet1/0/2 done.
Configuring GigabitEthernet1/0/3 done.
3.配置生成树并指定根桥(S1 S2 S3)
[SW1]stp region-configuration (进入)
[SW1-mst-region]region-name 123(域名一致)
[SW1-mst-region]revision-level 1(版本一致)
[SW1-mst-region]instance 1 vlan 10 (映射实例)
[SW1-mst-region]instance 2 vlan 20 
[SW1-mst-region]active region-configuration (激活stp)
在S1和S2上配置主备根桥
[SW1]stp instance 1 root primary 
[SW1]stp instance 2 root secondary
[SW1]display stp brief(进行查看)
4.开启根桥保护(防止S3抢占)和环路保护

原因:由于S1,S2已经配置主备根桥,则主要防止S3抢占

根桥保护:(在去往S3的接口上配置)
[SW1]int g1/0/1
[SW1-GigabitEthernet1/0/1]stp root-protection 
[SW2]int g1/0/1
[SW2-GigabitEthernet1/0/1]stp root-protection 
环路保护:原则上同一个接口在同一段时间下只能配置一个保护机制(即S1,S2去往S3的出方向不能配置环路保护)
[SW1]int Bridge-Aggregation 10
[SW1-Bridge-Aggregation10]stp loop-protection 
[SW2]int Bridge-Aggregation 10
[SW2-Bridge-Aggregation10]stp loop-protection 
[SW3]int range g1/0/1 g1/0/2
[SW3-if-range]stp loop-protection 
5.配置vrrp(在三层进行配置)

注:若配置设备在二层,则自定义真实IP地址,不能冲突

[SW1]int vlan 10
[SW1-Vlan-interface10]ip add 192.168.0.252 24
[SW1-Vlan-interface10]int vlan 20
[SW1-Vlan-interface20]ip add 10.1.1.252 24
[SW2]int vlan 10
[SW2-Vlan-interface10]ip add 192.168.0.253 24
[SW2-Vlan-interface10]int vlan 20
[SW2-Vlan-interface20]ip add 10.1.1.253 24
让vlan10的业务优先从左边通过
[SW1]int vlan 10
[SW1-Vlan-interface10]vrrp vrid 10 virtual-ip 192.168.0.254
[SW1-Vlan-interface10]vrrp vrid 10 priority 120
[SW1]int vlan 20
[SW1-Vlan-interface20]vrrp vrid 20 virtual-ip 10.1.1.254
(虚拟IP不加掩码)
让vlan20的业务优先从右边通过
[SW2]int vlan 10
[SW2-Vlan-interface10]vrrp vrid 10 virtual-ip 192.168.0.254
[SW2-Vlan-interface10]int vlan 20
[SW2-Vlan-interface20]vrrp vrid 20 virtual-ip 10.1.1.254
[SW2-Vlan-interface20]vrrp vrid 20 priority 120
[SW1]dis vrrp(进行查看 默认优先值为100)
6.配置R3连接到S5的动态分配(DHCP)
[SW5]dhcp enable(开启dhcp服务)
[SW5]dhcp server ip-pool 1(配置地址池)
[SW5-dhcp-pool-1]network 100.1.3.0 24(分配网段IP地址)
[SW5-dhcp-pool-1]gateway-list 100.1.3.254(告知网关)
[SW5-dhcp-pool-1]dns-list 8.8.8.8(转网页访问)
告知地址分配来源后自动刷新:
[RT3]int g0/0
[RT3-GigabitEthernet0/0]ip address dhcp-alloc 
[RT3]dis ip int brief (进行查看)
7.运行OSPF协议(保证有路由)
[SW1]ospf 1 router-id 192.168.255.11
[SW1-ospf-1]area 0
[SW1-ospf-1-area-0.0.0.0]network 192.168.255.11 0.0.0.0
[SW1-ospf-1-area-0.0.0.0]network 10.255.111.0 0.0.0.3
[SW1-ospf-1-area-0.0.0.0]network 192.168.0.0 0.0.0.255
[SW1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[SW1-ospf-1-area-0.0.0.0]network 10.255.212.0 0.0.0.3

[SW2]ospf 1 router-id 192.168.255.12 
[SW2-ospf-1]area 0
[SW2-ospf-1-area-0.0.0.0]network 192.168.255.12 0.0.0.0
[SW2-ospf-1-area-0.0.0.0]network 10.255.122.0 0.0.0.3
[SW2-ospf-1-area-0.0.0.0]network 192.168.0.0 0.0.0.255
[SW2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[SW2-ospf-1-area-0.0.0.0]network 10.255.212.0 0.0.0.3

[RT1]ospf 1 router-id 192.168.255.1
[RT1-ospf-1-area-0.0.0.0]network 192.168.255.1 0.0.0.0
[RT1-ospf-1-area-0.0.0.0]network 10.255.111.0 0.0.0.3
[RT1-ospf-1-area-0.0.0.0]network 10.255.12.0 0.0.0.3
[RT1-ospf-1]area 10
[RT1-ospf-1-area-0.0.0.10]network 100.1.1.0 0.0.0.255

[RT2]ospf 1 router-id 192.168.255.2 
[RT2-ospf-1]area 0
[RT2-ospf-1-area-0.0.0.0]network 192.168.255.2 0.0.0.0
[RT2-ospf-1-area-0.0.0.0]network 10.255.122.0 0.0.0.3
[RT2-ospf-1-area-0.0.0.0]network 10.255.12.0 0.0.0.3
[RT2-ospf-1]area 20
[RT2-ospf-1-area-0.0.0.20]network 192.168.255.0 0.0.0.0
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值