You are on page 1of 37

Switch Management

ExtremeXOS™ Operation and


Configuration, Version 12.1

©
© 2008
2008 Extreme
Extreme Networks,
Networks, Inc.
Inc. All
All rights
rights reserved.
reserved. ExtremeXOS
ExtremeXOS Operation
Operation and
and Configuration,
Configuration, Version
Version 12.1.
12.1. Part
Part number
number DOC-00919.
DOC-00919.
Student Objectives

Upon completion of this module, you will be able to:


Identify switch software images and configuration files.
Save the switch configuration.
Copy, rename, and remove configuration files.
Assign an IP address to a VLAN.
Backup the switch configuration.
Create, edit, and restore an ASCII-based command script.
Download a software image.

Slide 2
show switch…

Displaying Switch Status


(.12)VLAB-R1-X450-24t # show switch
SysName: (.12)VLAB-R1-X450-24t
SysLocation: bldg 1 / floor 1 / virtual lab / rack 1
SysContact: George Washington / 1.800.555.5555 / BoyGeorge@1stPrez.com
System MAC: 00:04:96:20:AA:25
System Type: SummitX450-24t

SysHealth check: Enabled (Normal)


Recovery Mode: All
System Watchdog: Enabled

Current Time: Tue Mar 25 11:18:37 2008


Timezone: [Auto DST Disabled] GMT Offset: 0 minutes, name is UTC.
Boot Time: Mon Mar 24 12:08:54 2008
Boot Count: 77
Next Reboot: None scheduled
System UpTime: 23 hours 9 minutes 43 seconds

Current State: OPERATIONAL


Image Selected: secondary
Image Booted: secondary
Primary ver: 12.1.0.47
Secondary ver: 12.1.0.52

Config Selected: primary.cfg


Config Booted: primary.cfg

primary.cfg Created by ExtremeXOS version 12.1.0.52


101043 bytes saved on Tue Mar 11 14:12:49 2008
Slide 3
tftp put 10.0.5.2 vr vr-mgmt primary.cfg
ping vr vr-default 10.0.4.106

Describing the Virtual Router Command Argument

An emulation of a physical router.


• A single physical switch split into multiple virtual routers with a separate
logical forwarding table.
Some commands have a -vr, -v, vr, or v (virtual router) option.
10.0.4.106
• Identifies the group of ports that are connected the target device.

tftp server
10.0.5.2
VR-mgmt VR-default

"mgmt" vlan "default" vlan

Management Ethernet Port Data Ports


Slide 4
configure vlan <vlan_name> ipaddresss

Assigning IP Addresses

IP Addresses are assigned to VLANs.


• Pre-configured VLANs named Mgmt and Default.
Mgmt contains the management port. Default contains all data ports.
Assigning an IP address creates a router interface for the VLAN in
the corresponding virtual router.
• VR-Mgmt and VR-Default.
Switch needs an IP address to download images or backup
configuration files.
To assign an IP address and subnetwork mask to a VLAN:
configure vlan mgmt ipaddress 10.0.0.1 255.255.255.0
configure vlan default ipaddress 10.0.0.1/24
To remove an IP address from a VLAN:
unconfigure vlan mgmt ipaddress

Slide 5
Image File
Management

©
© 2008
2008 Extreme
Extreme Networks,
Networks, Inc.
Inc. All
All rights
rights reserved.
reserved. ExtremeXOS
ExtremeXOS Operation
Operation and
and Configuration,
Configuration, Version
Version 12.1.
12.1. Part
Part number
number DOC-00919.
DOC-00919.
Describing Software Image Features

RAM
Compressed executable code
2 Running Image
• Images are compressed to preserve
space on the flash drive. Running Configuration

Loaded at boot time


boot
• The image is uncompressed and
loaded and boot time.
NVRAM
User selectable image 1 Primary Image
• Primary and secondary images Secondary Image
supported.
• Useful feature for verifying upgrades. Primary Configuration
Secondary Configuration
Downloaded Configuration
1 Uncompress selected image

2 Load uncompressed image into RAM and start running

Slide 7
show version

Displaying the Current Software Images


BD-8810.2 # show version

Chassis : 800129-00-02 04344-00020 Rev 2.0


Slot-1 :
Slot-2 : 800114-00-04 04364-00016 Rev 4.0 BootROM: 1.0.3.7 IMG: 12.1.0.52
Slot-3 :
Slot-4 : 800113-00-04 04354-00018 Rev 4.0 BootROM: 1.0.3.7 IMG: 12.1.0.52
Slot-5 : 800112-00-03 04334-00017 Rev 3.0 BootROM: 1.0.3.7 IMG: 12.1.0.52
Slot-6 : 800112-00-03 04334-00005 Rev 3.0 BootROM: 1.0.3.7 IMG: 12.1.0.52
Slot-7 :
Slot-8 : 800115-00-02 04344-00013 Rev 2.0 BootROM: 1.0.3.7 IMG: 12.1.0.52
Slot-9 :
Slot-10 :
MSM-A : 800112-00-03 04334-00017 Rev 3.0 BootROM: 1.0.3.8 IMG: 12.1.0.52
MSM-B : 800112-00-03 04334-00005 Rev 3.0 BootROM: 1.0.3.8 IMG: 12.1.0.52
PSUCTRL-1 : 450117-00-01 04334-00067 Rev 1.0 BootROM: 2.13
PSUCTRL-2 : 450117-00-01 04334-00028 Rev 1.0 BootROM: 2.13
PSU-1 : PS 2336 4300-00137 0409J-00688 Rev 1.0
PSU-2 : PS 2336 4300-00137 0436J-01534 Rev 5.0
PSU-3 :
PSU-4 :
PSU-5 :
PSU-6 :

Image : ExtremeXOS version 12.1.0.52 v1210b52 by release-manager


on Mon Feb 25 16:10:01 PST 2008
BootROM : 1.0.3.8

Slide 8
Interpreting ExtremeXOS Image File Names

Image name identifies the switch File extensions identify the image
type. type.
• For BlackDiamond 8810 and 8806: • For a software image:
bd8800-12.1.1.4.xos .xos

• For BlackDiamond 10808: • For a software module:


bd10K-12.1.1.4.xos .xmod

• For Summit X450: • For a BootROM image:


summitX450-12.1.1.4.xos .xbr

Slide 9
show switch

Interpreting ExtremeXOS Version Strings


VLAB-R6-X450-24x.4 # show switch
Current State: OPERATIONAL
Image Selected: primary
Image Booted: primary
Primary ver: 12.1.1.4
Secondary ver: 11.4.2.3

Switch core image version


ExtremeXOS version 12.1.1.4

<Major>.<Minor>.<Patch>.<Build>

Software module version


bd10K-12.1.1.4-ssh.xmod

<Switch Platform>-<Global Version>-><Package Name>

Core image and software module version strings must match.


Slide 10
use image <primary | secondary>

Selecting Active Image Files for the Next Reboot

RAM
1. Select the image file to be used
Running Image
after next reboot:
Running Configuration
use image primary
use image secondary
boot
2. Save the configuration:
save configuration
3. Reboot the switch: NVRAM
reboot Primary Image

4. Verify that the correct image file is Secondary Image


in use: Primary Configuration
show switch Secondary Configuration
Downloaded Configuration

Slide 11
download image

Downloading a New Image File


RAM
Running Image
1. A new image can be downloaded to
either the Primary or Secondary Running Configuration
location:
download image <ip> <filename> vr
<vrname> {pri | sec} boot
2. Verify the image downloaded to the NVRAM
correct location:
3 Primary Image
show log tftp server
3. Select the image to use on the next Secondary Image
reboot: Primary Configuration
use image <primary | secondary> Secondary Configuration
4. The switch must reboot for the new
image to become active: Downloaded Configuration
reboot
5. Verify that the correct image file is in 1
use:
show switch tftp server

The system will prompt you if you wish to install the image after it downloads.

Slide 12
Configuration File
Management

©
© 2008
2008 Extreme
Extreme Networks,
Networks, Inc.
Inc. All
All rights
rights reserved.
reserved. ExtremeXOS
ExtremeXOS Operation
Operation and
and Configuration,
Configuration, Version
Version 12.1.
12.1. Part
Part number
number DOC-00919.
DOC-00919.
Describing Configuration File Features

Allows administrators to display all or part of the active


configuration file.

Enables administrators to select the configuration file to be used at


next boot up.
Stores the active configuration stored in runtime memory.
• Active configuration must be saved before rebooting.
Permits ExtremeXOS configurations to be saved to any file name.
• save configuration primary
• save configuration secondary
Enables ExtremeXOS to backup any existing configuration file.
• Using the tftp command the file is stored on TFTP server as an XML file.
• Using the upload command the file is stored on TFTP server as an ASCII-
formatted command script.
Slide 14
show switch

Displaying the Current Configuration File Selection


X450-24 # show switch
SysName: Summit-X450-24T
SysLocation: BLDG 100/5th Floor/RM 8.32A
SysContact: support@extremenetworks.com, +1 888 257 3000
System MAC: 00:04:96:20:B4:05

SysHealth check: Enabled (Normal)


Recovery Mode: All
System Watchdog: Enabled

Current Time: Tue May 22 16:11:24 2007


Timezone: [Auto DST Disabled] GMT Offset: 0 minutes, name is UTC.
Boot Time: Tue May 22 10:50:00 2007
Boot Count: 29
Next Reboot: None scheduled

Current State: OPERATIONAL


Image Selected: primary
Active after next reboot
Image Booted: primary
Primary ver: 11.6.2.9
Secondary ver: 11.4.2.3 Currently running
Config Selected: primary.cfg
Config Booted: Factory Default

primary.cfg Created by ExtremeXOS version 11.6.2.9


100206 bytes saved on Tue May 22 11:29:46 2007

Slide 15
show configuration {<module-name>} {details}

Displaying the Configuration File Contents


Show entire active configuration or show a single configuration module only.
The use of the details parameter causes the command to display all system
parameters, otherwise only those whose default values have been modified are
displayed.

VLAB-R6-X450-24x.21 # show configuration detail


#
# Module devmgr configuration.
#
configure snmp sysName "VLAB-R6-X450-24x"
configure snmp sysLocation "bldg 1 / floor 1 / virtual lab / rack 6"
configure snmp sysContact "Fred Blu / 555.555.5555 / freddie@ExtremeNetworksForever.com"
configure sys-recovery-level switch reset

VLAB-R6-X450-24x.22 # show configuration rip


#
# Module rip configuration.
#
configure rip garbagetime 120
configure rip import-policy none
configure rip routetimeout 180
configure rip updatetime 30

You may press the tab key after typing the show configuration command to display the modules for which configuration
information is available.
Slide 16
use configuration [ pri | sec | filename ]

Selecting Active Configuration Files

Select the configuration file to use: RAM

use configuration primary.cfg Running Image

use configuration test01.cfg Running Configuration

Save the configuration:


save configuration boot

Reboot the switch:


reboot NVRAM
Verify that the correct image file is Primary Image
in use: Secondary Image
show switch Primary Configuration
Secondary Configuration
Downloaded Configuration

Slide 17
tftp put <host-name | ip_address>

Backing Up a Configuration File


RAM

Upload configuration file - Running Image


Primary, Secondary, or named file. Running Configuration
tftp put 10.0.4.106 –vr
vr-default primary.cfg
NVRAM
If the -vr option is not specified, Primary Image
vr-mgmt is used.
Secondary Image
Uploaded configuration can be Primary Configuration
Primary, Secondary, or named file.
Secondary Configuration
Simplified syntax:
Downloaded Configuration
tftp put <tftp_server> {-vr
<vr_name>} <source_file_name>
<destination_file_names>
Alternative command: tftp
tftp 10.0.4.106 -v vr-default
-p primary.cfg
TFTP Server 10.0.4.106

Slide 18
tftp get <host-name | ip_address>

Restoring the Configuration

RAM
Download configuration file - Running Image
Primary, Secondary, or named file.
Running Configuration
tftp get 10.0.4.106 –vr
vr-default primary.cfg
NVRAM
Reboot to move downloaded file
boot Primary Image
into running configuration.
If the -vr option is not specified, Secondary Image
vr-mgmt is used. Primary Configuration
Simplified syntax: Secondary Configuration
tftp get <tftp_server> {-vr Downloaded Configuration
<vr_name>} <source_file_name>
<destination_file_names>
Alternative command: tftp

tftp 10.0.4.106 –v vr-default


-g primary.cfg
TFTP Server 10.0.4.106

Slide 19
upload configuration

Managing ASCII-formatted Configuration Files

The active configuration can be uploaded to a tftp server in ASCII


format as a command script. This allows you to:
• Modify the offline configuration file using a text editor.
• Download the modified configuration file to one or more switches.
• Send a copy of the configuration file to Extreme Networks.
Use the following command to transfer the current configuration as
a command script in ASCII format:
upload configuration 20.0.0.102 newscript.xsf vr vr-default
The upload command allows you to specify the remote file name
and use the .xsf file extension.
Once uploaded, you may edit the command script on the tftp server
using a text editor.

Slide 20
tftp get, load script, save, edit

Downloading ASCII-formatted Command Scripts

To download the modified command script, use the TFTP command:


tftp get [<host-name> | <ip-address>] <remote-file>
To load the ASCII-formatted command script, use the load script
command:
load script newscript.xsf
• The file must have a .xsf file extension.
Commands scroll across on screen as they are executed.
Save the runtime configuration.
save configuration primary
Command scripts can be created or modified on the switch using
the switch editor.
edit script newscript.xsf

Slide 21
unconfigure switch

Returning the Switch To Factory Defaults

To return switch to factory defaults, except:


• User accounts
• Passwords
• Date and time
unconfigure switch
To return switch to factory defaults, except:
• Date and time
unconfigure switch all
The switch reboots and prompts for:
• Telnet enabled or disabled
• SNMP enabled or disabled
• Data ports enabled or disabled
• Failsafe account username and password change
• permit failsafe account access via the management port
Slide 22
File Management on
the Switch

©
© 2008
2008 Extreme
Extreme Networks,
Networks, Inc.
Inc. All
All rights
rights reserved.
reserved. ExtremeXOS
ExtremeXOS Operation
Operation and
and Configuration,
Configuration, Version
Version 12.1.
12.1. Part
Part number
number DOC-00919.
DOC-00919.
ls

File System Commands

UNIX-like file system


To list configuration and policy files, use the ls command.

Summit-X450-24x.32 # ls

-rw-r--r-- 1 root 0 25263 May 11 17:27 HUNTQUAD.cfg


-rw-rw-rw- 1 root 0 108322 May 23 19:31 myBackup.cfg
-rw-rw-rw- 1 root 0 108322 May 23 14:07 primary.cfg
-rw-rw-rw- 1 root 0 108322 May 23 19:31 secondary.cfg

Permissions Links Owner Size Date and Time Filename

Slide 24
cp, mv, rm

Copying, Renaming, and Removing Files

To copy a file:
cp primary.cfg tested.cfg
Copy config primary.cfg to config tested.cfg on switch?(y/n)
To rename a file:
mv tested.cfg elevensix.cfg
Rename config tested.cfg to config elevensix.cfg on switch?
(y/n)
To remove a file:
rm elevensix.cfg
Remove elevensix.cfg from switch? (y/n)
Action takes place on both primary and backup MSM.

Slide 25
edit policy <filename>

Policy Files

ExtremeXOS uses policy files to implement the following:


• Access Lists (ACLs).
• Applying quality of service (QoS) to a packet.
• Routing access profiles used to control the advertisement or recognition of
routing protocols.
• Route maps used to modify or filter routes.
• Policy files are created by writing a text file using the switch editor or offline
using notepad:
edit policy <filename>
• Policy file names use “.pol” as the filename extension.
• Policy files are transferred to and from the switch using TFTP.

Slide 26
edit <file_type> <file_name>

Using the Switch Editor

Switch-based tool that enables Use the keyboard arrow keys to


you to edit policy, script, and position your cursor within the
Universal Port Manager files. file.
Edit operates in one of two Press escape to return to the
modes: command and insert. command mode:
When a file first opens, you are in • dd To delete the current
the edit command mode. To write line
in the file press one of the • yy To copy the current
following keys: line
• i To enter insert mode • p To paste the line
copied
• o To open a new line • :w To write (save) the file
• a To append
• :q To quit the file if no
changes
were made
• :q! To forcefully quit the
file
Slide 27
BootStrap and
BootROM

©
© 2008
2008 Extreme
Extreme Networks,
Networks, Inc.
Inc. All
All rights
rights reserved.
reserved. ExtremeXOS
ExtremeXOS Operation
Operation and
and Configuration,
Configuration, Version
Version 12.1.
12.1. Part
Part number
number DOC-00919.
DOC-00919.
BootStrap > h

BootStrap Menu Options


Console Port Terminal

BootStrap > h
boot boot a loader
enable enable features
h on-line help
help on-line help
? on-line help
loader Sets which BootLoader BootStrap will boot
reboot Reboot system (hard reset)
rz zmodem download
BootStrap >

Accessing the BootStrap menu implies a non-standard problem


• Power cycle the switch while holding the space bar down.
• When “BootStrap>” appears, release the space bar.
• Type “h” at the prompt.
Slide 29
BootROM Menu Options
BootRom > h
boot boot an image
loader Sets which BootLoader BootStrap will boot
reboot Reboot system (hard reset)
rz zmodem download
show display information
config select configuration
enable enable features
h on-line help
help on-line help
? on-line help
hi display command history
dir list contents of CF directory
cd change working CF directory
pwd print working CF directory
ping ping remote host
configip configure the bootloader ip address
showip show the configuration of the bootloader ip address
download download an image
BootRom > boot

If
Accees
Thethe
Exit theconfig
BootROM
BootROM iscontains
BootROM corrupt,
bybyholding
usedown
issuing
many thethe
of "config
the space
"boot" none"
commands barfound
commandcommand
afterinthe
to BootStrap
the start the device
BootStrap has started
utility

Slide 30
download bootrom <ip> <filename>

Upgrading the BootROM


TFTP Server 10.0.4..106

tftp

download bootrom 10.0.4.106 summitX450-12.1.1.4.xbr

The BootROM is responsible for booting the switch.


• It tells the switch which image and configuration to use.
The BootROM verifies the software signature and denies
incompatible software.
Upgrading the BootROM is often required for new major image
versions.
Care is required. An interruption could corrupt the BootROM.
• If the BootROM is corrupted, the switch must be returned to the factory.

Slide 31
Summary

You should now be able to:


Identify switch software images and configuration files.
Save the switch configuration.
Copy, rename, and remove configuration files.
Assign an IP address to the a VLAN.
Backup the switch configuration.
Create, edit, and restore an ASCII-based command script.
Download a software image.

Slide 32
Switch Management Lab

Login to the switch


Identify software, switch boot images, and configuration files
Save the switch configuration
Assign an IP address to a VLAN
Backup the configuration
Download a software image
Display memory
Ethernet
Display processes Management Port

Terminate a process Console Port


Restart a process Terminal

Slide 33
Lab

Turn to the Switch Management Lab


in the ExtremeXOS™ Operations and Configuration - Lab Guide Rev. 12.1
and complete the hands-on portion of this module.

Slide 34
Review Questions

©
© 2008
2008 Extreme
Extreme Networks,
Networks, Inc.
Inc. All
All rights
rights reserved.
reserved. ExtremeXOS
ExtremeXOS Operation
Operation and
and Configuration,
Configuration, Version
Version 12.1.
12.1. Part
Part number
number DOC-00919.
DOC-00919.
This presentation contains forward-looking statements that involve
risks and uncertainties, including statements regarding our
expectations as to products, trends and our performance. There can be
no assurances that any forward-looking statements will be achieved,
and actual results could differ materially from forecasts and estimates.
For factors that may affect our business and financial results please
refer to our filings with the Securities and Exchange Commission,
including, without limitation, under the captions: “Management’s
Discussion and Analysis of Financial Condition and Results of
Operations,” and “Risk Factors,” which is on file with the Securities
and Exchange Commission (http://www.sec.gov). We undertake no
obligation to update the forward-looking information in this release.

©
© 2008
2008 Extreme
Extreme Networks,
Networks, Inc.
Inc. All
All rights
rights reserved.
reserved. ExtremeXOS
ExtremeXOS Operation
Operation and
and Configuration,
Configuration, Version
Version 12.1.
12.1. Part
Part number
number DOC-00919.
DOC-00919.
The End

©
© 2008
2008 Extreme
Extreme Networks, Inc. All
Networks, Inc. All rights reserved. ExtremeXOS
rights reserved. ExtremeXOS Operation and Configuration,
Operation and Configuration, Version 12.1. Part
Version 12.1. Part number
number DOC-00919.
DOC-00919.

You might also like