Tampilkan postingan dengan label switch configuration. Tampilkan semua postingan
Tampilkan postingan dengan label switch configuration. Tampilkan semua postingan

2011-12-03

Switch Configuration Command List

Switch Configuration Command List

The following table lists common switch configuration commands:

Task

Command

Move to interface configuration mode

switch(config)#interface FastEthernet 0/14

switch(config)#interface GigabitEthernet 0/1

Move to configuration mode for a range of interfaces

switch(config)#interface range fastethernet 0/14 - 24

switch(config)#interface range gigabitethernet 0/1 - 4

switch(config)#interface range fa 0/1 - 4 , 7 - 10

switch(config)#interface range fa 0/8 - 9 , gi 0/1 - 2

Set the port speed on the interface

switch(config-if)#speed 10
switch(config-if)#speed 100
switch(config-if)#speed 1000
switch(config-if)#speed auto

Set the duplex mode on the interface

switch(config-if)#duplex half
switch(config-if)#duplex full
switch(config-if)#duplex auto

Enable or disable the interface

switch(config-if)#no shutdown
switch(config-if)#shutdown

Show interface status of all ports

switch#show interface status

Show line and protocol status of all ports

switch#show ip interface brief

Be aware of the following switch configuration details:

  • All switch ports are enabled (no shutdown) by default.
  • Port numbering on some switches begins at 1, not 0. For example, FastEthernet 0/1 is the first FastEthernet port on a 2960 switch.
  • Through auto-negotiation, the 10/100/1000 ports configure themselves to operate at the speed of attached devices. If the attached ports do not support auto-negotiation, you can explicitly set the speed and duplex parameters.
  • If the speed and duplex settings are set to auto, the switch will use auto-MDIX to sense the cable type (crossover or straight-through) connected to the port and will automatically adapt itself to the cable type used. When you manually configure the speed or duplex setting, it disables auto-MDIX so you will need to be sure to use the correct cable.
  • The 2960 switch always uses the store-and-forward switching method. On other switch models, you might be able to configure the switching method.

Switch Configuration Modes

Switch Configuration Modes

The following graphic illustrates some of the configuration modes of the switch.

The following table describes some of the configuration modes of the switch:

Mode

Details

CLI Mode Prompt

Interface configuration

The switch has multiple interface modes depending on the physical (or logical) interface type. For this course, you should be familiar with the following switch interface modes:

  • Ethernet (10 Mbps Ethernet)
  • FastEthernet (100 Mbps Ethernet)
  • GigabitEthernet (1 GB Ethernet)
  • VLAN

Note: The VLAN interface configuration mode is used to configure the switch IP address and other management functions. It is a logical management interface configuration mode, instead of a physical interface configuration mode as used for the FastEthernet and GigabitEthernet ports.

Switch(config-if)#

Config-vlan

Details of the config-vlan mode include the following:

  • You can use the config-vlan mode to perform all VLAN configuration tasks.
  • Changes made in vlan mode take place immediately.

Note: Do not confuse the config-vlan mode with the VLAN interface configuration mode. 

Switch(config-vlan)#

VLAN configuration

Details of the VLAN configuration mode include the following:

  • The vlan configuration mode allows you to only configure a subset of VLAN features.
  • Changes made in the VLAN configuration mode do not take effect until you save the changes, either before or while exiting the configuration mode.
  • Changes made in the VLAN configuration mode are not stored in the regular switch configuration file.

Note: The 2960 switch recommends that you configure VLAN parameters from config-vlan mode, because VLAN configuration mode is being deprecated (phased out). 

Switch(vlan)#

Line configuration

Use this mode to configure parameters for the terminal line, such as the console, Telnet, and SSH lines.

Switch(config-line)#

Switch Activity Facts

Switch Activity Facts

In this course, you will learn how to configure the Catalyst 2960 series switch. The 2960 series switch has various status lights (or LEDs) which provide information about the switch's activity.

Light

Meaning

SYST
(System)

A single system light gives you information about the overall switch status.

  • Solid green = System is operational
  • Solid amber = System is receiving power but is not functioning properly
  • Off = System is not powered on

RPS
(Redundant Power Supply)

A single RPS light shows the status of the redundant power supply.

  • Solid green = RPS is present and ready to provide back-up power
  • Flashing green = RPS is connected, but is unavailable because it is providing power to another device
  • Solid amber = RPS is in standby mode or in a fault condition
  • Off = RPS is off or not properly connected

Port

Each port has a light that indicates the status of the port. By pressing the Mode button, you can view three different types of information for each port.

Stat
(Port status)

When the Mode button selects Stat:

  • Solid green = Link present and is operational
  • Flashing green = Link activity (port is sending or receiving data)
  • Alternating green-amber = Link fault (Error frames can affect connectivity, and errors such as excessive collisions, cyclic redundancy check (CRC) errors, and alignment and jabber errors are monitored for a link-fault indication)
  • Solid amber = Port is blocked by Spanning Tree Protocol (STP) and is not forwarding data
  • Flashing amber = Port is blocked by STP and is sending or receiving packets
  • Off = No link, or port was administratively shut down (if viewing the port status with the GUI, a brown color indicates a shut down port)

Duplex
(Port duplex mode)

When the Mode button selects Duplex:

  • Solid green = Full duplex
  • Off = Half duplex, or no link present (if viewing the port duplex with the GUI, a blue color indicates half duplex)

Speed
(Port speed)

When the Mode button selects Speed:

  • Flashing green = 1000 Mbps (1 Gbps)
  • Solid green = 100 Mbps
  • Off = 10 Mbps, or no link present (if viewing the port speed with the GUI, a blue color indicates 10 Mbps)

On a simple LAN, you can connect the switch to the network, connect devices, and it will automatically begin switching traffic to the correct ports. The switch comes preconfigured to work out-of-the-box without configuration. To customize the switch configuration, connect to the switch in one of the following ways:

  • Console connection
  • Telnet session
  • Web management software (connect through the LAN through a Web browser)

Note: You must configure an IP address for the switch to manage it through a Telnet or Web session.