Brocade Communications Systems 6650 User Manual

4 (1)

53-1002600-01

®

28 September 2012

 

Brocade ICX 6650

Administration Guide

Supporting FastIron Software Release 07.5.00

Copyright © 2006-2012 Brocade Communications Systems, Inc. All Rights Reserved.

Brocade, Brocade Assurance, the B-wing symbol, BigIron, DCX, Fabric OS, FastIron, MLX, NetIron, SAN Health, ServerIron, TurboIron, VCS, and VDX are registered trademarks, and AnyIO, Brocade One, CloudPlex, Effortless Networking, ICX, NET Health, OpenScript, and The Effortless Network are trademarks of Brocade Communications Systems, Inc., in the United States and/or in other countries. Other brands, products, or service names mentioned may be trademarks of their respective owners.

Notice: This document is for informational purposes only and does not set forth any warranty, expressed or implied, concerning any equipment, equipment feature, or service offered or to be offered by Brocade. Brocade reserves the right to make changes to this document at any time, without notice, and assumes no responsibility for its use. This informational document describes features that may not be currently available. Contact a Brocade sales office for information on feature and product availability. Export of technical data contained in this document may require an export license from the United States government.

The authors and Brocade Communications Systems, Inc. shall have no liability or responsibility to any person or entity with respect to any loss, cost, liability, or damages arising from the information contained in this book or the computer programs that accompany it.

The product described by this document may contain “open source” software covered by the GNU General Public License or other open source license agreements. To find out which open source software is included in Brocade products, view the licensing terms applicable to the open source software, and obtain a copy of the programming source code, please visit http://www.brocade.com/support/oscd.

Brocade Communications Systems, Incorporated

Corporate and Latin American Headquarters

Asia-Pacific Headquarters

 

Brocade Communications Systems, Inc.

Brocade Communications Systems China HK, Ltd.

130 Holger Way

No. 1 Guanghua Road

 

San Jose, CA 95134

Chao Yang District

 

Tel: 1-408-333-8000

Units 2718 and 2818

 

Fax: 1-408-333-8101

Beijing 100020, China

 

E-mail: info@brocade.com

Tel: +8610 6588 8888

 

 

Fax: +8610 6588 9999

 

 

E-mail: china-info@brocade.com

 

European Headquarters

Asia-Pacific Headquarters

 

Brocade Communications Switzerland Sàrl

Brocade Communications Systems Co., Ltd. (Shenzhen WFOE)

Centre Swissair

Citic Plaza

 

 

Tour B - 4ème étage

No. 233 Tian He Road North

 

29, Route de l'Aéroport

Unit 1308 – 13th Floor

 

Case Postale 105

Guangzhou, China

 

CH-1215 Genève 15

Tel: +8620 3891 2000

 

Switzerland

Fax: +8620 3891 2111

 

Tel: +41 22 799 5640

E-mail: china-info@brocade.com

 

Fax: +41 22 799 5641

 

 

 

E-mail: emea-info@brocade.com

 

 

 

Document History

 

 

 

 

 

 

 

Title

Publication number

Summary of changes

Date

 

 

 

 

Brocade ICX 6650 Administration Guide

53-1002600-01

New document

September 2012

 

 

 

 

Contents

About This Document

Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Supported hardware and software . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Brocade ICX 6650 slot and port numbering . . . . . . . . . . . . . . . . . . . xiii Document conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv Notice to the reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi Additional information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi Getting technical help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xvii Document feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xvii

Chapter 1

Management Applications

 

 

Management port overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1

 

How the management port works. . . . . . . . . . . . . . . . . . . . . . . . .

1

 

CLI Commands for use with the management port. . . . . . . . . . .

2

Logging on through the CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Online help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Command completion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Scroll control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Line editing commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Using slot number, and port number

with CLI commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 CLI nomenclature on Brocade ICX 6650 models . . . . . . . . . . . . 6 Searching and filtering output from CLI commands . . . . . . . . . . 6 Using special characters in regular expressions . . . . . . . . . . . . . 8 Creating an alias for a CLI command . . . . . . . . . . . . . . . . . . . . . 10

Chapter 2

Basic Software Features

 

 

Basic system parameter configuration . . . . . . . . . . . . . . . . . . . . . . .

14

 

Entering system administration information . . . . . . . . . . . . . . .

15

 

SNMP parameter configuration . . . . . . . . . . . . . . . . . . . . . . . . .

15

 

Displaying virtual routing interface statistics. . . . . . . . . . . . . . .

18

 

Disabling Syslog messages and traps for CLI access . . . . . . . .

18

 

Cancelling an outbound Telnet session . . . . . . . . . . . . . . . . . . .

20

Specifying an SNTP server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20

Brocade ICX 6650 Administration Guide

iii

53-1002600-01

 

Configuring the device as an SNTP server . . . . . . . . . . . . . . . . . . . .23 Displaying SNTP server information . . . . . . . . . . . . . . . . . . . . . .25 Enabling broadcast mode for an SNTP client . . . . . . . . . . . . . .25 Setting the system clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Limiting broadcast, multicast, and unknown unicast traffic. . .28 CLI banner configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Local MAC address for Layer 2 management traffic . . . . . . . . .30

Basic port parameter configuration. . . . . . . . . . . . . . . . . . . . . . . . . . 31 Assigning a port name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Port speed and duplex mode modification . . . . . . . . . . . . . . . .32 Downgrading the Brocade ICX 6650 front panel ports

from 10 GbE to 1 GbE port speed . . . . . . . . . . . . . . . . . . . . . . .33 Enabling auto-negotiation maximum port speed

advertisement and down-shift . . . . . . . . . . . . . . . . . . . . . . . . . .33 Modifying port duplex mode . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 Disabling or re-enabling a port . . . . . . . . . . . . . . . . . . . . . . . . . .35 Flow control configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 Symmetric flow control on Brocade ICX 6650 devices . . . . . . . 37 Interpacket Gap (IPG) on a Brocade ICX 6650 switch. . . . . . . .39 Changing the Gbps fiber negotiation mode . . . . . . . . . . . . . . . .39 Port priority (QoS) modification. . . . . . . . . . . . . . . . . . . . . . . . . .40 Port flap dampening configuration . . . . . . . . . . . . . . . . . . . . . . .40 Port loop detection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43

Chapter 3

Operations, Administration, and Maintenance

 

 

OAM Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

50

Software versions installed and running on a device. . . . . . . . . . . .50 Determining the flash image version running on the device . .50 Displaying the boot image version running on the device . . . . 51 Displaying the image versions installed in flash memory . . . . . 51 Flash image verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52

Image file types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 Software upgrades . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 Viewing the contents of flash files . . . . . . . . . . . . . . . . . . . . . . . . . . .53 Using SNMP to upgrade software . . . . . . . . . . . . . . . . . . . . . . . . . . .54

Software reboot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 Software boot configuration notes . . . . . . . . . . . . . . . . . . . . . . .56

Displaying the boot preference . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56

Loading and saving configuration files . . . . . . . . . . . . . . . . . . . . . . . 57 Replacing the startup configuration with the

running configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 Replacing the running configuration with the

startup configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 Logging changes to the startup-config file. . . . . . . . . . . . . . . . .58 Copying a configuration file to or from a TFTP server . . . . . . . .59 Dynamic configuration loading . . . . . . . . . . . . . . . . . . . . . . . . . .59 Maximum file sizes for startup-config file and running-config . 61

iv

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Loading and saving configuration files with IPv6 . . . . . . . . . . . . . . .62 Using the IPv6 copy command . . . . . . . . . . . . . . . . . . . . . . . . . .62 Copying a file from an IPv6 TFTP server. . . . . . . . . . . . . . . . . . .63 IPv6 ncopy command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 IPv6 TFTP server file upload . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 Using SNMP to save and load configuration information . . . . .66 Erasing image and configuration files . . . . . . . . . . . . . . . . . . . .67

System reload scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 Reloading at a specific time . . . . . . . . . . . . . . . . . . . . . . . . . . . .67 Reloading after a specific amount of time. . . . . . . . . . . . . . . . .68 Displaying the amount of time remaining before

a scheduled reload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 Canceling a scheduled reload. . . . . . . . . . . . . . . . . . . . . . . . . . .68

Diagnostic error codes and remedies for TFTP transfers. . . . . . . . .68

Network connectivity testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 Pinging an IPv4 address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 Tracing an IPv4 route . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

Chapter 4

Ports on Demand Licensing

 

 

Ports on Demand Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

73

Ports on Demand terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 PoD licensing rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

PoD licensing configuration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Obtaining a PoD license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75

Viewing PoD licensing information from the

Brocade software portal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80 Transferring a PoD license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 Syslog message information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82

Ports on Demand Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 Front panel PoD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82 Rear panel Flexible Ports on Demand . . . . . . . . . . . . . . . . . . . .83 PoD licenses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 Enabling ports on the front panel . . . . . . . . . . . . . . . . . . . . . . . .84 Deleting a ICX6650-10G-LIC-POD license . . . . . . . . . . . . . . . . .86 Enabling ports on the rear panel . . . . . . . . . . . . . . . . . . . . . . . . 87 Disabling the FPoD ports on the rear panel. . . . . . . . . . . . . . . .89 Deleting a 10 GbE or 40 GbE license . . . . . . . . . . . . . . . . . . . . .90

Viewing information about PoD licenses . . . . . . . . . . . . . . . . . . . . . . 91 Viewing the LID and the software packages

installed in the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Displaying general license information for PoD ports . . . . . . . .92 Displaying the license configuration for PoD ports

for the Brocade ICX 6650 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Configuration considerations when configuring PoD

for Brocade ICX 6650 devices. . . . . . . . . . . . . . . . . . . . . . . . . . .96

Brocade ICX 6650 Administration Guide

v

53-1002600-01

 

Chapter 5

IPv6 Configuration on Brocade ICX 6650 Switch

 

 

Full Layer 3 IPv6 feature support. . . . . . . . . . . . . . . . . . . . . . . . . . .

101

IPv6 addressing overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 IPv6 address types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .102 IPv6 stateless auto-configuration . . . . . . . . . . . . . . . . . . . . . . .104

IPv6 CLI command support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .104

IPv6 host address on a Layer 2 switch . . . . . . . . . . . . . . . . . . . . . .106 Configuring a global or site-local IPv6 address

with a manually configured interface ID . . . . . . . . . . . . . . . . .107 Configuring a link-local IPv6 address as a system-wide

address for a switch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107

Configuring the management port

for an IPv6 automatic address configuration . . . . . . . . . . . . . . . . .108

Configuring basic IPv6 connectivity on

a Layer 3 switch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 Enabling IPv6 routing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 IPv6 configuration on each router interface . . . . . . . . . . . . . .108 Configuring IPv4 and IPv6 protocol stacks. . . . . . . . . . . . . . . .111

IPv6 management on Brocade ICX 6650 devices

(IPv6 host support) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .112 Configuring IPv6 management ACLs . . . . . . . . . . . . . . . . . . . .112 Restricting SNMP access to an IPv6 node . . . . . . . . . . . . . . . .113 Specifying an IPv6 SNMP trap receiver . . . . . . . . . . . . . . . . . .113 Configuring SNMP V3 over IPv6 . . . . . . . . . . . . . . . . . . . . . . . .113 Configuring SNTP over IPv6. . . . . . . . . . . . . . . . . . . . . . . . . . . .113 Secure Shell, SCP, and IPv6 . . . . . . . . . . . . . . . . . . . . . . . . . . .113 IPv6 Telnet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 IPv6 traceroute. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 Configuring name-to-IPv6 address resolution using

IPv6 DNS resolver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 Defining an IPv6 DNS entry. . . . . . . . . . . . . . . . . . . . . . . . . . . .115 Pinging an IPv6 address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 Configuring an IPv6 Syslog server . . . . . . . . . . . . . . . . . . . . . .117 Viewing IPv6 SNMP server addresses . . . . . . . . . . . . . . . . . . .117 Disabling router advertisement and solicitation messages . .118 Disabling IPv6 on a Layer 2 switch . . . . . . . . . . . . . . . . . . . . . .118

Static IPv6 route configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . .118

IPv6 over IPv4 tunnels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 IPv6 over IPv4 tunnel configuration notes . . . . . . . . . . . . . . . .121 Configuring a manual IPv6 tunnel . . . . . . . . . . . . . . . . . . . . . .121 Clearing IPv6 tunnel statistics . . . . . . . . . . . . . . . . . . . . . . . . .122 Displaying IPv6 tunnel information. . . . . . . . . . . . . . . . . . . . . .123

ECMP load sharing for IPv6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 Disabling or re-enabling ECMP load sharing for IPv6 . . . . . . .127 Changing the maximum load sharing paths for IPv6 . . . . . . .127 Enabling support for network-based ECMP

load sharing for IPv6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .127 Displaying ECMP load-sharing information for IPv6 . . . . . . . .127

vi

Brocade ICX 6650 Administration Guide

 

53-1002600-01

IPv6 ICMP feature configuration . . . . . . . . . . . . . . . . . . . . . . . . . . .128 Configuring ICMP rate limiting . . . . . . . . . . . . . . . . . . . . . . . . .128 Enabling IPv6 ICMP redirect messages . . . . . . . . . . . . . . . . . .129

IPv6 neighbor discovery configuration . . . . . . . . . . . . . . . . . . . . . .129 IPv6 neighbor discovery configuration notes. . . . . . . . . . . . . .130 Neighbor solicitation and advertisement messages . . . . . . . .130 Router advertisement and solicitation messages . . . . . . . . . .131 Neighbor redirect messages . . . . . . . . . . . . . . . . . . . . . . . . . . .131 Setting neighbor solicitation parameters for

duplicate address detection . . . . . . . . . . . . . . . . . . . . . . . . . . .131 Setting IPv6 router advertisement parameters . . . . . . . . . . . .132 Prefixes advertised in IPv6 router

advertisement messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134 Setting flags in IPv6 router advertisement messages. . . . . . .135 Enabling and disabling IPv6 router advertisements . . . . . . . .135 Configuring reachable time for remote IPv6 nodes. . . . . . . . .136

IPv6 MTU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .136 Configuration notes and feature limitations

for IPv6 MTU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .136 Changing the IPv6 MTU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137

Static neighbor entries configuration . . . . . . . . . . . . . . . . . . . . . . .137 Limiting the number of hops an IPv6 packet can traverse . . . . . .138 IPv6 source routing security enhancements. . . . . . . . . . . . . . . . . .138

Clearing global IPv6 information . . . . . . . . . . . . . . . . . . . . . . . . . . .138 Clearing the IPv6 cache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139 Clearing IPv6 neighbor information . . . . . . . . . . . . . . . . . . . . .139 Clearing IPv6 routes from the IPv6 route table . . . . . . . . . . . .140 Clearing IPv6 traffic statistics . . . . . . . . . . . . . . . . . . . . . . . . . .140

Displaying global IPv6 information. . . . . . . . . . . . . . . . . . . . . . . . . .140 Displaying IPv6 cache information . . . . . . . . . . . . . . . . . . . . . .140 Displaying IPv6 interface information. . . . . . . . . . . . . . . . . . . . 141 Displaying IPv6 neighbor information. . . . . . . . . . . . . . . . . . . .144 Displaying the IPv6 route table . . . . . . . . . . . . . . . . . . . . . . . . .145 Displaying local IPv6 routers . . . . . . . . . . . . . . . . . . . . . . . . . . .146 Displaying IPv6 TCP information . . . . . . . . . . . . . . . . . . . . . . . . 147 Displaying IPv6 traffic statistics . . . . . . . . . . . . . . . . . . . . . . . .151

Chapter 6

SNMP Access

 

 

SNMP overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

155

SNMP community strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156 Encryption of SNMP community strings . . . . . . . . . . . . . . . . . .156 Adding an SNMP community string . . . . . . . . . . . . . . . . . . . . .156 Displaying the SNMP community strings . . . . . . . . . . . . . . . . .158

Brocade ICX 6650 Administration Guide

vii

53-1002600-01

 

User-based security model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159 Configuring your NMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159 Configuring SNMP version 3 on Brocade ICX 6650 devices. .159 Defining the engine id . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159 Defining an SNMP group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160 Defining an SNMP user account. . . . . . . . . . . . . . . . . . . . . . . .161

Defining SNMP views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163

SNMP version 3 traps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .164 Defining an SNMP group and specifying which

view is notified of traps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .164 Defining the UDP port for SNMP v3 traps . . . . . . . . . . . . . . . .165 Trap MIB changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .165 Specifying an IPv6 host as an SNMP trap receiver . . . . . . . . .166 SNMP v3 over IPv6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166 Specifying an IPv6 host as an SNMP trap receiver . . . . . . . . .166 Viewing IPv6 SNMP server addresses . . . . . . . . . . . . . . . . . . .167

Displaying SNMP Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .167 Displaying the Engine ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .167 Displaying SNMP groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .168 Displaying user information. . . . . . . . . . . . . . . . . . . . . . . . . . . .168 Interpreting varbinds in report packets . . . . . . . . . . . . . . . . . .168

SNMP v3 configuration examples . . . . . . . . . . . . . . . . . . . . . . . . . .169 Simple SNMP v3 configuration . . . . . . . . . . . . . . . . . . . . . . . . .169 More detailed SNMP v3 configuration . . . . . . . . . . . . . . . . . . .169

Chapter 7

Foundry Discovery Protocol (FDP) and Cisco Discovery Protocol (CDP)

 

 

Packets

 

 

FDP Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

171

 

FDP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

172

 

Displaying FDP information . . . . . . . . . . . . . . . . . . . . . . . . . . . .

173

 

Clearing FDP and CDP information. . . . . . . . . . . . . . . . . . . . . .

176

CDP packets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177 Enabling interception of CDP packets globally . . . . . . . . . . . . 177 Enabling interception of CDP packets on an interface . . . . . . 177 Displaying CDP information. . . . . . . . . . . . . . . . . . . . . . . . . . . .178 Clearing CDP information . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180

Chapter 8

LLDP and LLDP-MED

 

 

LLDP terms used in this chapter . . . . . . . . . . . . . . . . . . . . . . . . . . .

182

LLDP overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .183 Benefits of LLDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184

LLDP-MED overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184 Benefits of LLDP-MED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185 LLDP-MED class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186

viii

Brocade ICX 6650 Administration Guide

 

53-1002600-01

General LLDP operating principles . . . . . . . . . . . . . . . . . . . . . . . . .186 LLDP operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186 LLDP packets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .187 TLV support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .188

MIB support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191 Syslog messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191

LLDP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192 LLDP configuration notes and considerations. . . . . . . . . . . . .192 Enabling and disabling LLDP. . . . . . . . . . . . . . . . . . . . . . . . . . .193 Enabling support for tagged LLDP packets . . . . . . . . . . . . . . .193 Changing a port LLDP operating mode . . . . . . . . . . . . . . . . . .193 Maximum number of LLDP neighbors . . . . . . . . . . . . . . . . . . .195 Enabling LLDP SNMP notifications and Syslog messages . . .196 Changing the minimum time between LLDP transmissions . .197 Changing the interval between regular LLDP transmissions .198 Changing the holdtime multiplier for transmit TTL . . . . . . . . .198 Changing the minimum time between port reinitializations. .199 LLDP TLVs advertised by the Brocade device . . . . . . . . . . . . .199

LLDP-MED configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206 Enabling LLDP-MED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207 Enabling SNMP notifications and Syslog messages

for LLDP-MED topology changes. . . . . . . . . . . . . . . . . . . . . . . .207 Changing the fast start repeat count . . . . . . . . . . . . . . . . . . . .208 Defining a location id. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209 Defining an LLDP-MED network policy . . . . . . . . . . . . . . . . . . .215

LLDP-MED attributes advertised by the Brocade device . . . . . . . . 217 Displaying LLDP statistics and configuration settings. . . . . . .218 LLDP configuration summary . . . . . . . . . . . . . . . . . . . . . . . . . .218 Displaying LLDP statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .219 Displaying LLDP neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . .221 Displaying LLDP neighbors detail . . . . . . . . . . . . . . . . . . . . . . .222 Displaying LLDP configuration details . . . . . . . . . . . . . . . . . . .222

Resetting LLDP statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223 Clearing cached LLDP neighbor information. . . . . . . . . . . . . . . . . .224

Chapter 9

Hardware Component Monitoring

 

 

Digital optical monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

225

 

Digital optical monitoring configuration limitations. . . . . . . . .

225

 

Enabling digital optical monitoring . . . . . . . . . . . . . . . . . . . . . .

225

 

Setting the alarm interval . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

226

 

Displaying information about installed media . . . . . . . . . . . . .

226

 

Viewing optical monitoring information . . . . . . . . . . . . . . . . . .

228

 

Syslog messages for optical transceivers . . . . . . . . . . . . . . . .

230

Chapter 10

Syslog

 

 

About Syslog messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

232

Brocade ICX 6650 Administration Guide

ix

53-1002600-01

 

Displaying Syslog messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .232 Enabling real-time display of Syslog messages . . . . . . . . . . . .233 Enabling real-time display for a Telnet or SSH session . . . . . .233 Displaying real-time Syslog messages . . . . . . . . . . . . . . . . . . .234

Syslog service configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .234 Displaying the Syslog configuration . . . . . . . . . . . . . . . . . . . . .234 Disabling or re-enabling Syslog. . . . . . . . . . . . . . . . . . . . . . . . .238 Specifying a Syslog server. . . . . . . . . . . . . . . . . . . . . . . . . . . . .238 Specifying an additional Syslog server. . . . . . . . . . . . . . . . . . .239 Disabling logging of a message level . . . . . . . . . . . . . . . . . . . .239 Changing the number of entries the local buffer can hold . . .239 Changing the log facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240 Displaying interface names in Syslog messages. . . . . . . . . . . 241 Displaying TCP or UDP port numbers in Syslog messages . . . 241 Retaining Syslog messages after a soft reboot . . . . . . . . . . . .242 Clearing the Syslog messages from the local buffer . . . . . . . .242

Chapter 11

Network Monitoring

 

 

Basic system management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

243

 

Viewing system information . . . . . . . . . . . . . . . . . . . . . . . . . . .

243

 

Viewing configuration information . . . . . . . . . . . . . . . . . . . . . .

244

 

Viewing port statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

245

 

Viewing STP statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

247

 

Clearing statistics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

248

 

Viewing egress queue counters . . . . . . . . . . . . . . . . . . . . . . . .

249

RMON support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250 Maximum number of entries allowed in the

RMON control table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .250 Statistics (RMON group 1). . . . . . . . . . . . . . . . . . . . . . . . . . . . .251 History (RMON group 2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253 Alarm (RMON group 3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253 Event (RMON group 9). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253

sFlow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254 sFlow version 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254 sFlow support for IPv6 packets. . . . . . . . . . . . . . . . . . . . . . . . .255 sFlow configuration considerations . . . . . . . . . . . . . . . . . . . . .256 Configuring and enabling sFlow . . . . . . . . . . . . . . . . . . . . . . . .257 Enabling sFlow forwarding. . . . . . . . . . . . . . . . . . . . . . . . . . . . .263 sFlow version 5 feature configuration . . . . . . . . . . . . . . . . . . .264 Displaying sFlow information . . . . . . . . . . . . . . . . . . . . . . . . . .267

Utilization list for an uplink port . . . . . . . . . . . . . . . . . . . . . . . . . . . .270 Utilization list for an uplink port command syntax . . . . . . . . .270 Displaying utilization percentages for an uplink . . . . . . . . . . . 271

x

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Appendix A

Syslog messages

 

Appendix B

NIAP-CCEVS Certification

 

 

NIAP-CCEVS certified Brocade equipment and

 

 

Ironware releases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

299

 

Local user password changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

299

Index

 

 

Brocade ICX 6650 Administration Guide

xi

53-1002600-01

 

xii

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Brocade Communications Systems 6650 User Manual

About This Document

The Brocade ICX 6650 is a ToR (Top of Rack) Ethernet switch for campus LAN and classic Ethernet data center environments.

Audience

This document is designed for system administrators with a working knowledge of Layer 2 and Layer 3 switching and routing.

If you are using a Brocade Layer 3 Switch, you should be familiar with the following protocols if applicable to your network: IP, RIP, OSPF, BGP, ISIS, PIM, and VRRP.

Supported hardware and software

This document is specific to the Brocade ICX 6650 running FastIron 7.5.00.

Brocade ICX 6650 slot and port numbering

Many CLI commands require users to enter port numbers as part of the command syntax, and many show command outputs display port numbers. The port numbers are entered and displayed in stack-unit/slot number/port number format. In all Brocade ICX 6650 inputs and outputs, the stack-unit number is always 1.

The ICX 6650 contains the following slots and Ethernet ports:

Slot 1 is located on the front of the ICX 6650 device and contains ports 1 through 56. Ports 1 through 32 are 10 GbE. Ports 33 through 56 are 1/10 GbE SFP+ ports. Refer to the following figure.

Slot 1

Brocade ICX 6650 Administration Guide

xiii

53-1002600-01

 

Brocade ICX 6650 slot and port numbering

Slot 2 is located on the back of the ICX 6650 device and contains ports 1 through 3 on the top row and port 4 on the bottom row. These ports are 2x40 GbE QSFP+. Refer to the following figure.

Slot 2

Slot 2 Slot 3

Slot 3 is located on the back of the ICX 6650 device and contains ports 1 through 8. These ports are 4 x 10 GbE breakout ports and require the use of a breakout cable. Refer to the previous figure.

Document conventions

This section describes text formatting conventions and important notice formats used in this document.

Text formatting

The narrative-text formatting conventions that are used are as follows:

bold text

Identifies command names

 

Identifies the names of user-manipulated GUI elements

 

Identifies keywords and operands

 

Identifies text to enter at the GUI or CLI

italic text

Provides emphasis

 

Identifies variables

 

Identifies paths and Internet addresses

 

Identifies document titles

code text

Identifies CLI output

 

Identifies command syntax examples

For readability, command names in the narrative portions of this guide are presented in mixed lettercase: for example, switchShow. In actual examples, command lettercase is all lowercase.

Command syntax conventions

Command syntax in this manual follows these conventions:

command

Commands are printed in bold.

--option, option

Command options are printed in bold.

-argument, arg

Arguments.

Brocade ICX 6650 Administration Guide 53-1002600-01

 

Brocade ICX 6650 slot and port numbering

[ ]

Optional elements appear in brackets.

variable

Variables are printed in italics. In the help pages, values are underlined or

 

enclosed in angled brackets < >.

...

Repeat the previous element, for example “member[;member...]”

value

Fixed values following arguments are printed in plain font. For example,

 

--show WWN

|

Boolean. Elements are exclusive. Example: --show -mode egress | ingress

Notes, cautions, and warnings

The following notices and statements are used in this manual. They are listed below in order of increasing severity of potential hazards.

NOTE

A note provides a tip, guidance, or advice, emphasizes important information, or provides a reference to related information.

ATTENTION

An Attention statement indicates potential damage to hardware or data.

CAUTION

A Caution statement alerts you to situations that can be potentially hazardous to you or cause damage to hardware, firmware, software, or data.

DANGER

A Danger statement indicates conditions or situations that can be potentially lethal or extremely hazardous to you. Safety labels are also attached directly to products to warn of these conditions or situations.

Notice to the reader

This document might contain references to the trademarks of the following corporations. These trademarks are the properties of their respective companies and corporations.

These references are made for informational purposes only.

Corporation

Referenced Trademarks and Products

 

 

Microsoft Corporation

Windows, Windows NT, Internet Explorer

 

 

Oracle Corporation

Oracle, Java

 

 

Netscape Communications Corporation

Netscape

 

 

Mozilla Corporation

Mozilla Firefox

Brocade ICX 6650 Administration Guide

xv

53-1002600-01

 

Brocade ICX 6650 slot and port numbering

Corporation

Referenced Trademarks and Products

 

 

Sun Microsystems, Inc.

Sun, Solaris

 

 

Red Hat, Inc.

Red Hat, Red Hat Network, Maximum RPM, Linux Undercover

 

 

Related publications

The following Brocade documents supplement the information in this guide:

Brocade ICX 6650 Release Notes

Brocade ICX 6650 Hardware Installation Guide New

Brocade ICX 6650 Administration Guide

Brocade ICX 6650 Platform and Layer 2 Configuration Guide

Brocade ICX 6650 Layer 3 Routing Configuration Guide

Brocade ICX 6650 Security Configuration Guide

Brocade ICX 6650 IP Multicast Configuration Guide

Brocade ICX 6650 Diagnostic Reference

Unified IP MIB Reference

Ports-on-Demand Licensing for the Brocade ICX 6650

The latest versions of these guides are posted at http://www.brocade.com/ethernetproducts.

Additional information

This section lists additional Brocade and industry-specific documentation that you might find helpful.

Brocade resources

To get up-to-the-minute information, go to http://my.brocade.com to register at no cost for a user ID and password.

White papers, online demonstrations, and data sheets are available through the Brocade website at:

http://www.brocade.com/products-solutions/products/index.page

For additional Brocade documentation, visit the Brocade website: http://www.brocade.com

Release notes are available on the MyBrocade website.

Brocade ICX 6650 Administration Guide 53-1002600-01

Brocade ICX 6650 slot and port numbering

Other industry resources

For additional resource information, visit the Technical Committee T11 website. This website provides interface standards for high-performance and mass storage applications for Fibre Channel, storage management, and other applications:

http://www.t11.org

For information about the Fibre Channel industry, visit the Fibre Channel Industry Association website:

http://www.fibrechannel.org

Getting technical help

To contact Technical Support, go to http://www.brocade.com/services-support/index.page

for the latest e-mail and telephone contact information.

Document feedback

Quality is our first concern at Brocade and we have made every effort to ensure the accuracy and completeness of this document. However, if you find an error or an omission, or you think that a topic needs further development, we want to hear from you. Forward your feedback to:

documentation@brocade.com

Provide the title and version number of the document and as much detail as possible about your comment, including the topic heading and page number and your suggestions for improvement.

Brocade ICX 6650 Administration Guide

xvii

53-1002600-01

 

Brocade ICX 6650 slot and port numbering

Brocade ICX 6650 Administration Guide 53-1002600-01

Management Applications

1

 

 

In this chapter

Management port overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1

Logging on through the CLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3

Using slot number, and port number with CLI commands . . . . . . . . . . . . . . .

5

Table 1 lists the Brocade ICX 6650 switch and the management application features the switch supports. These features are supported in full Layer 3 software images.

TABLE12 1 Supported management application features

Feature

Brocade ICX

 

 

6650

 

 

Management port

Yes

 

 

industry-standard Command Line

Yes

Interface (CLI), including support for:

 

Serial and Telnet access

 

Alias command

 

On-line help

 

Command completion

 

Scroll control

 

Line editing

 

Searching and filtering output

 

Special characters

 

 

 

 

Management port overview

The management port is an out-of-band port that customers can use to manage their devices without interfering with the in-band ports. The management port is widely used to download images and configurations and for Telnet sessions.

How the management port works

The following rules apply to management ports:

Only packets that are specifically addressed to the management port MAC address or the broadcast MAC address are processed by the Layer 2 Switch or Layer 3 Switch. All other packets are filtered out.

No packet received on a management port is sent to any in-band ports, and no packets received on in-band ports are sent to a management port.

A management port is not part of any VLAN

Protocols are not supported on the management port.

Brocade ICX 6650 Administration Guide

1

53-1002600-01

 

1 Management port overview

Creating a management VLAN disables the management port on the device.

For switches, any in-band port may be used for management purposes. A router sends Layer 3 packets using the MAC address of the port as the source MAC address.

CLI Commands for use with the management port

The following CLI commands can be used with a management port.

To display the current configuration, use the show running-config interface management command.

Brocade(config-if-mgmt)#ip addr 10.44.9.64/24 Brocade(config)#show running-config interface management 1 interface management 1

ip address 10.44.9.64 255.255.255.0

Syntax: show running-config interface management <num>

To display the current configuration, use the show interfaces management command.

Brocade(config)#show interfaces management 1 GigEthernetmgmt1 is up, line protocol is up

Hardware is GigEthernet, address is 748e.f80c.5f40(bia 748e.f80c.5f40a) Configured speed auto, actual 1Gbit, configured duplex fdx, actual fdx Configured mdi mode AUTO, actual none

BPRU guard is disabled, ROOT protect is disabled Link Error Dampening is Disabled

STP configured to OFF, priority is level0, mac-learning is enabled Flow Control is config disabled, oper enabled

Mirror disabled, Monitor disabled Not member of any active trunks

Not member of any configured trunks No port name

IPG MII 0 bits-time, IPG GMII 0 bits-time IP MTU 1500 bytes

300 second input rate: 83728 bits/sec, 130 packets/sec, 0.01% utilization 300 second output rate: 24 bits/sec, 0 packets/sec, 0.00% utilization 39926 packets input, 3210077 bytes, 0 no buffer

Received 4353 broadcasts, 32503 multicasts, 370 unicasts 0 input errors, 0 CRC, 0 frame, 0 ignored

0 runts, 0 giants

22 packets output, 1540 bytres, 0 underruns Transmitted 0 broadcasts, 6 multicasts, 16 unicasts 0 output errors, 0 collisions

Syntax: show interfaces management <num>

To display the management interface information in brief form, enter the show interfaces brief management command.

Brocade(config)#show interfaces brief management 1

Pri

MAC

Name

Port

Link

State

Dupl

Speed

Trunk

Tag

mgmt1

Up

None

Full

1G

None

No

0

748e.f80c.5f40

 

Syntax: show interfaces brief management <num>

2

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Logging on through the CLI

1

To display management port statistics, enter the show statistics management command.

Brocade(config)#show statistics management 1

Tag

Pri

MAC

Name

Port

Link

State

Dupl

Speed

Trunk

mgmt1

Up

None

Full

1G

None

No

0

748e.f80c.5f40

 

Port mgmt1 Counters:

InOctets3210941OutOctets1540

InPkts39939OutPackets22

InBroadcastPkts4355OutbroadcastPkts0

InMultiastPkts35214OutMulticastPkts6

InUnicastPkts370OutUnicastPkts16

InBadPkts0

InFragments0

InDiscards0OutErrors0

CRC 0 Collisions0

InErrors0 LateCollisions0

InGiantPkts0

InShortPkts0

InJabber0

InFlowCtrlPkts0OutFlowCtrlPkts0

InBitsPerSec83728OutBitsPerSec24

InPktsPerSec130OutPktsPerSec0

InUtilization0.01%OutUtilization0.00%

Syntax: show statistics management <num>

To display the management interface statistics in brief form, enter the show statistics brief management command.

Brocade(config)#show statistics brief management 1 PortIn PacketsOut PacketsTrunkIn ErrorsOut Errors mgmt1399462200

Total399452200

Syntax: show statistics brief management <num>

Logging on through the CLI

Once an IP address is assigned to a Brocade device running Layer 2 software or to an interface on the Brocade device running Layer 3 software, you can access the CLI either through the direct serial connection to the device or through a local or remote Telnet session.

You can initiate a local Telnet or SNMP connection by attaching a cable to a port and specifying the assigned management station IP address.

The commands in the CLI are organized into the following levels:

User EXEC – Lets you display information and perform basic tasks such as pings and traceroutes.

Privileged EXEC – Lets you use the same commands as those at the User EXEC level plus configuration commands that do not require saving the changes to the system-config file.

Brocade ICX 6650 Administration Guide

3

53-1002600-01

 

1 Logging on through the CLI

CONFIG – Lets you make configuration changes to the device. To save the changes across reboots, you need to save them to the system-config file. The CONFIG level contains sub-levels for individual ports, for VLANs, for routing protocols, and other configuration areas.

NOTE

By default, any user who can open a serial or Telnet connection to the Brocade device can access all these CLI levels. To secure access, you can configure Enable passwords or local user accounts, or you can configure the device to use a RADIUS or TACACS/TACACS+ server for authentication. refer to the Brocade ICX 6650 Switch Security Configuration Guide.

Online help

To display a list of available commands or command options, enter “?” or press Tab. If you have not entered part of a command at the command prompt, all the commands supported at the current CLI level are listed. If you enter part of a command, then enter “?” or press Tab, the CLI lists the options you can enter at this point in the command string.

If you enter an invalid command followed by ?, a message appears indicating the command was unrecognized. An example is given below.

Brocade(config)#rooter ip

Unrecognized command

Command completion

The CLI supports command completion, so you do not need to enter the entire name of a command or option. As long as you enter enough characters of the command or option name to avoid ambiguity with other commands or options, the CLI understands what you are typing.

Scroll control

By default, the CLI uses a page mode to paginate displays that are longer than the number of rows in your terminal emulation window. For example, if you display a list of all the commands at the global CONFIG level but your terminal emulation window does not have enough rows to display them all at once, the page mode stops the display and lists your choices for continuing the display. An example is given below.

aaa all-client appletalk arp

boot

some lines omitted for brevity...

ipx lock-address logging

mac

--More--, next page: Space, next line: Return key, quit: Control-c

The software provides the following scrolling options:

Press the Space bar to display the next page (one screen at a time).

4

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Using slot number, and port number with CLI commands

1

Press the Return or Enter key to display the next line (one line at a time).

Press Ctrl+C or Ctrl+Q to cancel the display.

Line editing commands

The CLI supports the following line editing commands. To enter a line-editing command, use the CTRL+key combination for the command by pressing and holding the CTRL key, then pressing the letter associated with the command.

TABLE 2

CLI line editing commands

 

 

Ctrl+Key combination

Description

 

 

 

Ctrl+A

 

Moves to the first character on the command line.

 

 

 

Ctrl+B

 

Moves the cursor back one character.

 

 

 

Ctrl+C

 

Escapes and terminates command prompts and ongoing tasks (such as

 

 

lengthy displays), and displays a fresh command prompt.

 

 

 

Ctrl+D

 

Deletes the character at the cursor.

 

 

 

Ctrl+E

 

Moves to the end of the current command line.

 

 

 

Ctrl+F

 

Moves the cursor forward one character.

 

 

 

Ctrl+K

 

Deletes all characters from the cursor to the end of the command line.

 

 

 

Ctrl+L; Ctrl+R

 

Repeats the current command line on a new line.

 

 

 

Ctrl+N

 

Enters the next command line in the history buffer.

 

 

 

Ctrl+P

 

Enters the previous command line in the history buffer.

 

 

 

Ctrl+U; Ctrl+X

 

Deletes all characters from the cursor to the beginning of the command line.

 

 

 

Ctrl+W

 

Deletes the last word you typed.

 

 

 

Ctrl+Z

 

Moves from any CONFIG level of the CLI to the Privileged EXEC level; at the

 

 

Privileged EXEC level, moves to the User EXEC level.

 

 

 

Using slot number, and port number with CLI commands

Many CLI commands require users to enter port numbers as part of the command syntax, and many show command outputs display port numbers. The port numbers are entered in the following format: stack-unit/slot/port.

The ports are labelled on the front panels of the devices.

Brocade ICX 6650 Administration Guide

5

53-1002600-01

 

1 Using slot number, and port number with CLI commands

CLI nomenclature on Brocade ICX 6650 models

When you enter CLI commands that include the port number as part of the syntax, you must use the stack unit/slot number/port number format. The unit number is 1. For example, the following commands change the CLI from the global CONFIG level to the configuration level for the first port on the device:

Brocade(config)#interface ethernet 1/1/1

Brocade(config-if-e1000-1/1/1)#

Syntax: ethernet <stack-unit>/<slot>/<port>

Searching and filtering output from CLI commands

You can filter CLI output from show commands and at the --More-- prompt. You can search for individual characters, strings, or construct complex regular expressions to filter the output.

Searching and filtering output from Show commands

You can filter output from show commands to display lines containing a specified string, lines that do not contain a specified string, or output starting with a line containing a specified string. The search string is a regular expression consisting of a single character or string of characters. You can use special characters to construct complex regular expressions. Refer to “Using special characters in regular expressions” on page 8 for information on special characters used with regular expressions.

Displaying lines containing a specified string

The following command filters the output of the show interface command for port 1/1/2 so it displays only lines containing the word “Internet”. This command can be used to display the IP address of the interface.

Brocade#show interface ethernet 1/1/2| include Internet

Internet address is 192.168.1.11/24, MTU 1518 bytes, encapsulation ethernet

Syntax: <show-command> | include <regular-expression>

NOTE

The vertical bar ( | ) is part of the command.

Note that the regular expression specified as the search string is case sensitive. In the example above, a search string of “Internet” would match the line containing the IP address, but a search string of “internet” would not.

Displaying lines that do not contain a specified string

The following command filters the output of the show who command so it displays only lines that do not contain the word “closed”. This command can be used to display open connections to the Brocade device.

6

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Using slot number, and port number with CLI commands

1

Brocade#show who | exclude closed Console connections:

established

you are connecting to this session 2 seconds in idle

Telnet connections (inbound):

1 established, client ip address 192.168.9.37

27 seconds in idle Telnet connection (outbound): SSH connections:

Syntax: <show-command> | exclude <regular-expression>

Displaying lines starting with a specified string

The following command filters the output of the show who command so it displays output starting with the first line that contains the word “SSH”. This command can be used to display information about SSH connections to the Brocade device.

Brocade#show who | begin SSH

SSH connections:

1established, client ip address 192.168.9.210 7 seconds in idle

2closed

3closed

4closed

5closed

Syntax: <show-command> | begin <regular-expression>

Searching and filtering output at the --More-- prompt

The --More-- prompt displays when output extends beyond a single page. From this prompt, you can press the Space bar to display the next page, the Return or Enter key to display the next line, or Ctrl+C or Q to cancel the display. In addition, you can search and filter output from this prompt.

At the --More-- prompt, you can press the forward slash key ( / ) and then enter a search string. The Brocade device displays output starting from the first line that contains the search string, similar to the begin option for show commands. An example is given below.

--More--, next page: Space, next line: Return key, quit: Control-c /telnet

The results of the search are displayed.

searching...

Telnet by name or IP address

telnet

temperature

temperature sensor commands

terminal

display syslog

traceroute

TraceRoute to IP node

undebug

Disable debugging functions (see also 'debug')

undelete

Undelete flash card files

whois

WHOIS lookup

write

Write running configuration to flash or terminal

Brocade ICX 6650 Administration Guide

7

53-1002600-01

 

1

Using slot number, and port number with CLI commands

 

To display lines containing only a specified search string (similar to the include option for show

 

commands) press the plus sign key ( + ) at the --More-- prompt and then enter the search string.

 

--More--, next page: Space, next line: Return key, quit: Control-c

 

+telnet

 

 

The filtered results are displayed.

 

filtering...

Telnet by name or IP address

 

telnet

 

To display lines that do not contain a specified search string (similar to the exclude option for show

 

commands) press the minus sign key ( - ) at the --More-- prompt and then enter the search string.

 

--More--, next page: Space, next line: Return key, quit: Control-c

 

-telnet

 

 

The filtered results are displayed.

 

filtering...

temperature sensor commands

 

temperature

 

terminal

display syslog

 

traceroute

TraceRoute to IP node

 

undebug

Disable debugging functions (see also 'debug')

 

undelete

Undelete flash card files

 

whois

WHOIS lookup

 

write

Write running configuration to flash or terminal

As with the commands for filtering output from show commands, the search string is a regular expression consisting of a single character or string of characters. You can use special characters to construct complex regular expressions. See the next section for information on special characters used with regular expressions.

Using special characters in regular expressions

You use a regular expression to specify a single character or multiple characters as a search string. In addition, you can include special characters that influence the way the software matches the output against the search string. These special characters are listed in the following table.

TABLE 3

Special characters for regular expressions

 

 

Character

Operation

 

 

.

The period matches on any single character, including a blank space.

 

For example, the following regular expression matches “aaz”, “abz”, “acz”, and so on, but not just

 

“az”:

 

a.z

*The asterisk matches on zero or more sequential instances of a pattern.

For example, the following regular expression matches output that contains the string “abc”, followed by zero or more Xs:

abcX*

8

Brocade ICX 6650 Administration Guide

 

53-1002600-01

 

Using slot number, and port number with CLI commands

1

TABLE 3

Special characters for regular expressions (Continued)

 

 

 

 

Character

Operation

 

+The plus sign matches on one or more sequential instances of a pattern.

For example, the following regular expression matches output that contains "de", followed by a sequence of “g”s, such as “deg”, “degg”, “deggg”, and so on:

deg+

?The question mark matches on zero occurrences or one occurrence of a pattern.

For example, the following regular expression matches output that contains "dg" or "deg": de?g

NOTE: Normally when you type a question mark, the CLI lists the commands or options at that CLI level that begin with the character or string you entered. However, if you enter Ctrl+V and then type a question mark, the question mark is inserted into the command line, allowing you to use it as part of a regular expression.

^A caret (when not used within brackets) matches on the beginning of an input string. For example, the following regular expression matches output that begins with “deg”: ^deg

$

A dollar sign matches on the end of an input string.

 

For example, the following regular expression matches output that ends with “deg”:

 

deg$

 

 

_

An underscore matches on one or more of the following:

 

, (comma)

 

{ (left curly brace)

 

} (right curly brace)

 

( (left parenthesis)

 

) (right parenthesis)

 

The beginning of the input string

 

The end of the input string

 

A blank space

 

For example, the following regular expression matches on “100” but not on “1002”, “2100”, and

 

so on.

 

_100_

 

 

[ ]

Square brackets enclose a range of single-character patterns.

 

For example, the following regular expression matches output that contains “1”, “2”, “3”, “4”, or

 

“5”:

 

 

[1-5]

 

You can use the following expression symbols within the brackets. These symbols are allowed only inside the brackets.

^ – The caret matches on any characters except the ones in the brackets. For example, the following regular expression matches output that does not contain “1”, “2”, “3”, “4”, or “5”:

[^1-5]

- The hyphen separates the beginning and ending of a range of characters. A match occurs if any of the characters within the range is present. See the example above.

|

A vertical bar separates two alternative values or sets of values. The output can match one or the

 

other value.

 

For example, the following regular expression matches output that contains either “abc” or “defg”:

 

abc|defg

 

 

( )

Parentheses allow you to create complex expressions.

 

For example, the following complex expression matches on “abc”, “abcabc”, or “defg”, but not on

 

“abcdefgdefg”:

 

((abc)+)|((defg)?)

 

 

Brocade ICX 6650 Administration Guide

9

53-1002600-01

 

1 Using slot number, and port number with CLI commands

If you want to filter for a special character instead of using the special character as described in the table above, enter “\” (backslash) in front of the character. For example, to filter on output containing an asterisk, enter the asterisk portion of the regular expression as “\*”.

Brocade#show ip route bgp | include \*

Creating an alias for a CLI command

You can create aliases for CLI commands. An alias serves as a shorthand version of a longer CLI command. For example, you can create an alias called shoro for the CLI command show ip route. Then when you enter shoro at the command prompt, the show ip route command is executed.

To create an alias called shoro for the CLI command show ip route, enter the alias shoro = show ip route command.

Brocade(config)#alias shoro = show ip route

Syntax: [no] alias <alias-name> = <cli-command>

The <alias-name> must be a single word, without spaces.

After the alias is configured, entering shoro at either the Privileged EXEC or CONFIG levels of the CLI, executes the show ip route command.

To create an alias called wrsbc for the CLI command copy running-config tftp 10.10.10.10 test.cfg, enter the following command.

Brocade(config)#alias wrsbc = copy running-config tftp 10.10.10.10 test.cfg

To remove the wrsbc alias from the configuration, enter one of the following commands.

Brocade(config)#no alias wrsbc

or

Brocade(config)#unalias wrsbc

Syntax: unalias <alias-name>

The specified <alias-name> must be the name of an alias already configured on the Brocade device.

To display the aliases currently configured on the Brocade device, enter the following command at either the Privileged EXEC or CONFIG levels of the CLI.

Brocade#alias

copy running-config tftp 10.10.10.10 test.cfg

wrsbc

shoro

show ip route

Syntax: alias

Configuration notes for creating a command alias

The following configuration notes apply to this feature:

You cannot include additional parameters with the alias at the command prompt. For example, after you create the shoro alias, shoro bgp would not be a valid command.

10

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Using slot number, and port number with CLI commands

1

If configured on the Brocade device, authentication, authorization, and accounting is performed on the actual command, not on the alias for the command.

To save an alias definition to the startup-config file, use the write memory command.

Brocade ICX 6650 Administration Guide

11

53-1002600-01

 

1 Using slot number, and port number with CLI commands

12

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Loading...
+ 300 hidden pages