Brocade Network OS Command Reference v4.1.0 User Manual

Page 1310

Advertising
background image

1272

Network OS Command Reference

53-1003115-01

switchport access

2

The following examples illustrate configuration with service or transport VFs in a Virtual Fabrics
context.

In global configuration mode, establish a mac-group:

switch(config)# mac-group 1

switch(config-mac-group 1)# mac 0002.0002.0002

switch(config-mac-group 1)# mac 0005.0005.0005

switch(config-mac-group 1)# mac 0008.0008.0008

In interface configuration mode, ensure that the switchport mode is set to access:

switch(config)# int te 2/0/1

switch(config-if-te-2/0/1)# switchport mode access

Set the default access VLAN (the default is 1) to 5000 (a classified VLAN):

switch(config-if-te-2/0/1)# switchport access vlan 5000

Classify an 802.1Q VLAN by means of a source MAC address:

switch(config-if-te-2/0/1)# switchport access vlan 200 mac 0002.0002.0002

Configure a classified VLAN (> 4095) on the same interface with a MAC address. Frames that do
not match the source MAC addresses of 0002.0002.0002 or 0004.0004.0004 are classified into
VLAN 5000 (the access VLAN for all untagged frames that do not have MAC address
classifications.

switch(config-if-te-2/0/1)# switchport access vlan 6000 mac 0004.0004.0004

The following errors occur because a MAC address can be classified to only one VLAN on the same
interface.

switch(config-if-te-2/0/1)# switchport access vlan 7000 mac-group 1

switch(config-if-te-2/0/1)# %Error: Mac-address/Mac-group is overlapping with

another Mac-address/Mac-group configuration on the same port.

switch(config-if-te-3/0/1)# switchport mode access

switch(config-if-te-3/0/1)# switchport access vlan 7000 mac-group 1

switch(config-if-te-3/0/1)# switchport access vlan mac 8000 0008.0008.0008

switch(config-if-te-3/0/1)# %Error: Mac-address/Mac-group is overlapping with

another Mac-address/Mac-group configuration on the same port.

See Also

interface, mac-group, rspan-vlan, show vlan, switchport mode, switchport trunk allowed vlan
rspan-vlan, sw
itchport

Advertising