Академический Документы
Профессиональный Документы
Культура Документы
Extreme Networks........................................................................................................................... 1
EXOS Cheat Sheet....................................................................................................................... 1
EXOS
Switch
Basics.............................................................................................................................................. 1
Extreme Networks
EXOS Quick Guide
Just enough to be dangerous
Manuals....................................................................................................................................... 1
Connecting to the Switch............................................................................................................. 1
Basic CLI Navigation.................................................................................................................... 1
Port numbering............................................................................................................................ 1
System-level Components.............................................................................................................. 3
Software...................................................................................................................................... 3
Load new software.................................................................................................................... 3
Select the next image to be booted.......................................................................................... 4
Reboot...................................................................................................................................... 4
Hardware..................................................................................................................................... 4
Type of system.......................................................................................................................... 4
Power Supplies.......................................................................................................................... 4
Fans.......................................................................................................................................... 4
Serial numbers.......................................................................................................................... 4
Total service time...................................................................................................................... 4
License levels........................................................................................................................... 4
Date & time information........................................................................................................... 4
File storage............................................................................................................................... 4
Managing Configurations............................................................................................................. 5
Look at the current configuration............................................................................................. 5
CLI Paging................................................................................................................................. 5
Booting Configuration Files....................................................................................................... 5
Saving a configuration file........................................................................................................ 5
Backing up a config file to/from a TFTP server..........................................................................6
Reset the switch to factory defaults......................................................................................... 6
Using Ports...................................................................................................................................... 7
Configuring Port Speed and Duplex............................................................................................. 7
Enabling and Disabling Ports....................................................................................................... 7
EAPS.......................................................................................................................................... 15
Turn on a DHCP server on a test VLAN....................................................................................... 15
Bootprelay................................................................................................................................. 15
Mirroring (Span Port).................................................................................................................. 16
This is just an unoffical cheat sheet. Theres lots more information in the official manuals.
From the Extreme Web Site (www.extremenetworks.com)
Hardware Installation Guides
o How to install the hardware, of course, but also technical specs on the gear
(electrical power requirements, heat generated, etc.
Command Reference
o Documents the syntax of every command and every option
Concepts Guide
o Explains the technologies and concepts behind them. Probably the most useful
manual.
o Appendix A explains what software features are supported at each license level
From the software update site
Release notes
o Documents new features and hardware
o Explains how to upgrade software
o Has the engineering limits for that release of code. For example, how many IPv6
routes can be learned by the switch running that version of code can be found in
the release notes.
o Bugs that have been fixed and bugs that Extreme knows about
o Probably the second most useful manual.
Port numbering
In standalone switches (not stacked, not in a chassis), ports are identified by their number 1, 2,
3, 4, etc.
When switches are stacked or for ports in a chassis, ports are identified by <module>:<port>,
e.g. 1:1, 2:24, etc.
You can use lists of ports separated by commas: 1,17,23 or 1:1,2:27,3:23
You can use port ranges: 1-12 or 4:4-4:14. In the later case, 4:4-14 also works.
You can also mix the lists and ranges: 1-4,23 or 4:4-14,5:7
System-level Components
Software
EXOS switches store two versions of code in non-volatile RAM. The two versions are called
Primary and Secondary, but that does not mean that Primary is tried first and if it fails to work
then Secondary is tried. Primary and Secondary are just names. The show switch command
will let you see what versions of software are loaded into the switch, version the switch is
running on (Image Booted), and what version will be loaded the next time the switch boots
(Image Selected).
VDB.1 # show switch
SysName:
SysLocation:
SysContact:
System MAC:
System Type:
VDB
SysHealth check:
Recovery Mode:
System Watchdog:
Enabled (Normal)
All
Enabled
Current Time:
Timezone:
Boot Time:
Boot Count:
Next Reboot:
System UpTime:
Current State:
Image Selected:
Image Booted:
Primary ver:
Secondary ver:
OPERATIONAL
primary
secondary
12.5.2.6
12.4.2.17
Config Selected:
Config Booted:
primary.cfg
primary.cfg
primary.cfg
summitX-12.6.1.3.xos
vr vr-default
On very rare occasions, you might also need to load new boot code onto the switch before you
run new software. The release notes will tell you if your current boot code is compatible. If you
do need to download a new bootrom, then dont do it just because you can. However, if you do
need a new bootrom, the command is almost identical:
download bootrom 192.168.1.27
pmon_summitl-1.0.5.6.xtr
vr vr-default
Hardware
Type of system
show switch
Power Supplies
show power
Fans
show fans
Serial numbers
show version
Switch
: 800190-00-02 0634G-00406 Rev 2.0 BootROM: 1.0.5.5
XGM2-1
: N/A
N/A
Rev 0.0
IMG: 12.5.2.6
Image
License levels
show license
Date & time information
show switch
tells the current date and time, the timezeone, and when the switch was booted.
File storage
Because EXOS runs on a LINUX kernel, the file system commands are very LINUX-like.
4
Directory listing ls
Copy a file cp <filename1> <filename2>
Rename a file mv <filename1> <filename2>
Delete a file rm <filename>
Managing Configurations
Look at the current configuration
show config
If you want to see the configuration for a particular module (e.g. vlan, IP, eaps, OSPF, etc.) you
can specify just that module
show config ospf
CLI Paging
By default, the CLI shows you a page of 25 lines at a time and then waits for you to hit a key to
continue. That can get annoying, particularly if you have set your terminal program to capture
the output to a log file. You can turn off the page-by-page display with the command
disable clipaging
When youre done scrolling out the config file, turn the paging feature back on with the
command
enable clipaging
save config - will write the current config to whichever file is specified in Config selected.
save config <filename> - will write the current config to a new file name and then ask if you
want to make the new file the default database; do you want to select this file for booting.
Note: Even though config files always end in .cfg EXOS will complain if you add the extension.
So just give it the name of the new config.
Example
Example:
tftp put 192.168.1.1 vr vr-default test.cfg
Note: You dont specify the .cfg extension when saving files, but you do want to specify the
.cfg when using tftp.
Note: EXOS config files are stored as XML, which can be hard for us humans to read. EXOS and
Ridgeline identify normal ASCII files with an extension of xsf. So to upload the config in ASCII
format, use the command
upload configuration <tftp address>
Example:
upload configuration 192.168.1.1 newscript.xsf vr vr-default
There is no download configuration command so use tftp get to copy an xsf file back down to
the switch.
Reset the switch to factory defaults
unconfigure switch Resets everything back to factory defaults except for the odometer,
clock, and user accounts and passwords.
unconfigure swith all Also resets the user accounts and passwords.
Note: Neither command will affect license levels or the stacking mode of a switch.
Using Ports
Configuring Port Speed and Duplex
config port 1 auto off speed 100 duplex half
config port 1:1-1:5 auto off speed 1000 duplex full
config port 22 auto on
Note: The no-refresh shows you the screen once and exits. Otherwise, EXOS will continue to
update the display.
show port 3,4,9-12 config no-refresh
Port Configuration
Port
Virtual
Port Link Auto
Speed
Duplex
Flow Load
Media
router
State State Neg Cfg Actual Cfg Actual Cntrl Master Pri Red
================================================================================
3
VR-Default E
R
ON AUTO
AUTO
UTP
4
VR-Default E
R
ON AUTO
AUTO
UTP
9
VR-Default E
R
ON AUTO
AUTO
UTP
10
VR-Default E
R
ON AUTO
AUTO
UTP
11
VR-Default E
R
ON AUTO
AUTO
UTP
12
VR-Default E
R
ON AUTO
AUTO
UTP
================================================================================
> indicates Port Display Name truncated past 8 characters
Link State: A-Active R-Ready NP- Port not present L-Loopback
Port State: D-Disabled, E-Enabled
Media: !-Unsupported Optic Module
Media Red: * - use "show port info detail" for redundant media type
VLAN/Port Membership
show port 1 info detail
Port Utilization
show
show
show
show
port
port
port
port
utilization
1-3 utilization bandwidth
3:4,3:7 utilization packets
17 utilization bytes
Note: You can only monitor one port from each SummitStack or BD8K module at a time.
Link Aggregation
Link Aggregation is the standard industry term for what Cisco calls EtherChannel and Avaya calls
MultiLinkTrunking.
To create a LAG, the command is
Examples:
enable sharing 1 grouping 1-2
enable sharing 5:3 grouping 5:3-5:4, 6:3-6:4
Some
LACP
To use LACP with a LAG, simply add the LACP keyword at the end of the command
Examples:
enable sharing 1 grouping 1-2 lacp
enable sharing 5:3 grouping 5:3-5:4, 6:3-6:4 lacp
The Link Aggregation Control Protocol brings several advantages to Link Aggregation, some of
which include
LACP gives much better visibility into the LAG partner switch
Allows you to add and delete ports without tearing down the whole LAG
LAG recovers from port failures faster with LACP
LACP can only be added to a LAG when the LAG is built. If you create a LAG without LACP
and later decide you want to add it, you have to tear down the LAG and then rebuild it
using LACP
NOTE:, LACP must be enabled on both ends before the LAG will come up. If LACP is enabled on
one end and not the other, the ports on the LACP will never be operational. So its either all or
nothing.
Using VLAN's
EXOS is very VLAN-centric. Unlike port-based operating systems, most of the configuration in
EXOS takes place at the VLAN level. VLANs are created, then given IP addresses, ports, 802.1Q
tag values and QoS settings In short, the VLAN must be created first and then configured.
Once the VLAN is created, you refer to it directly by name when you give it an IP address, add
ports to it, etc. In fact, the VLAN name is mandatory and (in most cases) the keyword vlan is
optional. Also, in EXOS, VLANs are usually given descriptive names like data or voice or
wireless instead of vlan2100.
Note: When configuring VLANs, the vlan keyword is optional
Create a VLAN
10
Mixing Tagged and Untagged Traffic: EXOS fully supports this. That is, a port can be an untagged
member of one VLAN and a tagged member of several other VLANs simultaneously.
#add untagged ports to a VLAN
config Data add port 1-12
#add tagged ports on module 1 to a stacked switch or chassis
config Data add port 2:45-48 tag
11
Example
show data
VLAN Interface with name data created by user
Admin State:
Enabled
Tagging:
802.1Q Tag 11
Virtual router: VR-Default
IPv4 Forwarding: Enabled
Primary IP
: 192.168.11.100/24
IPv6 Forwarding: Disabled
IPv6:
None
STPD:
None
Protocol:
Match all unfiltered protocols
Loopback:
Disabled
NetLogin:
Disabled
QosProfile:
QP1
Egress Rate Limit Designated Port: None configured
Flood Rate Limit QosProfile:
None configured
Ports:
18.
(Number of active ports=0)
Untag:
25,
26,
27,
28,
29,
30,
32,
33,
34,
35,
36,
37,
39,
40
Tag:
47,
48b
Flags:
(*) Active, (!) Disabled, (g) Load Sharing port
(b) Port blocked on the vlan, (m) Mac-Based port
(a) Egress traffic allowed for NetLogin
(u) Egress traffic unallowed for NetLogin
FDB Operations
show fdb to see the entire L2 forwarding data base
show fdb [vlan] <vlan name> to see the FDB for one VLAN
show fdb ports <port list>
show fdb
You can specify ports and vlans and particular mac addresses when clearing.
12
31,
38,
IP Routing
Show the Route Table
show iproute
iparp
iparp <vlan name>
iparp <ipaddress>
iparp <macaddress>
clear iparp
clear iparp <vlan name>
show iparp <ipaddress>
Enable Routing
In EXOS, you have to do two things before you route to/from a VLANs:
1. Give the VLAN an IP address
2. Enable IP forwarding
If you just give the VLAN an IP address, you can ping the interface, telnet to it, point your web
browser at it, but you the switch wont route on that VLAN. To turn on routing on a VLAN
enable ipforwarding [vlan] <vlan name>
13
Note: just because you can ping a VLAN does not mean that VLAN has IP forwarding enabled.
An EXOS switch will respond to a ping to any of its IP addresses regardless of the state of IP
forwarding.
OSPF
Set the OSPF routerid
config ospf routerid <router id>
config ospf routerid 1.1.1.1
enable ospf
The range is 0 through 255, higher numbers win. The default setting is 1. Setting the value to 0
ensures that the router is never selected as the designated router (DR) or backup designated
router (BDR).
Note: you need a full core license to change the OSPF priority. An edge license doesnt support
OSPF and an advanced-edge license is only priority 0.
Turn on OSPF for a VLAN
config ospf add Data area 0.0.0.0
enable ospf
14
VRRP
Configure VRRP
create vrrp Data vrid 1
config vrrp Data vrid 1 add 10.1.10.1
create vrrp vlan Voice vrid 2
config vrrp Voice vrid 2 add 2 10.1.20.1
enable vrrp
Note: If the virtual IP address is the same as a VLAN IP address, the switch will preempt and
become the VRRP master for that VRID, regardless of the priority settings.
Examine VRRP
show config vrrp to see how its configured
show vrrp to see whats actually happening
Turn on SNTP
#configuretimezonenameEST300autodstnameEDT
configuretimezonenameCST360autodstnameCDT
#configuretimzonenameMST420autodstnameMDT
#configuretimzonenamePST480autodstnamePDT
SNMP
configure snmp add community readonly new_ro
configure snmp add community readwrite new_rw
15
Ever.
Note: The DHCP server is not intended for production use. It ony supports a couple of options
and it will not handle a heavy load.
Bootprelay
# enable bootprelay for every VLAN
enable bootprelay
#or just for the upstream and downstream VLANs
enable bootprelay vlan data
enable bootprelay vlan backbone
#either way, add the IP address of the DHCP server
config bootprelay add 10.1.30.254
To disable BOOTP relay on one or more VLANs, use the following command:
disable bootprelay vlan data
show bootprelay
Mirror all traffic received on VLAN red, port 5 to the monitor port 4
enable mirroring to port 4
configure mirroring add vlan red port 5
Mirror all traffic received at port 6:5 to the monitor ports 2:5-2:7. Port 3:1 is the loopback port
(otherwise unused)
enable mirroring to port-list 2:5-2:7 loopback-port 3:1
configure mirroring add port 6:5 ingress
Note: Up to 128 mirroring filters can be configured with the restriction that a maximum of 16 of
these can be configured as VLAN and/or virtual port (port + VLAN) filters.
Note: One monitor port or 1 monitor port list can be configured. A monitor port list may contain
up to 16 ports.
17