Configuring The Cisco 2960X Series of Switches For Livewire®
Configuring The Cisco 2960X Series of Switches For Livewire®
October 2016
Introduction
Please note that this document applies only to the Cisco 2960X series of switches. While some of
these settings will work with other switches, using these commands to program switches not in this
series could yield unintended results.
If this is the first time the switch has been configured, you will have to connect to the switch via a
console cable and serial connection to enter into setup. After initial configuration of the switch, you
can connect to the switch either via a Telnet session, or through a serial port.
During the initial setup, you will assign the switch an IP address, which will then allow you to connect
to the switch via a Telnet session at a later time.
You can connect to this switch using a usb cable and a serial port driver from Cisco. As of the date of
this writing the usb driver can be obtained from the Cisco website. Make sure you install the driver
before connecting the switch to your USB ports. This will install a new COM port on your computer.
PuTTy is a free terminal program that can be used for configuration and can be downloaded here.
Configuration
This switch has been tested and the configuration is based on the following;
Cisco model: WS-C2960X-24TS-L
Version ID: V02
Software: 15.0(2)EX5
Programming
Once connected with the serial cable (default settings are 9600 baud), you should be able to see
messages on the screen as the switch boots. This will confirm that your serial cable is working
correctly. If you are prompted to enter any setup wizards, please answer ‘No’.
A couple of other notes that might be helpful:
1) Many commands can be abbreviated and just need to be disambiguous. For example, the
‘enable’ command is often abbreviated as ‘en’ and ‘configure terminal’ is
often abbreviated as ‘config t’ . All commands can be abbreviated.
2) The TAB key completes a work and checks it for correctness. For example, if you type ‘en’ and
then press TAB it will spell out the word ‘enable’.
3) The # (pound or hash sign) indicates you are in privileged mode. For example, if your prompt
says Switch> and you try to type config t , you will receive and error because you are
not in privileged mode. Typing the enable command will give you the Switch# prompt
indicating privileged mode.
Switch>enable
Switch#configure terminal
Switch(config)#username AAAA password Livewire
Switch(config)#enable password Axia
To change the hostname from the default of ‘Switch’, type the following from the prompt;
Switch(config)#hostname AXIA01
AXIA01(config)#
To set the IP address, type the following from the prompt (replace the IP address shown with one that
is appropriate to your configuration):
AXIA01(config)#interface vlan1
AXIA01(config-if)#ip address 192.168.2.2 255.255.255.0
AXIA01(config-if)#end
AXIA01#wr
Building configuration...
[OK]
AXIA01#
CONFIGURE IGMP
To configure IGMP, type the following from the prompt:
AXIA01#config terminal
AXIA01(config)#ip igmp snooping querier
AXIA01(config)#ip igmp snooping vlan 1 immediate-leave
AXIA01(config)#ip igmp snooping querier max-response-time 25
AXIA01(config)#ip igmp snooping querier timer expiry 205
To configure multiple access ports at once, type the following from the prompt:
*Note - Replace GigabitEthernet1/0/1 - 22 with the ports that are appropriate to your
configuration. In this example we are configuring ports 1 thru 24 as access ports.
AXIA01#config terminal
AXIA01(config)#interface range GigabitEthernet1/0/1 - 22
AXIA01(config-if-range)#switchport mode access
AXIA01(config-if-range)#switchport nonegotiate
AXIA01(config-if-range)#switchport voice vlan dot1p
AXIA01(config-if-range)#priority-queue out
AXIA01(config-if-range)#spanning-tree portfast
AXIA01(config-if-range)#mls qos trust dscp *SEE NOTE BELOW*
AXIA01(config-if-range)#no ip igmp snooping tcn flood
AXIA01(config-if-range)#end
*NOTE* - for Engine, iPort, VX, or Omnia 8x versions older than 2011-06-15 use “mls qos trust cos”
Alternately, to configure a single access port, type the following from the prompt:
*Note - Replace GigabitEthernet1/0/1 with the port that is appropriate to your configuration.
In this example we are configuring port 1 as an Access port.
AXIA01#config terminal
AXIA01(config)#interface GigabitEthernet1/0/1
AXIA01(config-if)#switchport mode access
AXIA01(config-if)#switchport nonegotiate
AXIA01(config-if)#switchport voice vlan dot1p
AXIA01(config-if)#priority-queue out
AXIA01(config-if)#spanning-tree portfast
AXIA01(config-if)#mls qos trust dscp *SEE NOTE BELOW*
AXIA01(config-if)#no ip igmp snooping tcn flood
AXIA01(config-if)#end
*NOTE* - for Engine, iPort, VX, or Omnia 8x versions older than 2011-06-15 use “mls qos trust cos”
T o configure multiple trunk ports at once, type the following from the prompt:
*Note - Replace GigabitEthernet1/0/23 - 24 with the ports that are appropriate to your
configuration. In this example we are configuring ports 23 and 24 for Trunk.
AXIA01#config t
AXIA01(config)#interface range GigabitEthernet1/0/23 - 24
AXIA01(config-if-range)#switchport mode trunk
AXIA01(config-if-range)#priority-queue out
AXIA01(config-if-range)#mls qos trust dscp
AXIA01(config-if-range)#end
AXIA01#
Alternately, to configure a single trunk port, type the following from the prompt:
*Note - Replace GigabitEthernet1/0/23 with the port that is appropriate to your
configuration. In this example we are configuring port 23 for Trunk.
AXIA01#config t
AXIA01(config)#interface GigabitEthernet1/0/23 - 24
AXIA01(config-if)#switchport mode trunk
AXIA01(config-if)#priority-queue out
AXIA01(config-if)#mls qos trust dscp
AXIA01(config-if)#end
AXIA01#wr
Building configuration...
[OK]
AXIA01#
AXIA01#configure terminal
AXIA01(config)#line vty 0 15
AXIA01(config-line)#password Livewire
AXIA01(config-line)#login
AXIA01(config-line)#end
AXIA01#wr
Building configuration...
[OK]
AXIA01#
AXIA01#show run