Skip Navigation Links
Exit Print View
| Sun Ethernet Fabric Operating System ### VLAN Administration Guide

Search Scope:

- This Document
- Entire Library

## Configure Dynamic VLAN Learning

By default, GVRP is enabled globally and can be enabled or disabled on a per-port basis. If GVRP is disabled globally in the switch, use the `set gvrp enable` command to enable GVRP globally, or use the `set port gvrp interface_id enable` command to enable GVRP on an interface. If GVRP is disabled globally or on a particular port, then dynamic learning will not take place globally or on that specified port. By default, all of the ports in a switch are created (but only port 0/1 is up) and added as member ports of default VLAN, vlan 1. In switch A, P1 is configured to be a member port of VLAN 2. See Default Settings for the example topology for this procedure.

1. Review the current global GVRP status.

       SEFOS# show vlan device info
       Vlan device configurations
       --------------------------
       Vlan Status                       : Enabled
       Vlan Oper status                  : Enabled
       Gvrp status                       : Enabled
       Gmrp status                       : Enabled
       Gvrp Oper status                  : Enabled
       Gmrp Oper status                  : Enabled
       Mac-Vlan Status                   : Disabled
       Subnet-Vlan Status                : Disabled
       Protocol-Vlan Status              : Enabled
       Bridge Mode                       : Customer Bridge
       Base-Bridge Mode                  : Vlan Aware Bridge
       Traffic Classes                   : Enabled
       Vlan Operational Learning Mode    : IVL
       Version number                    : 1
       Max Vlan id                       : 4094
       Max supported vlans               : 4094
       Unicast mac learning limit        : 16334

2. Review the current port GVRP value.

       SEFOS# show vlan port config port extreme-ethernet 0/1
       Vlan Port configuration table
       --------------------------
       Port Ex0/1
       Port Vlan ID                        : 1
       Port Acceptable Frame Type          : Admit All
       Port Ingress Filtering              : Disabled
       Port Mode                           : Hybrid
       Port Gvrp Status                    : Enabled
       Port Gmrp Status                    : Enabled
       Port Gvrp Failed Registrations      : 0
       Gvrp last pdu origin                : 00:00:00:00:00:00
       Port Restricted Vlan Registration   : Disabled
       Port Restricted Group Registration  : Disabled
       Mac Based Support                   : Disabled
       Subnet Based Support                : Disabled
       Port-and-Protocol Based Support     : Enabled
       Default Priority                    : 0
       Dot1x Protocol Tunnel Status        : Peer
       LACP Protocol Tunnel Status         : Peer
       Spanning Tree Tunnel Status         : Peer
       GVRP Protocol Tunnel Status         : Peer
       GMRP Protocol Tunnel Status         : Peer
       IGMP Protocol Tunnel Status         : Peer
       Filtering Utility Criteria          : Default
       Port Protected Status               : Disabled

   If the switch has not been rebooted, the global or port GVRP status might be disabled.

3. If you need to activate the global or port GVRP status, use the following commands.

       SEFOS# config
       SEFOS(config)# set gvrp enable
       SEFOS(config)# exit

4. Enable port GVRP.

       SEFOS# config
       SEFOS(config)# set port gvrp extreme-ethernet 0/3 enable
       SEFOS(config)# exit

5. Enable the interface (`0/3` in this example) in switch A.

       SEFOS# configure terminal
       SEFOS(config)# interface extreme-ethernet 0/3
       SEFOS(config-if)# no shutdown
       SEFOS(config-if)# exit

6. Configure VLAN 2 in switch A.

       SEFOS(config)# vlan 2
       SEFOS(config-vlan)# ports extreme-ethernet 0/3 untagged extreme-ethernet 0/3
       SEFOS(config-vlan)# end

7. Review the VLAN information in switch A (assuming that you are logged in to switch A).

       SEFOS# show vlan
       VLAN database
       -------------
       VLAN ID             : 1
       Member Ports        : Ex0/1, Ex0/2, Ex0/3, Ex0/4, Ex0/5, Ex0/6
       Ex0/7, Ex0/8, Ex0/9, Ex0/10, Ex0/11, Ex0/12
       Ex0/13, Ex0/14, Ex0/15, Ex0/16, Ex0/17, Ex0/18
       Ex0/19, Ex0/20, Ex0/21, Ex0/22, Ex0/23, Ex0/24
       Untagged Ports      : Ex0/1, Ex0/2, Ex0/3, Ex0/4, Ex0/5, Ex0/6
       Ex0/7, Ex0/8, Ex0/9, Ex0/10, Ex0/11, Ex0/12
       Ex0/13, Ex0/14, Ex0/15, Ex0/16, Ex0/17, Ex0/18
       Ex0/19, Ex0/20, Ex0/21, Ex0/22, Ex0/23, Ex0/24
       Forbidden Ports     : None
       Name                :
       Status              : Permanent
       ----------------------------------------------------
       VLAN ID             : 2
       Member Ports        : Ex0/3
       Untagged Ports      : Ex0/3
       Forbidden Ports     : None
       Name                :
       Status              : Permanent

8. Review the output in switch B (assuming that you are already logged in to switch B).

       SEFOS# show vlan
       VLAN database
       -------------
       VLAN ID             : 1
       Member Ports        : Ex0/1, Ex0/2, Ex0/3, Ex0/4, Ex0/5, Ex0/6
       Ex0/7, Ex0/8, Ex0/9, Ex0/10, Ex0/11, Ex0/12
       Ex0/13, Ex0/14, Ex0/15, Ex0/16, Ex0/17, Ex0/18
       Ex0/19, Ex0/20, Ex0/21, Ex0/22, Ex0/23, Ex0/24
       Untagged Ports      : Ex0/1, Ex0/2, Ex0/3, Ex0/4, Ex0/5, Ex0/6
       Ex0/7, Ex0/8, Ex0/9, Ex0/10, Ex0/11, Ex0/12
       Ex0/13, Ex0/14, Ex0/15, Ex0/16, Ex0/17, Ex0/18
       Ex0/19, Ex0/20, Ex0/21, Ex0/22, Ex0/23, Ex0/24
       Forbidden Ports     : None
       Name                :
       Status              : Permanent
       ----------------------------------------------------
       VLAN ID             : 2
       Member Ports        : Ex0/3
       Untagged Ports      : None
       Forbidden Ports     : None
       Name                :
       Status              : Dynamic Gvrp

Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices |