The display gvrp state interface vlan command displays information about GVRP state machines.
Parameter | Description | Value |
---|---|---|
vlan vlan-id |
Displays information about GVRP state machines of a specific VLAN. |
The value is an integer ranging from 1 to 4094. |
interface interface-type interface-number |
Displays information about GVRP state machines on a specific interface:
|
- |
Usage Scenario
GVRP defines two state machines: Applicant and Registrar.
An Applicant declares attributes by sending messages. If no message is lost during transmission, an applicant can ensure that all registrars have registered an attribute by sending only one Join message or receiving one JoinIn message. In practice, to ensure that all registrars have registered an attribute, an applicant has to send two Join messages or send one Join message and receive one JoinIn message. The applicant introduces a counter. The counter starts from 0 and is incremented by one each time the applicant sends a Join message or receives a JoinIn message. The maximum value of the counter is 2. If the applicant receives a JoinEmpty, Empty, Leave, or LeaveAll message, the counter is reset to 0. The applicant can send messages only when the value of the counter is smaller than 2. The Join timer controls the interval at which Join messages are sent. Not every attribute has its own Join timer. A GVRP participant uses one Join timer for all attributes. The value of the Join timer must be large enough, so that all attributes can be packaged in one declaration.State Combination | Very Anxious | Anxious | Quiet | Leaving |
---|---|---|---|---|
Active Member | VA | AA | QA | LA |
Passive Member | VP | AP | QP | - |
Observer | VO | AO | QO | LO |
When a passive member wants to cancel a declaration, it can switch to the observer state. Therefore, the leaving passive member state does not exist.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display gvrp state interface GigabitEthernet0/1/17 vlan 100 GVRP state of VLAN 100 on port GigabitEthernet0/1/17 Applicant state machine : VP Registrar state machine : MT
Item | Description |
---|---|
Applicant state machine | Status of the applicant state machine. |
Registrar state machine | Status of the registrar state machine. |