Get the App
SLTechnology News&Howtos  ›  Servers  › 

Application experiment of Huawei equipment STP,VRRP

Shulou Source: shulou.com Published: 2022-06-02 22:33:13 09月18日 Update

Lab Topology:

The purpose of the experiment is to use STP,VRRP; to understand the loop and solve it, and to make the whole network interworking.

PC1 and PC3 belong to vlan 10, and PC4 belong to VLAN 20.

Experimental idea: divide the topology diagram into three parts; start with the bottom terminal equipment

Configuration steps: the first part

1. Configure IP subnet mask gateways for PC1 and PC2

PC1 192.168.10.1 255.255.255.0 192.168.10.250 (the gateway is a virtual gateway, which is reflected in part 3)

two。 Configure SW4

Create VLAN 10 20 on SW4

Configure the gi 1 interface as an access link and join VLAN 10

Configure the gi 2 interface as a trunk link to allow all VLAN to pass through

Configure the gi 3 interface as a trunk link to allow all VLAN to pass through

Create a STP on SW4 and name it LLL

Add VLAN 10 to a group with priority set to 4096

Add VLAN 20 to the second group, with priority set to 8192

3. Configure SW5

Create VLAN 10 20 on SW5

Configure the gi 1 interface as an access link and join VLAN 20

Configure the gi 2 interface as a trunk link to allow all VLAN to pass through

Configure the gi 3 interface as a trunk link to allow all VLAN to pass through

Create a STP on SW5 and name it LLL

Add VLAN 10 to a group with priority set to 4096

Add VLAN 20 to the second group, with priority set to 8192

[SW5] stp region-configuration creates STP

[SW5-mst-region] region-name LLL named bit LLL

[SW5-mst-region] instance 1 vlan 10 adds group 1 to VLAN 10

[SW5-mst-region] instance 2 vlan 20 add 2 groups to VLAN 20

[SW5-mst-region] active region-configuration enable configuration

[SW5] stp instance 1 priority 8192 configure 1 set of priorities

[SW5] stp instance 2 priority 4096 configure 2 groups of priorities

4. Configure SW2

Create VLAN 10 20 on SW2

Configure the gi 1 interface as a trunk link, allowing all VLAN to pass through

Configure the gi 2 interface as a trunk link to allow all VLAN to pass through

Configure the gi 3 interface as an access link and join VLAN 10

Configure the gi 4 interface as an access link and join VLAN 10

Configure the gi 5 interface as an access link and join VLAN 10

Configure the gi 6 interface as a trunk link to allow all VLAN to pass through

Set SW2 as the root switch

5. Configure SW6

Create VLAN 10 20 on SW6

Configure the gi 1 interface as an access link and join VLAN 10

Configure the gi 2 interface as a trunk link to allow all VLAN to pass through

Configure the gi 3 interface as a trunk link to allow all VLAN to pass through

Create a STP on SW6 and name it LLL

Add VLAN 10 to a group with priority set to 4096

Add VLAN 20 to the second group, with priority set to 8192

[SW6] stp region-configuration creates STP

[SW6-mst-region] region-name LLL named bit LLL

[SW6-mst-region] instance 1 vlan 10 adds group 1 to VLAN 10

[SW6-mst-region] instance 2 vlan 20 add 2 groups to VLAN 20

[SW6-mst-region] active region-configuration enable configuration

[SW6] stp instance 1 priority 4096 configure 1 set of priorities

[SW6] stp instance 2 priority 8192 configure 2 groups of priorities

6. Configure SW7

Create VLAN 10 20 on SW7

Configure the gi 1 interface as an access link and join VLAN 20

Configure the gi 2 interface as a trunk link to allow all VLAN to pass through

Configure the gi 3 interface as a trunk link to allow all VLAN to pass through

[SW7] stp region-configuration creates STP

[SW7-mst-region] region-name LLL named bit LLL

[SW7-mst-region] instance 1 vlan 10 adds group 1 to VLAN 10

[SW7-mst-region] instance 2 vlan 20 add 2 groups to VLAN 20

[SW7-mst-region] active region-configuration enable configuration

[SW7] stp instance 1 priority 8192 configure 1 set of priorities

[SW7] stp instance 2 priority 4096 configure 2 groups of priorities

7. Configure SW3

Create VLAN 10 20 on SW3

Configure the gi 1 interface as a trunk link, allowing all VLAN to pass through

Configure the gi 2 interface as a trunk link to allow all VLAN to pass through

Configure the gi 3 interface as an access link and join VLAN 20

Configure the gi 4 interface as an access link and join VLAN 20

Configure the gi 5 interface as an access link to join VLAN 20

Configure the gi 6 interface as a trunk link to allow all VLAN to pass through

The command input error in this picture does not take a screenshot without a molding, just like the configuration of SW2.

Set SW3 as the root bridge

8. At this time, the layer 2 switching network is ready to be verified by PC1 ping PC 3.

The second part:

Configuration step

Configure R1

[R1] inter gi 0/0/0

[R1-GigabitEthernet0/0/0] ip address 192.168.10.254 255.255.255.0-configure IP for GI 0 port

[R1-GigabitEthernet0/0/0] vrrp vrid 10 virtual-ip 192.168.10.250-create VRRP and configure virtual IP (all three join vrrp vrid 10)

[R1-GigabitEthernet0/0/0] vrrp vrid 10 priority 150-configure VRRP priority on R1 to be 150

[R1-GigabitEthernet0/0/0] vrrp vrid 10 track inter gi 0ram 0ram 2 reduced 100-configure link tracking

[R1] inter gi 0/0/1

[R1-GigabitEthernet0/0/1] ip address 192.168.20.252 255.255.255.0 configures the physical IP of the GI 0ram 0Uniplet 1 interface

[R1-GigabitEthernet0/0/1] vrrp vrid 20 virtual-ip 192.168.20.250 configure VRRP, virtual IP

[R1-GigabitEthernet0/0/1] vrrp vrid 20 priority 80 configures vrrp with a priority of 80

[R1-GigabitEthernet0/0/2] ip add

[R1-GigabitEthernet0/0/2] ip address 192.168.100.1 255.255.255.0 configure the physical IP of gi 2 interface

[R1-GigabitEthernet0/0/2] ospf 1 router-id 1.1.1.1 configure OSPF area 1 on R1 named 1.1.1.1

[R1-ospf-1] area0 enters the area0 of ospf1

[R1-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255 declares that network segment 10.020.0 belongs to area 0 area

[R1-ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255

[R1-ospf-1-area-0.0.0.0] area 30 enters area 30 of ospf1

[R1-ospf-1-area-0.0.0.30] network 192.168.100.0 0.0.0.255 declares that network segment 100.0 belongs to area 30 area

two。 Configure R2

[R2] inter gi 0/0/0

[R2-GigabitEthernet0/0/0] ip add 192.168.10.253 255.255.255.0 configure the physical IP of GI 0 interface

[R2-GigabitEthernet0/0/0] vrrp vrid 10 virtual-ip 192.168.10.250 create vrrp 10 and configure the IP of the virtual gateway

[R2-GigabitEthernet0/0/0] vrrp vrid 10 priority 100 sets the priority of VRRP

[R2-GigabitEthernet0/0/0] vrrp vrid 10 track inter gi 0ram 0max 2 reduced 50 set up link tracking

[R2-GigabitEthernet0/0/1] ip address 192.168.20.253 255.255.255.0 configure physical interface IP

[R2-GigabitEthernet0/0/1] vrrp vrid 20 virtual-ip 192.168.20.250 create VRRP and configure virtual gateway IP

[R2-GigabitEthernet0/0/1] vrrp vrid 20 priority 100 sets the priority of VRRP to 100

[R2-GigabitEthernet0/0/1] vrrp vrid 20 track inter gi 0ram 0max 2 reduced 50 link tracking

[R2-GigabitEthernet0/0/1] inter gi 0/0/2

[R2-GigabitEthernet0/0/2] ip address 192.168.100.1 255.255.255.0 configure gi 2 physical interface IP

[R2-GigabitEthernet0/0/2] ospf 1 router-id 2.2.2.2 create OSPF 1

[R2-ospf-1] area 0

[R2-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255 declares the network segment area 0 in OSPF 1

[R2-ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255

[R2-ospf-1-area-0.0.0.0] area 30

[R2-ospf-1-area-0.0.0.30] network 192.168.100.0 0.0.0.255 declares the network segment in area 30 in OSPF 1

3. Configure R3

[R3] inter gi 0/0/0

[R3-GigabitEthernet0/0/0] ip address 192.168.10.252 255.255.255.0

[R3-GigabitEthernet0/0/0] vrrp vrid 10 virtual-ip 192.168.10.250

[R3-GigabitEthernet0/0/0] vrrp vrid 10 priority 80

[R3-GigabitEthernet0/0/0] inter gi 0/0/1

[R3-GigabitEthernet0/0/1] ip address 192.168.20.254 255.255.255.0

[R3-GigabitEthernet0/0/1] vrrp vrid 20 virtual-ip 192.168.20.250

[R3-GigabitEthernet0/0/1] vrrp vrid 20 priority 150

[R3-GigabitEthernet0/0/1] vrrp vrid 20 track inter gi 0/0/2 reduced 100

[R3-GigabitEthernet0/0/1] inter gi 0/0/2

[R3-GigabitEthernet0/0/2] ip address 192.168.100.1 255.255.255.0

[R3-GigabitEthernet0/0/2] ospf 1 router-id 3.3.3.3

[R3-ospf-1] area 0

[R3-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255

[R3-ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255

[R3-ospf-1-area-0.0.0.0] area 30

[R3-ospf-1-area-0.0.0.30] network 192.168.100.0 0.0.0.255

Verify that PC1 and PC2,PC4 can communicate with each other after this step

Part III: configuration steps

SW1 port is enabled by default and no configuration is required.

Configure R4

[R4] inter gi 0/0/0

[R4-GigabitEthernet0/0/0] ip address 192.168.100.2 255.255.255.0 configure gi 0 interface ip

[R4-GigabitEthernet0/0/0] inter gi 0/0/1

[R4-GigabitEthernet0/0/1] ip address 192.168.30.254 255.255.255.0 configure gi 1 interface IP

[R4-GigabitEthernet0/0/1] ospf 1 router-id 4.4.4.4 create OSPF 1

[R4-ospf-1] area 30

[R4-ospf-1-area-0.0.0.30] network 192.168.30.0 0.0.0.255 declares the network segment in area 30 in OSPF 1

[R4-ospf-1-area-0.0.0.30] net

[R4-ospf-1-area-0.0.0.30] network 192.168.100.0 0.0.0.255

Verify and test the interconnection of the whole network

Use PC1 PC2 to PING server host 192.168.30.1 respectively

Tags: Configuration interface link priority physical gateway network segment step lab area part tracking verification network-wide topology device application three host layer 2 Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Linux Shulou Information NVidia OPPO Reno