cc/td/doc/product/l3sw/2948g-l3/rel_12_0/7wx515a
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Configuring Virtual LAN Encapsulation

Configuring Virtual LAN Encapsulation

This chapter describes virtual LAN configurations for the Catalyst 2948G-L3 switch router. It describes how to configure Inter-Switch Link (ISL) VLAN encapsulation and how to configure 802.1Q VLAN encapsulation. For more information about the Cisco IOS commands used in this chapter, refer to the Cisco IOS Command Reference publication. This chapter includes the following sections:


Note You are at Step 4 in the suggested process for configuring your switch router (see Table 2-1). This is an optional step. You should have already completed general interface configurations before proceeding with configuring virtual LANs as an optional step.

About Virtual LANs

Virtual LANs enable network managers to group users logically rather than by physical location. A virtual LAN (VLAN) is an emulation of a standard LAN that allows data transfer and communication to occur without the traditional restraints placed on the network. It can also be considered a broadcast domain set up within a switch. With VLANs, switches can support more than one subnet (or VLAN) on each switch, and give routers and switches the opportunity to support multiple subnets on a single physical link. A group of devices on a VLAN are configured so that they communicate as if they were attached to the same LAN segment, when they are actually located on different segments. Layer 3 switching supports up to 244 VLAN subinterfaces per system.

VLANs enable efficient traffic separation and provide excellent bandwidth utilization. VLANs also alleviate scaling issues by logically segmenting the physical LAN structure into different subnetworks so that packets are switched only between ports within the same VLAN. This can be very useful for security, broadcast containment, and accounting.

Layer 3 switching software supports a port-based VLAN on a trunk port, which is a port that carries the traffic of multiple VLANs. Each frame transmitted on a trunk link is tagged as belonging to only one VLAN.

Layer 3 switching software supports VLAN frame encapsulation through the Inter-Switch Link (ISL) protocol and the 802.1Q standard.

Figure 5-1 shows a network topology where two VLANs span a Catalyst 5500 switch and Catalyst 2948G-L3 switch router. Both VLANs in this topology are bridged using the Inter-Switch Link (ISL) protocol.


Figure 5-1: VLANS Spanning Devices in a Network

Note Four adjacent ports on the Catalyst 2948G-L3 (such as f1 through f4 or f45 through f48) on a 10/100 interface must all use the same VLAN encapsulation; that is, either ISL or 802.1Q.

Configuring ISL VLAN Encapsulation

Inter-Switch Link (ISL) is a Cisco protocol for interconnecting multiple switches and maintaining VLAN information as traffic travels between switches.

The VLAN configuration example for the Catalyst 2948G-L3 in Figure 5-2 shows the following:


Figure 5-2: Example of an ISL VLAN Bridging Configuration

Note Four adjacent ports on the Catalyst 2948G-L3 (such as f1 through f4 or f45 through f48) on a 10/100 interface must all use the same VLAN encapsulation; that is, either ISL or 802.1Q.

To configure the ISL VLANs shown in Figure 5-2, use the following procedure beginning in global configuration mode.

Step Command Purpose

1 . 

2948G-L3(config)# interface f2.1

2948G-L3(config-subif)#

Enters subinterface configuration mode to configure the Fast Ethernet interface f2.1.

2 . 

2948G-L3(config-subif)# encap isl vlan-id

Uses ISL to encapsulate the Ethernet frames sent from subinterface f2.1 with a header that maintains VLAN ID 50 between network nodes.

3 . 

2948G-L3(config-subif)# bridge-group number

Assigns VLAN 50 to bridge group 1.

When you are configuring VLAN routing, skip this step.

4 . 

2948G-L3(config-subif)# interface f1

2948G-L3(config-if)#

Enters Ethernet interface configuration mode to configure the Fast Ethernet interface f1.

5 . 

2948G-L3(config-if)# bridge-group number

Assigns interface f1 to a bridge group.

6 . 

2948G-L3(config-if)# exit

2948G-L3(config)#

Returns to global configuration mode.

7 . 

2948G-L3(config)# bridge number protocol ieee

Specifies that bridge group 1 will use the IEEE Ethernet Spanning-Tree Protocol.

8 . 

2948G-L3(config)# interface f2.2

2948G-L3(config-subif)#

Enters interface configuration mode to configure the Fast Ethernet subinterface f2.2

9 . 

2948G-L3(config-subif)# encap isl 100

Uses ISL to encapsulate the Ethernet frames sent from subinterface f2.2 with a header that maintains VLAN ID 100 between network nodes.

10 . 

2948G-L3(config-subif)# bridge-group 2

Assigns VLAN 100 to bridge group 2.

11 . 

2948G-L3(config-subif)# interface f3

Enters interface configuration mode to configure the Fast Ethernet interface f3.

12 . 

2948G-L3(config-subif)# bridge-group 2

Assigns interface f3 to bridge group 2.

13 . 

2948G-L3(config-subif)# exit

2948G-L3(config)#

Returns to global configuration mode.

14 . 

2948G-L3(config)# bridge 2 protocol ieee

Specifies that bridge group 2 will use the IEEE Ethernet Spanning-Tree Protocol.

15 . 

2948G-L3(config)# end

2948G-L3#

Returns to privileged EXEC mode.

16 . 

2948G-L3# copy running-config startup-config

Saves your configuration changes to NVRAM.

To monitor the VLANs once they are configured, refer to the "Monitoring and Verifying VLAN Operation" section.

Configuring 802.1Q VLAN Encapsulation

IEEE 802.1Q VLAN encapsulation uses an internal, or one level, packet tagging scheme to multiplex VLANs across a single physical link, while maintaining strict adherence to the individual VLAN domains. You can use 802.1Q encapsulation on the Catalyst 2948G-L3 switch router for routing traffic across the network.

On an IEEE 802.1Q trunk port, all transmitted and received frames are tagged except for those on the VLAN configured as the PVID (port VLAN identifier) or native VLAN for the port. Frames on the native VLAN are always transmitted untagged and are normally received untagged.

The VLAN configuration example for the Catalyst 2948G-L3 switch router shown in Figure 5-3 depicts the following:


Note The Catalyst 2948G-L3 supports 802.1Q routing.

Figure 5-3: Example of Routing Between Native and Non-Native 802.1Q VLANs

Note Four adjacent ports on the Catalyst 2948G-L3 (such as f1 through f4 or f45 through f48) on a 10/100 interface must all use the same VLAN encapsulation; that is, either ISL or 802.1Q.

To configure VLANs for routing using 802.1Q VLAN encapsulation as shown in Figure 5-3, use the following steps beginning in global configuration mode.

Step Command Purpose

1 . 

2948G-L3(config)# interface f2.1

2948G-L3(config-subif)#

Enters subinterface configuration mode to configure the Fast Ethernet subinterface f2.1.

2 . 

2948G-L3(config-subif)# encap dot1q 1 native

Uses 802.1Q to send the Ethernet frames from subinterface f2.1 to VLAN 1 without any encapsulation.

3 . 

2948G-L3(config-subif)# ip address ip-address ip-address-mask

Configures an IP addresses on the subinterface.

4 . 

2948G-L3(config-subif)# interface f2.2

Enters interface configuration mode to configure the Fast Ethernet subinterface f2.2.

5 . 

2948G-L3(config-subif)# encap dot1q 2

Uses 802.1Q to encapsulate the Ethernet frames sent on subinterface f2.2 for VLAN 2.

6 . 

2948G-L3(config-subif)# ip address ip-address ip-address-mask

Configures an IP addresses on the subinterface.

7 . 

2948G-L3(config-subif)# end

2948G-L3#

Returns to privileged EXEC mode.

8 . 

2948G-L3# copy running-config startup-config

Saves your configuration changes to NVRAM.

Monitoring and Verifying VLAN Operation

Once the VLANs are configured on the switch router, you can monitor their operation using the following command.

Command Purpose

show vlan vlan-id

Displays information on all configured VLANs or on a specific VLAN (by VLAN ID number).

To configure encapsulation over the EtherChannel, see the "About Encapsulation over EtherChannel" section.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Wed May 3 14:41:38 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.