
Chapter 21
| VLAN Commands
Configuring VLAN Interfaces
– 566 –
switchport allowed
vlan
This command configures VLAN groups on the selected interface. Use the
no
form
to restore the default.
Syntax
switchport allowed vlan
{
vlan-list
|
add
vlan-list
[
tagged
|
untagged
] |
remove
vlan-list
}
no switchport allowed vlan
vlan-list
- If a VLAN list is entered without using the
add
option, the
interface is assigned to the specified VLANs, and membership in all
previous VLANs is removed. The interface is added as a untagged member
if
is set to access. Packets are sent as are (that is, with or
without tags) if switchport mode is set to trunk or hybrid.
Separate nonconsecutive VLAN identifiers with a comma and no spaces;
use a hyphen to designate a range of IDs. (Range: 1-4094).
add
vlan-list
- List of VLAN identifiers to add. When the
add
option is used,
the interface is assigned to the specified VLANs, and membership in all
previous VLANs is retained.
remove
vlan-list
- List of VLAN identifiers to remove.
Default Setting
All ports are assigned to VLAN 1 by default.
The default frame type is untagged.
Command Mode
Interface Configuration (Ethernet, Port Channel)
Command Usage
◆
If a port or trunk has switchport mode set to
access
, then only one VLAN can be
added with this command. If a VLAN list is specified, only the last VLAN in the
list will be added to the interface.
◆
A port, or a trunk with switchport mode set to
hybrid
, must be assigned to at
least one VLAN as untagged.
◆
If a trunk has switchport mode set to
trunk
(i.e., 1Q Trunk), then you can only
assign an interface to VLAN groups as a tagged member.
◆
Frames are always tagged within the switch. The tagged/untagged parameter
used when adding a VLAN to an interface tells the switch whether to keep or
remove the tag from a frame on egress.
◆
If none of the intermediate network devices nor the host at the other end of the
connection supports VLANs, the interface should be added to these VLANs as
an untagged member. Otherwise, it is only necessary to add at most one VLAN
as untagged, and this should correspond to the native VLAN for the interface.
Summary of Contents for ECS4120-28F
Page 36: ...Contents 36...
Page 38: ...Figures 38...
Page 46: ...Section I Getting Started 46...
Page 70: ...Chapter 1 Initial Switch Configuration Setting the System Clock 70...
Page 86: ...Chapter 2 Using the Command Line Interface CLI Command Groups 86...
Page 202: ...Chapter 5 SNMP Commands Additional Trap Commands 202...
Page 210: ...Chapter 6 Remote Monitoring Commands 210...
Page 216: ...Chapter 7 Flow Sampling Commands 216...
Page 278: ...Chapter 8 Authentication Commands PPPoE Intermediate Agent 278...
Page 360: ...Chapter 9 General Security Measures Port based Traffic Segmentation 360...
Page 384: ...Chapter 10 Access Control Lists ACL Information 384...
Page 424: ...Chapter 11 Interface Commands Power Savings 424...
Page 446: ...Chapter 13 Power over Ethernet Commands 446...
Page 456: ...Chapter 14 Port Mirroring Commands RSPAN Mirroring Commands 456...
Page 488: ...Chapter 17 UniDirectional Link Detection Commands 488...
Page 494: ...Chapter 18 Address Table Commands 494...
Page 554: ...Chapter 20 ERPS Commands 554...
Page 620: ...Chapter 22 Class of Service Commands Priority Commands Layer 3 and 4 620...
Page 638: ...Chapter 23 Quality of Service Commands 638...
Page 772: ...Chapter 25 LLDP Commands 772...
Page 814: ...Chapter 26 CFM Commands Delay Measure Operations 814...
Page 836: ...Chapter 28 Domain Name Service Commands 836...
Page 848: ...Chapter 29 DHCP Commands DHCP Relay Option 82 848...
Page 902: ...Section III Appendices 902...
Page 916: ...Glossary 916...
Page 926: ...CLI Commands 926...
Page 937: ......
Page 938: ...E092017 CS R02...