11.07.2015 Views

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

interface rangeChapter 2<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> <strong>Cisco</strong> <strong>IOS</strong> Comm<strong>and</strong>s• tengigabitethernet stack member/module/{first port} - {last port}, where module is always 0For physical interfaces:– stack member is the number used to identify the switch within the stack. The number rangesfrom 1 to 9 <strong>and</strong> is assigned to the switch the first time the stack member initializes.– module is always 0– the range is type stack member/0/number - number (for example, gigabitethernet1/0/1 - 2)• port-channel port-channel-number - port-channel-number, where port-channel-number is from 1to 48NoteWhen you use the interface range comm<strong>and</strong> with port channels, the first <strong>and</strong> last portchannel number in the range must be active port channels.When you define a range, you must enter a space between the first entry <strong>and</strong> the hyphen (-):interface range gigabitethernet1/0/1 -2When you define multiple ranges, you must still enter a space after the first entry <strong>and</strong> before thecomma (,):interface range gigabitethernet1/0/1 - 2, gigabitethernet1/0/1 - 2You cannot specify both a macro <strong>and</strong> an interface range in the same comm<strong>and</strong>.You can also specify a single interface in port-range. The comm<strong>and</strong> is then similar to the interfaceinterface-id global configuration comm<strong>and</strong>.For more information about configuring interface ranges, see the software configuration guide for thisrelease.ExamplesThis example shows how to use the interface range comm<strong>and</strong> to enter interface-range configurationmode to apply comm<strong>and</strong>s to two ports:<strong>Switch</strong>(config)# interface range gigabitethernet1/0/1 - 2<strong>Switch</strong>(config-if-range)#This example shows how to use a port-range macro macro1 for the same function. The advantage is thatyou can reuse macro1 until you delete it.<strong>Switch</strong>(config)# define interface-range macro1 gigabitethernet1/0/1 - 2<strong>Switch</strong>(config)# interface range macro macro1<strong>Switch</strong>(config-if-range)#Related Comm<strong>and</strong>s Comm<strong>and</strong> Descriptiondefine interface-range Creates an interface range macro.show running-config Displays the operating configuration. For syntax information, use this linkto the <strong>Cisco</strong> <strong>IOS</strong> Release 12.2 Comm<strong>and</strong> Reference listing page:http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/prod_comm<strong>and</strong>_reference_list.htmlSelect the <strong>Cisco</strong> <strong>IOS</strong> Comm<strong>and</strong>s Master List, Release 12.2 to navigate tothe comm<strong>and</strong>.2-204<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> Comm<strong>and</strong> ReferenceOL-9776-08

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!