[ Pobierz całość w formacie PDF ]
.switchport voice vlan Configures the voice VLAN on the port.Catalyst 2900 Series XL and Catalyst 3500 Series XL Command Reference78-12155-042-235 Chapter 2 Cisco IOS Commandsswitchport trunk allowed vlanswitchport trunk allowed vlanUse the switchport trunk allowed vlan interface configuration command to control which VLANs canreceive and transmit traffic on the trunk.Use the no form of this command to reset the allowed list tothe default value.switchport trunk allowed vlan {add vlan-list | all | except vlan-list | remove vlan-list}no switchport trunk allowed vlanSyntax Description add vlan-list List of VLAN IDs to add.Valid IDs are from 1 to 1001.Separatenonconsecutive VLAN IDs with a comma and no spaces; use a hyphen todesignate a range of IDs.Do not enter leading zeros.all Add all VLAN IDs to the list.except vlan-list List of exception VLAN IDs.VLANs are added except the ones specified.Valid IDs are from 1 to 1001.Separate nonconsecutive VLAN IDs with acomma and no spaces; use a hyphen to designate a range of IDs.Do notenter leading zeros.remove vlan-list List of VLAN IDs to remove.Valid IDs are from 1 to 1001.Separatenonconsecutive VLAN IDs with a comma and no spaces; use a hyphen todesignate a range of IDs.Do not enter leading zeros.Defaults All VLANs are included in the allowed list.Command Modes Interface configurationCommand History Release Modification11.2(8)SA4 This command was first introduced.Usage Guidelines When you use the no switchport trunk allowed vlan form, the allowed list resets to the default list,which includes all VLANs.In the variable vlan-list, separate nonconsecutive VLAN IDs with a comma; use a hyphen to designatea range of IDs.You cannot remove VLANs 1 or 1002 to 1005 from the list.A trunk port cannot be a secure port or a monitor port.However, a static-access port can monitor a VLANon a trunk port.The VLAN monitored is the one associated with the static-access port.If a trunk port is identified as a network port, the trunk port becomes the network port for all the VLANsassociated with the port.Catalyst 2900 Series XL and Catalyst 3500 Series XL Command Reference78-12155-042-236 Chapter 2 Cisco IOS Commandsswitchport trunk allowed vlanExamples This example shows how to add VLANs 1, 2, 5, and 6 to the allowed list:Switch(config-if)# switchport trunk allowed vlan add 1,2,5,6You can verify the previous command by entering the show interface interface-id switchport privilegedEXEC command.Related Commands Command Descriptionswitchport mode Configures the VLAN membership mode of a port.switchport trunk encapsulation Specifies the encapsulation format on the trunk port.switchport trunk native Specifies the native VLAN for untagged traffic when in 802.1Qtrunking mode.Catalyst 2900 Series XL and Catalyst 3500 Series XL Command Reference78-12155-042-237 Chapter 2 Cisco IOS Commandsswitchport trunk encapsulationswitchport trunk encapsulationUse the switchport trunk encapsulation interface configuration command to set the encapsulationformat on the trunk port.Use the no form of this command to reset the format to the default.switchport trunk encapsulation {isl | dot1q}no switchport trunk encapsulationSyntax Description isl Set the encapsulation format to Inter-Switch Link (ISL).The switch encapsulates allreceived and transmitted packets with an ISL header.The switch filters native framesreceived from an ISL trunk port.dot1q Set the tagging format to IEEE 802.1Q.With this format, the switch supportssimultaneous tagged and untagged traffic on a port.Defaults The default encapsulation format is ISL.Command Modes Interface configurationCommand History Release Modification11.2(8)SA4 This command was first introduced.11.2(8)SA5 The dot1q keyword was added.Usage Guidelines You cannot configure one end of the trunk as an 802.1Q trunk and the other end as an ISL or nontrunkport.However, you can configure one port as an ISL trunk and another port on the same switch as a802.1Q trunk.This command is only applicable on switch platforms and port hardware that support both formats.Examples This example shows how to configure the encapsulation format to 802.1Q:Switch(config-if)# switchport trunk encapsulation dot1qYou can verify the previous command by entering the show interface interface-id switchport privilegedEXEC command.Catalyst 2900 Series XL and Catalyst 3500 Series XL Command Reference78-12155-042-238 Chapter 2 Cisco IOS Commandsswitchport trunk encapsulationRelated Commands Command Descriptionswitchport mode Configures the VLAN membership mode of a port.switchport trunk allowed vlan Controls which VLANs can receive and transmit traffic on thetrunk.switchport trunk native Specifies the native VLAN for untagged traffic when in 802.1Qtrunking mode.Catalyst 2900 Series XL and Catalyst 3500 Series XL Command Reference78-12155-042-239 Chapter 2 Cisco IOS Commandsswitchport trunk nativeswitchport trunk nativeUse the switchport trunk native interface configuration command to set the native VLAN for untaggedtraffic when in 802.1Q trunking mode.Use the no form of this command to reset the native VLAN tothe default.switchport trunk native vlan vlan-idno switchport trunk nativeSyntax Description vlan vlan-id ID of the VLAN that is sending and receiving untagged traffic on the trunkport.Valid IDs are from 1 to 1001.Do not enter leading zeros.Defaults VLAN 1 is the default native VLAN ID on the port.Command Modes Interface configurationCommand History Release Modification11.2(8)SA4 This command was first introduced.Usage Guidelines All untagged traffic received on the 802.1Q trunk port is forwarded with the native VLAN configuredfor the port.If a packet has a VLAN ID that is the same as the sending port native VLAN ID, the packet is transmitteduntagged; otherwise, the switch transmits the packet with a tag.Examples This example shows how to configure VLAN 3 as the default port to send all untagged traffic:Switch(config-if)# switchport trunk native vlan 3You can verify the previous command by entering the show interface interface-id switchport privilegedEXEC command.Related Commands Command Descriptionswitchport mode Configures the VLAN membership mode of a port.switchport trunk allowed vlan Controls which VLANs can receive and transmit traffic onthe trunk.switchport trunk encapsulation Specifies the encapsulation format on the trunk port [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • hanula1950.keep.pl