Table of Contents
Information About Ethernet Switches
Switch Port Numbering and Naming
Fast Ethernet Switching Supported SNMP MIBs
BRIDGE-MIB for Layer 2 Ethernet Switching
Configuring Fast Ethernet Switches
Configuring VLANs on the Fast Ethernet Ports
Configuring VLANs on the Gigabit Ethernet Ports
Configuring a Fast Ethernet as Routed (Layer 3) Interface
Configuring a Gigabit Ethernet as Routed (Layer 3) Interface
Sample Output for the show vlan-switch Command
Layer 2/3 Switching Software Configuration Guide for Cisco 1000 Series Connected Grid Routers (Cisco IOS)
First Published: December 2013
Release: Cisco IOS Release 15.4(1)CG
This docment gives an overview of configuration tasks for the Ethernet switching feature set on the Cisco 1120 and 1240 Connected Grid Routers (hereafter referred to as CGR 1000), running CG IOS release 15.4(1)CG. This document contains the following sections:
Information About Ethernet Switches
- Port Configuration
- IGMP Version 3
- Switch Port Numbering and Naming
- Fast Ethernet Switching Supported SNMP MIBs
- BRIDGE-MIB for Layer 2 Ethernet Switching
Port Configuration
The Cisco CGR 1120 has 8 Ethernet ports: 6 FE ports, and 2 GE switch ports. The Cisco CGR 1240 has 6 Ethernet ports: 4 FE ports and 2 GE switch ports. On both of the CGRs, you can configure the 2 GE ports to operate in Layer 2 mode or the default Layer 3 mode. You can convert the switch to Layer 2 mode by using the switchport command.
Note Layer 2 switching is hardware switched. Layer 3 switching is software forwarding.
- The FE ports are 100BaseT Layer 2. Traffic between different VLANs on a switch is routed through the router platform using the switched virtual interface (SVI). You can configure FE switch ports as Layer 3 (routed) ports by configuring the no switchport command on interface fastethernet x/y . By default, FE switch ports are Layer 2.
- The GE ports are 1000BaseT Layer 2. Traffic between different VLANs on a switch is routed through the router platform using the switched virtual interface (SVI). You can configure GE switch ports as Layer 2 ports by configuring the switchport command on interface gigabit ethernet x/y . By default, GE ports are Layer 3 (routed ports).
Any switch port can be configured as a trunking port to connect to other Cisco Ethernet switches.
IGMP Version 3
Cisco 1120 and 1240 CGRs support IGMP Version 3 (IGMPv3) snooping. IGMPv3 provides support for source filtering, which enables a multicast receiver host to signal to a router which groups the receiver host wants to receive multicast traffic from and from which sources this traffic is expected. Enabling the IGMPv3 feature with IGMP snooping on Cisco CGRs provides Basic IGMPv3 Snooping Support. This provides constrained flooding of multicast traffic in the presence of IGMPv3 hosts and constrains traffic to approximately the same set of ports as IGMPv2 snooping does with IGMPv2 hosts. Constrained flooding only considers the destination multicast address.
Switch Port Numbering and Naming
The ports on the FE switch are numbered FE2/3–FE2/8 on CGR1120 routers; FE2/3–FE2/6 on CGR1240 routers. The ports on the GE switch are labeled GE ports are GI2/1–GI2/2.
Fast Ethernet Switching Supported SNMP MIBs
Simple Management Network Protocol (SNMP) development and use is centered around the Management Information Base (MIB). See Overview of SNMP MIBs for more information.
BRIDGE-MIB for Layer 2 Ethernet Switching
The Layer 2 Ethernet Switching Interface BRIDGE-MIB is supported in the Cisco 1120 and 1240 platforms. The BRIDGE-MIB allows you to determine the Media Access Control (MAC) addresses and spanning tree information of the Ethernet switch modules. You can query the MIB agent using the SNMP protocol, and view the details of Ethernet switch modules such as the MAC address of each interface and spanning protocol information.
The Bridge-MIB uses the following approaches to get the L2 layers BRIDGE-MIB information:
• Community-string-based approach
In the community-string-based approach, one community string is created for each VLAN. Based on the query, the respective VLAN MIB displays.
To get the BRIDGE-MIB details, use the snmp-server community public RW command in configuration mode:
Use the following syntax to query the SNMP BRIDGE-MIB details:
Note When you create a VLAN “x”, the logical entity public@x is added. If you query with the public community, the L3 MIB displays. When you query with public@x, the L2 MIB for VLAN “x” displays.
In the context-based approach, use the SNMP context mapping commands to display the values for L2 interfaces. Each VLAN is mapped to a context. When you query with a context, the MIB displays the data for the specified VLAN, which is then mapped to the context. In this approach, each VLAN is manually mapped to a context.
To get the BRIDGE-MIB details, use the following commands in configuration mode:
Use the following syntax to query the SNMP BRIDGE-MIB details:
Note When you query with the public community, the L2 MIB displays.
Use the private group for L3 MIB.
Prerequisites
To configure Ethernet switches, you must understand the following concepts:
Configuring Fast Ethernet Switches
The following sections present configuration tasks for the CGR 1000:
• Configuring a Fast Ethernet as Routed (Layer 3) Interface
• Configuring a Gigabit Ethernet as Routed (Layer 3) Interface
The following links present configuration tasks for these features in the CGR 1000:
• Configuring Layer 2 Interfaces
• Configuring IEEE 802.1x Port-Based Authentication
• Configuring Spanning Tree Protocol
• Configuring MAC Address Notification Traps
• Configuring the MAC Table to Provide Port Security
• Verifying Cisco Discovery Protocol
• Configuring Switched Port Analyzer (SPAN)
• Enabling and Verifying IP Multicast Layer 3 Switching
• Configuring Fallback Bridging
Configuring VLANs
This section provides information on how to configure VLANs on the CGR 1000, which support 64 VLANs.
BEFORE YOU BEGIN
- Ensure that you have reviewed the Prerequisites and Guidelines and Limitations sections.
- Enter router configuration mode.
DETAILED STEPS
BEFORE YOU BEGIN
- Ensure that you have reviewed the Prerequisites and Guidelines and Limitations sections.
- Enter router configuration mode.
DETAILED STEPS
BEFORE YOU BEGIN
- Ensure that you have reviewed the Prerequisites and Guidelines and Limitations sections.
DETAILED STEPS
BEFORE YOU BEGIN
- Ensure that you have reviewed the Prerequisites and Guidelines and Limitations sections.
Configuration Example
This example configures VLANs on the Fast Ethernet and Gigabit Ethernet ports, and configures Fast Ethernet ports 2/3, Gigabit Ethernet ports 2/1:
Sample SVI Example
This example shows how SVI provides L3 routing capabilities for the switch ports: