© Copyright Lenovo 2017
Chapter 4: Configuration Commands
403
switchport
mode
{access|trunk|private
vlan}
Configures
the
port’s
trunking
mode:
access
allows
association
to
a
single
VLAN
trunk
automatically
adds
the
port
to
all
created
VLANs.
To
configure
a
specific
allowed
VLAN
range
for
the
port
use
the
command:
switchport
trunk
allowed
vlan
private
vlan
allows
association
to
a
private
VLAN
Default
mode
is
access
.
Note
:
When
switching
from
access
to
trunk
mode,
the
port
inherits
the
access
VLAN
as
the
trunk
Native
‐
VLAN.
Note
:
When
switching
from
trunk
to
access
mode,
the
port
inherits
the
trunk
Native
‐
VLAN
as
the
access
VLAN.
Command
mode:
Interface
port/Interface
portchannel
no
switchport
mode
private
vlan
Removes
private
‐
VLAN
mode
from
the
port.
Command
mode:
Interface
port/Interface
portchannel
[no]
switchport
private
vlan
host
association
<primary
VLAN
ID
(2
‐
4094)>
<secondary
VLAN
ID
(2
‐
4094)>
Enables
or
disables
the
private
VLAN
association
on
a
secondary
port.
Command
mode:
Interface
port/Interface
portchannel
[no]
switchport
private
vlan
mapping
<primary
VLAN
ID
(2
‐
4094)>
Enables
or
disables
private
VLAN
mapping
on
a
port
in
promiscuous
mode.
Command
mode:
Interface
port/Interface
portchannel
switchport
trunk
allowed
vlan
<VLAN
ID
(1
‐
4094)>
Configures
the
allowed
VLANs
in
trunk
mode
for
the
current
port
or
portchannel.
If
the
allowed
range
does
not
have
any
existing
VLANs,
the
lowest
‐
numbered
VLAN
is
created
and
becomes
the
Native
‐
VLAN.
If
the
allowed
range
contains
an
existing
VLAN(s),
but
the
Native
‐
VLAN
is
not
in
the
allowed
range,
the
Native
‐
VLAN
is
changed
to
the
lowest
‐
numbered
existing
VLAN.
If
a
new
VLAN
is
created
and
it
is
part
of
the
allowed
VLAN
range,
the
port
will
also
be
added
to
that
VLAN.
Command
mode:
Interface
port/Interface
portchannel
Table 179.
Port
Configuration
Options
(continued)
Command Syntax and Usage
Содержание RackSwitch G8264
Страница 20: ...20 G8264 Command Reference for ENOS 8 4 ...
Страница 32: ...32 G8264 Command Reference for ENOS 8 4 ...
Страница 212: ...212 G8264 Command Reference for ENOS 8 4 ...
Страница 322: ...322 G8264 Command Reference for ENOS 8 4 QoS Statistics ...
Страница 323: ... Copyright Lenovo 2017 Chapter 3 Statistics Commands 323 The following commands display QoS statistics ...
Страница 722: ...722 G8264 Command Reference for ENOS 8 4 ...
Страница 770: ...770 G8264 Command Reference for ENOS 8 4 ...
Страница 784: ...784 G8264 Command Reference for ENOS 8 4 ...
Страница 794: ...794 G8264 Command Reference for ENOS 8 4 ...