Switchport – Brocade Mobility RFS7000-GR Controller CLI Reference Guide (Supporting software release 4.1.0.0-040GR and later) User Manual

Page 347

Advertising
background image

Brocade Mobility RFS7000-GR Controller CLI Reference Guide

333

53-1001945-01

Interface Config commands

12

switchport

Interface Config commands

Use this command to set switching mode characteristics for the selected interface. The mode can
be either access or trunk.

NOTE

A

ge

interface configured as a trunk with all VLAN's allowed looses its configuration and has only

VLAN 1 set to allowed.

Syntax

switchport(access|mode|trunk)

switchport access vlan

<1-4094>

switchport mode(

access|trunk)

switchport trunk(allowed|native)

switchport trunk allowed vlan(add|none|remove)<

VLAN_ID>

switchport trunk native(tagged|vlan

<1-4094>)

Parameters

Usage Guidelines

The interface ge1-ge4 can be configured either as trunk or in access mode. An interface configured
as trunk allows packets from the given list of VLANs added to the trunk. Interfaces configured as
access allow packets only from the native VLANs.

access (vlan) <1-4094>

Configure the access VLAN of an access-mode port.

vlan <1-4094> – Sets the access VLAN when an interface is in access mode.

mode (access|trunk)

Sets the interface’s switching mode to access or trunk mode. The switching mode
can only be used on physical (layer2) interfaces.

access – If

access mode

is selected, the access VLAN will be automatically

set to VLAN1. In this mode, only untagged packets in the access VLAN (vlan1)
will be accepted on this port. All tagged packets will be discarded.

trunk – If

trunk

mode is selected tagged packets in all VLANs will be

accepted. The native VLAN will be automatically set to VLAN1. Untagged
packets will be placed in the native VLAN by the switch. Outgoing packets in the
native VLAN will be sent out untagged.

trunk

is the default mode for both ports.

trunk (allowed|native)

Sets trunking mode characteristics.

allowed – Configures trunk characteristics when the port is in trunk-mode.

native – Configures the native VLAN ID of the trunk-mode port.

trunk allowed (vlan)
(add|none|remove)
<VLAN_ID>

Configures trunk characteristics when the port is in trunk-mode.

vlan – Sets the allowed VLANs.

add – Adds a VLANs to the current list.

none – Restricts VLANs to Xmit/Rx through the Layer2 interface.

remove – Removes VLANs from the current list.

VLAN_ID – VLAN_ID’s to be added or removed. This can be either a range of
vlans (e.g. 55-60) or a list of comma separated vlan ids (e.g. 35,41).

trunk native (tagged | vlan
<1-4094>)

Configures the native VLAN ID of the trunk-mode port.

tagged – Sets the native VLAN for classifying untagged traffic.

vlan <1-4094> – Sets the native VLAN for classifying untagged traffic when the
interface is in trunking mode.

Advertising