mac address-group through revision

mac access-group

To use a MAC access control list (ACL) to control the reception of incoming traffic on a Gigabit Ethernet interface, an 802.1Q VLAN subinterface, an 802.1Q-in-Q stacked VLAN subinterface, use the macaccess-group command in interface or subinterface configuration mode. To remove a MAC ACL, use the no form of this command.

mac access-group access-list-number in

no mac access-group access-list-number in

Syntax Description

access-list-number

Number of a MAC ACL to apply to an interface or subinterface (as specified by a access-list (MAC) command). This is a decimal number from 700 to 799.

in

Filters on inbound packets.

Command Default

No access list is applied to the interface or subinterface.

Command Modes

Interface configuration (config-if) Subinterface configuration (config-subif)

Command History

Release

Modification

12.0(32)S

This command was introduced on the Cisco 12000 series Internet router.

12.2(33)SXH

This command was integrated into Cisco IOS Release 12.2(33)SXH.

Usage Guidelines

MAC ACLs are applied on incoming traffic on Gigabit Ethernet interfaces and VLAN subinterfaces. After a networking device receives a packet, the Cisco IOS software checks the source MAC address of the Gigabit Ethernet, 802.1Q VLAN, or 802.1Q-in-Q packet against the access list. If the MAC access list permits the address, the software continues to process the packet. If the access list denies the address, the software discards the packet and returns an Internet Control Message Protocol (ICMP) host unreachable message.

If the specified MAC ACL does not exist on the interface or subinterface, all packets are passed.

On Catalyst 6500 series switches, this command is supported on Layer 2 ports only.


Note

The macaccess-group command is supported on a VLAN subinterface only if a VLAN is already configured on the subinterface.


Examples

The following example applies MAC ACL 101 on incoming traffic received on Gigabit Ethernet interface 0:


Router> enable
Router# configure terminal
Router(config)# interface gigabitethernet 0
Router(config-if)# mac access-group 101 in

mac access-list extended

To create an extended MAC access control list (ACL) and define its access control entries (ACEs), use the macaccess-listextended command in global configuration mode. To remove MAC ACLs, use the no form of this command.

mac access-list extended name

no mac access-list extended name

Syntax Description

name

Name of the ACL to which the entry belongs.

Command Default

No extended ACLs are defined.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17b)SXA

This command was changed as follows:

  • Add the vlan vlan and cos value keywords and arguments.

  • Add the ip keyword to the list of valid protocol names.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2(33)SRD

The following Ethertype protocol values were added to the valid protocol list: bpdu-sap , bpdu-snap , dtp , lacp , pagp , vtp .

Cisco IOS XE Release 3.5S

This command was integrated into Cisco IOS XE Release 3.5S.

15.1(2)SNG

This command was implemented on Cisco ASR 901Series Aggregation Service Routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

For the Cisco 7600 series platform when ES20 or ES40 line cards are used, only the {permit | deny } {src-macmask | any } {dest-macmask | any } part of the command syntax applies. If an extended MAC Access Control List is created using the [protocol [vlan vlan ] [cos value ]] options, these options are ignored.

When you enter the ACL name, follow these naming conventions:

  • Maximum of 31 characters and may include a-z, A-Z, 0-9, the dash character (-), the underscore character (_), and the period character (.)

  • Must start with an alpha character and must be unique across all ACLs of all types

  • Case sensitive

  • Cannot be a number

  • Must not be a keyword; keywords to avoid are all , default-action , map , help , and editbuffer

You can configure named ACLs that filter Internet Packet Exchange (IPX), DECnet, AppleTalk, Virtual Integrated Network Service (VINES), or Xerox Network Services (XNS) traffic based on MAC addresses (IPX filtering with a MAC ACL is supported only with a Policy Feature Card 3 [PFC3]).

In systems that are configured with PFC3, if you want to classify all IPX traffic by using a MAC-access list that matches on EtherType 0x8137, use the ipx-arpa or ipx-non-arpa protocol.

Once you enter the macaccess-listextended name command, use the following subset to create or delete entries in a MAC ACL:

no permit deny src-mac mask any dest-mac mask any protocol vlan vlan cos value

The vlan vlan and cos value keywords and arguments are supported in PFC3BXL or PFC3B mode with Release 12.2(17b)SXA and later releases.

The vlan vlan and cos value keywords and arguments are not supported on the MAC VLAN access control lists (VACLs).

The table below describes the syntax of the macaccess-listextended command.

Table 1. mac access-list extended Command Syntax

Syntax

Description

no

(Optional) Deletes a statement from an access list.

permit

Permits access if the conditions are matched.

deny

Denies access if the conditions are matched.

src-mac mask

Source MAC address in the form: source-mac-address source-mac-address-mask .

any

Specifies any protocol type.

dest-mac mask

(Optional) Destination MAC address in the form: dest-mac-address dest-mac-address-mask .

protocol

(Optional) Name or number of the protocol; see below for a list of valid entries for this argument.

vlan vlan

(Optional) Specifies a VLAN ID; valid values are from 0 to 4095.

cos value

(Optional) Specifies a CoS value; valid values are from 0 to 7.

Valid entries for the protocol argument are as follows:

  • 0x0-0xFFFF --Arbitrary EtherType in hexadecimal

  • aarp --EtherType: AppleTalk Address Resolution Protocol (ARP)

  • amber --EtherType: DEC-Amber

  • appletalk --EtherType: AppleTalk/EtherTalk

  • bpdu-sap --BPDU SAP encapsulated packets

  • bpdu-snap --BPDU SNAP encapsulated packets

  • dec-spanning --EtherType: DEC-Spanning-Tree

  • decnet-iv --EtherType: DECnet Phase IV

  • diagnostic --EtherType: DEC-Diagnostic

  • dsm --EtherType: DEC-DSM

  • dtp --DTP packets

  • etype-6000 --EtherType: 0x6000

  • etype-8042 --EtherType: 0x8042

  • ip --EtherType: 0x0800

  • ipx-arpa --IPX Advanced Research Projects Agency (ARPA)

  • ipx-non-arpa --IPX non-ARPA

  • lacp --LACPencapsulatedpackets

  • lat --EtherType: DEC-LAT

  • lavc-sca --EtherType: DEC-LAVC-SCA

  • mop-console --EtherType: DEC-MOP Remote Console

  • mop-dump --EtherType: DEC-MOP Dump

  • msdos --EtherType: DEC-MSDOS

  • mumps --EtherType: DEC-MUMPS

  • netbios --EtherType: DEC-NETBIOS

  • pagp --PAGP encapsulated packets

  • vines-echo --EtherType: VINES Echo

  • vines-ip --EtherType: VINES IP

  • vtp --VTP packets

  • xns-idp --EtherType: XNS IDP

When you enter the src-macmask or dest-macmask value, note these guidelines and restrictions:

  • Enter MAC addresses as three 4-byte values in dotted hexadecimal format; for example, 0030.9629.9f84.

  • Enter MAC-address masks as three 4-byte values in dotted hexadecimal format. Use 1 bit as a wildcard. For example, to match an address exactly, use 0000.0000.0000 (can be entered as 0.0.0).

  • For the optional protocol , you can enter either the EtherType or the keyword.

  • Entries without a protocol match any protocol.

  • Access lists entries are scanned in the order that you enter them. The first matching entry is used. To improve performance, place the most commonly used entries near the beginning of the access list.

  • An implicit denyanyany entry exists at the end of an access list unless you include an explicit permitanyany entry at the end of the list.

  • All new entries to an existing list are placed at the end of the list. You cannot add entries to the middle of a list.

Malformed, invalid, deliberately corrupt EtherType 0x800 IP frames are not recognized as IP traffic and are not filtered by IP ACLs.

An ACE created with the macaccess-listextended command with the ip keyword filters malformed, invalid, deliberately corrupt EtherType 0x800 IP frames only; it does not filter any other IP traffic.

Examples

The following example shows how to create a MAC ACL named mac_layer that denies traffic from 0000.4700.0001, which is going to 0000.4700.0009, and permits all other traffic:


Router(config)# mac access-list extended mac_layer
 
Router(config-ext-macl)# deny 0000.4700.0001 0.0.0 0000.4700.0009 0.0.0 dsm
 
Router(config-ext-macl)# permit any any
 

mac-address-table aging-time

To configure the maximum aging time for entries in the Layer 2 table, use the mac-address-tableaging-time command in global configuration mode. To reset maximum aging time to the default setting, use the no form of this command.

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

mac-address-table aging-time seconds

no mac-address-table aging-time seconds

Cisco 7600 Series Routers

mac-address-table aging-time seconds [routed-mac | vlan vlan-id]

no mac-address-table aging-time seconds [routed-mac | vlan vlan-id]

Catalyst Switches

mac-address-table aging-time seconds [routed-mac | vlan vlan-id]

no mac-address-table aging-time seconds [routed-mac | vlan vlan-id]

Syntax Description

seconds

MAC address table entry maximum age. Valid values are 0, and from 5 to 1000000 seconds. Aging time is counted from the last time that the switch detected the MAC address. The default value is 300 seconds.

vlan vlan -id

(Optional) Specifies the VLAN to which the changed aging time should be applied. Valid values are from 2 to 1001.

routed-mac

(Optional) Specifies the routed MAC aging interval.

vlan vlan-id

(Optional) Specifies the VLAN to apply the changed aging time; valid values are from 1 to 4094.

Command Default

The default aging time is 300 seconds.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.0(7)XE

This command was introduced on Catalyst 6000 series switches.

12.1(1)E

This command was implemented on Catalyst 6000 series switches.

12.2(2)XT

This command was introduced on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(8)T

This command was integrated into Cisco IOS Release 12.2(8)T on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(11)T

This command was integrated into Cisco IOS Release 12.2(11)T.

12.2(14)SX

This command was implemented on Catalyst switches and Cisco 7600 Internet routers with a Supervisor Engine 720.

12.2(17d)SXB

This command was implemented on Cisco Catalyst switches and Cisco 7600 Internet routers with a Supervisor Engine 2.

12.2(18)SXE

The routed-mac keyword was added. This keyword is supported only on a Supervisor Engine 720 in Cisco 7600 Internet routers and Catalyst 6500 switches.

12.2(18)SXF5

The minimum value for the seconds argument was changed from 10 to 5.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2(33)SXI

The output for this command was modified to include additional fields and explanatory text.

Usage Guidelines

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

The aging time entry will take the specified value. Valid entries are from 10 to 1000000 seconds.

This command cannot be disabled.

Catalyst Switches and Cisco 7600 Routers

If you do not enter a VLAN, the change is applied to all routed-port VLANs.

Enter 0 seconds to disable aging.

You can enter the routed-mac keyword to configure the MAC address aging time for traffic that has the routed MAC (RM) bit set.

Examples

Examples

The following example shows how to configure aging time to 300 seconds:


mac-address-table aging-time 300

Examples

The following example shows how to configure the aging time:


mac-address-table aging-time 400

The following example shows how to change the RM aging time to 500 seconds:


mac-address-table aging-time 500 routed-mac

The following example shows how OOB affects modifying the aging-time:


mac-address-table aging-time 250 
%% Vlan Aging time not changed since OOB is enabled and requires aging time to be atleast 3 times OOB interval - default: 480 seconds 

The following example shows how to disable the aging time:


mac-address-table aging-time 0

mac-address-table dynamic

To add dynamic addresses to the MAC address table, use the mac -address -tabledynamic command in global configuration mode. Dynamic addresses are automatically added to the address table and dropped from it when they are not in use. To remove dynamic entries from the MAC address table, use the no form of this command.

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

mac-address-table dynamic hw-addressinterface {fa | gi} [slot/port]vlan vlan-id

no mac-address-table dynamic hw-address vlan vlan-id

Catalyst Switches

no mac-address-table dynamic hw-address [atm slot/port] [vlan vlan-id]

Syntax Description

hw -address

MAC address added to or removed from the table.

interface

Port to which packets destined for hw-address are forwarded.

fa

Specifies FastEthernet.

gi

Specifies GigabitEthernet.

slot

(Optional) The slot (slot 1 or slot 2) to which to add dynamic addresses.

port

(Optional) Port interface number. The ranges are based on type of Ethernet switch network module used:

  • 0 to 15 for NM-16ESW

  • 0 to 35 for NM-36ESW

  • 0 to 1 for GigabitEthernet

atm slot /port

(Optional) Add dynamic addresses to the ATM module in slot 1 or 2. The port is always 0 for an ATM interface.

vlan vlan -id

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

The interface and vlan parameters together specify a destination to which packets destined for hw -address are forwarded.

The vlan keyword is optional if the port is a static-access or dynamic-access VLAN port. In this case, the VLAN assigned to the port is assumed to be that of the port associated with the MAC address.

The vlan keyword is required for multi-VLAN and trunk ports. This keyword is required on trunk ports to specify to which VLAN the dynamic address is assigned.

Thevlan-id is the value of the ID of the VLAN to which packets destined for hw -address are forwarded. Valid IDs are 1 to 1005; do not enter leading zeroes.

Catalyst Switches

(Optional) The interface and vlan parameters together specify a destination to which packets destined for hw -address are forwarded.

The vlan keyword is optional if the port is a static-access or dynamic-access VLAN port. In this case, the VLAN assigned to the port is assumed to be that of the port associated with the MAC address.

Note 

When this command is executed on a dynamic-access port, queries to the VLAN Membership Policy Server (VMPS) do not occur. The VMPS cannot verify that the address is allowed or determine to which VLAN the port should be assigned. This command should be used only for testing purposes.

The vlan keyword is required for multi-VLAN and trunk ports. This keyword is required on trunk ports to specify to which VLAN the dynamic address is assigned.

Thevlan-id is the value of the ID of the VLAN to which packets destined for hw -address are forwarded. Valid IDs are 1 to 1005; do not enter leading zeroes.

Command Default

Dynamic addresses are not added to the MAC address table.

Command Modes


Global configuration (config)

Command History

Release

Modification

11.2(8)SA

This command was introduced.

11.2(8)SA3

The vlan keyword was added.

11.2(8)SA5

The atm keyword was added.

12.2(2)XT

This command was implemented on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(8)T

This command was integrated into Cisco IOS Release 12.2(8)T, on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(11)T

This command was integrated into Cisco IOS Release 12.2(11)T.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Usage Guidelines

If the vlan -id argument is omitted and the no form of the command is used, the MAC address is removed from all VLANs.

Examples

The following example shows how to add a MAC address on port fa1/1 to VLAN 4:


Switch(config)# mac-address-table dynamic 00c0.00a0.03fa fa1/1 vlan 4

mac-address-table evc-xconnect l2pt-forward-all

To forward the Layer 2 Control Protocol (L2CP) frames at the hardware level except the CFM frames, use the mac-address-table evc-xconnect l2pt-forward-all command in global configuration mode. In addition to the listed L2CP frames, 802.1x (0x888E) frames and MACSec (0x88E5) frames can be forwarded over EoMPLS by enabling this command globally.

This command is only available for Xconnect-based EFP and is not available for Bridge-domain-based EFP.

mac-address-table evc-xconnectl2pt-forward-all

Command Modes

Global configuration (config)

Release

Modification

Cisco IOS XE 3.16

This command was implemented on Cisco ASR 920 Service Aggregation Service Routers.

Examples

The following example shows how to forward the L2CP frames at the hardware level:

Router#
Router#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#mac-address-table evc-xconnect l2pt-forward-all   

mac-address-table learning

To enable MAC-address learning, use the mac-address-tablelearning command in global configuration mode. To disable learning, use the no form of this command.

mac-address-table learning {vlan | vlan-id | interface | interface slot/port} {module | [module num] } no mac-address-table learning {vlan | vlan-id | interface | interface slot/port} {module | [module num] }

Syntax Description

default

(Optional) Returns to the default settings.

vlan vlan-id

Specifies the VLAN to apply the per-VLAN learning of all MAC addresses; valid values are from 1 to 4094.

interface

Specifies per-interface based learning of all MAC addresses.

interface slot / port

Interface type, the slot number, and the port number.

module num

(Optional) Specifies the module number.

Command Default

If you configure a VLAN on a port in a module, all the supervisor engines and Distributed Forwarding Cards (DFCs) in the Cisco 7600 series router are enabled to learn all the MAC addresses on the specified VLAN.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(18)SXE

Support for this command was introduced on the Supervisor Engine 720.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

You can use the module num keyword and argument to specify supervisor engines or DFCs only.

You can use the vlan vlan-id keyword and argument on switch-port VLANs only. You cannot use the vlan vlan-id keyword and argument to configure learning on routed interfaces.

You can use the interface interface slot / port keyword and arguments on routed interfaces, supervisor engines, and DFCs only. You cannot use the interface interface slot / port keyword and arguments to configure learning on switch-port interfaces or non-DFC modules.

Examples

This example shows how to enable MAC-address learning on a switch-port interface on all modules:


Router(config)# mac-address-table learning vlan 100 
Router(config)# 

This example shows how to enable MAC-address learning on a switch-port interface on a specified module:


Router(config)# mac-address-table learning vlan 100 module 4
Router(config)# 

This example shows how to disable MAC-address learning on a specified switch-port interface for all modules:


Router(config)# no mac-address-table learning vlan 100
Router(config)# 

This example shows how to enable MAC-address learning on a routed interface on all modules:


Router(config)# mac-address-table learning vlan 100 
Router(config)# 

This example shows how to enable MAC-address learning on a routed interface for a specific module:


Router(config)# mac-address-table learning interface FastEthernet 3/48 module 4
Router(config)# 

This example shows how to disable MAC-address learning for all modules on a specific routed interface:


Router(config)# no mac-address-table learning interface FastEthernet 3/48
Router(config)# 

mac-address-table limit

To enable the MAC limiting functionality and set the limit to be imposed, use the mac-address-tablelimit command in global configuration mode. To disable MAC limiting, use the no form of this command.

mac-address-table limit {action | }

Syntax Description

maximum num

(Optional) Specifies the maximum number of MAC entries per-VLAN per-Encoded Address Recognition Logic (EARL) allowed; valid values are from 5 to 32768 MAC-address entries.

action

(Optional) Specifies the type of action to be taken when the action is violated.

warning

(Optional) Specifies that the one syslog message will be sent and no further action will be taken when the action is violated.

limit

(Optional) Specifies that the one syslog message will be sent and/or a corresponding trap will be generated with the MAC limit when the action is violated.

shutdown

(Optional) Specifies that the one syslog message will be sent and/or the VLAN is moved to the blocked state when the action is violated.

notification

(Optional) Specifies the type of notification to be sent when the action is violated.

syslog

(Optional) Sends a syslog message when the action is violated.

trap

(Optional) Sends trap notifications when the action is violated.

both

(Optional) Sends syslog and trap notifications when the action is violated.

vlan vlan

(Optional) Enables MAC limiting on a per-VLAN basis.

interface type mod / port

(Optional) Enables MAC limiting on a per-port basis.

flood

(Optional) Enables unknown unicast flooding on a VLAN.

Command Default

The defaults are as follows:

  • maximum num is 500 MAC address entries.

  • action is warning

  • notification is syslog

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(17b)SXA

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(18)SXD1

This command was changed to include the vlan vlan keyword and argument to support per-VLAN MAC limiting.

12.2(18)SXE

This command was changed to include the interface typemod/port keyword and arguments to support per-port MAC limiting.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

MAC limiting can be enabled on either a per-interface basis (that is, by specifying an interface) or on a per-VLAN basis (that is, by specifying a VLAN). However, MAC limiting must first be enabled for the router (a higher level) in global configuration mode (config).

General Points About MAC Limiting

Note the following points about enabling MAC limiting:

  • The maximum number of MAC entries is determined on a per-VLAN and per-EARL basis.

  • If you do not specify a maximum number, an action, or a notification, the default settings are used.

  • If you enable per-VLAN MAC limiting, MAC limiting is enabled on the specified VLAN only.

  • The flood keyword is supported on VLAN interfaces only.

  • The flood action occurs only if the limit action is configured and is violated.

  • In the shutdown state, the VLAN remains in the blocked state until you reenable it through the command syntax.

Syntax for Enabling per-VLAN MAC Limiting

The following is sample syntax that can be used to enable per-VLAN MAC limiting. Both commands must be used to properly enable per-VLAN MAC limiting.

mac-address-table limit


Note

This command enables the MAC limiting functionality for the router.


mac-address-table limit [vlan vlan ] [maximum num ] [action {warning | limit | shutdown }] [ flood ]


Note

This command sets the specific limit and any optional actions to be imposed at the VLAN level.


Syntax for Enabling Per-Interface MAC Limiting

The following is sample syntax that can be used to enable per-interface MAC limiting. Both commands must be used to properly enable per-interface MAC limiting.

mac-address-table limit


Note

This command enables the MAC limiting functionality for the router.


mac-address-table limit [interface typemod / port ] [maximum num ] [action {warning | limit | shutdown }] [ flood ]


Note

This command sets the specific limit and any optional actions to be imposed at the interface level.


Examples

This example shows how to enable per-VLAN MAC limiting. The first instance of themac-address-tablelimit command enables MAC limiting. The second instance of the command sets the limit and any optional actions to be imposed at the VLAN level.


Router# enable
Router# configure terminal
Router(config)# mac-address-table limit
Router(config)# mac-address-table limit vlan 501 maximum 50 action shutdown
Router(config)# end

This example shows how to enable per-interface MAC limiting. The first instance of themac-address-tablelimit command enables MAC limiting. The second instance of the command sets the limit and any optional actions to be imposed at the interface level.


Router# enable
Router# configure terminal
Router(config)# mac-address-table limit
Router(config)# mac-address-table limit fastethernet0/0 maximum 50 action shutdown
Router(config)# end

mac-address-table notification change

To send a notification of the dynamic changes to the MAC address table, use the mac-address-tablenotificationchange command in global configuration mode. To return to the default settings, use the no form of this command.

mac-address-table notification change [history size | interval seconds]

no mac-address-table notification change

Syntax Description

history size

(Optional) Sets the number of entries in the history buffer; valid values are from 0 to 500 entries.

interval seconds

(Optional) Sets the minimum change sending interval; valid values are from 0 to 2147483647 seconds.

Command Default

The default settings are as follows:

  • Disabled

  • If notification of the dynamic changes to the MAC address table is enabled, the default settings are as follows:
    • history size is 1 entry.
    • interval value is 1 second.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(33)SXH

This command was introduced.

Examples

This example shows how to configure the Simple Network Management Protocol (SNMP) notification of dynamic additions to the MAC address table of addresses:


Router(config)# mac-address-table notification change interval 5 history 25

mac-address-table notification mac-move

To enable MAC-move notification, use the mac-address-tablenotificationmac-move command in global configuration mode. To disable MAC-move notification, use the no form of this command.

mac-address-table notification mac-move [counter [syslog]]

no mac-address-table notification mac-move [counter [syslog]]

Syntax Description

counter

(Optional) Specifies the MAC-move counter feature.

syslog

(Optional) Specifies the syslogging facility when the MAC-move notification detects the first instance of the MAC move .

Command Default

MAC-move notification is not enabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to the 12.2 SX release.

12.2(33)SXI

This command was changed to add the counter and the syslog keywords.

Usage Guidelines

MAC-move notification generates a syslog message whenever a MAC address or host moves between different switch ports.

MAC-move notification does not generate a notification when a new MAC address is added to the content-addressable memory (CAM) or when a MAC address is removed from the CAM.

MAC-move notification is supported on switch ports only.

The MAC-move counter notification generates a syslog message when the number of MAC moves in a VLAN exceeds the maximum limit. The maximum limit is 1000 MAC moves.

The MAC-move counter syslog notification counts the number of times a MAC has moved within a VLAN and the number of these instances that have occurred in the system.

Examples

This example shows how to enable MAC-move notification:


Router(config)# mac-address-table notification mac-move

This example shows how to disable MAC-move notification:


Router(config)# no mac-address-table notification mac-move

This example shows how to enable MAC-move counter syslog notification:


Router(config)# mac-address-table notification mac-move counter syslog

This example shows how to disable MAC-move counter notification:


Router(config)# no mac-address-table notification mac-move counter

mac-address-table secure

To add secure addresses to the MAC address table, use the mac -address -table secure command in global configuration mode. To remove secure entries from the MAC address table, use the no form of this command.

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

no mac-address-table secure hw-address vlan vlan-id

Catalyst Switches

mac-address-table secure hw-address [atm slot/portvlan vlan-id]

no mac-address-table secure hw-address [vlan vlan-id]

Cisco 860 Series Integrated Services Routers (ISRs) and Cisco 880 Series ISRs

mac-address-table secure [H. H. H | maximum maximum addresses]

no mac-address-table secure [H. H. H | maximum maximum addresses]

Syntax Description

hw -address

MAC address that is added to the table.

interface

Port to which packets destined for hw -address are forwarded.

fa

Specifies FastEthernet.

gi

Specifies Gigabit Ethernet.

H.H.H

(Optional) Specifies 48-bit hardware address.

slot

(Optional) The slot (slot 1 or slot 2) to which to add dynamic addresses.

port

(Optional) Port interface number. The ranges are based on type of Ethernet switch network module used:

  • 0 to 15 for NM-16ESW

  • 0 to 35 for NM-36ESW

  • 0 to 1 for GigabitEthernet

atm slot / port

(Optional) Add secure addresses to the ATM module in slot 1 or 2. The port is always 0 for an ATM interface.

maximum maximum addresses

(Optional) Applies only to Cisco 860 series and Cisco 880 series ISRs. Range is 1-200.

vlan vlan -id

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

The interface and vlan parameters together specify a destination to which packets destined for hw -address are forwarded.

The vlan keyword is optional if the port is a static-access VLAN port. In this case, the VLAN assigned to the port is assumed to be that of the port associated with the MAC address. This keyword is required for multi-VLAN and trunk ports.

The value of vlan -id is the ID of the VLAN to which secure entries are added. Valid IDs are 1 to 1005; do not enter leading zeroes.

Catalyst Switches

(Optional) The interface and vlan parameters together specify a destination to which packets destined for hw -address are forwarded.

The vlan keyword is optional if the port is a static-access VLAN port. In this case, the VLAN assigned to the port is assumed to be that of the port associated with the MAC address. This keyword is required for multi-VLAN and trunk ports.

The value of vlan -id is the ID of the VLAN to which secure entries are added. Valid IDs are 1 to 1005; do not enter leading zeroes.

Command Default

Secure addresses are not added to the MAC address table.

Command Modes


Global configuration (config)

Command History

Release

Modification

11.2(8)SA

This command was introduced.

11.2(8)SA3

The vlan keyword was added.

11.2(8)SA5

The atm keyword was added.

12.2(2)XT

This command was implemented on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(8)T

This command was integrated into Cisco IOS Release 12.2(8)T, on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(11)T

This command was integrated into Cisco IOS Release 12.2(11)T.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

12.4(20)T

This command with the H.H.H and maximum keyword was added for Cisco Series 860 ISRs and Cisco Series 880 ISRs.

Usage Guidelines

Cisco 860 Series ISRs, Cisco 880 Series ISRs, Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

Secure addresses can be assigned to only one port at a time. Therefore, if a secure address table entry for the specified MAC address and VLAN already exists on another port, it is removed from that port and assigned to the specified one.

If the maximum number is more than the MAC addresses statically specified by using the H.H.H keyword, the switch learns the MAC address automatically up to the specified maximum. If the maximum number is less than the number of MAC addresses already specified statically, then an error message displays.

Usage Guidelines

Catalyst Switches

Secure addresses can be assigned to only one port at a time. Therefore, if a secure address table entry for the specified MAC address and VLAN already exists on another port, it is removed from that port and assigned to the specified one.

Dynamic-access ports cannot be configured with secure addresses.

Examples

The following example shows how to allow ten devices on Fast Ethernet port 2:


Router(config)#
 mac-address-table secure maximum 10 ?
FastEthernet  FastEthernet IEEE 802.3
Router(config)#
 mac-address-table secure maximum 10 f ?
<0-4>  FastEthernet interface number
Router(config)# 
mac-address-table secure maximum 10 f 2

Examples

The following example shows how to add a secure MAC address to VLAN 6 of port fa1/1:

Router(config)# mac-address-table secure 00c0.00a0.03fa fa1/1 vlan 6

Examples

The following example shows how to add a secure MAC address to VLAN 6 of port fa1/1:


Switch(config)# mac-address-table secure 00c0.00a0.03fa fa1/1 vlan 6

The following example shows how to add a secure MAC address to ATM port 2/1:


Switch(config)# mac-address-table secure 00c0.00a0.03fa atm 2/1

mac-address-table static

To add static entries to the MAC address table or to disable Internet Group Multicast Protocol (IGMP) snooping for a particular static multicast MAC address, use the mac-address-table static command in global configuration mode. To remove entries profiled by the combination of specified entry information, use the no form of this command.

Cisco 2600 Series, Cisco 3600 Series, Cisco 3700 and Cisco 7600 Series Routers

mac-address-table static mac-address vlan vlan-id interface type slot/port

no mac-address-table static mac-address vlan vlan-id interface type slot/port

Catalyst Switches

mac-address-table static mac-address vlan vlan-id interface type number drop [disable-snooping] [dlci dlci | pvc vpi/vci] [auto-learn | disable-snooping] [protocol] {ip | ipx | assigned}

no mac-address-table static mac-address vlan vlan-idinterface type number drop [disable-snooping] [dlci dlci | pvc vpi/vci] [auto-learn | disable-snooping] [protocol] {ip | ipx | assigned}

Syntax Description

mac-aadress

Address to add to the MAC address table.

vlan vlan-id

Specifies the VLAN associated with the MAC address entry. The range is from 2 to 100.

interface type slot/port or interface type number

Specifies the interface type and the slot and port to be configured.

On the Catalyst switches, thetype and number arguments should specify the interface type and the slot / port or slot / subslot / port numbers (for example, interface pos 5/0 or interface ATM 8/0/1).

drop

Drops all traffic that is received from and going to the configured MAC address in the specified VLAN.

disable-snooping

(Optional) Disables IGMP snooping on the multicast MAC address.

dlci dlci

(Optional) Specifies the data-link connection identifier (DLCI) to be mapped to this MAC address. Valid values are from 16 to 1007.

Note 

This option is available only if Frame Relay encapsulation has been enabled on the specified interface.

pvc vpi/vci

(Optional) Specifies the permanent virtual circuit (PVC) to be mapped to this MAC address. You must specify both a virtual path identifier (VPI) and a virtual circuit identifier (VCI), separated by a slash.

Note 

This option is available only for ATM interfaces.

auto-learn

(Optional) Specifies that if the router sees this same MAC address on a different port, the MAC entry should be updated with the new port.

disable-snooping

(Optional) Disables IGMP snooping on the Frame Relay DLCI or ATM PVC.

protocol

(Optional) Specifies the protocol associated with the entry.

ip

(Optional) Specifies the IP protocol.

ipx

(Optional) Specifies the Internetwork Packet Exchange (IPX) protocol.

assigned

(Optional) Specifies assigned protocol bucket accounts for protocols such as DECnet, Banyan VINES, and AppleTalk.

Command Default

Static entries are not added to the MAC address table.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.0(7)XE

This command was introduced on Catalyst 6000 series switches.

12.1(1)E

Support for this command on Catalyst 6000 series switches was extended to the 12.1E train.

12.1(5c)EX

This command was modified. Support for multicast addresses was added.

12.2(2)XT

This command was implemented on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(8)T

This command was integrated into Cisco IOS Release 12.2(8)T on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17a)SX

You cannot apply the mac-address-table static mac-address vlan vlan-id {interface type number drop} command to a multicast MAC address.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Cisco IOS Release 12.2(17d)SXB.

12.2(18)SXE

This command was modified. The dlci dlci and pvc vpi/vci keyword-argument pairs were added to allow mapping a MAC address to a Frame Relay DLCI or ATM PVC.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2(33)SRC

This command was modified. Support was added to High-Speed Serial Interface (HSSI), MLPP, and serial interfaces on Cisco 7600 series routers.

Usage Guidelines

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

The specified output interface cannot be a switched virtual interface (SVI).

Theno form of this command does not remove system MAC addresses.

When you remove a MAC address, entering the interface type slot/port argument is optional. For unicast entries, the entry is removed automatically. For multicast entries, if you do not specify an interface, the entire entry is removed. You can specify the selected ports to be removed by specifying the interface.

Catalyst Switches

The specified output interface cannot be an SVI.

As a good practice, configure static MAC addresses on Layer 2 EtherChannels only and not on Layer 2 physical member ports of an EtherChannel. This practice does not apply to Layer 3 EtherChannels and its members.

Use the no form of this command to do the following:

  • Remove entries that are profiled by the combination of specified entry information.

  • Re-enable IGMP snooping for the specified address.

The dlci dlci keyword and argument are valid only if Frame Relay encapsulation has been enabled on the specified interface.

The pvc vpi/vci keyword and arguments are supported on ATM interfaces only. When specifying the pvc vpi/vci argument and keyword pair, you must specify both a VPI and a VCI, separated by a slash.

When you install a static MAC address, it is associated with a port. If the same MAC address is seen on a different port, the entry is updated with the new port if you enter the auto-learn keyword.

The specified output interface must be a Layer 2 Interface Descriptor Block (IDB) and not an SVI.

You can enter up to 15 interfaces per command entered, and you can enter more interfaces by repeating the command.

If you do not enter a protocol type, an entry is automatically created for each of the protocol types.

Entering the no form of this command does not remove system MAC addresses.

When you remove a MAC address, entering interface type number is optional. For unicast entries, the protocol entry is removed automatically. For multicast entries, if you do not specify an interface, the entire protocol entry is removed. You can specify the selected ports to be removed by specifying the interface.

The mac-address-table static mac-address vlan vlan-id interface type number disable-snooping command disables snooping on the specified static MAC address/VLAN pair only. To enable snooping, first delete the MAC address using the no form of the command, and then reinstall the MAC address using the mac-address-table static mac-address vlan vlan-id interface type number command, without the disable-snooping keyword.

The mac-address-table static mac-address vlan vlan-id drop command cannot be applied to a multicast MAC address.


Note

Both the unicast MAC addresses and the multicast MAC addresses allow only one WAN interface.


Specifying a MAC Address for DLCI or PVC Circuits

To support multipoint bridging and other features, the behavior of the following command has changed for ATM and Frame Relay interfaces in Cisco IOS Release 12.2(18)SXE and later releases. In previous releases, you needed to specify a VLAN ID and an interface only.


Device(config)# mac-address-table static 000C.0203.0405 vlan 101 interface ATM6/1

In Cisco IOS Release 12.2(18)SXE and later releases, you must specify the dlci option for Frame Relay interfaces, or the pvc option for ATM interfaces, as shown in the following example:


Device(config)# mac-address-table static 000C.0203.0405 vlan 101 interface ATM6/1 pvc6/101 

Note

If you omit the dlci option for Frame Relay interfaces, the MAC address is mapped to the first DLCI circuit that is configured for the specified VLAN on that interface. Similarly, if you omit the pvc option for ATM interfaces, the MAC address is mapped to the first PVC that is configured for the specified VLAN on that interface. To ensure that the MAC address is configured correctly, we recommend that you always use the dlci and pvc keywords on the appropriate interfaces.


Examples

The following example shows how to add static entries to the MAC address table:


Device(config)# mac-address-table static 0050.3e8d.6400 vlan 100 interface fastethernet5/7

The following example shows how to configure a static MAC address with IGMP snooping disabled for a specified address:


Device(config)# 
mac-address-table static 0050.3e8d.6400 vlan 100 interface fastethernet5/7 disable-snooping
 

The following example shows how to add static entries to the MAC address table for an ATM PVC circuit and for a Frame Relay DLCI circuit:


Device(config)# mac-address-table static 0C01.0203.0405 vlan 101 interface ATM6/1 pvc 6/101
Device(config)# mac-address-table static 0C01.0203.0406 vlan 202 interface POS4/2 dlci 200
 

mac-address-table synchronize

To synchronize the Layer 2 MAC address table entries across the Policy Feature Card (PFC) and all the Distributed Forwarding Cards (DFCs), use the mac-address-table synchronize command in global configuration mode. To disable MAC address table synchronization or reset the activity timer, use the no form of this command.

mac-address-table synchronize [activity-time seconds]

no mac-address-table synchronize [activity-time seconds]

Syntax Description

activity-time seconds

(Optional) Specifies the activity timer interval: valid values are 160, 320, and 640 seconds.

Command Default

The default settings are as follows:

  • Layer 2 MAC address table entries are not synchronized by default.

  • Enabled for WS-X6708-10GE.

  • If the command is enabled, the value of the activity-time keyword is 160 seconds.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(18)SXf

This command was introduced on the Supervisor Engine 720.

12.2(18)SXF5

The default for this command was changed to enabled for the WS-X6708-10GE.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2(33)SXI

The output for this command was updated.

Usage Guidelines

We recommend that you configure the activity time so that at least two activity times exist within the regular Layer 2 aging time (or within the aging time used for VLANs in distributed EtherChannels if this feature is used only for distributed EtherChannels). If at least two activity times do not exist within the aging time, then an error message is displayed.

Examples

This example shows how to specify the activity timer interval :


Router(config)# mac-address-table synchronization activity time 160
Router(config)# 

This example shows how to specify the activity timer interval when Out-of-Band (OOB) synchronization is enabled:


Router(config)# mac-address-table synchronization activity time 160
 % Current OOB activity time is [160] seconds
 % Recommended aging time for all vlans is atleast three times the activity interval and  global aging time will be changed automatically if required
Router(config)# 

This example shows how to display the timer interval:


Router(config)# mac-address-table synchronization
Router(config)# 

This example shows how to display the timer interval when OOB synchronization is enabled:


Router(config)# mac-address-table synchronization
 % Current OOB activity time is [160] seconds
 % Recommended aging time for all vlans is atleast three times the activity interval 
Router(config)# 

mac-address-table unicast-flood

To enable unicast-flood protection, use the mac-address-tableunicast-flood command in global configuration mode. To disable unicast-flood protection, use the no form of this command.

mac-address-table unicast-flood limit kfps vlan vlan-id {filter minutes | alert | shutdown}

no mac-address-table unicast-flood limit kfps vlan vlan

Syntax Description

limit kfps

Limits the unicast floods on a per-source MAC address and per-VLAN basis; valid values are from 1 to 4000 thousand floods per second (Kfps).

vlan vlan-id

Specifies the VLAN to apply the flood limit; valid values are from 1 to 4094.

filter minutes

Specifies how long in minutes to filter unicast floods; valid values are from 1 to 34560 minutes.

alert

Specifies when frames of unicast floods exceed the flood rate limit to send an alert.

shutdown

Specifies when frames of unicast floods exceed the flood rate limit to shut down the ingress port generating the floods.

Command Default

Unicast-flood protection is not enabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

This command is supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2 only.

We recommend that you configure unicast-flood protection as follows:

  • Set the limit kfps argument to 10 Kfps.

  • Set the filter minutes argument to 5 minutes.

The shutdown keyword is supported on nontrunk ports only.

If you specify alert and unknown unicast floods exceeding the threshold are detected, a system message is displayed and no further action is taken.

If you specify shutdown and unknown unicast floods exceeding the threshold are detected, a system message is displayed. Once the system message is displayed, the port goes to err-disable mode.

Examples

This example shows how to set the flood rate limit to 3000 floods per second (fps) and display a system message when the rate limit has been exceeded:


Router(config)# 
mac-address-table unicast-flood limit 3 vlan 125 alert
Router(config)#

match (VLAN access-map)

To specify the match clause by selecting one or more IP, Internetwork Packet Exchange (IPX), or MAC access control lists (ACLs) for a VLAN access-map sequence for traffic filtering, use the match command in VLAN access-map configuration mode. To remove the match clause, use the no form of this command.

match {ip address {acl-number | acl-name} | ipx address {acl-number | acl-name} | mac address acl-name}

no match {ip address {acl-number | acl-name} | ipx address {acl-number | acl-name} | mac address acl-name}

Syntax Description

ip address acl-number

Specifies one or more IP ACLs for a VLAN access-map sequence. The range is from 1 to 199 and from 1300 to 2699.

ip address acl-name

Specifies an IP ACL by name.

ipx address acl-number

Specifies one or more IPX ACLs for a VLAN access-map sequence. The range is from 800 to 999.

ipx address acl-name

Specifies an IPX ACL by name.

mac address acl-name

Specifies one or more MAC ACLs for a VLAN access-map sequence.

Command Default

No match clause is specified.

Command Modes

VLAN access-map configuration (config-access-map)

Command History

Release

Modification

12.1(8a)E3

This command was introduced on the Cisco 7600 series routers.

12.2(14)SX

This command was implemented on the Supervisor Engine 720.

12.2(17d)SXB

This command was implemented on the Supervisor Engine 2.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

15.1(1)SG

This command was integrated into Cisco IOS Release 15.1(1)SG. This command was modified. The ipv6 address and acl-name keyword-argument pair was introduced.

Usage Guidelines

The matchipxaddress and matchmacaddress commands are not supported for VLAN ACLs (VACLs) on WAN interfaces.

IPX ACLs that are used in VACLs can specify only the IPX protocol type, the source network, the destination network, and the destination host address.

The MAC sequence is not effective for IP or IPX packets. IP packets and IPX packets should be access controlled by IP and IPX match clauses.

You cannot configure VACLs on secondary VLANs. The secondary VLAN inherits all features that are configured on the primary VLAN.

The following commands appear in the command-line interface (CLI) help but are not supported by the quality of service (QoS) as implemented on the policy feature card (PFC):

  • match any

  • match class-map

  • match cos

  • match destination-address mac

  • match input-interface

  • match mpls experimental

  • match mpls experimental topmost

  • match mpls-label

  • match qos-group

  • match source-address mac

Examples

The following example defines a match clause for a VLAN access map:


Device(config)# vlan access-map map1 10
Device(config-access-map)# match ip address 13

mls rp ip

To enable the Multilayer Switching Protocol (MLSP) and multilayer switching (MLS), use the mlsrpip command in global configuration mode. To disable MLS, use the no form of this command.

mls rp ip

no mls rp ip

Syntax Description

This command has no arguments or keywords.

Command Default

MLS is disabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

11.3(3) WA4(4)

This command was introduced.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Usage Guidelines

Use this command to enable MLS, either globally or on a specific interface. MLSP is the protocol that runs between the switches and routers.

Examples

The following example enables MLS:


Router(config)# mls rp ip

mls rp ip (global)

To enable external systems to establish IP shortcuts to the Multilayer Switching Feature Card (MSFC), use the mlsrpip command in global configuration mode. To remove a prior entry, use the no form of this command.

mls rp ip [input-acl | route-map]

no mls rp ip

Syntax Description

input-acl

(Optional) Enables the IP-input access list.

route-map

(Optional) Enables the IP-route map.

Command Default

No shortcuts are configured.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Examples

This example shows how to allow the external systems to establish IP shortcuts with IP-input access lists:


Router(config)# 
mls rp ip input-acl
Router(config)# 

mls rp ip (interface)

To enable the external systems to enable Multilayer Switching (MLS) IP on a specified interface, use the mlsrpip command in interface configuration mode. To disable MLS IP, use the no form of this command.

mls rp ip

no mls rp ip

Syntax Description

This command has no arguments or keywords.

Command Default

This command has no default settings.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Examples

This example shows how to enable the external systems to enable MLS IP on an interface:


Router(config-if)# 
mls rp ip
Router(config-if)

mls rp ip multicast

To enable IP multicast multilayer switching (MLS) (hardware switching) on an external or internal router in conjunction with Layer 3 switching hardware for the Catalyst 5000 switch, use themlsrpipmulticast command in interface configuration mode. To disable IP multicast MLS on the interface or VLAN, use the no form of this command.

mls rp ip multicast

no mls rp ip multicast

Syntax Description

This command has no arguments or keywords.

Command Default

IP multicast MLS is enabled.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.0(5)T

This command was introduced.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Usage Guidelines

This command is available only on specific router platforms connected to a Catalyst 5000 switch. Use this command to reduce multicast load on the router. The switch performs the multicast packet replication and forwarding.

IP multicast MLS is enabled by default on an interface after IP multicast routing and Protocol Independent Multicast (PIM) are enabled.

Examples

The following example shows how to disable IP multicast MLS:


Router(config)# interface fastethernet1/0.1
Router(config-if)# no mls rp ip multicast

mls rp ip multicast management-interface

To assign a different interface (other than the default) to act as the management interface for Multilayer Switching (MLS), use themlsrpipmulticastmanagement-interface command in interface configuration mode. To restore the default interface as the management interface, use the no form of this command.

mls rp ip multicast management-interface

no mls rp ip multicast management-interface

Syntax Description

This command has no arguments or keywords.

Command Default

When IP multicast MLS is enabled, the subinterface (or VLAN interface) that has the lowest VLAN ID and is active (in the “up” state) is automatically selected as the management interface.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.0(5)T

This command was introduced.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Usage Guidelines

When you enable IP multicast MLS, the subinterface (or VLAN interface) that has the lowest VLAN ID and is active (in the “up” state) is automatically selected as the managementinterface . The one-hop protocol Multilayer Switching Protocol (MLSP) is used between a router and a switch to pass messages about hardware-switched flows. MLSP packets are sent and received on the management interface. Typically, the interface in VLAN 1 is chosen (if that interface exists). Only one management interface is allowed on a single trunk link.

In most cases, we recommend that the management interface be determined by default. However, you can optionally use this command to specify a different router interface or subinterface as the management interface. We recommend using a subinterface with minimal data traffic so that multicast MLSP packets can be sent and received more quickly.

If the user-configured management interface goes down, the router uses the default interface (the active interface with the lowest VLAN ID) until the user-configured interface comes up again.

Examples

The following example shows how to configure the Fast Ethernet interface as the management interface:


Router(config)# interface fastethernet1/0.1
Router(config-if)# mls rp ip multicast management-interface

mls rp ipx (global)

To enable the router as a multilayer switching (MLS) IPX Route Processor (RP), or to allow the external systems to enable MLS IPX to a Multilayer Switch Feature Card (MSFC), use the mlsrpipx command in global configuration mode. To disable MLS IPX on the router or MSFC, use the no form of this command.

mls rp ipx [input-acl]

no mls rp ipx [input-acl]

Syntax Description

input-acl

(Optional for Cisco 7600 series only) Enables MLS IPX and overrides ACLs.

Command Default

MLS IPX is disabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.0(5)T

This command was introduced.

12.2(17d)SXB

This command was integrated into Cisco IOS 12.2(17d)SXB and introduced on the Supervisor Engine 2.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

Multilayer Switching Protocol (MLSP) is the protocol that runs between the MLS switching engine and the MLS RP.

This command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 720.

Examples

The following example enables MLS IPX on the MLS RP:


Router(config)# mls rp ipx

This example shows how to allow the external systems to enable MLS IPX to the MSFC and override ACLs:


Router(config)# 
mls rp ipx input-acl
Router(config)# 

mls rp ipx (interface)

To enable multilayer switching (MLS) Internetwork Packet Exchange (IPX) on a router interface, use the mlsrpipx command in interface configuration mode. To disable MLS IPX on a router interface, use the no form of this command.

mls rp ipx

no mls rp ipx

Syntax Description

This command has no arguments or keywords.

Command Default

MLS IPX is disabled.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.0(5)T

This command was introduced.

12.2(17d)SXB

This command was integrated into Cisco IOS 12.2(17d)SXB and introduced on the Supervisor Engine 2.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

Multilayer Switching Protocol (MLSP) is the protocol that runs between the MLS Switching Engine and the MLS RP.

This command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 720.

Examples

The following example shows how to enable MLS IPX on a router interface:


Router(config-if)# mls rp ipx

mls rp locate ipx

To display information about all switches currently shortcutting for the specified Internetwork Packet Exchange (IPX) flows, use the mlsrplocateipx command in privileged EXEC mode.

mls rp locate ipx destination-network . destination-node [source-network]

Syntax Description

destination-network . destination-node

The destination network and destination node of IPX packet flows. The destination network address consists of 1 to 8 hexadecimal numbers in the format xxxxxxxx. The destination node address consists of 12 hexadecimal numbers in the format xxxx.xxxx.xxxx.

source-network

(Optional) The source network of the IPX flow. The address of the source network consists of 1 to 8 hexadecimal numbers in the format yyyyyyyy.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.0(5)T

This command was introduced.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

12.2SX

This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.

Examples

The following example shows how to display the switch that is shortcutting routed flows to the specified IPX flow:


Router# mls rp locate ipx 30.0000.1111.2222
locator response from switch id 0010.1400.601f

mls rp management-interface

To specify an interface as the management interface, use themlsrpmanagement-interface command in interface configuration mode. To remove an interface as the management interface, use theno form of this command.

mls rp management-interface

no mls rp management-interface

Syntax Description

This command has no keywords or arguments.

Command Default

No interface is specified as the management interface.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

11.3(3)WA4(4)

This command was introduced.

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to the 12.2 SX release.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

Multilayer Switching Protocol (MLSP) packets are sent and received through the management interface.

Select only one IPX multilayer switching (MLS) interface connected to the switch. If you fail to select this interface, no connection between the MLS route processor (RP) and the MLS switching engine occurs, and any routing updates or changes to access lists are not reflected on the switch.

Examples

The following example shows how to select a management interface:


Router(config-if)# mls rp management-interface

mls rp nde-address

To specify a NetFlow Data Export (NDE) address, use the mlsrpnde-address command in global configuration mode. To remove the NDE address, use the no form of this command.

mls rp nde-address [ip-addr]

no mls rp nde-address [ip-addr]

Syntax Description

ip-address

(Optional) NDE IP address.

Command Default

No NDE address is specified.

Command Modes

Global configuration (config)

Command History

Release

Modification

11.3(3)WA4(4)

This command was introduced.

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to the 12.2(17d)SXB release.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

Use this command on a route processor (RP) to specify the NDE address for a router. If you donot specify an NDE IP address for the multilayer switching (MLS) RP, the MLS RP automatically selects one of its interface’s IP addresses and uses that IP address as its NDE IP address and its MLS IP address.

Use the following syntax to specify an IP subnet address:

  • ip-subnet-addr --Short subnet address format. The trailing decimal number 00 in an IP address YY.YY.YY.00 specifies the boundary for an IP-subnet address. For example, 172.22.36.00 indicates a 24-bit subnet address (subnet mask 172.22.36.00/255.255.255.0), and 172.24.00.00 indicates a 16-bit subnet address (subnet mask 172.24.00.00/255.255.0.0). However, this format can identify only a subnet address of 8, 16, or 24 bits.

  • ip-addr/subnet-mask --Long subnet address format. For example, 172.22.252.00/255.255.252.00 indicates a 22-bit subnet address. This format can specify a subnet address of any bit number. To provide more flexibility, the ip-addr is a full host address, such as 172.22.253.1/255.255.252.00.

  • ip-addr/maskbits --Simplified long subnet address format. The mask bits specify the number of bits of the network masks. For example, 172.22.252.00/22 indicates a 22-bit subnet address. The ip-addr is a full host address, such as 192.168.253.1/22, which has the same subnet address as the ip-subnet-addr .

Examples

The following example shows how to set the NDE address to 172.25.2.1:


Router(config)# mls rp nde-address 172.25.2.1

mls rp vlan-id

To assign a VLAN identification number to an interface, use themlsrpvlan-id command in interface configuration mode. To remove a VLAN identification number, use theno form of this command.

mls rp vlan-id vlanid-number

no mls rp vlan-id vlanid-number

Syntax Description

vlanid-number

A VLAN identification number from 1 to 4094.

Command Default

No VLAN identification number is assigned.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

11.3(3)WA4(4)

This command was introduced.

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Cisco IOS Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Examples

The following example shows how to assign the VLAN identification number to an interface:


Router(config-if)# mls rp vlan-id 23

mls rp vtp-domain

To assign a multilayer switching (MLS) interface to a specific Virtual Trunking Protocol (VTP) domain on the MLS Route Processor (RP), use themlsrpvtp-domain command in interface configuration mode. To remove a VTP domain, use theno form of this command.

mls rp vtp-domain domain-name

no mls rp vtp-domain domain-name

Syntax Description

domain-name

The name of the VTP domain assigned to an MLS interface and its related switches.

Command Default

The interface is assigned to the null domain.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

11.3(3)WA4(4)

This command was introduced.

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to the 12.2 SX release.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

The assigned IPX MLS interface must be either an Ethernet interface or a Fast Ethernet interface--both without subinterfaces.

Examples

The following example shows how to assign the MLS interface to the VTP domain named engineering:


Router(config-if)# mls rp vtp-domain engineering

mls switching

To enable the hardware switching, use the mlsswitching command in global configuration mode. To disable hardware switching, use the no form of this command.

mls switching

no mls switching

Syntax Description

This command has no arguments or keywords.

Command Default

Hardware switching is not enabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

This command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2.

Examples

This example shows how to enable the hardware switching:


Router(config
)# mls switching
Router(config)#

This example shows how to disable the hardware switching:


Router(config
)# no mls switching
Router(config)#

mls switching unicast

To enable the hardware switching of the unicast traffic for an interface, use the mlsswitchingunicast command in interface configuration mode. To disable the hardware switching of the unicast traffic for an interface, use the no form of this command.

mls switching unicast

no mls switching unicast

Syntax Description

This command has no arguments or keywords.

Command Default

Hardware switching of the unicast traffic for an interface is not enabled.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

This command is not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 2.

Examples

This example shows how to enable the hardware switching for an interface:


Router(config-if
)# mls switching unicast
Router(config-if)#

This example shows how to disable the hardware switching for an interface:


Router(config-if
)# no mls switching unicast
Router(config-if)#

mode dot1q-in-dot1q access-gateway

To enable a Gigabit Ethernet WAN interface to act as a gateway for 802.1Q in 802.1Q (Q-in-Q) VLAN translation, use the modedot1q-in-dot1qaccess-gateway command. To disable the Q-in-Q VLAN translation on the interface, use the no form of this command.

mode dot1q-in-dot1q access-gateway

no mode dot1q-in-dot1q access-gateway

Syntax Description

This command has no arguments or keywords.

Command Default

A Gigabit Ethernet WAN interface does not act as a gateway for 802.1Q in 802.1Q (Q-in-Q) VLAN translation.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(18)SXD

Support for this command was introduced on the Supervisor Engine 720.

12.2(18)SXE

Support was added for Q-in-Q link bundles using virtual port-channel interfaces.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

This command is supported on the Gigabit Ethernet (GE) WAN interfaces on Cisco 7600 series routers that are configured with an Optical Services Module (OSM)-2+4GE-WAN+ OSM module only.

OSMs are not supported on Cisco 7600 series routers that are configured with a Supervisor Engine 32

802.1Q provides a trunking option that tags packets with two VLAN tags to allow multiple VLANs to be trunked together across an intermediate network. This use of a double-tagged tunnel is also referred to as Q-in-Q tunneling.

The modedot1q-in-dot1qaccess-gateway command enhances Q-in-Q tunneling by tagging packets with two VLAN tags to allow multiple VLANs to be trunked together across an intermediate network. This use of double-tagged tunnels performs the following functions:

  • Switches packets that are tagged with two 802.1Q VLAN tags to a destination service based on the combination of VLAN tags.

  • Supports traffic shaping based on the VLAN tags.

  • Copies the 802.1P prioritization bits (P bits) from the inner (customer) VLAN tag to the outer (service provider) VLAN tag.

In Cisco IOS Release 12.2(18)SXE and later releases, you can also combine multiple GE-WAN interfaces into a virtual port-channel interface to enable Q-in-Q link bundling. Combining the interfaces not only simplifies the configuration, but allows the GE-WAN OSM to load balance the provider edge (PE) VLANs among the physical interfaces that are members of the bundle. Also, if one interface member of the link bundle goes down, its PE VLANs are automatically reallocated to the other members of the bundle.


Note

You must remove all IP addresses that have been configured on the interface before using the modedot1q-in-dot1qaccess-gateway command.


After configuring the modedot1q-in-dot1qaccess-gateway command, use the bridge-domain(subinterfaceconfiguration) command to configure the VLAN mapping to be used on each subinterface.


Caution

Using the modedot1q-in-dot1qaccess-gateway command on an interface automatically deletes all the subinterfaces that might be configured on the interface. It also releases any internal VLANs that might have been previously used on the interface and its subinterfaces, allowing them to be reused for Q-in-Q translation. The same situation occurs when using the no form of the command, which also deletes all subinterfaces and releases any VLANs that are currently being used by the interface and subinterface. We recommend that you save the interface configuration before entering the modedot1q-in-dot1qaccess-gateway command.



Note

Port-channel interface counters (as shown by the showcountersinterfaceport-channel and showinterfaceport-channelcounters commands) are not supported for channel groups that are using GE-WAN interfaces for Q-in-Q link bundling. The showinterfaceport-channel {number | number.subif } command (without the counters keyword) is supported, however.



Tip

The mlsqostrust command has no effect on a GE-WAN interface or port-channel group that has been configured with the modedot1q-in-dot1qaccess-gateway command. These interfaces and port channels always trust the VLAN class of service (CoS) bits in this configuration.


Examples

This example shows a typical configuration for the modedot1q-in-dot1qaccess-gateway command:


Router# configure terminal
 
Router(config)# interface GE-WAN 4/1
 
Router(config-if)# mode dot1q-in-dot1q access-gateway
 
Router(config-if)# 

This example shows the system message that appears when you try to configure the modedot1q-in-dot1qaccess-gateway command without first removing the IP address configuration:


Router# configure terminal
 
Router(config)# interface GE-WAN 3/0
 
Router(config-if)# mode dot1q-in-dot1q access-gateway
 
% interface GE-WAN3/0 has IP address 192.168.100.101 
configured. Please remove the IP address before configuring 
'mode dot1q-in-dot1q access-gateway' on this interface. 
Router(config-if)# no ip address 192.168.100.101 255.255.255
 
Router(config-if)# mode dot1q-in-dot1q access-gateway
 
Router(config-if)# 

This example shows how to disable QinQ mapping on an interface by using the no form of the modedot1q-in-dot1qaccess-gateway command. In addition, this command automatically removes all subinterfaces on the interface and all of the subinterface QinQ mappings (configured with the bridge-domain(subinterfaceconfiguration) command) and service policies.


Router# configure terminal
 
Router(config)# interface GE-WAN 3/0
 
Router(config-if)# no mode dot1q-in-dot1q access-gateway
 
Router(config-if)# 

This example shows a virtual port-channel interface that was created and assigned with two GE-WAN interfaces. The modedot1q-in-dot1qaccess-gateway command is then enabled on the port-channel interface to allow it to act as a QinQ link bundle:


Router(config)# interface port-channel 20
 
Router(config-if)# interface GE-WAN 3/0
 
Router(config-if)# port-channel 20 mode on
 
Router(config-if)# interface GE-WAN 3/1
 
Router(config-if)# port-channel 20 mode on
 
Router(config-if)# interface port-channel 20
 
Router(config-if)# no ip address
 
Router(config-if)# mode dot1q-in-dot1q access-gateway
 
Router(config-if)# 

This example shows the error message that appears if you attempt to enable QinQ translation on a port-channel interface that contains one or more invalid interfaces:


Router# configure terminal
 
Router(config)# interface port-channel 30
 
7600-2(config-if)# mode dot1q-in-dot1q access-gateway
 
% 'mode dot1q-in-dot1q access-gateway' is not supported on Port-channel30 
% Port-channel30 contains 2 Layer 2 Gigabit Ethernet interface(s)
Router(config-if)# 

monitor session

To start a new Switched Port Analyzer (SPAN) session or add interfaces for an existing SPAN session, use the monitorsession command in global configuration mode. To remove one or more source interfaces or destination interfaces from the SPAN session or delete a SPAN session, use the no form of this command.

Source interface

monitor session session source interface type slot/port [, | rx | tx | both ] no monitor session session source interface type slot/port [, | rx | tx | both ]

Destination Interface

monitor session session source interface type slot/port [, | -] no monitor session session source interface type slot/port [, | -]

Removing Session

no monitor session {session | all | capture | local | range session-range | remote}

Syntax Description

session

Number of the SPAN session. For Cisco 2600, 3600, and 3700 series routers, valid values are 1 and 2.

source

Specifies the SPAN source interface.

destination

Specifies the SPAN destination interface.

interface type slot / port

Specifies the interface type and number; valid values are ethernet (1 to 9), fastethernet (1 to 9), gigabitethernet (1 t o 9), and port-channel ; see the “Usage Guidelines” section for more details.

slot /

(Optional) Specifies the interface number; valid entries are 1 and 2.

port

(Optional) Port interface number ranges are based on the type of Ethernet switch network module used:

  • 0 to 15 for NM-16ESW

  • 0 to 35 for NM-36ESW

  • 0 to 1 for GigabitEthernet

,

(Optional) Specifies a series of SPAN VLANs.

-

(Optional) Specifies a range of SPAN VLANs.

rx

(Optional) Specifies monitor received traffic only.

tx

(Optional) Specifies monitor transmitted traffic only.

both

(Optional) Specifies monitor received and transmitted traffic.

all

Specifies all sessions.

capture

Specifies the Capture session.

local

Specifies the local session.

range session-range

Specifies the range of sessions.

remote

Specifies the remote session.

Command Default

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

A trunking interface monitors all VLANs and all received and transmitted traffic.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.1(3a)E3

This command was modified. The number of valid values for the port-channel number was changed; see the “Usage Guidelines” section for valid values.

12.1(5c)EX

This command was modified. These SPAN support restrictions were added:

  • If your switch has a Switch Fabric Module installed, SPAN is supported among supervisor engines and nonfabric-enabled modules.

  • If your switch does not have a Switch Fabric Module installed, SPAN is supported on all modules, including fabric-enabled modules.

  • SPAN on DFC-equipped modules is not supported.

12.2(2)XT

This command was implemented on the Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(8)T

This command was integrated into Cisco IOS Release 12.2(8)T on the Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.

12.2(17a)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

This command was modified. This command was changed to support the SSO mode and change the default mode.

12.2(17d)SXB

Support for this command was introduced on the Supervisor Engine 2.

12.4(15)T

This command was modified. The range of valid VLAN IDs was extended. The new range is from 1 to 4094 for specified platforms.

Usage Guidelines

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

The port-channel number supports six EtherChannels and eight ports in each channel.

Only one SPAN destination for a SPAN session is supported. If you attempt to add another destination interface to a session that already has a destination interface configured, you will get an error. You must first remove a SPAN destination interface before changing the SPAN destination to a different interface.

The Supervisor Engine 720 local SPAN, RSPAN, and ERSPAN session limits are listed in the table below.

Table 2. Supervisor Engine 720 Local SPAN, RSPAN, and ERSPAN Session Limits

Total Sessions

Local SPAN, RSPAN Source, or ERSPAN Source Sessions

RSPAN Destination Sessions

ERSPAN Destination Sessions

66

2 (ingress or egress or both)

64

23

The Supervisor Engine 720 local SPAN, RSPAN, and ERSPAN source and destination limits are listed in the table below.

Table 3. Supervisor Engine 720 Local SPAN, RSPAN, and ERSPAN Source and Destination Limits

In Each Local SPAN Session

In Each RSPAN Source Session

In Each ERSPAN Source Session

In Each RSPAN Destination Session

In Each ERSPAN Destination Session

Egress or ingress and egress sources

--

--

Releases earlier than Release 12.2(18)SXE

1

1

1

Release 12.2(18)SXE and later releases

128

128

128

Ingress sources

--

--

Releases earlier than Release 12.2(18)SXD

64

64

64

Release 12.2(18)SXD and later releases

128

128

128

RSPAN and ERSPAN destination session sources

--

--

--

1 RSPAN VLAN

1 IP address

Destinations per session

64

1 RSPAN VLAN

1 IP address

64

64


Note

Supervisor Engine 2 does not support RSPAN if you configure an egress SPAN source for a local SPAN session.


  • Supervisor Engine 2 does not support egress SPAN sources for local SPAN if you configure RSPAN.

The Supervisor Engine 2 local SPAN and RSPAN session limits are listed in the table below.

Table 4. Supervisor Engine 2 Local SPAN and RSPAN Session Limits

Total Sessions

Local SPAN Sessions

RSPAN Source Sessions

RSPAN Destination Sessions

66

2 (ingress or egress or both)

0

64

1 ingress

1 (ingress or egress or both)

64

1 or 2 egress

0

64

The Supervisor Engine 2 local SPAN and RSPAN source and destination limits are listed in the table below.

Table 5. Supervisor Engine 2 Local SPAN and RSPAN Source and Destination Limits

In Each Local SPAN Session

In Each RSPAN Source Session

In Each RSPAN Destination Session

Egress or egress and ingress sources

1 (0 with a remote SPAN source session configured)

1 (0 with a local SPAN egress source session configured)

--

Ingress sources

--

Releases earlier than Release 12.2(18)SXD

64

64

Release 12.2(18)SXD and later releases

128

128

RSPAN destination session source

--

--

1 RSPAN VLAN

Destinations per session

64

1 RSPAN VLAN

64


Note

Supervisor Engine 2 does not support RSPAN if you configure an egress SPAN source for a local SPAN session.


  • Supervisor Engine 2 does not support egress SPAN sources for local SPAN if you configure RSPAN.

The showmonitor command displays the SPAN service module session only if it is allocated in the system. It also displays a list of allowed modules and a list of active modules that can use the service module session.

Examples

Examples

The following example shows how to add a destination VLAN to an existing SPAN session:


Router(config)# monitor session 1 destination interface fastEthernet 2/0

Examples

This example shows how to clear the configuration for all sessions:


Router(config)# no monitor session all

This example shows how to clear the configuration for all remote sessions:


Router(config)# no monitor session remote

monitor session (VLAN)

To start a new Encapulated RSPAN (ERSPAN), Switched Port Analyzer (SPAN), or remote SPAN (RSPAN) session; add interfaces or VLANs to an existing session; filter ERSPAN, SPAN, or RSPAN traffic to specific VLANs; use the monitorsession command in global configuration mode. To remove one or more source or destination interfaces from the session, remove a source VLAN from the session, remove filtering, or delete a session, use the no form of this command.

Setting the Source Interface or VLAN

monitor session session source {interface type | vlan vlan-id}remote vlan rspan-vlan-id(explicit id )

nomonitor session session source {interface type | vlan vlan-id}remote vlan rspan-vlan-id

Setting the Destination Interface or VLAN

monitor session session destination {interface type | vlan vlan-id | remote vlan vlan-id | analysis-module slot-number | data-port port-number}

no monitor session session destination {interface type | vlan vlan-id | remote vlan vlan-id | analysis-module slot-number | data-port port-number}

Setting the Filter VLAN

monitor session session filter vlan vlan-range

no monitor session session filter vlan vlan-range

Removing Session

no monitor session {session | all | capture | local | range session-range | remote}

Syntax Description

session

Number of the SPAN session. For Cisco 6500/6000 and Cisco 7600 series routers, valid values are 1 to 66.

source

Specifies the SPAN source.

destination

Specifies the SPAN destination.

interface type

Specifies the interface type. For the Cisco 6500/6000 and Cisco 7600 series routers, valid values are ethernet , fastethernet , gigabitethernet , port-channel , or tengigabitethernet ; see the “Usage Guidelines” for formatting information.

vlan vlan id

Specifies the VLAN ID. Beginning with Cisco IOS Release 12.4(15)T, the valid VLAN ID range is from 1 to 4094.

For the Cisco 6500/6000 and Cisco 7600 series routers, valid values are 1 to 4094.

,

(Optional) Specifies a series of SPAN VLANs.

-

(Optional) Specifies a range of SPAN VLANs.

rx

(Optional) Specifies monitor received traffic only.

tx

(Optional) Specifies monitor transmitted traffic only.

both

(Optional) Specifies monitor received and transmitted traffic. By default both received and transmitted traffic are monitored.

remote vlan rspan-vlan-id

Specifies the RSPAN VLAN as a destination VLAN.

analysis-module slot-number

Specifies the network analysis module number; see the “Usage Guidelines” section for additional information.

data-port port-number

Specifies the data port number; see the “Usage Guidelines” section for additional information.

filter vlan vlan-range

Limits SPAN-source traffic to specific VLANs.

Note 

The filter keyword is not supported on the Cisco 2600 series or the Cisco 3600 series routers.

all

Specifies all sessions.

capture

Specifies the Capture session.

local

Specifies the local session.

range session-range

Specifies the range of sessions.

remote

Specifies the remote session.

Command Default

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers

A trunking interface monitors all VLANs and all received and transmitted traffic.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.0(7)XE

This command was introduced on the Catalyst 6000 family switches.

12.1(1)E

Support for this command on the Catalyst 6000 family switches was extended to Cisco IOS Release 12.1(1)E.

12.1(3a)E3

This command was modified. The number of valid values for the port-channel number was changed; see the “Usage Guidelines” section for valid values.

12.1(5c)EX

This command was modified. The SPAN support restrictions were added:

  • If your switch has a Switch Fabric Module installed, SPAN is supported among supervisor engines and nonfabric-enabled modules.

  • If your switch does not have a Switch Fabric Module installed, SPAN is supported on all modules, including fabric-enabled modules.

  • SPAN on Distributed Forwarding Card (DFC) equipped modules is not supported.

12.2(17a)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXA

This command was modified. This command was changed to support the SSO mode and change the default mode.

12.2(17d)SXB

This command was introduced on the Supervisor Engine 2.

12.2(18)SXE

This command was modified. The following changes were made to this command on the Supervisor Engine 720:

  • Added the typeerspan-source and the typeerspan-source keywords to support ERSPAN; see the monitorsessiontype command for additional information.

  • In the transmit or transmit and receive directions, you can specify up to 128 physical interfaces as the source.

12.4(15)T

This command was modified. The range of valid VLAN IDs was extended.The new range is from 1 to 4094 for specified platforms.

Usage Guidelines

Ciso 6500/6000 Catalyst Switches

The number of valid values for port-channel number depends on the software release. For Cisco IOS releases prior to software Release 12.1(3a)E3, valid values are from 1 to 256; for Cisco IOS Release 12.1(3a)E3, 12.1(3a)E4, and 12.1(4)E1, valid values are from 1 to 64. Cisco IOS Release 12.1(5c)EX and later support a maximum of 64 values ranging from 1 to 256.

Only one destination per SPAN session is supported. If you attempt to add another destination interface to a session that already has a destination interface configured, you get an error. You must first remove a SPAN destination interface before changing the SPAN destination to a different interface.

You can configure up to 64 SPAN destination interfaces, but have only one egress SPAN source interface and only up to 64 ingress source interfaces.

A SPAN session can monitor either VLANs or individual interfaces, but it cannot monitor both specific interfaces and specific VLANs. Configuring a SPAN session with a source interface and then trying to add a source VLAN to the same SPAN session causes an error. Configuring a SPAN session with a source VLAN and then trying to add a source interface to that session also causes an error. You must first clear any sources for a SPAN session before switching to another type of source.

If you enter the filter keyword on a monitored trunk interface, only traffic on the set of specified VLANs is monitored.

Port channel interfaces are displayed in the list of interface options if you have configured the interfaces. VLAN interfaces are not supported. However, you can span a particular VLAN by entering the monitorsession session source vlan vlan id command.

Cisco 7600 Series Routers

Use these formatting guidelines when configuring monitor sessions:

  • interface and single-interface formats are typeslot / port ; valid values for type are ethernet , fastethernet , gigabitethernet , or tengigabitethernet

  • An interface-list is a list of interfaces that are separated by commas. Insert a space before and after each comma as shown in this example:

single-interface , single-interface , single-interface

  • An interface-range is a rang e of interfaces that are separated by dashes. Insert a space before and after each dash. To enter multiple ranges, separate each range with a comma as shown in the following example:

type slot / first-port , last-port

  • A mixed-interface-list is a mixed list of interfaces. Insert a space before and after each dash and comma as shown in the following example:

single-interface , - interface-range , ... in any order.

  • A single-vlan is an ID number of a single VLAN; valid values are from 1 to 4094.

  • A vlan-list is a list of VLAN IDs that are separated by commas. Here is an example:

single-vlan, single-vlan, single-vlan ...

  • A vlan-range is a range of VLAN IDs that are separated by dashes. Here is an example :

first-vlan-ID - last-vlan-ID

  • A mixed-vlan-list is a mixed list of VLAN IDs. Insert a space before and after each dash. To enter multiple ranges, separate each VLAN ID with a comma as shown in the following example :

single-vlan , vlan-range , ... in any order

The analysis-module slot-number and the data-port port-number keywords and arguments are supported only on NAM.

The number of valid values for port-channel number are a maximum of 64 values ranging from 1 to 256.

You cannot share the destination interfaces among SPAN sessions. For example, a single destination interface can belong to one SPAN session only and cannot be configured as a destination interface in another SPAN session.


Note

Be careful when configuring SPAN-type source ports that are associated to SPAN-type destination ports because you do not configure SPAN on high-traffic interfaces. If you configure SPAN on high-traffic interfaces, you may saturate fabric channels, replication engines, and interfaces. To configure SPAN-type source ports that are associated to SPAN-type destination ports, enter the monitorsession session source {interface type | vlan vlan-id rx | tx | both ] | remotevlan rspan-vlan-id } command.


The Supervisor Engine 720 local SPAN, RSPAN, and ERSPAN session limits are listed in the table below.

Table 6. Supervisor Engine 720 Local SPAN, RSPAN, and ERSPAN Session Limits

Total Sessions

Local SPAN, RSPAN Source, or ERSPAN Source Sessions

RSPAN Destination Sessions

ERSPAN Destination Sessions

66

2 (ingress or egress or both)

64

23

The Supervisor Engine 720 local SPAN, RSPAN, and ERSPAN source and destination limits are listed in the table below.

Table 7. Supervisor Engine 720 Local SPAN, RSPAN, and ERSPAN Source and Destination Limits

In Each Local SPAN Session

In Each RSPAN Source Session

In Each ERSPAN Source Session

In Each RSPAN Destination Session

In Each ERSPAN Destination Session

Egress or ingress and egress sources

--

--

Releases earlier than Release 12.2(18)SXE

1

1

1

Release 12.2(18)SXE and later releases

128

128

128

Ingress sources

--

--

Releases earlier than Release 12.2(18)SXD

64

64

64

Release 12.2(18)SXD and later releases

128

128

128

RSPAN and ERSPAN destination session sources

--

--

--

1 RSPAN VLAN

1 IP address

Destinations per session

64

1 RSPAN VLAN

1 IP address

64

64


Note

Supervisor Engine 2 does not support RSPAN if you configure an egress SPAN source for a local SPAN session.


  • Supervisor Engine 2 does not support egress SPAN sources for local SPAN if you configure RSPAN.

The Supervisor Engine 2 local SPAN and RSPAN session limits are listed in the table below.

Table 8. Supervisor Engine 2 Local SPAN and RSPAN Session Limits

Total Sessions

Local SPAN Sessions

RSPAN Source Sessions

RSPAN Destination Sessions

66

2 (ingress or egress or both)

0

64

1 ingress

1 (ingress or egress or both)

64

1 or 2 egress

0

64

The Supervisor Engine 2 local SPAN and RSPAN source and destination limits are listed in the table below.

Table 9. Supervisor Engine 2 Local SPAN and RSPAN Source and Destination Limits

In Each Local SPAN Session

In Each RSPAN Source Session

In Each RSPAN Destination Session

Egress or egress and ingress sources

1 (0 with a remote SPAN source session configured)

1 (0 with a local SPAN egress source session configured)

--

Ingress sources

--

With releases earlier than Release 12.2(18)SXD

64

64

Release 12.2(18)SXD and later releases

128

128

RSPAN destination session source

--

--

1 RSPAN VLAN

Destinations per session

64

1 RSPAN VLAN

64


Note

Supervisor Engine 2 does not support RSPAN if you configure an egress SPAN source for a local SPAN session.


  • Supervisor Engine 2 does not support egress SPAN sources for local SPAN if you configure RSPAN.

A particular SPAN session can monitor either VLANs or individual interfaces; you cannot have a SPAN session that monitors both specific interfaces and specific VLANs. If you first configure a SPAN session with a source interface and then try to add a source VLAN to the same SPAN session, you will get an error. You will also get an error if you configure a SPAN session with a source VLAN and then try to add a source interface to that session. You must first clear any sources for a SPAN session before switching to another type of source.

If you enter the filter keyword on a monitored trunk interface, only traffic on the set of specified VLANs is monitored.

The port-channel interfaces are displayed in the list of interface options if you have configured the interfaces. The VLAN interfaces are not supported. However, you can span a particular VLAN by entering the monitorsession session source vlan vlan-id command.

The showmonitor command displays the SPAN service module session only if it is allocated in the system. It also displays a list of allowed modules and a list of active modules that can use the service module session.

Examples

Examples

The following example shows how to add a destination VLAN to an existing SPAN session:


Router(config)# monitor session 1 destination vlan 100

The following example shows how to delete a destination VLAN from an existing SPAN session:


Router(config)# no monitor session 1 destination vlan 100

The following example shows how to limit SPAN traffic to specific VLANs:


Router(config)# monitor session 1 filter vlan 100 - 304

Examples

This example shows how to configure multiple sources for a session:


Router(config)# monitor session 2 source interface fastethernet 5/15 , 7/3 rx
Router(config)# monitor session 2 source interface gigabitethernet 1/2 tx 
Router(config)# monitor session 2 source interface port-channel 102 
Router(config)# monitor session 2 source filter vlan 2 - 3
Router(config)# monitor session 2 destination remote vlan 901

This example shows how to configure an RSPAN destination in the final switch (RSPAN destination session):


Router(config)# monitor session 8 source remote vlan 901
Router(config)# monitor session 8 destination interface fastethernet 1/2 , 2/3

This example shows how to clear the configuration for sessions 1 and 2:


Router(config)# no monitor session 1 - 2

This example shows how to clear the configuration for all sessions:


Router(config)# no monitor session all

This example shows how to clear the configuration for all remote sessions:


Router(config)# no monitor session remote

mvr

To enable Multicast VLAN Registration (MVR) on the router, use the mvr command in global configuration mode. To restore the default configuration, use the no form of this command.

mvr

no mvr

Syntax Description

This command has no arguments or keywords.

Command Default

The mvr command is disabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

15.1(3)S

This command was introduced on the Cisco 7600 routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

MVR is designed for applications that use wide-scale deployment of multicast traffic across an Ethernet ring-based service-provider network. For example, the broadcast of multiple television channels over a service-provider network.

Examples

This example shows how to configure the mvr .


Router (config)# mvr
      

mvr group

To configure a Multicast VLAN Registration (MVR) group on the router, use the mvr group command in global configuration mode. To restore the default configuration, use the no form of this command.

mvr group ip-address { [count count ] | | [mask mask ]}

no mvr group ip-address { [count count ] | | [mask mask ]}

Syntax Description

ip-address

Configures an IP multicast address on the router. Any multicast data sent to this address is sent to all source ports on the router and all receiver ports configured to receive data on that multicast address. Each multicast address corresponds to one television channel.

count

Specifies a contiguous series of MVR group addresses. The range is between 1 to 256; the default is 1.

mask

Specifies an IP mask for MVR group addresses.

Command Default

None

Command Modes

Global configuration (config)

Command History

Release

Modification

15.1(3)S

This command was introduced on the Cisco 7600 routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

MVR is designed for applications that use wide-scale deployment of multicast traffic across an Ethernet ring-based service-provider network. For example, the broadcast of multiple television channels over a service-provider network.

Examples

This example shows how to configure the mvr group .

Router(config)# mvr group 209.165.201.2 255.255.255.224

mvr immediate

To enable the immediate leave feature of Multicast VLAN Registration (MVR) on the port, use the mvr immediate command in interface configuration mode. To restore the default configuration, use the no form of this command.

mvr immediate

no mvr immediate

Syntax Description

This command has no arguments or keywords

Command Default

Disabled

Command Modes


Interface configuration

Command History

Release

Modification

15.1(3)S

This command was introduced on the Cisco 7600 routers.

Usage Guidelines

MVR is designed for applications that use wide-scale deployment of multicast traffic across an Ethernet ring-based service-provider network. For example, the broadcast of multiple television channels over a service-provider network.

The mvr immediate command applies only to receiver ports with a single receiver device.

Examples

This example shows how to enable the immediate leave feature on a port:


Router(config-if)# mvr immediate 

mvr max-groups

To configure the maximum number of Multicast VLAN Registration (MVR) groups on the router, use the mvr max-groups command in global configuration mode. To restore the default configuration, use the no form of this command.

mvr max-groups max-groups

no mvr max-groups max-groups

Syntax Description

max-groups

Specifies the maximum number of MVR groups. The range is 1 to 8000.

Command Default

The default number of MVR groups is 1000.

Command Modes


Global configuration

Command History

Release

Modification

15.1(3)S

This command was introduced on the Cisco 7600 routers.

Examples

This example shows how to configure the maximum number of mvr groups.


Router(config)# mvr max-groups max-groups

mvr querytime

To configure the Multicast VLAN Registration (MVR) query response time, use the mvr querytime command in global configuration mode. To restore the default configuration, use the no form of this command.

mvr querytime value

no mvr querytime value

Syntax Description

value

Defines the maximum time to wait for IGMP report memberships on a receiver port before removing the port from multicast group membership. The value is in units of tenths of a second. The range is from 1 to 100.

Command Default

The default time for query response is 10 tenths of a second or one second.

Command Modes


Global configuration (config)

Command History

Release

Modification

15.1(3)S

This command was introduced on the Cisco 7600 routers.

Usage Guidelines

Use the mvr querytime command to configure the MVR general and group specific query response time.

Examples

This example shows how to configure the MVR query response time using the mvr querytime command.


Router(config)# mvr querytime 20

mvr type

To configure a switch port as a Multicast VLAN Registration (MVR) receiver or source port, use the mvr type command in interface configuration mode. To restore the default configuration, use the no form of this command.

mvr type {receiver | source}

no mvr type {receiver | source}

Syntax Description

receiver

Configures a port as a receiver port if it is a subscriber port. As a receiver port, it should only receive multicast data. It does not receive data unless it becomes a member of the multicast group, either statically or by using IGMP leave and join messages. Receiver ports do not belong to the multicast VLAN.

source

Configures uplink ports that receive and send multicast data as source ports. Subscribers cannot be directly connected to source ports. All source ports on a switch belong to the single multicast VLAN.

Command Default

None.

Command Modes


Interface configuration (config-if)

Command History

Release

Modification

15.1(3)S

This command was introduced on the Cisco 7600 routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

On configuring a non-MVR port with MVR characteristics, the operation fails.

Examples

This example shows how to configure the mvr type.


Router(config-if)# mvr type receiver 
or
Router(config-if)# mvr type source 

mvr vlan

To configure the VLAN for a Multicast VLAN Registration (MVR) feature, where multicast data is received, use the mvr vlan command in global configuration mode. To restore the default configuration, use the no form of this command.

mvr vlan vlan-id

no mvr vlan vlan-id

Syntax Description

vlan-id

Specifies the MVR multicast VLAN ID. All source ports must belong to this VLAN. The VLAN range is from 1 to 1001 and from 1006 to 4094.

Command Default

The default VLAN ID is 1

Command Modes


Global configuration (config)

Command History

Release

Modification

15.1(3)S

This command was introduced on the Cisco 7600 routers.

Usage Guidelines

Configuring the VLAN ID enables IGMP snooping for MVR groups, even though IGMP snooping was disabled previously.

Examples

This example shows how to configure MVR for a multicast VLAN.


Router(config)# mvr vlan 4000

mvrp global

To enable Multiple VLAN Registration Protocol (MVRP) globally on a device and on a specified interface, use the mvrpglobal command in global configuration mode. To disable MRVP, use the no form of this command.

mvrp global

no mvrp global

Syntax Description

This command has no arguments or keywords.

Command Default

MVRP is administratively disabled. MRVP is administratively enabled on each interface.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(33)SXI

This command was introduced.

Usage Guidelines

MVRP is operational on an interface only if MVRP is administratively enabled both globally at the device level and at the interface level.

When MVRP is operational on an interface MVRP protocol data units (PDUs) are transmitted out the interface which must be a forwarding IEEE 802.1Q trunk. Other MVRP-related operations can then be enabled on the interface.

Examples

The following example configures global MVRP on the device and interfaces:


Router> enable
Router# configure terminal
Router(config)# mvrp global
%MVRP is now globally enabled. MVRP is operational on 802.1q trunk ports only.
Router(config)# interface fastethernet2/1
Router(config-if)# exit
Router(config)# mvrp global
Router(config)# interface fastethernet2/2
Router(config-if)# exit
Router(config)# mvrp global
Router(config)# end

mvrp mac-learning

To enable automatic learning of dynamic MAC table entries, use the mvrpmac-learning command in global configuration mode. To disable automatic learning of dynamic MAC table entries, use the no form of this command.

mvrp mac-learning auto

no mvrp mac-learning auto

Syntax Description

auto

Enables automatic MAC learning on VLANs that are configured with Multiple VLAN Registration Protocol (MVRP).

Command Default

Automatic MAC learning is disabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(33)SXI

This command was introduced.

Usage Guidelines

With this command you can allow or disallow MVRP to provision MAC learning on devices where MVRP is configured. Automatic MAC learning is disabled by default.

Examples

The following example enable automatic learning of dynamic MAC table entries:


Router(config)# mvrp mac-learning auto

mvrp registration

To set the registrars in a Multiple Registration Protocol (MRP) Attribute Declaration (MAD) instance associated with an interface, use the mvrpregistration command in global configuration mode. To disable the registrars, use the no form of this command.

mvrp registration {normal | fixed | forbidden}

no mvrp registration

Syntax Description

normal

Registrar responds normally to incoming Multiple VLAN Registration Protocol (MVRP) messages. Normal is the default state.

fixed

Registrar ignores all incoming MVRP messages and remains in the IN state.

forbidden

Registrar ignores all incoming MVRP messages and remains in the EMPTY (MT) state.

Command Default

Registrars are set to the normal state.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(33)SRB

This command was introduced.

Usage Guidelines

The mvrp registration command is operational only if MVRP is configured on an interface.

The no mvrp registration command sets the registrar state to the default (normal).

This command can be used to set the registrar in a MAD instance associated with an interface to one of the three states. This command is effective only if MVRP is operational on the interface.

Given that up to 4094 VLANs can be configured on a trunk port, there may be up to 4094 Advanced Services Module (ASM) and Route Switch Module (RSM) pairs in a MAD instance associated with that interface.

Examples

The following example sets a fixed, forbidden, and normal registrar on a MAD instance:


Router(config)# mvrp global
%MVRP is now globally enabled. MVRP is operational on IEEE 802.1q trunk ports only.
Router(config)# interface fastethernet2/1
Router(config-if)# mvrp registration fixed
Router(config-if)# interface fastethernet2/2
Router(config-if)# mvrp registration forbidden
Router(config-if)# interface fastethernet2/3
Router(config-if)# no mvrp registration

mvrp timer

To set period timers that are used in Multiple VLAN Registration Protocol (MVRP) on a given interface, use the mvrp timer command in interface configuration mode. To remove the timer value, use the no form of this command.

mvrp timer {join | leave | leave-all | periodic} [centiseconds]

no mvrp timer

Syntax Description

join

Specifies the time interval between two transmit opportunities that are applied to the Applicant State Machine (ASMs).

leave

Specifies the duration time before a registrar is moved to EMPTY (MT) state from leave-all (LV) state.

leave-all

Specifies the time it takes for a LeaveAll timer to expire.

periodic

Sets the timer value to periodic, a fixed value of 100 centiseconds.

centiseconds

Timer value measured in centiseconds.

  • Join timer value range is 20 to 10000000.

  • Leave timer value range is 60 to 10000000.

  • LeaveAll timer value range is 10000 and 10000000.

  • Periodic timer value is fixed at 100 centiseconds.

Command Default

Join timer value: 20 centiseconds

Leave timer value: 60 centiseconds

LeaveAll timer value: 10000 centiseconds

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(33)SXI

This command was introduced.

Usage Guidelines

The no mvrp timer command resets the timer value to the default value.

Examples

The following example sets the timer levels on an interface:


Router(config)# mvrp global
%MVRP is now globally enabled. MVRP is operational on IEE 802.1q trunk ports.
Router(config)# interface GigabitEthernet 6/1
Router(config-if)# mvrp timer join 30
Router(config-if)# mvrp timer leave 70
Router(config-if)# mvrp timer leaveAll 15000

mvrp vlan creation

To enable dynamic VLAN creation on a device using Multiple VLAN Registration Protocol (MVRP), use the mvrpvlancreation command in global configuration mode. To disable dynamic VLAN creation for MVRP, use the no form of this command.

mvrp vlan creation

no mvrp vlan creation

Syntax Description

This command has no arguments or keywords.

Command Default

MVRP is disabled.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(33)SXI

This command was introduced.

Usage Guidelines

MVRP dynamic VLAN creation can be used only if Virtual Trunking Protocol (VTP) is in transparent mode.

Examples

The following example shows a command sequence enabling MVRP dynamic VLAN creation. Notice that the device recognizes that the VTP mode is incorrect and rejects the request for dynamic VLAN creation. Once the VTP mode is changed, MVRP dynamic VLAN creation is allowed.


Router(config)# mvrp vlan creation
%Command Rejected: VTP is in non-transparent (server) mode.
Router(config)# vtp mode transparent
Setting device to VTP TRANSPARENT mode.
Router(config)# mvrp vlan creation
%VLAN now may be dynamically created via MVRP/

name (MST)

To set the name of a Multiple Spanning Tree (MST) region, use the name command in MST configuration submode. To return to the default name, use the no form of this command.

name name

no name name

Syntax Description

name

Name to give the MST region. It can be any string with a maximum length of 32 characters.

Command Default

Empty string

Command Modes

MST configuration (config-mst)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Cisco IOS XE Release XE 3.7S

This command was integrated into Cisco IOS XE Release XE 3.7S.

Usage Guidelines

Two or more Cisco 7600 series routers with the same VLAN mapping and configuration version number are considered to be in different MST regions if the region names are different.


Caution

Be careful when using the name command to set the name of an MST region. If you make a mistake, you can put the Cisco 7600 series router in a different region. The configuration name is a case-sensitive parameter.


Examples

This example shows how to name a region:

Device(config-mst)# name Cisco
Device(config-mst)# 

pagp learn-method

To learn the input interface of the incoming packets, use the pagplearn-method command in interface configuration mode. To return to the default settings, use the no form of this command.

pagp learn-method {aggregation-port | physical-port}

no pagp learn-method

Syntax Description

aggregation-port

Specifies how to learn the address on the port channel.

physical-port

Specifies how to learn the address on the physical port within the bundle.

Command Default

The default is aggregation-port .

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Examples

This example shows how to set the learning method to learn the address on the physical port within the bundle:


Router(config-if)# 
pagp learn-method physical-port
Router(config-if)#

This example shows how to set the learning method to learn the address on the port channel within the bundle:


Router(config-if)# 
pagp learn-method aggregation-port
Router(config-if)#

platform vfi provision vlan

To provision virtual circuits (VCs) for a VLAN, use the platform vfi provision vlan command in global configuration mode. To disable provisioning of VCs, use the no form of this command.

platform vfi provision vlan vlan

no platform vfi provision vlan vlan

Syntax Description

vlan

VLAN number. The valid value is from 1 to 4094.

Command Default

No VC is provisioned.

Command Modes

Global configuration (config)

Command History

Release Modification

12.2(33)SRE2

This command was introduced.

Examples

The following example shows how to provision a VC for a VLAN. In this example, Multiprotocol Label Switching Layer 2 transport (MPLS) VC is provisioned for the interface VLAN 300:

Device> enable
Device# configure terminal
Device(config)# platform vfi provision vlan 300
Device(config)# interface vlan 300
Device(config-if)# shutdown
Device(config-if)# no shutdown
Device(config-if)# end 

Use the show mpls l2transport vc command to view the status of any MPLS Layer 2 packets on a device. The following is sample output from the show mpls l2transport vc command when the VC is not provisioned. The VC state is down:

Device# show mpls l2transport vc vcid 1

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
VFI maniv      vfi                        10.0.0.1          1          DOWN   

The following is sample output from the show mpls l2transport vc command when the VC is provisioned. The VC state is up:

Device# show mpls l2transport vc  vcid 1

Local intf     Local circuit              Dest address    VC ID      Status
-------------  -------------------------- --------------- ---------- ----------
VFI maniv      vfi                         10.0.0.1         1          UP

The following table describes the fields shown in the displays.

Table 10. show mpls l2transport vc Field Description

Field

Description

Local intf

Interface on the local device that has been enabled to transport Layer 2 packets.

Local circuit

Type and number of the local circuit.

Dest address

IP address of the remote device’s interface that is at the other end of the VC.

VC ID

Virtual circuit identifier assigned to one of the interfaces on the device.

Status

Status of the VC.

pagp port-priority

To select a port in hot standby mode, use the pagpport-priority command in interface configuration mode. To return to the default settings, use the no form of this command.

pagp port-priority priority

no pagp port-priority

Syntax Description

priority

Priority number; valid values are from 1 to 255.

Command Default

priority is 128

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

The higher the priority means the better the chances are that the port will be selected in the hot standby mode.

Examples

This example shows how to set the port priority:


Router(config-if)# 
pagp port-priority 45
Router(config-if)#

pagp rate

To select the rate at which packets are transmitted, use the pagp rate command in interface configuration mode. To return to the default settings, use the no no form of this command.

pagp rate {fast | normal}

no pagp rate

Syntax Description

fast

PAgP packets are transmitted at the fast rate.

normal

PAgP packets are transmitted at the slow rate once the line is established.

Command Default

This command has no default settings.

Command Modes

Interface configuration (Config-if)

Command History

Release

Modification

122(18)SXE1

Support for this command was introduced.

Usage Guidelines

This command is available on interfaces configured as part of a PAgP port channel.

Examples

This example shows how to set PAgP packet transmission to fast.

Router(config-if)# pagp rate fast

This example shows how to set PAgP packet transmission to slow.

Router(config-if)# pagp rate normal

pagp timer

To set the PAgP timer expiration, use the pagp timer command in interface configuration mode. To return to the default settings, use the no form of this command.

pagp timer time

no pagp timer

Syntax Description

This command has no keywords or arguments.

Command Default

This command has no default settings.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

122(33)SXI6

Support for this command was introduced.

Usage Guidelines

This command is available on interfaces configured as part of a PAgP port channel.

Examples

This example shows how to set the PAgP expiration time to 50.

Router(config-if)# pagp timer 50

platform port-channel local-significance

To allow more than one port-channel subinterface to use the same dot1q VLAN configuration, use the platformport-channellocal-significance command in global configuration mode. To disable multiple port-channel subinterfaces from using the same dot1q VLAN configuration, use the no form of this command.

platform port-channel number local-significance

no platform port-channel number local-significance

Syntax Description

number

Port-channel number. The valid range for port-channel numbers is 1 to 512.

Command Default

More than one port-channel subinterface cannot use the same dot1q VLAN configuration.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(33)SRD3

This command was introduced for ES+ line cards only.

Usage Guidelines

You must use this command before adding any subinterfaces. When you configure this command, the internal VLAN used by the port-channel subinterface is different from the dot1q VLAN configured on the subinterface.

Examples

This example shows how to select port-channels 18 and 19 to use the identical dot1q VLAN configuration:


Router(config)# platform port-channel 18 local-significance
Router(config)# platform port-channel 19 local-significance

port-channel load-defer

To configure the port load share deferral interval for all port channels, use the port-channelload-defer command in global configuration mode. To reset the port defer interval to the default setting, use the no form of this command.

port-channel load-defer seconds

no port-channel load-defer seconds

Syntax Description

seconds

Sets the time interval in seconds by which load sharing will be deferred on the switch. Valid range is from 1 to 1800 seconds. The default deferal interval is 120 seconds

Command Default

The port defer interval is 120 seconds.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(33)SXH

This command was introduced.

12.2(50)SY

This command was introduced. Added the seconds variable for use in Cisco IOS Release 12.2(50)SY.

Usage Guidelines

To reduce data loss following a stateful switchover (SSO), port load share deferral can be enabled by entering the port-channelportload-defer command on a port channel of a switch that is connected by a multichassis EtherChannel (MEC) to a virtual switching system (VSS). Port load share deferral temporarily prevents the switch from forwarding data traffic to MEC member ports on a failed chassis of the VSS while the VSS recovers from the SSO.

The load share deferral interval is determined by a single global timer configurable by the port-channelload-defer command. After an SSO switchover, a period of several seconds to several minutes can be required for the reinitialization of line cards and the reestablishment of forwarding tables, particularly multicast topologies.

The valid range of seconds is 1 to 1800 seconds; the default is 120 seconds.

Examples

This example shows how to set the global port deferral interval to 60 seconds:


Router(config)# 
port-channel load-defer 60
Router(config)# 

This example shows how to verify the configuration of the port deferral interval on a port channel:


Router# show etherchannel 50 port-channel
 
                Port-channels in the group: 
                ----------------------
Port-channel: Po50    (Primary Aggregator)
------------
Age of the Port-channel   = 0d:00h:22m:20s
Logical slot/port   = 46/5          Number of ports = 3
HotStandBy port = null 
Port state          = Port-channel Ag-Inuse 
Protocol            =   LACP
Fast-switchover     = disabled
Load share deferral = enabled   defer period = 60 sec
   time left = 57 sec 
Router# 

port-channel port load-defer

To enable the temporary deferral of port load sharing during the connection or reconnection of a port channel, use the port-channelportload-defer command in interface configuration mode. To disable the deferral of port load sharing on a port channel, use the no form of this command.

port-channel port load-defer

no port-channel port load-defer

Syntax Description

This command has no keywords or arguments.

Command Default

The port load share deferral feature is not enabled on a port channel .

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(33)SXH

This command was introduced.

12.2(50)SY

This command was introduced.

Usage Guidelines

To reduce data loss following a stateful switchover (SSO), a port load share deferral can be enabled on a port channel of a switch that is connected by a multichassis EtherChannel (MEC) to a virtual switching system (VSS). The load share deferral interval prevents the switch from forwarding data traffic to MEC member ports on a failed chassis of the VSS while the VSS recovers from the SSO.

When load share deferral is enabled on a port channel, the assignment of a member port’s load share is delayed for a period that is configurable globally by the port-channelload-defer command. During the deferral period, the load share of a deferred member port is set to 0. In this state, the deferred port is capable of receiving data and control traffic, and of sending control traffic, but the port is prevented from sending data traffic over the MEC to the VSS. Upon expiration of the global deferral timer, the deferred member port exits the deferral state and the port assumes its normal configured load share.

Load share deferral is applied only if at least one other member port of the port channel is currently active with a nonzero load share. If a port enabled for load share deferral is the first member bringing up the EtherChannel, the deferral feature does not apply and the port will forward traffic immediately.

The load share deferral interval is determined by a single global timer configurable from 1 to 1800 seconds by the port-channelload-defer command. The default interval is 120 seconds. After an SSO switchover, a period of several seconds to several minutes can be required for the reinitialization of line cards and the reestablishment of forwarding tables, particularly multicast topologies.

Examples

This example shows how to enable the load share deferral feature on port channel 50 of a switch that is an MEC peer to a VSS:


Router(config)# 
interface port-channel 50
Router(config-if)# 
port-channel port load-defer
 
This will enable the load share deferral feature on this port-channel.
The port-channel should connect to a Virtual Switch (VSS).
Do you wish to proceed? [yes/no]: 
yes
Router(config-if)#

This example shows how to verify the state of the port deferral feature on a port channel:


Router# show etherchannel 50 port-channel
 
                Port-channels in the group: 
                ----------------------
Port-channel: Po50    (Primary Aggregator)
------------
Age of the Port-channel   = 0d:00h:22m:20s
Logical slot/port   = 46/5          Number of ports = 3
HotStandBy port = null 
Port state          = Port-channel Ag-Inuse 
Protocol            =   LACP
Fast-switchover     = disabled
Load share deferral = enabled   defer period = 120 sec   time left = 57 sec 
Router# 

private-vlan

To configure private VLANs (PVLANs), use the private-vlan command in VLAN configuration mode. To remove the PVLAN configuration, use the no form of this command.

private-vlan {isolated | community | primary}

no private-vlan {isolated | community | primary}

Syntax Description

isolated

Designates the VLAN as an isolated PVLAN.

community

Designates the VLAN as a community PVLAN.

primary

Designates the VLAN as the primary PVLAN.

Command Default

No PVLANs are configured.

Command Modes

VLAN configuration (config-vlan)

Command History

Release

Modification

12.2(14)SX

This command was introduced on the Supervisor Engine 720.

12.2(17a)SX

This command was modified. A configuration restriction was added. See the “Usage Guidelines” section for additional information.

12.2(17d)SXB

This command was modified. Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

15.0(1)M

This command was integrated into Cisco IOS Release 15.0(1)M.

Usage Guidelines

You cannot configure PVLANs on a port-security port. If you enter the pvlan command on a port-security port, the following error message is displayed:


Command rejected: Gix/y is Port Security enabled port.

Within groups of 12 ports (1-12, 13-24, 25-36, and 37-48), if one of the ports is a trunk, a Switch Port Analyzer (SPAN) destination, or a promiscuous PVLAN port, then do not configure the ports as isolated or as community VLAN ports. If so, any isolated or community VLAN configuration for the other ports within the 12 ports is inactive. To reactivate the ports, remove the isolated or community VLAN port configuration and enter the shutdown and noshutdown commands.


Caution

If you enter the shutdown command and then the noshutdown command in the VLAN configuration mode on a PVLAN (primary or secondary), the PVLAN type and association information can be deleted. Ensure to reconfigure the VLAN as a PVLAN.



Note

In Release 12.2(17a)SX, this restriction applies to Ethernet 10 Mb, 10/100 Mb, and 100 Mb modules except WS-X6548-RJ-45 and WS-X6548-RJ-21. In releases earlier than Release 12.2(17a)SX, this restriction applies to Ethernet 10 Mb, 10/100 Mb, and 100 Mb modules.


You cannot configure VLAN 1 or VLANs 1001 to 1005 as PVLANs.

VLAN Trunking Protocol (VTP) does not propagate PVLAN configuration. Each protected or private port is associated with a PVLAN, that is not supported through VTP. Therefore, you must configure PVLANs on each device where you require PVLAN ports.

A promiscuous port is a private port that is assigned to a primary VLAN.

An isolated VLAN is a VLAN that is used by isolated ports to communicate with promiscuous ports. The traffic from an isolated VLAN is blocked on all other private ports in the same VLAN. This traffic can only be received by standard trunking ports and promiscuous ports that are assigned to the corresponding primary VLAN.

A primary VLAN is the VLAN that is used to carry the traffic from the routers to customer end stations on private ports.

A community VLAN is the VLAN that carries the traffic among community ports, and from community ports to the promiscuous ports on the corresponding primary VLAN.

You can specify only one isolated vlan-id in the vlan command, while multiple community VLANs are allowed. Isolated and community VLANs can only be associated with one VLAN. The associated VLAN list must not contain primary VLANs. You cannot configure a VLAN that is already associated to a primary VLAN as a primary VLAN.

The private-vlan commands do not take effect until you exit the VLAN configuration mode.

If you delete either the primary or secondary VLAN, the ports that are associated with the VLAN become inactive.

See the Cisco 7600 Series Router Cisco IOS Software Configuration Guide for additional configuration guidelines.

Examples

The following example shows how to configure VLAN 303 as a community LAN:


Router# configure terminal
Router(config)# vlan 303
Router(config-vlan)# private-vlan community
Router(config-vlan)# end

The following example shows how to configure VLAN 440 as an isolated VLAN:


Router# configure terminal
Router(config)# vlan 440
Router(config-vlan)# private-vlan isolated
Router(config-vlan)# end

The following example shows how to configure VLAN 233 as a primary LAN:


Router# configure terminal
Router(config)# vlan 233
Router(config-vlan)# private-vlan primary
Router(config-vlan)# end

The following example shows how to remove a PVLAN relationship and delete the primary VLAN. The associated secondary VLANs are not deleted.


Router(config-vlan)# no private-vlan

private-vlan association

To create an association between private VLANs (PVLANs), use the private-vlanassociation command in VLAN configuration mode. To remove the association, use the no form of this command.

private-vlan association {private-vlan-list | add private-vlan-list | remove private-vlan-list}

no private-vlan association

Syntax Description

private-vlan-list

VLAN ID of the PVLANs.

add

Associates a PVLAN with another PVLAN.

remove

Clears the association between PVLANs.

Command Default

No PVLANs are associated.

Command Modes

VLAN configuration (config-vlan)

Command History

Release

Modification

12.2(14)SX

This command was introduced on the Supervisor Engine 720.

12.2(17a)SX

This command was modified. A configuration restriction was added. See the “Usage Guidelines” section for additional information.

12.2(17d)SXB

This command was modified. Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

15.0(1)M

This command was integrated into Cisco IOS Release 15.0(1)M.

Usage Guidelines

You cannot configure PVLANs on a port-security port. If you enter the pvlan command on a port-security port, the following error message is displayed:


Command rejected: Gix/y is Port Security enabled port.

Within groups of 12 ports (1-12, 13-24, 25-36, and 37-48), if one of the ports is a trunk, a Switch Port Analyzer (SPAN) destination, or a promiscuous PVLAN port, then do not configure the ports as isolated or as community VLAN ports. If so, any isolated or community VLAN configuration for the other ports within the 12 ports is inactive. To reactivate the ports, remove the isolated or community VLAN port configuration and enter the shutdown and noshutdown commands.


Caution

If you enter the shutdown command and then the noshutdown command in the VLAN configuration mode on a PVLAN (primary or secondary), the PVLAN type and association information can be deleted. Be sure to reconfigure the VLAN as a PVLAN.



Note

In Release 12.2(17a)SX, this restriction applies to Ethernet 10 Mb, 10/100 Mb, and 100 Mb modules except WS-X6548-RJ-45 and WS-X6548-RJ-21. In releases earlier than Release 12.2(17a)SX, this restriction applies to Ethernet 10 Mb, 10/100 Mb, and 100 Mb modules.


VLAN 1 or VLANs ranging from 1002 to 1005 cannot be configured as PVLANs. Extended VLANs (VLAN IDs 1006 to 4094) can belong to PVLANs.

A PVLAN is a set of private ports that are characterized by using a common set of VLAN number pairs. Each pair is made up of at least two special unidirectional VLANs, and it is used by isolated ports, or by a community of ports to communicate with routers, or both.

VLAN Trunking Protocol (VTP) must be set to transparent mode to support PVLANs. After the PVLAN configuration, you must not change the VTP mode to client or server mode. VTP does not propagate PVLAN configuration. Each protected or private port is associated with a PVLAN, which is not supported through VTP. Therefore, you must configure PVLANs on each device where you require PVLAN ports.

A primary VLAN can contain one isolated VLAN and multiple community VLANs associated with it. An isolated or community VLAN can have only one primary VLAN associated with it.


Note

The private-vlanassociation command does not take effect until you exit the VLAN configuration mode.


If you delete either the primary or secondary VLAN, the ports that are associated with the VLAN become inactive.

See the Cisco 7600 Series Router Cisco IOS Software Configuration Guide for additional configuration guidelines.

Examples

The following example shows how to create a PVLAN relationship between the primary VLAN 14, the isolated VLAN 19, and the community VLANs 20 and 21:


Router(config)# vlan 19
Router(config-vlan)# private-vlan isolated
Router(config-vlan)# exit
Router(config)# vlan 20
Router(config-vlan)# private-vlan community
Router(config-vlan)# exit
Router(config)# vlan 21
Router(config-vlan)# private-vlan community
Router(config-vlan)# exit
Router(config)# vlan 14
Router(config-vlan)# private-vlan primary
Router(config-vlan)# private-vlan association 19-21

The following example shows how to remove an isolated VLAN 19 and community VLAN 20 from the PVLAN association:


Router(config)# vlan 14
Router(config-vlan)# private-vlan association remove 19,20

private-vlan mapping

To create a mapping between the primary and the secondary VLANs so that both VLANs share the same primary VLAN switched virtual interface (SVI), use the private-vlan mapping command in interface configuration mode. To remove all private VLAN (PVLAN) mappings from the SVI, use the no form of this command.

private-vlan mapping [secondary-vlan-list | add secondary-vlan-list | remove secondary-vlan-list]

no private-vlan mapping

Syntax Description

secondary-vlan-list

(Optional) VLAN IDs of the secondary VLANs to map to the primary VLAN.

add

(Optional) Maps the secondary VLAN to the primary VLAN.

remove

(Optional) Removes the mapping between the secondary VLAN and the primary VLAN.

Command Default

No PVLAN SVI mapping is configured.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to the 12.2 SX release.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

The private-vlan mapping command affects traffic that is switched in the software on the Multilayer Switching Feature Card (MSFC) or MSFC2. The private-vlanmapping command does not configure Layer 3 switching on the Policy Feature Card (PFC) or PFC2.

The secondary-vlan-list argument cannot contain spaces; it can contain multiple comma-separated items. Each item can be a single PVLAN ID or a hyphenated range of PVLAN IDs.

This command is valid in the interface configuration mode of the primary VLAN.

The SVI of the primary VLAN is created at Layer 3.

Traffic that is received on the secondary VLAN is routed by the SVI of the primary VLAN.

The SVIs of existing secondary VLANs do not function and are considered as down after you enter this command.

A secondary SVI can only be mapped to one primary SVI. If you configure the primary VLAN as a secondary VLAN, all the SVIs that are specified in this command are brought down.

If you configure a mapping between two VLANs that do not have a valid Layer 2 association, the mapping configuration does not take effect.

Examples

This example shows how to permit routing of secondary VLAN-ingress traffic from PVLANs 303 through 307, 309, and 440 and verify the configuration:


Router# 
configure terminal
 
Router(config)# 
interface vlan 202 
Router(config-if)# 
private-vlan mapping add 303-307,309,440 
Router(config-if)# 
end
 
Router# 
show interfaces private-vlan mapping
 
Interface Secondary VLAN Type
--------- -------------- -----------------
vlan202   303            community
vlan202   304            community
vlan202   305            community
vlan202   306            community
vlan202   307            community
vlan202   309            community
vlan202   440            isolated
Router#

This example shows the displayed error message if the VLAN that you are adding is already mapped to the SVI of VLAN 19. You must delete the mapping from the SVI of VLAN 19 first.


Router(config)# 
interface vlan 19
Router(config-if)# 
private-vlan mapping 19 add 21
    Command rejected: The interface for VLAN 21 is already mapped as s secondary.
Router(config-if)# 

This example shows how to remove all PVLAN mappings from the SVI of VLAN 19:


Router(config)# 
interface vlan 19
Router(config-if)# 
no private-vlan mapping

Router(config-if)#

private-vlan synchronize

To map the secondary VLANs to the same instance as the primary VLAN, use the private-vlansynchronize command in MST configuration submode.

private-vlan synchronize

Syntax Description

This command has no arguments or keywords.

Command Default

The secondary VLANs are not mapped to the same instance as the primary VLAN.

Command Modes

MST configuration (config-mst)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Usage Guidelines

If you do not map VLANs to the same instance as the associated primary VLAN when you exit the Multiple Spanning Tree (802.1s) (MST) configuration submode, a warning message displays and lists the secondary VLANs that are not mapped to the same instance as the associated primary VLAN. The private-vlansynchronize command automatically maps all secondary VLANs to the same instance as the associated primary VLANs.

Examples

This example assumes that a primary VLAN 2 and a secondary VLAN 3 are associated to VLAN 2, and that all VLANs are mapped to the Common and Internal Spanning Tree (CIST) instance 1. This example also shows the output if you try to change the mapping for the primary VLAN 2 only:


Router(config)# spanning-tree mst configuration
 
Router(config-mst)# instance 1 vlan 2
Router(config-mst)# exit
These secondary vlans are not mapped to the same instance as their primary:
-> 3

This example shows how to initialize private VLAN (PVLAN) synchronization:


Router(config-mst)# private-vlan synchronize
Router(config-mst)# 

rep admin vlan

To configure a Resilient Ethernet Protocol (REP) administrative VLAN for REP to transmit hardware flood layer (HFL) messages, use the repadminvlan command in global configuration mode. To return to the default configuration with VLAN 1 as the administrative VLAN, use the no form of this command.

rep admin vlan vlan-id

no rep admin vlan

Syntax Description

vlan-id

The VLAN ID range is from 1 to 4094. The default is VLAN 1; the range to configure is 2 to 4094.

Command Default

The administrative VLAN is VLAN 1.

Command Modes

Global configuration (config)

Command History

Release

Modification

12.2(40)SE

This command was introduced.

12.2(33)SRC

This command was implemented on the Cisco 7600 series router.

Cisco IOS XE Release 2.2

This command was implemented on the Cisco ASR 1000 Series Aggregation Services Router.

15.1(2)SNG

This command was implemented on Cisco ASR 901Series Aggregation Service Routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

If the VLAN does not already exist, this command does not create the VLAN.

To avoid the delay introduced by relaying messages in software for link-failure or VLAN-blocking notification during load balancing, REP floods packets at the HFL to a regular multicast address. These messages are flooded to the whole network, not just the REP segment. Switches that do not belong to the segment treat them as data traffic. Configuring an administrative VLAN for the whole domain can control flooding of these messages.

If no REP administrative VLAN is configured, the default is VLAN 1.

There can be only one administrative VLAN on a switch and on a segment.

The administrative VLAN cannot be the RSPAN VLAN.

Examples

This example shows how to configure VLAN 100 as the REP administrative VLAN:


Router(config)# rep admin vlan 100

You can verify your settings by entering the showinterfacesrepdetail privileged EXEC command.

rep block port

To configure Resilient Ethernet Protocol (REP) VLAN load balancing on the REP primary edge port, use the rep block port command in interface configuration mode. To return to the default configuration, use the no form of this command.

rep block port {id port-id | neighbor-offset | preferred} vlan {vlan-list | all}

no rep block port {id port-id | neighbor-offset | preferred}

Syntax Description

id port-id

Identifies the VLAN blocking alternate port by entering the unique port ID that is automatically generated when REP is enabled. The REP port ID is a 16-character hexadecimal value. You can display the port ID for an interface by entering the show interface interface id rep detail command

neighbor-offset

Identifies the VLAN blocking alternate port by entering the offset number of a neighbor. The range is -256 to 256; a value of 0 is invalid. The primary edge port has an offset number of 1; positive numbers above 1 identify downstream neighbors of the primary edge port. Negative numbers identify the secondary edge port (offset number -1) and its downstream neighbors.

preferred

Identifies the VLAN blocking alternate port as the segment port on which you entered the rep segment segment-id preferred interface configuration command.

Note 

Entering the preferred keyword does not ensure that the preferred port is the alternate port; it gives it preference over other similar ports.

vlan

Identifies the VLANs to be blocked.

vlan-list

The VLAN ID or range of VLAN IDs to be displayed. Enter a VLAN ID from 1 to 4094 or a range or sequence of VLANs (such as 1-3, 22, 41-44) of VLANs to be blocked.

all

Blocks all VLANs.

Command Default

The default behavior after you enter the rep preempt segment privileged EXEC command (for manual preemption) is to block all VLANs at the primary edge port. This behavior remains until you configure the rep block port command.

If the primary edge port cannot determine which port is to be the alternate port, the default action is no preemption and no VLAN load balancing.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(40)SE

This command was introduced.

12.2(33)SRC

This command was implemented on the Cisco 7600 series router.

Cisco IOS XE Release 2.2

This command was implemented on the Cisco ASR 1000 Series Aggregation Services Router.

15.1(2)SNG

This command was implemented on the Cisco ASR 901 Series Aggregation Services Router

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

You must enter this command on the REP primary edge port.

When you select an alternate port by entering an offset number, this number identifies the downstream neighbor port of an edge port. The primary edge port has an offset number of 1; positive numbers above 1 identify downstream neighbors of the primary edge port. Negative numbers identify the secondary edge port (offset number -1) and its downstream neighbors. You would never enter an offset value of 1 because that is the offset number of the primary edge port itself.

If you have configured a preempt delay time by entering the rep preempt delay seconds interface configuration command and a link failure and recovery occurs, VLAN load balancing begins after the configured preemption time period elapses without another link failure. The alternate port specified in the load-balancing configuration blocks the configured VLANs and unblocks all other segment ports. If the primary edge port cannot determine the alternate port for VLAN balancing, the default action is no preemption.

Each port in a segment has a unique port ID. The port ID format is similar to the one used by the spanning tree algorithm: a port number (unique on the bridge) associated to a MAC address (unique in the network). To determine the port ID of a port, enter the show interfaces interface id rep detail privileged EXEC command.

Examples

This example shows how to configure REP VLAN load balancing on the Router B primary edge port (Gigabit Ethernet port 1/0/1) and to configure Gigabit Ethernet port 1/0/2 of Router A as the alternate port to block VLANs 1 to 100. The alternate port is identified by its port ID, shown in bold in the output of the show interfaces rep detail command for the Router A port.


RouterA# show interfaces gigabitethernet0/2 rep detail

GigabitEthernet0/2 REP enabled
Segment-id: 2 (Segment)
PortID: 0080001647FB1780
Preferred flag: No
Operational Link Status: TWO_WAY
Current Key: 007F001647FB17800EEE
Port Role: Open
Blocked Vlan: <empty>
Admin-vlan: 1
Preempt Delay Timer: 35 sec
Load-balancing block port: none
Load-balancing block vlan: none
STCN Propagate to: 
PDU/TLV statistics:
LSL PDU rx: 107122, tx: 192493
RouterB# configure terminal
Router(config)# interface gigabitethernet1/0/1
Router(config-if)# rep block port id 
0080001647FB1780
 vlan 1-100
Router(config-if)# exit

This example shows how to configure VLAN load balancing by using a neighbor offset number and how to verify the configuration by entering the show interfaces rep detail privileged EXEC command:


Router# configure terminal
Router#(config)# interface gigabitethernet1/0/2
Router#(config-if)# rep block port 6 vlan 1-110
Router#(config-if)# end
Router# show interface gigabitethernet1/0/2 rep detail

GigabitEthernet0/2 REP enabled
Segment-id: 2 (Segment)
PortID: 0080001647FB1780
Preferred flag: No
Operational Link Status: TWO_WAY
Current Key: 007F001647FB178009C3
Port Role: Open
Blocked Vlan: <empty>
Admin-vlan: 3
Preempt Delay Timer: 35 sec
Load-balancing block port: 6
Load-balancing block vlan: 1-110
STCN Propagate to: none
LSL PDU rx: 1466780, tx: 3056637
HFL PDU rx: 2, tx: 0
BPA TLV rx: 1, tx: 2119695
BPA (STCN, LSL) TLV rx: 0, tx: 0
BPA (STCN, HFL) TLV rx: 0, tx: 0
EPA-ELECTION TLV rx: 757406, tx: 757400
EPA-COMMAND TLV rx: 1, tx: 1
EPA-INFO TLV rx: 178326, tx: 178323

rep lsl-ageout timer

To configure the Resilient Ethernet Protocol (REP) link status layer (LSL) age-out timer value, use the rep lsl-ageout timer command in interface configuration mode. To restore the default age-out timer value, use the no form of this command.

rep lsl-ageout timer milliseconds

no rep lsl-ageout timer milliseconds

Syntax Description

milliseconds

The REP LSL age-out timer value, in milliseconds (ms). The range is from 120 to 10000 in multiples of 40. The default LSL age-out timer value is 5000 ms. We recommend that you use 200 ms as the age-out timer value for the Cisco IOS XE releases.

Command Default

The default LSL age-out timer value is 5000 ms.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

15.0(1)S

This command was introduced on the Cisco 7600 series routers.

Cisco IOS XE Release 3.5.1S

This command was integrated into IOS XE Release 3.5.1S.

15.1(2)SNG

This command was implemented on Cisco ASR 901Series Aggregation Service Routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

REP is a Cisco proprietary protocol that provides functionality to:

  • Control network loops.

  • Handle link failures.

  • Improve convergence time.

Examples

The following example shows how to configure the REP LSL age-out timer value:

Device# enable
Device# configure terminal
Device(config)# interface GigabitEthernet 5/3
Device(config-if)# rep segment 1 edge primary
Device(config-if)# rep lsl-ageout timer 2000
Device(config-if)# exit

rep lsl-retries

To configure the Resilient Ethernet Protocol (REP) link status layer (LSL) number of retries, use the rep lsl-retries command in interface configuration mode. To restore the default number of retries, use the no form of this command.

rep lsl-retries number-of-retries

no rep lsl-retries number-of-retries

Syntax Description

number-of-retries

The number of LSL retries. The acceptable range is between 3 and 10 retries. The default number of retries is 5.

Command Default

The default number of retries is 5.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

15.0(1)S

This command was introduced on the Cisco 7600 series routers.

15.1(2)SNG

This command was implemented on Cisco ASR 901Series Aggregation Service Routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

REP is a Cisco proprietary protocol that provides functionality to:

  • Control network loops

  • Handle link failures

  • Improve convergence time

The rep lsl-retries command is used to configure the number of retries before the REP link is disabled.

Examples

This example shows how to configure REP link status layer number of retries.


Router# enable
Router# configure terminal
Router(config)# interface gigabitethernet 2/5
Router(config-if)# rep segment 2 edge primary
Router(config-if)# 
rep lsl-retries 4

Router(config-if)# exit

rep preempt delay

To configure a waiting period after a segment port failure and recovery before Resilient Ethernet Protocol (REP) VLAN load balancing is triggered, use thereppreemptdelay command in interface configuration mode. To remove the configured delay, use the no form of this command.

rep preempt delay seconds

no rep preempt delay

Syntax Description

seconds

The number of seconds to delay REP preemption. The range is 15 to 300.

Command Default

No preemption delay is set. If you do not enter the reppreemptdelay command, the default is manual preemption with no delay.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(40)SE

This command was introduced.

12.2(33)SRC

This command was implemented on the Cisco 7600 series router.

Cisco IOS XE Release2.2

This command was implemented on the Cisco ASR 1000 Series Aggregation Services Router.

15.1(2)SNG

This command was implemented on Cisco ASR 901Series Aggregation Service Routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

You must enter this command on the REP primary edge port.

You must enter this command and configure a preempt time delay if you want VLAN load balancing to automatically trigger after a link failure and recovery.

If VLAN load-balancing is configured, after a segment port failure and recovery, the REP primary edge port starts a delay timer before VLAN load balancing occurs. Note that the timer restarts after each link failure. When the timer expires, the REP primary edge alerts the alternate port to perform VLAN load-balancing (configured by using the repblockport interface configuration command) and prepares the segment for the new topology. The configured VLAN list is blocked at the alternate port, and all other VLANs are blocked at the primary edge port.

Examples

This example shows how to configure a REP preemption time delay of 100 seconds on the primary edge port:


Router(config)# interface gigabitethernet1/0/1
Router(config-if)# rep preempt delay 100
Router(config-if)# exit

You can verify your settings by entering the showinterfaces rep privileged EXEC command.

rep preempt segment

To manually start Resilient Ethernet Protocol (REP) VLAN load balancing on a segment, use thereppreemptsegment command in privileged EXEC mode.

rep preempt segment segment-id

Syntax Description

segment-id

ID of the REP segment. The range is from 1 to 1024.

Command Default

Manual preemption is the default behavior.

Command Modes

Privileged EXEC (#)

Command History

Release

Modification

12.2(40)SE

This command was introduced.

12.2(33)SRC

This command was implemented on the Cisco 7600 series router.

Cisco IOS XE Release 2.2

This command was implemented on the Cisco ASR 1000 Series Aggregation Services Router.

15.1(2)SNG

This command was implemented on Cisco ASR 901Series Aggregation Service Routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

After you enter the reppreemptsegment segment-id command, a confirmation message appears before the command is executed because preemption can cause network disruption.

Enter this command on the router on the segment that has the primary edge port.

If you do not configure VLAN load balancing, entering this command results in the default behavior--the primary edge port blocks all VLANs.

You configure VLAN load balancing by entering the repblockport {id port-id|neighbor-offset| preferred } vlan { vlan-list | all } interface configuration command on the REP primary edge port before you manually start preemption.

There is not a no version of this command.

Examples

This example shows how to manually trigger REP preemption on segment 100 with the confirmation message:


Router# rep preempt segment 100
The command will cause a momentary traffic disruption.
Do you still want to continue? [confirm]

rep segment

To enable Resilient Ethernet Protocol (REP) on the interface and to assign a segment ID to the interface, use the rep segment command in interface configuration mode. To disable REP on the interface, use the no form of this command.

rep segment segment-id [edge [no-neighbor] [primary]] [preferred]

no rep segment

Syntax Description

segment-id

The segment for which REP will be enabled. Assign a segment ID to the interface. The range is from 1 to 1024.

edge

(Optional) Identifies the interface as one of the two REP edge ports. Entering the edge keyword without the primary keyword configures the port as the secondary edge port.

no-neighbor

(Optional) Specifies the segment edge as one with no external REP neighbor, on an edge port. The port inherits all the properties of edge ports, which you can configure in the same way as any edge port.

primary

(Optional) On an edge port, specifies that the port is the primary edge port. A segment has only one primary edge port. If you configure two ports in a segment as the primary edge port (for example, ports on different switches) the REP selects one of them to serve as the segment primary edge port. You can identify the primary edge port for a segment by using the show rep topology privileged EXEC command.

preferred

(Optional) Specifies that the port is the preferred alternate port or the preferred port for VLAN load balancing.

Note 

Configuring a port as preferred does not guarantee that it becomes the alternate port; it merely gives it a slight edge among equal contenders. The alternate port is usually a previously failed port.

Command Default

REP is disabled on the interface. When REP is enabled on an interface, the default is for the port to be a regular segment port.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(40)SE

This command was introduced.

12.2(33)SRC

This command was implemented on the Cisco 7600 series router.

Cisco IOS XE Release 2.2

This command was implemented on the Cisco ASR 1000 Series Aggregation Services Router.

15.1(01)S

This command was modified. The no-neighbor keyword was added.

15.1(2)SNG

This command was implemented on the Cisco ASR 901 Series Aggregation Services Router

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

REP Edge No Neighbor

REP ports must be Layer 2 trunk ports. A non-Ethernet Services (ES) REP port can be either an IEEE 802.1Q trunk port or an ISL trunk port.

REP ports should not be configured as one of these port types:

  • Access port

  • Private VLAN port

  • SPAN destination port

  • Switched Port Analyzer (SPAN) destination port

  • Tunnel port

You must configure two edge ports on each REP segment: a primary edge port and a port to act as a secondary edge port. If you configure two ports in a segment: as the primary edge port (for example, ports on different switches) the configuration is allowed, but the REP selects one of them to serve as the segment primary edge port.

You can configure the non-REP switch facing ports as edge no-neighbor ports. These ports inherit the properties of edge ports and overcome the limitation of not being able to converge quickly during a failure.

REP is supported on EtherChannels but not on an individual port that belongs to an EtherChannel.

If you enable REP on two ports on a switch, the ports must both be either regular segment ports or edge ports. REP ports follow these rules:

  • There is no limit to the number of REP ports on a switch; however, only two ports on a switch can belong to the same REP segment.

  • If only one port on a switch is configured in a segment, the port should be an edge port.

  • If two ports on a switch belong to the same segment, both ports must be edge ports, or both ports must be regular segment ports.

  • If two ports on a switch belong to the same segment and one is configured as an edge port and one as a regular segment port (a misconfiguration), the edge port is treated as a regular segment port.

If you configure two ports in a segment as the primary edge port (for example, ports on different switches) the REP selects one of them to serve as the segment primary edge port. Enter the show rep topology privileged EXEC command on a port in the segment to verify which port is the segment primary edge port.

REP interfaces come up in a blocked state and remain in a blocked state until notified that it is safe to unblock. You need to be aware of this to avoid sudden connection losses.

You should configure REP only in networks with redundancy. Configuring REP in a network without redundancy causes loss of connectivity.

You can verify your settings by entering the show interfaces rep privileged EXEC command. To verify which port in the segment is the primary edge port, enter the show rep topology privileged EXEC command.

Examples

This example shows how to enable REP on a regular (nonedge) segment port:


Router(config)# interface gigabitethernet0/1
Router(config-if)# rep segment 100 

This example shows how to enable REP on a port and identify the port as the REP primary edge port:


Router(config)# interface gigabitethernet0/2
Router(config-if)# rep segment 100 edge primary 

This example shows how to enable REP on a port and identify the port as the REP secondary edge port:


Router(config)# interface gigabitethernet0/2
Router(config-if)# rep segment 100 edge 

This example shows how to enable REP as an edge no-neighbor port:

Router(config)# interface gigabitethernet0/2
Router(config)# rep segment 1 edge no-neighbor primary

rep stcn

To configure a Resilient Ethernet Protocol (REP) edge port to send REP segment topology change notifications (STCNs) to another interface, to other segments, or to Spanning Tree Protocol (STP) networks, use therepstcn command in interface configuration mode. To disable the sending of STCNs to the interface, segment, or STP network, use the no form of this command.

rep stcn {interface interface-id | segment id-list | stp}

no rep stcn {interface | segment | stp}

Syntax Description

interface interface-id

Identify a physical interface or port channel to receive STCNs.

segment id-list

Identify one REP segment or a list of segments to receive STCNs. The range is 1 to 1024. You can also configure a sequence of segments (for example 3-5, 77, 100).

stp

Send STCNs to an STP network.

Command Default

Transmission of STCNs to other interfaces, segments, or STP networks is disabled.

Command Modes

Interface configuration (config-if)

Command History

Release

Modification

12.2(40)SE

This command was introduced.

12.2(33)SRC

This command was implemented on the Cisco 7600 series router.

Cisco IOS XE Release 2.2

This command was implemented on the Cisco ASR 1000 Series Aggregation Services Router.

15.1(2)SNG

This command was implemented on Cisco ASR 901Series Aggregation Service Routers.

15.2(02)SA

This command was implemented on the Cisco ME 2600X Series Ethernet Access Switches.

Usage Guidelines

Enter this command on a segment edge port.

You use this command to notify other portions of the Layer 2 network of topology changes that occur in the local REP segment. This removes obsolete entries in the Layer 2 forwarding table in other parts of the network, which allows faster network convergence.

Examples

This example shows how to configure a REP edge port to send STCNs to segments 25 to 50:


Router(config)# interface gigabitethernet1/0/2
Router(config-if)# rep stcn segment 25-50
Router(config-if)# exit

You can verify your settings by entering the showinterfacesrepdetail privileged EXEC command.

revision

To set the revision number for the Multiple Spanning Tree (802.1s) (MST) configuration, use the revision command in MST configuration submode. To return to the default settings, use the no form of this command.

revision version

no revision

Syntax Description

version

Revision number for the configuration; valid values are from 0 to 65535.

Command Default

version is 0

Command Modes

MST configuration (config-mst)

Command History

Release

Modification

12.2(14)SX

Support for this command was introduced on the Supervisor Engine 720.

12.2(17d)SXB

Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.

12.2(33)SRA

This command was integrated into Cisco IOS Release 12.2(33)SRA.

Cisco IOS XE Release XE 3.7S

This command was integrated into Cisco IOS XE Release XE 3.7S.

Usage Guidelines

Two Cisco 7600 series routers that have the same configuration but different revision numbers are considered to be part of two different regions.


Caution

Be careful when using the revision command to set the revision number of the MST configuration because a mistake can put the switch in a different region.


Examples

This example shows how to set the revision number of the MST configuration:

Device(config-mst)# revision 5
Device(config-mst)# 
1