VLAN Commands
823
It is possible to exclude VLANs that have not yet been created from trunk
port membership.
Example
console(config-if-Gi1/0/1)#switchport trunk allowed vlan 1-1024
console(config-if-Gi1/0/1)#switchport trunk allowed vlan except
1,2,3,5,7,11,13
vlan
Use the
vlan
command in Global Configuration mode to configure a VLAN.
To delete a VLAN, use the
no
form of this command.
Syntax
vlan
{
vlan–id
|
vlan–range
}
no vlan
{
vlan–id
|
vlan–range
}
•
vlan–id
—A valid VLAN ID. (Range: 1–4093)
•
vlan–range
—A list of valid VLAN IDs. List separate, non-consecutive
VLAN IDs separated by commas (without spaces). Use a hyphen to
designate a range of IDs. (Range: 1–4093)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration (Config)
User Guidelines
Deleting the VLAN assigned as the PVID on an access port will cause VLAN 1
to be assigned as the PVID for the access port. Deleting the VLAN assigned as
the native VLAN for a trunk port will cause the trunk port to discard
untagged frames received on the port.. Creating a VLAN adds it to the
allowed list for all trunk ports except those where it is specifically excluded.
Ports and port channels can be configured with VLANs that do not exist.
They will not forward traffic on nonexisting VLANs.
2CSNXXX_SWUM200.book Page 823 Tuesday, December 10, 2013 1:22 PM
Содержание Networking 2048
Страница 82: ...Contents 82 ...
Страница 216: ...216 Layer 2 Switching Commands ...
Страница 248: ...248 AAA Commands ...
Страница 256: ...256 Administrative Profiles Commands ...
Страница 278: ...278 ACL Commands ...
Страница 296: ...296 Address Table Commands ...
Страница 344: ...344 DHCP Snooping Commands ...
Страница 356: ...356 Dynamic ARP Inspection Commands 12 Enabled Disabled ...
Страница 414: ...414 Ethernet Configuration Commands ...
Страница 465: ...IGMP Snooping Commands 465 Example console config ip igmp snooping vlan 10 mrouter interface Gi1 0 2 ...
Страница 466: ...466 IGMP Snooping Commands ...
Страница 476: ...476 IGMP Snooping Querier Commands ...
Страница 508: ...508 IPv6 Access List Commands ...
Страница 520: ...520 IPv6 MLD Snooping Commands ...
Страница 528: ...528 IPv6 MLD Snooping Querier Commands ...
Страница 550: ...550 Link Dependency Commands ...
Страница 574: ...574 LLDP Commands ...
Страница 606: ...606 Port Channel Commands ...
Страница 626: ...626 MLAG ...
Страница 634: ...634 Port Monitor Commands ...
Страница 728: ...728 RADIUS Commands ...
Страница 780: ...780 TACACS Commands ...
Страница 790: ...790 UDLD Commands User Guidelines This command has no user guidelines ...
Страница 840: ...840 Voice VLAN Commands ...
Страница 878: ...878 802 1x Commands ...
Страница 880: ...880 Data Center Technology Commands ...
Страница 915: ...Priority Flow Control Commands 915 Te1 0 23 0 2 4 7 3 Active Te1 0 24 0 7 Inactive ...
Страница 916: ...916 Priority Flow Control Commands ...
Страница 918: ...918 Layer 3 Commands ...
Страница 958: ...958 DHCP Server and Relay Agent Commands ...
Страница 994: ...994 DHCPv6 Snooping Commands ...
Страница 1002: ...1002 DVMRP Commands ...
Страница 1006: ...1006 GMRP Commands ...
Страница 1028: ...1028 IGMP Proxy Commands ...
Страница 1080: ...1080 IP Routing Commands ...
Страница 1131: ...IPv6 Routing Commands 1131 2 2001 2 12 msec 13 msec 12 msec 3 2001 2 14 msec 9 msec 11 msec ...
Страница 1132: ...1132 IPv6 Routing Commands ...
Страница 1136: ...1136 Loopback Interface Commands ...
Страница 1165: ...Multicast Commands 1165 ...
Страница 1166: ...1166 Multicast Commands ...
Страница 1188: ...1188 IPv6 Multicast Commands ...
Страница 1189: ...IPv6 Multicast Commands 1189 ...
Страница 1190: ...1190 IPv6 Multicast Commands ...
Страница 1276: ...1276 OSPF Commands console config router timers spf 20 30 ...
Страница 1356: ...1356 Routing Information Protocol Commands ...
Страница 1362: ...1362 Tunnel Interface Commands ...
Страница 1384: ...1384 Virtual Router Redundancy Protocol Commands ...
Страница 1386: ...1386 Utility Commands ...
Страница 1426: ...1426 Captive Portal Commands ...
Страница 1450: ...1450 Clock Commands ...
Страница 1456: ...1456 Command Line Configuration Scripting Commands ...
Страница 1476: ...1476 Configuration and Image File Commands ...
Страница 1520: ...1520 Password Management Commands ...
Страница 1538: ...1538 Power Over Ethernet Commands Example console config show power inline firmware version Unit Firmware Version 1 248_48 ...
Страница 1564: ...1564 SDM Templates Commands ...
Страница 1596: ...1596 Serviceability Tracing Packet Commands ...
Страница 1608: ...1608 Sflow Commands ...
Страница 1634: ...1634 SNMP Commands ...
Страница 1646: ...1646 SSH Commands IP Address User Name Idle Time SessionTime 10 240 1 122 John 00 00 00 00 00 08 ...
Страница 1668: ...1668 Syslog Commands ...
Страница 1744: ...1744 System Management Commands ...
Страница 1750: ...1750 Terminal Length Commands ...
Страница 1762: ...1762 USB Flash Drive Commands ...
Страница 1786: ...1786 Web Server Commands ...
Страница 1821: ...W write 1474 write core 1593 ...
Страница 1822: ...www dell com support dell com Printed in the U S A ...
Страница 1823: ......