|
Table Of Contents
Configuring Routing Between VLANs with IEEE 802.1Q Encapsulation
IEEE 802.1Q Encapsulation VLANs Configuration Task List
Configuring AppleTalk Routing over IEEE 802.1Q
Configuring AppleTalk on the Subinterface
Defining the VLAN Encapsulation Format
Configuring IP Routing over IEEE 802.1Q
Defining the VLAN Encapsulation Format
Assigning an IP Address to Network Interface
Configuring IPX Routing over IEEE 802.1Q
Defining the VLAN Encapsulation Format
Configuring NetWare on the Subinterface
Configuring a VLAN for a bridge-group with Default VLAN1
Configuring a VLAN for a bridge-group as a Native VLAN
Monitoring and Maintaining VLAN Subinterfaces
IEEE 802.1Q Encapsulation Configuration Examples
Configuring AppleTalk over IEEE 802.1Q Example
Configuring IP Routing over IEEE 802.1Q Example
Configuring IPX Routing over IEEE 802.1Q Example
VLAN 100 for Bridge Group 1 with Default VLAN 1 Example
VLAN 20 for Bridge Group 1 with Native VLAN Example
VLAN ISL or IEEE 802.1Q Routing Example
VLAN IEEE 802.1Q Bridging Example
Configuring Routing Between VLANs with IEEE 802.1Q Encapsulation
This chapter describes the required and optional tasks for configuring routing between VLANs with IEEE 802.1Q encapsulation.
For a complete description of the commands in this chapter, refer to the the Cisco IOS Switching Services Command Reference. To locate documentation of other commands that appear in this chapter, use the command reference master index or search online.
To identify the hardware platform or software image information associated with a feature, use the Feature Navigator on Cisco.com to search for information about the feature or refer to the software release notes for a specific release. For more information, see the section "Identifying Supported Platforms" in the chapter "Using Cisco IOS Software."
The IEEE 802.1Q protocol is used to interconnect multiple switches and routers, and for defining VLAN topologies. The IEEE 802.1Q standard is extremely restrictive to untagged frames. The standard provides only a per-port VLANs solution for untagged frames. For example, assigning untagged frames to VLANs takes into consideration only the port from which they have been received. Each port has a parameter called a permanent virtual identification (Native VLAN) that specifies the VLAN assigned to receive untagged frames.
The main characteristics of IEEE 802.1Q are as follows:
•Assigns frames to VLANs by filtering.
•The standard assumes the presence of a single spanning tree and of an explicit tagging scheme with one-level tagging.
IEEE 802.1Q Encapsulation VLANs Configuration Task List
You can configure routing between any number of VLANs in your network.
This section documents the configuration tasks for each protocol supported with IEEE 802.1Q encapsulation. The basic process is the same, regardless of the protocol being routed. It involves the following tasks:
•Enabling the protocol on the router
•Enabling the protocol on the interface
•Defining the encapsulation format as IEEE 802.1Q
•Customizing the protocol according to the requirements for your environment
To configure IEEE 802.1Q of your network, perform the tasks described in the following sections. The first three sections contain required tasks; the remaining tasks are optional:
•Configuring AppleTalk Routing over IEEE 802.1Q (Required)
•Configuring IP Routing over IEEE 802.1Q (Required)
•Configuring IPX Routing over IEEE 802.1Q (Required)
Perform the tasks in the following sections to connect a network of hosts over a simple bridging-access device to a remote access concentrator bridge between IEEE 802.1Q VLANs. The following sections contain configuration tasks for the Integrated Routing and Bridging, Transparent Bridging, and PVST+ Between VLANs with IEEE 802.1Q Encapsulation feature:
•Configuring a VLAN for a bridge-group with Default VLAN1(Optional)
•Configuring a VLAN for a bridge-group as a Native VLAN (Optional)
•Monitoring and Maintaining VLAN Subinterfaces (Optional)
Configuring AppleTalk Routing over IEEE 802.1Q
AppleTalk can be routed over virtual LAN (VLAN) subinterfaces using the IEEE 802.1Q VLAN encapsulation protocol. AppleTalk Routing provides full-feature Cisco IOS software AppleTalk support on a per-VLAN basis, allowing standard AppleTalk capabilities to be configured on VLANs.
To route AppleTalk over IEEE 802.1Q between VLANs, you need to customize the subinterface to create the environment in which it will be used. Perform these tasks in the order in which they appear:
•Configuring AppleTalk on the Subinterface
•Defining the VLAN Encapsulation Format
Enabling AppleTalk Routing
To enable AppleTalk routing on IEEE 802.1Q interfaces, use the following command in global configuration mode:
Command PurposeRouter(config)# appletalk routing [eigrp router-number]
Enables AppleTalk routing globally.
Note For more information on configuring AppleTalk, see the "Configuring AppleTalk" chapter in the Cisco IOS AppleTalk and Novell IPX Configuration Guide.
Configuring AppleTalk on the Subinterface
After you enable AppleTalk globally and define the encapsulation format, you need to enable it on the subinterface by specifying the cable range and naming the AppleTalk zone for each interface. To enable the AppleTalk protocol on the subinterface, use the following commands in interface configuration mode:
Defining the VLAN Encapsulation Format
To define the VLAN encapsulation format as IEEE 802.1Q, use the following commands in interface configuration mode:
Configuring IP Routing over IEEE 802.1Q
IP routing over IEEE 802.1Q extends IP routing capabilities to include support for routing IP frame types in VLAN configurations using the IEEE 802.1Q encapsulation.
To route IP over IEEE 802.1Q between VLANs, you need to customize the subinterface to create the environment in which it will be used. Perform the tasks described in the following sections in the order in which they appear:
•Defining the VLAN Encapsulation Format
•Assigning an IP Address to Network Interface
Enabling IP Routing
IP routing is automatically enabled in the Cisco IOS software for routers. To reenable IP routing if it has been disabled, use the following command in global configuration mode:
Once you have IP routing enabled on the router, you can customize the characteristics to suit your environment. If necessary, refer to the IP configuration chapters in the Cisco IOS IP Routing Configuration Guide for guidelines on configuring IP.
Defining the VLAN Encapsulation Format
To define the encapsulation format as IEEE 802.1Q, use the following commands in interface configuration mode:
Assigning an IP Address to Network Interface
An interface can have one primary IP address. To assign a primary IP address and a network mask to a network interface, use the following command in interface configuration mode:
Command PurposeRouter(config-if)# ip address ip-address mask
Sets a primary IP address for an interface.
A mask identifies the bits that denote the network number in an IP address. When you use the mask to subnet a network, the mask is then referred to as a subnet mask.
Configuring IPX Routing over IEEE 802.1Q
IPX routing over IEEE 802.1Q VLANs extends Novell NetWare routing capabilities to include support for routing Novell Ethernet_802.3 encapsulation frame types in VLAN configurations. Users with Novell NetWare environments can configure Novell Ethernet_802.3 encapsulation frames to be routed using IEEE 802.1Q encapsulation across VLAN boundaries.
To configure Cisco IOS software on a router with connected VLANs to exchange IPX Novell Ethernet_802.3 encapsulated frames, perform the tasks described in the following sections in the order in which they are appear:
•Defining the VLAN Encapsulation Format
•Configuring NetWare on the Subinterface
Enabling NetWare Routing
To enable IPX routing on IEEE 802.1Q interfaces, use the following command in global configuration mode:
Defining the VLAN Encapsulation Format
To define the encapsulation format as IEEE 802.1Q, use the following commands in interface configuration mode:
Configuring NetWare on the Subinterface
After you enable NetWare globally and define the VLAN encapsulation format, you may need to enable the subinterface by specifying the NetWare network number. Use this command in interface configuration mode:
Configuring a VLAN for a bridge-group with Default VLAN1
To configure a VLAN associated to a bridge group with a default native VLAN, use the following commands beginning in global configuration mode:
Note If there is no explicitly defined native VLAN, the default VLAN 1 becomes the native VLAN 1.
Configuring a VLAN for a bridge-group as a Native VLAN
To configure a VLAN associated to a bridge group as a native VLAN, use the following beginning commands in global configuration mode:
Note If there is an explicitly defined native VLAN, VLAN 1 will only be used to process CST.
Monitoring and Maintaining VLAN Subinterfaces
To indicate whether a VLAN is a native VLAN, use the following command in privileged EXEC mode:
IEEE 802.1Q Encapsulation Configuration Examples
Configuration examples for each protocols are provided in the following sections:
•Configuring AppleTalk over IEEE 802.1Q Example
•Configuring IP Routing over IEEE 802.1Q Example
•Configuring IPX Routing over IEEE 802.1Q Example
•VLAN 100 for Bridge Group 1 with Default VLAN 1 Example
•VLAN 20 for Bridge Group 1 with Native VLAN Example
•VLAN ISL or IEEE 802.1Q Routing Example
•VLAN IEEE 802.1Q Bridging Example
Configuring AppleTalk over IEEE 802.1Q Example
This configuration example shows AppleTalk being routed on VLAN 100:
!appletalk routing!interface fastethernet 4/1.100encapsulation dot1q 100appletalk cable-range 100-100 100.1appletalk zone eng!Configuring IP Routing over IEEE 802.1Q Example
This configuration example shows IP being routed on VLAN 101:
!ip routing!interface fastethernet 4/1.101encapsulation dot1q 101ip addr 10.0.0.11 255.0.0.0!Configuring IPX Routing over IEEE 802.1Q Example
This configuration example shows IPX being routed on VLAN 102:
!ipx routing!interface fastethernet 4/1.102encapsulation dot1q 102ipx network 100!VLAN 100 for Bridge Group 1 with Default VLAN 1 Example
The following example configures VLAN 100 for bridge group 1 with a default VLAN 1:
interface FastEthernet 4/1.100encapsulation dot1q 1bridge-group 1VLAN 20 for Bridge Group 1 with Native VLAN Example
The following example configures VLAN 20 for bridge group 1 as a native VLAN:
interface FastEthernet 4/1.100encapsulation dot1q 20 nativebridge-group 1VLAN ISL or IEEE 802.1Q Routing Example
The following example configures VLAN ISL or IEEE 802.10 routing:
ipx routingappletalk routing!interface Ethernet 1ip address 10.1.1.1 255.255.255.0appletalk cable-range 1-1 1.1appletalk zone 1ipx network 10 encapsulation snap!router igrp 1network 10.1.0.0!end!#Catalyst5000!set VLAN 110 2/1set VLAN 120 2/2!set trunk 1/1 110,120# if 802.1Q, set trunk 1/1 nonegotiate 110, 120!end!ipx routingappletalk routing!interface FastEthernet 1/1.110encapsulation isl 110!if 802.1Q, encapsulation dot1Q 110ip address 10.1.1.2 255.255.255.0appletalk cable-range 1.1 1.2appletalk zone 1ipx network 110 encapsulation snap!interface FastEthernet 1/1.120encapsulation isl 120!if 802.1Q, encapsulation dot1Q 120ip address 10.2.1.2 255.255.255.0appletalk cable-range 2-2 2.2appletalk zone 2ipx network 120 encapsulation snap!router igrp 1network 10.1.0.0network 10.2.1.0.0!end!ipx routingappletalk routing!interface Ethernet 1ip address 10.2.1.3 255.255.255.0appletalk cable-range 2-2 2.3appletalk zone 2ipx network 120 encapsulation snap!router igrp 1network 10.2.0.0!endVLAN IEEE 802.1Q Bridging Example
The following examples configures IEEE 802.1Q bridging:
interface FastEthernet4/0no ip addressno ip route-cachehalf-duplex!interface FastEthernet4/0.100encapsulation dot1Q 100no ip route-cachebridge-group 1!interface FastEthernet4/0.200encapsulation dot1Q 200 nativeno ip route-cachebridge-group 2!interface FastEthernet4/0.300encapsulation dot1Q 1no ip route-cachebridge-group 3!interface FastEthernet10/0no ip addressno ip route-cachehalf-duplex!interface FastEthernet10/0.100encapsulation dot1Q 100no ip route-cachebridge-group 1!interface Ethernet11/3no ip addressno ip route-cachebridge-group 2!interface Ethernet11/4no ip addressno ip route-cachebridge-group 3!bridge 1 protocol ieeebridge 2 protocol ieeebridge 3 protocol ieeeVLAN IEEE 802.1Q IRB Example
The following examples configures IEEE 802.1Q integrated routing and bridging:
ip cefappletalk routingipx routing 0060.2f27.5980!bridge irb!interface TokenRing3/1no ip addressring-speed 16bridge-group 2!interface FastEthernet4/0no ip addresshalf-duplex!interface FastEthernet4/0.100encapsulation dot1Q 100bridge-group 1!interface FastEthernet4/0.200encapsulation dot1Q 200bridge-group 2!interface FastEthernet10/0ip address 10.3.1.10 255.255.255.0half-duplexappletalk cable-range 200-200 200.10appletalk zone irbipx network 200!interface Ethernet11/3no ip addressbridge-group 1!interface BVI 1ip address 10.1.1.11 255.255.255.0appletalk cable-range 100-100 100.11appletalk zone bridgingipx network 100!router ripnetwork 10.0.0.0network 10.3.0.0!bridge 1 protocol ieeebridge 1 route appletalkbridge 1 route ipbridge 1 route ipxbridge 2 protocol ieee!