Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Huawei-the Application of GVRP

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today to bring you a simple application of GVRP, when it comes to GVRP, it may not be clear to beginners, what function does GVRP achieve? Let's get down to business.

Before the experiment, let's give you a brief introduction to GVRP.

Summary and function of GVRP 1. What is GARP?

GARP (Generic Attribute Registration Protocol)

-call it a generic attribute registration protocol

-the protocol is mainly used for a mechanism of attribute transfer and diffusion.

-provides a means of distributing, propagating, registering (vlan attributes, multicast addresses, etc.) for switches on the same switching network

two。 What is GVRP?

GVRP (Generic VLAN Redistration Protocol)

-is an advanced application of GARP for registering and unregistering VLAN properties

-through the GVRP protocol, VLAN information on one device can quickly spread to the entire switching network.

-GVRP implements dynamic distribution, registration and dissemination of VLAN attributes, so as to achieve the manual configuration of network administrators and ensure the correct configuration of VLAN.

Registration mode of 3.GVRP

-Normal mode, which defaults to Normal mode, allows dynamic and static VLAN registration, and sends both static vlan and dynamic vlan declaration messages

-Fixed mode, for example, if a port is in Fixed mode, dynamic vlan registration and logout are not allowed, and only static vlan declaration messages are sent

-Forbidden mode, for example, if a port is in Forbbid mode, dynamic vlan is not allowed to register on the port. At the same time, all vlan except vlan1 on the port is deleted, only the vlan1 declaration message is sent.

After understanding the basics of GVRP, let's learn the configuration of GVRP with a small experiment.

Lab name: Huawei-- configuring GVRP

The purpose of this experiment is to let switches in the same switching network learn vlan automatically.

Lab requirements:

Three switches

Lab Topology:

The steps of the experiment:

1. Configure GVRP configuration idea: & globally turn on GVRP& configuration link mode and allow all vlan to open GVRP through the & port

Sw1:

Undo terminal monitor\ turns off the logging function of the router to the terminal interface

Info: Current terminal monitor is off.

System-view\ enter the system view

Enter system view, return user view with Ctrl+Z.

[Huawei] sysname sw1\ change the name

[sw1] gvrp\ enable GVRP globally

Info: GVRP has been enabled.

[sw1] interface GigabitEthernet 0Uniple 1\ entry port

[sw1-GigabitEthernet0/0/1] port link-type trunk\ configure the link to be trunk

[sw1-GigabitEthernet0/0/1] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw1-GigabitEthernet0/0/1] gvrp\ port opens GVRP

Sw1-GigabitEthernet0/0/1] quit\ exit

Sw2:

Undo terminal monitor\ turns off the logging function of the router to the terminal interface

Info: Current terminal monitor is off.

System-view\ enter the system view

Enter system view, return user view with Ctrl+Z.

[Huawei] sysname sw2\ change the name

[sw2] gvrp\ enable GVRP globally

Info: GVRP has been enabled.

[sw2] interface GigabitEthernet 0Uniple 1\ entry port

[sw2-GigabitEthernet0/0/1] port link-type trunk\ configure the link to be trunk

[sw2-GigabitEthernet0/0/1] port trunk allow-pass vlan all\ allow all vlan to pass * *

[sw2-GigabitEthernet0/0/1] gvrp\ port opens GVRP

Info: GVRP has been enabled.

[sw2-GigabitEthernet0/0/1] quit\ exit

[sw2] interface GigabitEthernet 0ram 0ram 2\ entry port

[sw2-GigabitEthernet0/0/2] port link-type trunk\ configure the link to be trunk

[sw2-GigabitEthernet0/0/2] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw2-GigabitEthernet0/0/2] gvrp\ port opens GVRP

Info: GVRP has been enabled.

[sw2-GigabitEthernet0/0/2] quit\ exit

Sw3:

[Huawei]

Undo te mo\ turns off the logging function of the router to the terminal interface

Info: Current terminal monitor is off.

System-view\ enter the system view

Enter system view, return user view with Ctrl+Z.

[Huawei] sysname sw3\ change the name

[sw3] gvrp\ enable GVRP globally

Info: GVRP has been enabled.

[sw3] interface GigabitEthernet 0Uniple 1\ entry port

[sw3-GigabitEthernet0/0/1] port link-type trunk\ configure the link to be trunk

[sw3-GigabitEthernet0/0/1] port trunk allow-pass vlan all\ allow all vlan to pass through

[sw3-GigabitEthernet0/0/1] gvrp\ port opens GVRP

Info: GVRP has been enabled.

[sw3-GigabitEthernet0/0/1] quit\ exit

two。 Create vlan

Sw1:

[sw1] vlan batch 5 10 50\ create vlan 5 10 50

Info: This operation may take a few seconds. Please wait for a moment...done.

3. Validate, test, save

Sw1:

Sw2:

Sw3:

Summary of the experiment:

In the process of configuration, be sure to enable GVRP globally and then on the interface, otherwise you will not be able to learn.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report