Cisco Systems WSC2960X48TDL manual Switch Virtual Interfaces, Trunk Ports

Page 27

Configuring Interface Characteristics

Interface Types

the VLAN membership of the port is discovered. Dynamic access ports on the switch are assigned to a VLAN by a VLAN Membership Policy Server (VMPS). The VMPS can be a Catalyst 6500 series switch; the switch cannot be a VMPS server.

You can also configure an access port with an attached Cisco IP Phone to use one VLAN for voice traffic and another VLAN for data traffic from a device attached to the phone.

Trunk Ports

A trunk port carries the traffic of multiple VLANs and by default is a member of all VLANs in the VLAN database.

The switch supports only IEEE 802.1Q trunk ports. An IEEE 802.1Q trunk port supports simultaneous tagged and untagged traffic. An IEEE 802.1Q trunk port is assigned a default port VLAN ID (PVID), and all untagged traffic travels on the port default PVID. All untagged traffic and tagged traffic with a NULL VLAN ID are assumed to belong to the port default PVID. A packet with a VLAN ID equal to the outgoing port default PVID is sent untagged. All other traffic is sent with a VLAN tag.

Although by default, a trunk port is a member of every VLAN known to the VTP, you can limit VLAN membership by configuring an allowed list of VLANs for each trunk port. The list of allowed VLANs does not affect any other port but the associated trunk port. By default, all possible VLANs (VLAN ID 1 to 4094) are in the allowed list. A trunk port can become a member of a VLAN only if VTP knows of the VLAN and if the VLAN is in the enabled state. If VTP learns of a new, enabled VLAN and the VLAN is in the allowed list for a trunk port, the trunk port automatically becomes a member of that VLAN and traffic is forwarded to and from the trunk port for that VLAN. If VTP learns of a new, enabled VLAN that is not in the allowed list for a trunk port, the port does not become a member of the VLAN, and no traffic for the VLAN is forwarded to or from the port.

Switch Virtual Interfaces

A switch virtual interface (SVI) represents a VLAN of switch ports as one interface to the routing or bridging function in the system. You can associate only one SVI with a VLAN. You configure an SVI for a VLAN only to route between VLANs or to provide IP host connectivity to the switch. By default, an SVI is created for the default VLAN (VLAN 1) to permit remote switch administration. Additional SVIs must be explicitly configured.

Note You cannot delete interface VLAN 1.

SVIs provide IP host connectivity only to the system.

Although the switch stack or switch supports a total of 1005 VLANs and SVIs, the interrelationship between the number of SVIs and routed ports and the number of other features being configured might impact CPU performance because of hardware limitations.

SVIs are created the first time that you enter the vlan interface configuration command for a VLAN interface. The VLAN corresponds to the VLAN tag associated with data frames on an ISL or IEEE 802.1Q encapsulated trunk or the VLAN ID configured for an access port. Configure a VLAN interface for each VLAN for which you want to route traffic, and assign it an IP address.

Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX

OL-29034-01

15

Image 27
Contents First Published July 10 Americas HeadquartersPage N T E N T S Contents Configuring Auto-MDIX41 Configuring System MTU Configuring EEE Viii Document Conventions Convention DescriptionBold font Vertical bars ElementReader Alert Conventions Related Documentation Obtaining Documentation and Submitting a Service RequestXii Information About Using the Command-Line Interface Command ModesThis chapter contains the following topics Ctrl-Z Mode Access Method Prompt Exit Method About This ModeConfigure QuitHelp Using the Help SystemCommand or Action Purpose Step ModeUnderstanding Abbreviated Commands No and default Forms of CommandsCLI Error Messages Error Message Meaning How to Use the CLI to Configure FeaturesConfiguration Logging Configuring the Command HistoryChanging the Command History Buffer Size Recalling CommandsCommand or Action Terminal no history Enabling and Disabling Editing FeaturesDisabling the Command History Feature Privileged Exec modeEditing Commands through Keystrokes Editing Command Lines That Wrap Show more command begin include exclude Searching and Filtering Output of show and more CommandsAccess-list Show more command begin include exclude regular-expressionCommand or Action Example OL-29034-01 This module contains the following topics Finding Feature InformationInformation About Configuring Interface Characteristics Interface TypesPort-Based VLANs Switch PortsTrunk Ports Switch Virtual InterfacesEtherChannel Port Groups Power over Ethernet PortsUSB Mini-Type B Console Port Using the Switch USB PortsUSB Type a Ports Interface ConnectionsConnecting VLANs with the Switch Interface Configuration ModeLayer 2 or switching mode switchport command VLANs 1 Default Ethernet Interface ConfigurationFeature Default SettingSpeed and Duplex Configuration Guidelines Interface Speed and Duplex ModeIeee 802.3x Flow Control Either gigabitethernet 1/0/1 How to Configure Interface CharacteristicsConfiguring Interfaces Procedure Gigabit Ethernet port 1 on switch 1 is selectedShow interfaces interface-id description Configure terminalAdding a Description for an Interface Description stringConfiguring a Range of Interfaces Configure terminal Enters global configuration modeInterface range port-rangemacro Configuring and Using Interface Range Macros Verifies the configuration of the interfaces in the rangeDefine interface-range macroname Configuring Ethernet Interfaces Setting the Interface Speed and Duplex ParametersInterface range macro macroname Nonegotiate Speed 10 100 1000 auto 10Command or Action Purpose Configuring Ieee 802.3x Flow ControlConfiguring SVI Autostate Exclude End Returns to privileged Exec modeEnter interface configuration mode Interface vlan vlan-id gigabitethernet interface-id Switchport autostate excludeShutting Down and Restarting the Interface An SVI line state up or downShutdown Shuts down an interface Configuring the Console Media TypeThis configuration applies to all switches in a stack Configure terminal Line console Media-type rj45 EndConfigure terminal Enters the global configuration mode Configuring the USB Inactivity TimeoutShow interfaces interface-id switchport Monitoring Interface CharacteristicsCommand Purpose Show interfaces interface-id status err-disabledClearing and Resetting Interfaces and Counters Adding a Description to an Interface Example Configuration Examples for Interface CharacteristicsIdentifying Interfaces on a Stack-Capable Switch Examples Configuring a Range of Interfaces ExamplesConfiguring and Using Interface Range Macros Examples Setting Interface Speed and Duplex Mode ExampleConfiguring the Console Media Type Example None Configuring the USB Inactivity Timeout ExampleTo disable the configuration, use these commands Standards and RFCs Standard/RFCCisco IOS Release 15.02EX This feature was introduced Technical Assistance Description LinkRelease Modification OL-29034-01 Prerequisites for Auto-MDIX Restrictions for Auto-MDIXThis module contains the following sections Auto-MDIX on an Interface Information about Configuring Auto-MDIXHow to Configure Auto-MDIX Configuring Auto-MDIX on an InterfaceMonitoring Auto-MDIX This example shows how to enable auto-MDIX on a port Example for Configuring Auto-MDIXInformation about the Ethernet Management Port Prerequisites for Ethernet Management PortsSupported Features on the Ethernet Management Port Ethernet Management Port Direct Connection to a SwitchDisabling and Enabling the Ethernet Management Port How to Configure the Ethernet Management PortWhat to Do Next Additional ReferencesDocument Title Bootloader commandsRelated Topic MIBsOL-29034-01 Configuring LLDP, LLDP-MED, and Wired Location Service Lldp and Cisco Switch Stacks Lldp Supported TLVsLldp and Cisco Medianet LLDP-MED Supported TLVs Wired Location Service Configuration Guidelines Default Lldp ConfigurationEnabling Lldp Configure terminal Lldp runLldp run Enables Lldp globally on the switch LLDP, and enter interface configuration modeShow lldp Verifies the configuration Configuring Lldp CharacteristicsLldp transmit Enables the interface to send Lldp packets Lldp receive Enables the interface to receive Lldp packetsSwitchconfig# lldp holdtime Command or Action Purpose Step Configuring LLDP-MED TLVsLldp med-tlv-select Specifies the TLV to enable Lldp med-tlv-select End Copy running-config startup-configConfiguration mode. The range is 1 to Configuring Network-Policy TLVDscp dvalue none untagged Voice voice-signalingvlan vlan-idcosShow network-policy profile Verifies the configuration Configuring Location TLV and Wired Location ServiceWay Use one of the followingEnters location information for an interface Exit Returns to global configuration modeInformation, and enter interface configuration mode Use one of the following Verifies the configurationCommand or Action Purpose Example Enabling Wired Location Service on the SwitchConfiguring Network-Policy TLV Examples Nmsp enable Enables the Nmsp features on the switchNmsp notification interval attachment location Command Description Civic location OL-29034-01 System MTU Guidelines Information about the MTUConfiguring the System MTU How to Configure MTU SizesConfiguration Examples for System MTU Show system mtu Verifies your settingsReload Reloads the operating system Additional References for System MTU Restrictions for PoE Configuring PoEPower over Ethernet Ports Information about PoESupported Protocols and Standards Class Powered-Device Detection and Initial Power AllocationPower Management Modes Power Monitoring and Power Policing Maximum Power Allocation Cutoff Power on a PoE Port Configuring a Power Management Mode on a PoE Port How to Configure PoEBudgeting Power for Devices Connected to a PoE Port Show power inlineNever static max max-wattage No cdp run Optional Disables CDP Budgeting Power to All PoE portsConfigure terminal No cdp run Budgeting Power to a Specific PoE PortConfiguring Power Policing Specifies the physical port to be configured, and enterPower inline consumption wattage Power inline police actionlog errdisable Power inline police actionlog errdisable ExitShow power inline police Show errdisable recovery Configuration modePower inline police action log-Generates a syslog message While still providing power to the portDown the port and puts the port in the error-disabled state Monitoring Power Status Configuration Examples for Configuring PoEBudgeting Power Example EEE Overview Information About EEERestrictions for EEE How to Configure EEEDefault EEE Configuration EEE is disabled by defaultMonitoring EEE Specifies the interface to be configured, and enterPower efficient-ethernet auto CommandConfiguration Examples for Configuring EEE This example shows how to enable EEE for an interfaceThis example shows how to disable EEE for an interface Feature History and Information for Configuring EEE OL-29034-01 D E PoE