xCAT Cisco 2950 HOWTO
Overview
This document is to assist Field Technical Sales specialists in the configuration of the Cisco Catalyst 2950G-12 switch to be used in a Linux HPC environment. It is directly relevant to the configuration of the 2950 as an edge switch to a Force10 core switch.
All of the instructions
below assume a connection with Hyperterminal and
default values except change baud rate to 9600. Physical connection is with the blue
serial cable provided by Cisco (CISCO 72-3383-01 REV A.0).
Helpful hints :
·
Ctrl-P with redisplay
what was just typed
·
Interface supports Tab
command completion
·
"?" after any partial
command will bring up help
Contents
:
A
Instructions to do initial configuration
(Name/IP/Password)
B
Instructions to make it connect to the Force 10
switch
C
Instructions for setting up 2950 ports to “Cluster Friendly”
values
D
Instructions for setting up with a script through a tftp server
E
Instructions to reset to Factory defaults (or, dohhh I want to start over
!)
Press Enter and Cisco
will prompt with :
% Please
answer 'yes' or 'no'.
Would you like to enter the
initial configuration dialog? [yes/no]:
Type “yes” and press
Enter. Cisco will then prompt with :
At any point you may enter a
question mark '?' for help.
Use ctrl-c to abort configuration
dialog at any prompt.
Default settings are in square
brackets '[]'.
Basic management setup configures
only enough connectivity
for
management of the system, extended setup will ask you
to
configure each interface on the system
Would you like to enter basic management setup? [yes/no]:
Type “yes” and press
Enter. Cisco will then prompt with :
Configuring global parameters:
Enter host name [Switch]:
Type the hostname of the
switch here, for example “cisco01”, and press Enter, Cisco will then prompt
with :
The enable secret is a password
used to protect access to
privileged EXEC and configuration modes. This password,
after
entered,
becomes encrypted in the configuration.
Enter enable secret:
Type the password here,
then press Enter.
Our password is “cisco”. Cisco will then prompt with :
The enable password is used when
you do not specify an
enable
secret password, with some older software versions, and
some
boot images.
Enter enable password:
This password must be
different than the “secret” password.
Type “cisco1” and press Enter.
Cisco will then prompt with
:
The virtual terminal password is used to protect
access to the router over a network interface.
Enter virtual terminal password:
Type a password of
“cisco” and press Enter. Cisco will then prompt with :
Configure SNMP Network Management? [no]:
Press Enter to take the
default answer of “no”. Cisco will then display the “Current interface summary”,
as shown below :
Current interface summary
Any interface listed with OK?
value "NO" does not have a valid configuration
Interface
IP-Address
OK? Method Status
Protocol
Vlan1
unassigned
NO
unset up up
FastEthernet0/1 unassigned YES unset up down
FastEthernet0/2 unassigned YES unset down down
FastEthernet0/3 unassigned YES unset down down
FastEthernet0/4 unassigned YES unset down down
FastEthernet0/5 unassigned YES unset down down
FastEthernet0/6 unassigned YES unset up up
FastEthernet0/7 unassigned YES unset down down
FastEthernet0/8 unassigned YES unset up up
FastEthernet0/9 unassigned YES unset up up
FastEthernet0/10 unassigned YES unset down down
FastEthernet0/11 unassigned YES unset down down
FastEthernet0/12 unassigned YES unset down down
GigabitEthernet0/1
unassigned YES unset down down
GigabitEthernet0/2
unassigned YES unset down down
Enter interface name used to connect to the
management network from the above interface summary:
Type “vlan1” and press
Enter. Cisco will then prompt with :
Configuring interface Vlan1:
Configure IP on this interface? [yes]:
Press Enter to take
default “yes” answer. Cisco will
then prompt with :
IP address for this interface:
Type the IP address for
this Cisco switch. In our example
it will be “172.20.101.1”, then press Enter. Cisco will prompt with
:
Subnet mask for this interface [255.255.0.0] :
Type the subnet mask for
the interface. In our example it
will be “255.255.0.0”, press Enter.
Cisco will prompt with :
Class B network is 172.20.0.0, 16 subnet bits; mask is /16
Would you like to enable as a cluster command switch? [yes/no]:
Type “no” and press
Enter. Cisco will then display the
“Configuration command script that was created” and give you the option to exit
without saving or save to NVRAM and exit, as shown below
:
The
following configuration command script was created:
hostname
cisco1
enable secret
5 $1$fJPx$6cewtXKQUnlACVq7eKsWo0
enable
password cisco1
line vty 0 15
password cisco
no snmp-server
!
!
interface
Vlan1
no
shutdown
ip address 172.20.101.1 255.255.0.0
!
interface
FastEthernet0/1
!
interface
FastEthernet0/2
!
interface
FastEthernet0/3
!
interface
FastEthernet0/4
!
interface
FastEthernet0/5
!
interface
FastEthernet0/6
!
interface
FastEthernet0/7
!
interface
FastEthernet0/8
!
interface
FastEthernet0/9
!
interface
FastEthernet0/10
!
interface
FastEthernet0/11
!
interface
FastEthernet0/12
!
interface
GigabitEthernet0/1
!
interface
GigabitEthernet0/2
!
end
[0]
Go to the IOS command prompt without saving this config.
[1]
Return back to the setup without saving this config.
[2]
Save this configuration to nvram and
exit.
Enter your selection [2]:
Press Enter to take “2”
as the default answer. Cisco will
then display :
Building
configuration...
[OK]
Use the enabled mode 'configure'
command to modify this configuration.
Press RETURN to get started!
Congratulations, your
switch is now setup with a name, password, and ip
address.
B. Instructions to make
it connect to the Force 10 switch
Type
"enable"
Enter password of "cisco", Cisco will display
:
cisco01>enable
Password:
cisco01#
Enter "configure
terminal" to configure through the terminal, Cisco will display :
Enter configuration commands, one
per line. End with
CNTL/Z.
cisco01(config)#
Enter "interface GigabitEthernet 0/2" to configure the 2nd Gigabit port (the
one to the right side), Cisco will display
:
cisco01(config-if)#
Enter "speed nonegotiate" to turn off speed negotiation, Cisco will NOT
return any console messages.
Enter "flowcontrol send off", Cisco will NOT return any console
messages.
Enter "flowcontrol receive off", Cisco will NOT return any console
messages.
Enter "exit" out of
interface config mode
Enter "exit" out of
config mode
:
cisco01(config-if)#exit
cisco01(config)#exit
cisco01#
Type "write memory" and
press Enter to write to memory :
Building
configuration...
[OK]
cisco01#
The Cisco 2950 should
now negotiate properly with the Force 10 Switch. Check the green link status lights on
both switches to confirm that they connected.
C. Instructions for setting
up 2950 ports to “Cluster Friendly” values
Type "enable", Enter
password of "cisco", Cisco will display :
cisco01>enable
Password:
cisco01#
Enter "configure
terminal" to configure through the terminal, Cisco will display :
Enter configuration commands, one
per line. End with
CNTL/Z.
cisco01(config)#
Type “spanning-tree
vlan 1 forward-time 4” and press Enter. Cisco will NOT display any console
messages after pressing Enter. This
will set forward-time from a default of 15 seconds to 4 seconds, allowing
quicker DHCP connections and prevention of timeouts from the cluster compute
nodes.
Type “interface range
fastEthernet 0/1 – 12” and press Enter. The spaces between the dash ARE important :
cisco01(config)#interface range
fastEthernet 0/1 - 12
cisco01(config-if-range)#
Type “switchport host” and press Enter. The “host” command is a script that sets
three options on the port. It
enables “access” mode for each port, sets them to “spanning-tree portfast” and disables any “channel groups”.
:
cisco01(config-if-range)#switchport host
switchport mode will be set to access
spanning-tree portfast will be
enabled
channel
group will be disabled
cisco01(config-if-range)#
Type “exit”, press
Enter, type “exit” again and press Enter
:
cisco01(config-if-range)#exit
cisco01(config)#exit
cisco01#
Type “copy running-config startup-config” and press
Enter, this will change the default config to the
values that you just entered :
cisco01#copy running-config startup-config
Destination
filename [startup-config]?
Building
configuration...
[OK]
Congratulations, the
switch is now setup and should have no problems with DHCP, tftp, etc.
D. Instructions for setting
up with a script through a tftp
server
You can also setup the
Cisco through a script that can by uploaded by a tftp
server. First configure a switch
using the examples above and then push the config to
the tftp server.
Connect with Hyperterminal and press Enter.
Type “enable”, and enter
the password :
cisco01>enable
Password:
cisco01#
Type “copy startup-config tftp:cisco/ciscoconfig”. You will then be prompted for the IP
address of the tftp server and the filename you would
like to save as :
cisco01#copy startup-config tftp:cisco/ciscoconfig
Address or name
of remote host []? 172.20.1.1
Destination
filename [cisco/ciscoconfig]?
The config file “ciscoconfig” will now
be on the server in the //172.20.1.1:/tftpboot/cisco/ directory. If you get errors, make sure this
directory already exists and has read/write access.
The following is a
sample config file from our working DTF cluster :
!
version 12.1
no service
pad
service timestamps debug
uptime
service timestamps log
uptime
no service
password-encryption
!
hostname
cisco01
!
enable secret 5
$1$bYmb$wt/YQBHa/hUgi6TRGhsYX.
enable password cisco
!
ip
subnet-zero
ip name-server
172.20.1.1
ntp server
172.20.1.1
!
spanning-tree extend
system-id
!
!
interface
FastEthernet0/1
no ip address
spanning-tree
portfast
switchport mode access
!
################## 0/2 – 0/11 removed to fit page
###########################
!
interface
FastEthernet0/12
no ip address
spanning-tree
portfast
switchport mode access
!
interface
GigabitEthernet0/1
no ip address
!
interface
GigabitEthernet0/2
no ip address
speed nonegotiate
flowcontrol send off
flowcontrol receive off
!
interface Vlan1
ip address 172.20.101.1
255.255.0.0
no ip route-cache
!
ip http
server
!
logging
172.20.1.1
!
line con 0
password cisco
line vty 0 4
password cisco
login
line vty 5 14
password cisco
login
line vty 15
password cisco
login
!
end
Before pushing this
config to other switches, change the IP address under
the “interface Vlan1” section in the script file. Then follow these procedures to copy the
config from the tftp server
to the new switch.
Connect with Hyperterminal and press Enter.
Type “enable”, and enter
the password :
cisco01>enable
Password:
cisco01#
Type “copy tftp:cisco/ciscoconfig
startup-config”.
You will then be prompted for the IP address of the tftp server and the filename you would like to copy :
cisco01#copy tftp:cisco/ciscoconfig
startup-config
Address or name
of remote host []? 172.20.1.1
Destination
filename [startup-config]?
The config file “ciscoconfig” will now
overwrite the default “startup-config”
file.
Reboot the switch and it
will now be using the new configuration.
E. Instructions to reset to
Factory defaults (or, dohhh I want to start over !)
1.
Unplug the power
cable.
2.
Press and hold down the
“Mode” button on the front and plug the power cord back
in.
3.
Release “Mode” button
when the following appears on the Hyperterminal screen
:
C2950 Boot Loader (C2950-HBOOT-M)
Version 12.1(11r)EA1, RELEASE SOFTWARE
(fc1)
Compiled
WS-C2950G-12-EI
starting...
Base ethernet MAC Address: 00:0b:5f:2a:95:80
Xmodem
file system is available.
The system has been interrupted
prior to initializing the
flash
filesystem.
The following commands will initialize
the
flash filesystem, and finish loading the
operating
system
software:
flash_init
load_helper
boot
switch:
4.
Type “flash_init” and press return, the Cisco will display the
following :
Initializing
Flash...
flashfs[0]: 17 files, 2
directories
flashfs[0]: 0 orphaned files,
0 orphaned directories
flashfs[0]: Total bytes:
7741440
flashfs[0]: Bytes used:
3961856
flashfs[0]: Bytes available:
3779584
flashfs[0]: flashfs fsck took 6
seconds.
...done
initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch:
5.
Type “load_helper” and press Enter. The Cisco will NOT return anything to
the screen.
6.
Type “dir flash:” and
the switch file system will be displayed as shown below
:
Directory of flash:/
2 -rwx 2664051 <date>
c2950-i6q4l2-mz.121-11.EA1.bin
3 -rwx 273
<date>
env_vars
4 -rwx 1082
<date>
config.text
5 -rwx 5
<date>
private-config.text
7 drwx 704
<date>
html
19 -rwx 109
<date>
info
20 -rwx 109
<date>
info.ver
3779584 bytes available (3961856
bytes used)
switch:
7.
Type
“
8.
Type “boot” and press
Enter. Cisco will then reboot and
after scrolling through some messages display the following
:
Model number:
WS-C2950G-12-EI
System serial number:
FHK0645Y17H
--- System Configuration Dialog ---
Would you like to enter the
initial configuration dialog? [yes/no]:
Type “yes”, press Enter and then follow the same instructions found in this document under the section “Instructions to do initial configuration (Name/IP/Password)”
Scott Hanson - IBM Linux
Engineer