JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun Ethernet Fabric Operating System

VLAN Administration Guide

search filter icon
search icon

Document Information

Using This Documentation

Product Notes

Related Documentation

Acronyms and Abbreviations

CLI Command Modes

Feedback

Support and Accessibility

Protocol Description

Introduction

VLAN Configuration

Configuration Guidelines

Default Settings

Configuring Static VLAN Entries

Create Member Ports

Create Forbidden Ports

Viewing VLAN Information

Retrieve the VLAN Summary

Retrieve the Configuration Details for all of the VLANs on a Switch

Retrieve the Configuration Details of a particular VLAN on the Switch

Delete a VLAN

Enable VLANs

Configure a Static Unicast Entry

Configure a Static Multicast Entry

Configure Dynamic VLAN Learning

Configure Dynamic Multicast Learning

Configure Restricted VLAN Registration

Configure Restricted Group Registration

Configuring QinQ

Enable Tunneling on a Port

Enable STP Packet Tunneling

Configure QinQ

Configuring Service Classes and Expedited Traffic

Map a Priority to Traffic Class

Configuring Port Filtering

Configure the Acceptable Frame Type

Configure Ingress Filtering

Flow-Based Configuration

Flow-Based Example Topologies

Example Topolgy 1

Example Topolgy 2

Example Topolgy 3

Configuring Static Unicast and Multicast Entries

Configure Static Unicast Entry in Topology 1

Configure Static Unicast Entry in Topology 2

Configuring GVRP

Configure VGRP for Topology 1

Configure VGRP for Topology 2

Configure VLANs on the Nonroot Bridge

Configure Restricted VLAN Registration

Configure GMRP

Configure Restricted Group Registration

Classify VLANs

Create Acceptable Frame Types

Configure Ingress Filtering

Configure QinQ

This section contains an example of how to configure QinQ in SEFOS. In this example, two end devices are connected to two QinQ-enabled SEFOS switches, as shown in the following illustration. The end nodes communicate using untagged frames, as well as frames tagged with VID=50. The SEFOS switches are interconnected with VID=25.

image: Figure showing switch 1 and switch 2 connecting VLAN 25 through port 3.
  1. Configure switch 1.
    SEFOS# configure terminal
    SEFOS(config)# shutdown spanning-tree
    SEFOS(config)# set gvrp disable
    SEFOS(config)# set gmrp disable
    SEFOS(config)# shutdown garp
    SEFOS(config)# bridge-mode provider
    SEFOS(config)# vlan 25
    SEFOS(config-vlan)# port extreme-ethernet 0/3
    SEFOS(config-vlan)# exit
    SEFOS(config)# interface extreme-ethernet 0/3
    SEFOS(config-if)# switchport pvid 25
    SEFOS(config-if)# no shutdown
    SEFOS(config-if)# exit
    SEFOS(config)# interface extreme-ethernet 0/15
    SEFOS(config-if)# switchport access vlan 25
    SEFOS(config-if)# switchport acceptable-frame-type untaggedAndPrioritytagged
    SEFOS(config-if)# switchport mode access
    SEFOS(config-if)# switchport mode dot1q-tunnel
    SEFOS(config-if)# no shutdown
    SEFOS(config-if)# exit
    SEFOS(config)# spanning-tree mode mst
    SEFOS(config)# spanning-tree compatibility mst
    SEFOS(config)# exit
  2. Review the VLAN output.
    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/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/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             : 25
    Member Ports        : Ex0/3, Ex0/15
    Untagged Ports      : Ex0/15
    Forbidden Ports     : None
    Name                :
    Status              : Permanent
    ----------------------------------------------------
  3. Configure switch 2.
    SEFOS# configure terminal
    SEFOS(config)# shut spanning-tree
    SEFOS(config)# set gvrp disable
    SEFOS(config)# set gmrp disable
    SEFOS(config)# shutdown garp
    SEFOS(config)# bridge-mode provider
    SEFOS(config)# vlan 25
    SEFOS(config-vlan)# port extreme-ethernet 0/3
    SEFOS(config-vlan)# exit
    SEFOS(config)# interface extreme-ethernet 0/3
    SEFOS(config-if)# switchport pvid 25
    SEFOS(config-if)# no shutdown
    SEFOS(config-if)# exit
    SEFOS(config)# interface extreme-ethernet 0/15
    SEFOS(config-if)# switchport access vlan 25
    SEFOS(config-if)# switchport acceptable-frame-type untaggedAndPrioritytagged
    SEFOS(config-if)# switchport mode access
    SEFOS(config-if)# switchport mode dot1q-tunnel
    SEFOS(config-if)# no shutdown
    SEFOS(config-if)# exit
    SEFOS(config)# spanning-tree mode mst
    SEFOS(config)# spanning-tree compatibility mst
    SEFOS(config)# exit
  4. Review the VLAN output.
    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/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/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             : 25
    Member Ports        : Ex0/3, Ex0/15
    Untagged Ports      : Ex0/15
    Forbidden Ports     : None
    Name                :
    Status              : Permanent
    ----------------------------------------------------
  5. Connect host 1 to P15 on switch 1.
    # vconfig add eth1 50
    Added VLAN with VID == 50 to IF -:eth1:-
    # ifconfig eth1.50 38.38.50.70/24 up
    # ifconfig eth1
    eth1      Link encap:Ethernet  HWaddr 00:1B:21:53:6E:55
     inet addr:38.38.38.70  Bcast:38.38.38.255  Mask:255.255.255.0
    # ifconfig eth1.50inet6 addr: fe80::21b:21ff:fe53:6e55/64 Scope:Link
    eth1.50   Link encap:Ethernet  HWaddr 00:1B:21:53:6E:55
    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1inet addr:38.38.50.70  Bcast:38.38.50.255  Mask:255.255.255.0RX packets:5827022 errors:0 dropped:0 overruns:0 frame:0
    inet6 addr: fe80::21b:21ff:fe53:6e55/64 Scope:Link
    TX packets:757389 errors:0 dropped:0 overruns:0 carrier:0UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1collisions:0 txqueuelen:1000
    RX packets:23 errors:0 dropped:0 overruns:0 frame:0
    RX bytes:1059492521 (1010.4 MiB)  TX bytes:40934494 (39.0 MiB)TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1428 (1.3 KiB)  TX bytes:15873 (15.5 KiB)
     
     
     
  6. Configure host 2, connected to P15, on switch 2.
    # ifconfig eth5 38.38.38.160/24 up
    # ifconfig eth5
    eth5      Link encap:Ethernet  HWaddr 00:1B:21:53:6D:A1
     inet addr:38.38.38.160  Bcast:38.38.38.255  Mask:255.255.255.0
    # vconfig add eth5 50inet6 addr: fe80::21b:21ff:fe53:6da1/64 Scope:Link
    Added VLAN with VID == 50 to IF -:eth5:-
    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1# ifconfig eth5.50 38.38.50.160/24 upRX packets:219 errors:0 dropped:0 overruns:0 frame:0
    # ifconfig eth5.50TX packets:227 errors:0 dropped:0 overruns:0 carrier:0
    eth5.50   Link encap:Ethernet  HWaddr 00:1B:21:53:6D:A1
    collisions:0 txqueuelen:1000
    inet addr:38.38.50.160  Bcast:38.38.50.255  Mask:255.255.255.0inet6 addr: fe80::21b:21ff:fe53:6da1/64 Scope:Link
    RX bytes:34743 (33.9 KiB)  TX bytes:35379 (34.5 KiB)UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    RX packets:68 errors:0 dropped:0 overruns:0 frame:0
    TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:15013 (14.6 KiB)  TX bytes:9312 (9.0 KiB)
     
     
     
  7. Ping host 2 from host 1 on the untagged VLAN interface.
    # ping 38.38.50.160
    PING 38.38.50.160 (38.38.50.160) 56(84) bytes of data.
    64 bytes from 38.38.50.160: icmp_seq=1 ttl=64 time=1.46 ms
  8. Ping host 2 from host 1 on the tagged VLAN interface.
    # ping 38.38.38.160
    PING 38.38.38.160 (38.38.38.160) 56(84) bytes of data.
    64 bytes from 38.38.38.160: icmp_seq=1 ttl=64 time=1.02 ms
    64 bytes from 38.38.38.160: icmp_seq=2 ttl=64 time=0.036 ms
    64 bytes from 38.38.38.160: icmp_seq=3 ttl=64 time=0.042 ms
  9. Ping host 1 from host 2 on the untagged VLAN interface.
    # ping 38.38.38.70
    PING 38.38.38.70 (38.38.38.70) 56(84) bytes of data.
    64 bytes from 38.38.38.70: icmp_seq=1 ttl=64 time=0.080 ms
    64 bytes from 38.38.38.70: icmp_seq=2 ttl=64 time=0.041 ms
    64 bytes from 38.38.38.70: icmp_seq=3 ttl=64 time=0.033 ms
  10. Ping host 1 from host 2 on the tagged VLAN interface.
    # ping 38.38.50.70
    PING 38.38.50.70 (38.38.50.70) 56(84) bytes of data.
    64 bytes from 38.38.50.70: icmp_seq=1 ttl=64 time=0.937 ms
    64 bytes from 38.38.50.70: icmp_seq=2 ttl=64 time=0.039 ms
    64 bytes from 38.38.50.70: icmp_seq=3 ttl=64 time=0.036 ms
  11. Review the learned MAC addresses on switch 1.
    SEFOS# show mac-address-table
    Vlan    Mac Address         Type     Ports
    ----    -----------         ----     -----
    25      00:1b:21:53:6d:a1   Learnt   Ex0/3
    25      00:1b:21:53:6e:55   Learnt   Ex0/15
     
    Total Mac Addresses displayed: 2
  12. Review the configuration information on switch 1.
    SEFOS# show vlan port config port extreme-ethernet 0/15
    Vlan Port configuration table
    -------------------------------
    Port Ex0/15
    Port Vlan ID                        : 25
    Port Acceptable Frame Type          : Admit Only Untagged and Priority Tagged
    Port Ingress Filtering              : Disabled
    Port Mode                           : Access
    Port Gvrp Status                    : Disabled
    Port Gmrp Status                    : Disabled
    Port Gvrp Failed Registrations      : 2
    Gvrp last pdu origin                : 00:00:00:00:00:00
    Port Restricted Vlan Registration   : Disabled
    Port Restricted Group Registration  : Unknown
    Mac Based Support                   : Disabled
    Subnet Based Support                : Disabled
    Port-and-Protocol Based Support     : Enabled
    Default Priority                    : 0
    Tunnel Status                       : Enabled
    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
    -------------------------------------------------------
  13. Review the VLAN port configuration table.
    SEFOS# show vlan port config port extreme-ethernet 0/3
    Vlan Port configuration table
    -------------------------------
    Port Ex0/3
    Port Vlan ID                        : 25
    Port Acceptable Frame Type          : Admit All
    Port Ingress Filtering              : Disabled
    Port Mode                           : Hybrid
    Port Gvrp Status                    : Disabled
    Port Gmrp Status                    : Disabled
    Port Gvrp Failed Registrations      : 2
    Gvrp last pdu origin                : 00:00:00:00:00:00
    Port Restricted Vlan Registration   : Disabled
    Port Restricted Group Registration  : Unknown
    Mac Based Support                   : Disabled
    Subnet Based Support                : Disabled
    Port-and-Protocol Based Support     : Enabled
    Default Priority                    : 0
    Tunnel Status                       : Disabled
    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
    -------------------------------------------------------
  14. Review the learned MAC addresses on switch 2.
    SEFOS# show mac-address-table
    Vlan    Mac Address         Type     Ports
    ----    -----------         ----     -----
    25      00:1b:21:53:6d:a1   Learnt   Ex0/15
    25      00:1b:21:53:6e:55   Learnt   Ex0/3
     
    Total Mac Addresses displayed: 2
  15. Review the configuration information on switch 1.
    SEFOS# show vlan port config port extreme-ethernet 0/15
    Vlan Port configuration table
    -------------------------------
    Port Ex0/15
    Port Vlan ID                        : 25
    Port Acceptable Frame Type          : Admit Only Untagged and Priority Tagged
    Port Ingress Filtering              : Disabled
    Port Mode                           : Access
    Port Gvrp Status                    : Disabled
    Port Gmrp Status                    : Disabled
    Port Gvrp Failed Registrations      : 2
    Gvrp last pdu origin                : 00:00:00:00:00:00
    Port Restricted Vlan Registration   : Disabled
    Port Restricted Group Registration  : Unknown
    Mac Based Support                   : Disabled
    Subnet Based Support                : Disabled
    Port-and-Protocol Based Support     : Enabled
    Default Priority                    : 0
    Tunnel Status                       : Enabled
    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
    -------------------------------------------------------
  16. Review the VLAN port configuration table.
    SEFOS# show vlan port config port extreme-ethernet 0/3
    Vlan Port configuration table
    -------------------------------
    Port Ex0/3
    Port Vlan ID                        : 25
    Port Acceptable Frame Type          : Admit All
    Port Ingress Filtering              : Disabled
    Port Mode                           : Hybrid
    Port Gvrp Status                    : Disabled
    Port Gmrp Status                    : Disabled
    Port Gvrp Failed Registrations      : 2
    Gvrp last pdu origin                : 00:00:00:00:00:00
    Port Restricted Vlan Registration   : Disabled
    Port Restricted Group Registration  : Unknown
    Mac Based Support                   : Disabled
    Subnet Based Support                : Disabled
    Port-and-Protocol Based Support     : Enabled
    Default Priority                    : 0
    Tunnel Status                       : Disabled
    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
    -------------------------------------------------------