Cisco Systems WSC2960X48TDL manual Port-Based VLANs, Switch Ports

Page 26

Configuring Interface Characteristics

Interface Types

Port-Based VLANs

A VLAN is a switched network that is logically segmented by function, team, or application, without regard to the physical location of the users. Packets received on a port are forwarded only to ports that belong to the same VLAN as the receiving port. Network devices in different VLANs cannot communicate with one another without a Layer 3 device to route traffic between the VLANs.

VLAN partitions provide hard firewalls for traffic in the VLAN, and each VLAN has its own MAC address table. A VLAN comes into existence when a local port is configured to be associated with the VLAN, when the VLAN Trunking Protocol (VTP) learns of its existence from a neighbor on a trunk, or when a user creates a VLAN. VLANs can be formed with ports across the stack.

To configure VLANs, use the vlan vlan-idglobal configuration command to enter VLAN configuration mode. The VLAN configurations for normal-range VLANs (VLAN IDs 1 to 1005) are saved in the VLAN database. If VTP is version 1 or 2, to configure extended-range VLANs (VLAN IDs 1006 to 4094), you must first set VTP mode to transparent. Extended-range VLANs created in transparent mode are not added to the VLAN database but are saved in the switch running configuration. With VTP version 3, you can create extended-range VLANs in client or server mode. These VLANs are saved in the VLAN database.

In a switch stack, the VLAN database is downloaded to all switches in a stack, and all switches in the stack build the same VLAN database. The running configuration and the saved configuration are the same for all switches in a stack.

Add ports to a VLAN by using the switchport interface configuration commands:

Identify the interface.

For a trunk port, set trunk characteristics, and, if desired, define the VLANs to which it can belong.

For an access port, set and define the VLAN to which it belongs.

Switch Ports

Switch ports are Layer 2-only interfaces associated with a physical port. Switch ports belong to one or more VLANs. A switch port can be an access port or a trunk port. You can configure a port as an access port or trunk port or let the Dynamic Trunking Protocol (DTP) operate on a per-port basis to set the switchport mode by negotiating with the port on the other end of the link. Switch ports are used for managing the physical interface and associated Layer 2 protocols and do not handle routing or bridging.

Configure switch ports by using the switchport interface configuration commands.

Access Ports

An access port belongs to and carries the traffic of only one VLAN (unless it is configured as a voice VLAN port). Traffic is received and sent in native formats with no VLAN tagging. Traffic arriving on an access port is assumed to belong to the VLAN assigned to the port. If an access port receives a tagged packet (Inter-Switch Link [ISL] or IEEE 802.1Q tagged), the packet is dropped, and the source address is not learned.

Two types of access ports are supported:

Static access ports are manually assigned to a VLAN (or through a RADIUS server for use with IEEE 802.1x.

VLAN membership of dynamic access ports is learned through incoming packets. By default, a dynamic access port is not a member of any VLAN, and forwarding to and from the port is enabled only when

 

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

14

OL-29034-01

Image 26
Contents Americas Headquarters First Published July 10Page N T E N T S Contents Configuring Auto-MDIX41 Configuring System MTU Configuring EEE Viii Bold font Document ConventionsConvention Description Reader Alert Conventions Vertical barsElement Obtaining Documentation and Submitting a Service Request Related DocumentationXii This chapter contains the following topics Information About Using the Command-Line InterfaceCommand Modes Quit Mode Access Method Prompt Exit Method About This ModeConfigure Ctrl-ZMode Using the Help SystemCommand or Action Purpose Step HelpCLI Error Messages Understanding Abbreviated CommandsNo and default Forms of Commands Configuring the Command History How to Use the CLI to Configure FeaturesConfiguration Logging Error Message MeaningCommand or Action Changing the Command History Buffer SizeRecalling Commands Privileged Exec mode Enabling and Disabling Editing FeaturesDisabling the Command History Feature Terminal no historyEditing Commands through Keystrokes Editing Command Lines That Wrap Show more command begin include exclude regular-expression Searching and Filtering Output of show and more CommandsAccess-list Show more command begin include excludeCommand or Action Example OL-29034-01 Interface Types Finding Feature InformationInformation About Configuring Interface Characteristics This module contains the following topicsSwitch Ports Port-Based VLANsSwitch Virtual Interfaces Trunk PortsPower over Ethernet Ports EtherChannel Port GroupsUsing the Switch USB Ports USB Mini-Type B Console PortInterface Connections USB Type a PortsInterface Configuration Mode Connecting VLANs with the SwitchDefault Setting Default Ethernet Interface ConfigurationFeature Layer 2 or switching mode switchport command VLANs 1Interface Speed and Duplex Mode Speed and Duplex Configuration GuidelinesIeee 802.3x Flow Control Gigabit Ethernet port 1 on switch 1 is selected How to Configure Interface CharacteristicsConfiguring Interfaces Procedure Either gigabitethernet 1/0/1Description string Configure terminalAdding a Description for an Interface Show interfaces interface-id descriptionInterface range port-rangemacro Configuring a Range of InterfacesConfigure terminal Enters global configuration mode Define interface-range macroname Configuring and Using Interface Range MacrosVerifies the configuration of the interfaces in the range Interface range macro macroname Configuring Ethernet InterfacesSetting the Interface Speed and Duplex Parameters Speed 10 100 1000 auto 10 NonegotiateConfiguring Ieee 802.3x Flow Control Command or Action PurposeEnter interface configuration mode Configuring SVI Autostate ExcludeEnd Returns to privileged Exec mode An SVI line state up or down Switchport autostate excludeShutting Down and Restarting the Interface Interface vlan vlan-id gigabitethernet interface-idConfigure terminal Line console Media-type rj45 End Configuring the Console Media TypeThis configuration applies to all switches in a stack Shutdown Shuts down an interfaceConfiguring the USB Inactivity Timeout Configure terminal Enters the global configuration modeShow interfaces interface-id status err-disabled Monitoring Interface CharacteristicsCommand Purpose Show interfaces interface-id switchportClearing and Resetting Interfaces and Counters Configuring a Range of Interfaces Examples Configuration Examples for Interface CharacteristicsIdentifying Interfaces on a Stack-Capable Switch Examples Adding a Description to an Interface ExampleConfiguring the Console Media Type Example Configuring and Using Interface Range Macros ExamplesSetting Interface Speed and Duplex Mode Example Standards and RFCs Standard/RFC Configuring the USB Inactivity Timeout ExampleTo disable the configuration, use these commands NoneRelease Modification Cisco IOS Release 15.02EX This feature was introducedTechnical Assistance Description Link OL-29034-01 This module contains the following sections Prerequisites for Auto-MDIXRestrictions for Auto-MDIX Configuring Auto-MDIX on an Interface Information about Configuring Auto-MDIXHow to Configure Auto-MDIX Auto-MDIX on an InterfaceMonitoring Auto-MDIX Example for Configuring Auto-MDIX This example shows how to enable auto-MDIX on a portPrerequisites for Ethernet Management Ports Information about the Ethernet Management PortEthernet Management Port Direct Connection to a Switch Supported Features on the Ethernet Management PortHow to Configure the Ethernet Management Port Disabling and Enabling the Ethernet Management PortAdditional References What to Do NextMIBs Bootloader commandsRelated Topic Document TitleOL-29034-01 Configuring LLDP, LLDP-MED, and Wired Location Service Lldp and Cisco Medianet Lldp and Cisco Switch StacksLldp Supported TLVs LLDP-MED Supported TLVs Wired Location Service Default Lldp Configuration Configuration GuidelinesLLDP, and enter interface configuration mode Configure terminal Lldp runLldp run Enables Lldp globally on the switch Enabling LldpLldp receive Enables the interface to receive Lldp packets Configuring Lldp CharacteristicsLldp transmit Enables the interface to send Lldp packets Show lldp Verifies the configurationSwitchconfig# lldp holdtime Configuring LLDP-MED TLVs Command or Action Purpose StepLldp med-tlv-select End Copy running-config startup-config Lldp med-tlv-select Specifies the TLV to enableConfiguring Network-Policy TLV Configuration mode. The range is 1 toVoice voice-signalingvlan vlan-idcos Dscp dvalue none untaggedConfiguring Location TLV and Wired Location Service Show network-policy profile Verifies the configurationUse one of the following WayUse one of the following Verifies the configuration Exit Returns to global configuration modeInformation, and enter interface configuration mode Enters location information for an interfaceEnabling Wired Location Service on the Switch Command or Action Purpose ExampleNmsp notification interval attachment location Configuring Network-Policy TLV ExamplesNmsp enable Enables the Nmsp features on the switch Command Description Civic location OL-29034-01 Information about the MTU System MTU GuidelinesHow to Configure MTU Sizes Configuring the System MTUReload Reloads the operating system Configuration Examples for System MTUShow system mtu Verifies your settings Additional References for System MTU Configuring PoE Restrictions for PoESupported Protocols and Standards Power over Ethernet PortsInformation about PoE Powered-Device Detection and Initial Power Allocation ClassPower Management Modes Power Monitoring and Power Policing Maximum Power Allocation Cutoff Power on a PoE Port How to Configure PoE Configuring a Power Management Mode on a PoE PortNever static max max-wattage Budgeting Power for Devices Connected to a PoE PortShow power inline Budgeting Power to All PoE ports No cdp run Optional Disables CDPBudgeting Power to a Specific PoE Port Configure terminal No cdp runPower inline consumption wattage Configuring Power PolicingSpecifies the physical port to be configured, and enter Configuration mode Power inline police actionlog errdisable ExitShow power inline police Show errdisable recovery Power inline police actionlog errdisableDown the port and puts the port in the error-disabled state Power inline police action log-Generates a syslog messageWhile still providing power to the port Budgeting Power Example Monitoring Power StatusConfiguration Examples for Configuring PoE Information About EEE EEE OverviewEEE is disabled by default How to Configure EEEDefault EEE Configuration Restrictions for EEECommand Specifies the interface to be configured, and enterPower efficient-ethernet auto Monitoring EEEThis example shows how to disable EEE for an interface Configuration Examples for Configuring EEEThis example shows how to enable EEE for an interface Feature History and Information for Configuring EEE OL-29034-01 D E PoE