Z X E)MAX X ¡r¡;¿ Donde:
2.3 Análisis técnico
GVRP is abbreviations of GARP VLAN Registration Protocol. It is a kind of application of GARP, based on GARP working mechanism to maintain VLAN dynamic register information in OLT and transfer it to other OLT. All OLTs that support GVRP can receive VLAN register information from other OLTs and dynamically upgrade local VLAN register information which includes: current VLAN members, and by which interface can reach VLAN members. And all OLTs supported GVRP can transfer local VLAN register information to other OLTs to make the consistency of the VLAN information of devices which support GVRP. VLAN register information transferred by GVRP includes static register information of local manual configuration and the dynamic register information of other OLT.
49
4.4.2
Enable GVRP
GVRP has two switches, one is under global configuration mode, and the other is under interface configuration mode. If you want to enable GVRP, these two switches should be in enable state.
By default, global GVRP and interface GVRP are disabled. It is important to note that, the GVRP can only be enabled on trunk port.
Enable GVRP
operation command remark
Enter global configuration mode configure terminal required
Enable global configuration
GVRP gvrp required
Disable global configuration
GVRP No gvrp required
Enter port configuration mode interface ethernet interface-num
Enable GVRP ( no) gvrp
required,
Use “no
command” to disable GVRP 4.4.3
Configure the VLAN which Needs GVRP to Forward
The VLAN registration information transmitted by GVRP can be the local static VLAN or the VLAN learned via GVRP protocol. Moreover, this vlan can be transmitted via GVRP only after the administrator specified.
Configure the VLAN which Needs GVRP to forward
operation command remark
Enter global configuration mode configure terminal Configure the VLAN which needs
GVRP to forward (no) garp permit vlan vlan-list
required,
Use “no
command” to cancel the configuration 4.4.4
Configure the VLAN which Forbids the Port to Forward
Configure the VLAN which Needs GVRP to forward
operation command remark
Enter port configuration mode interface ethernet port_num -
Configure the vlan which forbids port transmission
garp forbid vlan id optional Configure the vlan which allows port
transmission
no garp forbid vlan id optional
4.4.5
GVRP Display and Debugging
After finishing the above configurations, you can check the configuration via the following commands.
GVRP Display and Debugging
operation command remark
Display GVRP state (enable/disable) show gvrp
It is executable in any modes. Display the interface GVRP state
(enable/disable) show gvrp interface [ethernet device/slot/port] Display the VLAN which needs to be
50
4.4.6
GVRP Configuration Example
1、Network requirements
Configuration example of GVRP service
As shown in the figure, OLT 1 and OLT 3 forward their static VLAN information to OLT 2 via GVRP protocol packet. OLT 2 transmits itself static VLAN and the VLAN that it learns via GVRP. At last, the VLAN information in OLT 1, OLT 2 and OLT 3 can be synchronized.
2、Configuration Roadmap:
1). Enable OLT 1 GVRP, and then distribute VLAN information announcement 2). Enable OLT 2 GVRP, and then distribute VLAN information announcement 3). Enable OLT 3 GVRP, and then distribute VLAN information announcement
3、Configuration steps
OptiWay configurations OptiWay(config)# vlan 2-4
OptiWay(config-if-vlan)#switchport ethernet 0/1 Add VLAN port successfully.
OptiWay (config-if-vlan)#interface e 0/1
OptiWay (config-if-ethernet-0/1)#switchport mode trunk OptiWay (config-if-ethernet-0/1)#exit
OptiWay (config)#gvrp / configure GVRP Turn on GVRP successfully.
OptiWay (config)#garp permit vlan 2-4 OptiWay (config)#interface e 0/1 OptiWay (config-if-ethernet-0/1)#gvrp OptiWay (config-if-ethernet-0/1)#exit
OptiWay (config)#show gvrp // verify GVRP configuration GVRP state : enable
OptiWay (config)#show gvrp interface ethernet 0/1 port GVRP status fixed-vlan forbidden-vlan e0/1 enable 1-4
Total entries: 1.
OptiWay (config)#show garp permit vlan VLAN 1 is Garp default permit VLAN Other Garp permit VLAN :
2-4
OptiWay configurations OptiWay (config)#vlan 5-6
51
OptiWay (config-if-vlan)# switchport ethernet 0/2 to ethernet 0/3 Add VLAN port successfully..
OptiWay (config-if-vlan)#exit
OptiWay (config)#interface range ethernet 0/2 to ethernet 0/3 OptiWay (config-if-range)# switchport mode trunk
OptiWay (config-if-range)#exit
OptiWay (config)#gvrp // Configure gvrp Turn on GVRP successfully
OptiWay (config)#interface range ethernet 0/2 to ethernet 0/3 OptiWay (config-if-range)#gvrp.
OptiWay (config-if-range)#exit OptiWay (config)#garp permit vlan 5-6
OptiWay (config)#show gvrp // verify gvrp configurations GVRP state : enable
OptiWay (config)#show gvrp interface ethernet 0/2 ethernet 0/3 port GVRP status fixed-vlan forbidden-vlan e0/2 enable 1,5-6
e0/3 enable 1,5-6 Total entries: 2.
OptiWay (config)#show garp permit vlan VLAN 1 is Garp default permit VLAN Other Garp permit VLAN : 5-6 OptiWay configurations OptiWay (config)#vlan 7-8
OptiWay (config-if-vlan)#switchport ethernet 0/4 Add VLAN port successfully.
OptiWay (config-if-vlan)#interface e 0/4
OptiWay (config-if-ethernet-0/4)#switchport mode trunk OptiWay (config-if-ethernet-0/4)#exit
OptiWay (config)#gvrp // Configure gvrp Turn on GVRP successfully.
OptiWay (config)#interface e 0/4 OptiWay (config-if-ethernet-0/4)#gvrp OptiWay (config-if-ethernet-0/4)#exit OptiWay (config)#garp permit vlan 7-8
OptiWay (config)#show gvrp // verify gvrp configurations GVRP state : enable
OptiWay (config)#show gvrp interface ethernet 0/4 port GVRP status fixed-vlan forbidden-vlan e0/4 enable 1,7-8
Total entries: 1.
OptiWay (config)#show garp permit vlan VLAN 1 is Garp default permit VLAN Other Garp permit VLAN : 7-8
After finishing the configuration, you can use the command of “show vlan” to check the VLAN registration information learned via GVRP.
Check the vlan information on OLT 1, you can find that the vlan 5-8 is learned via GVRP. OptiWay (config)#show vlan
show VLAN information VLAN ID : 1 VLAN status : static
VLAN member : e0/1-e0/2/2 Static tagged ports : e0/1
Static untagged Ports : e0/2-e0/2/2 Dynamic tagged ports :
52
show VLAN information VLAN ID : 2 VLAN status : static VLAN member : e0/1. Static tagged ports : e0/1. Static untagged Ports : Dynamic tagged ports : show VLAN information VLAN ID : 3 VLAN status : static VLAN member : e0/1. Static tagged ports : e0/1. Static untagged Ports : Dynamic tagged ports : show VLAN information VLAN ID : 4 VLAN status : static VLAN member : e0/1. Static tagged ports : e0/1. Static untagged Ports : Dynamic tagged ports : show VLAN information VLAN ID : 5 VLAN status : dynamic VLAN member : e0/1 Static tagged ports : Static untagged Ports : Dynamic tagged ports : e0/1 show VLAN information VLAN ID : 6 VLAN status : dynamic VLAN member : e0/1 Static tagged ports : Static untagged Ports : Dynamic tagged ports : e0/1 show VLAN information VLAN ID : 7 VLAN status : dynamic VLAN member : e0/1 Static tagged ports : Static untagged Ports : Dynamic tagged ports : e0/1 show VLAN information VLAN ID : 8 VLAN status : dynamic VLAN member : e0/1 Static tagged ports : Static untagged Ports : Dynamic tagged ports : e0/1 Total entries: 8 vlan.
53