- Wireless LAN Overview
- Configuring a Basic Wireless LAN Connection
- Configuring Multiple Basic Service Set Identifiers and Microsoft WPS IE SSIDL
- Securing a Wireless LAN
- Configuring RADIUS or a Local Authenticator in a Wireless LAN
- Configuring Radio Settings on an Access Point
- NAC—L2 IEEE 802.1x
- VLAN Assignment by Name
- Implementing Quality of Service in a Wireless LAN
- Wireless LAN Error Messages
Contents
- VLAN Assignment by Name
- Finding Feature Information
- Information About VLAN Assignment by Name
- VLANs Overview
- Wireless Device Deployment in VLANs
- Assignment of Users to VLANs Using a RADIUS Server
- How to Configure Wireless VLANs
- Configuring a Wireless VLAN
- Assigning Names to VLANs
- Assigning a Name to a VLAN
- Configuration Examples for VLAN Assignment by Name
- Example: VLAN Configuration Scenario
- Example: Configuring Wireless VLANs on an Access Point in Bridging Mode
- Example: Configuring Wireless VLANs on an Access Point in Routing Mode
- Where to Go Next
- Additional References for VLAN Assignment by Name
- Feature Information for VLAN Assignment By Name
VLAN Assignment by Name
This feature provides the ability for the RADIUS server to assign an 802.1x client to a VLAN identified by name. This module describes how to configure wireless VLANs on a Cisco 800, 1800, 2800, or 3800 series integrated services router (ISR), hereafter referred to as an access point (AP).
This feature provides the ability for the RADIUS server to assign an 802.1x client to a VLAN identified by name.
- Finding Feature Information
- Information About VLAN Assignment by Name
- How to Configure Wireless VLANs
- Configuration Examples for VLAN Assignment by Name
- Where to Go Next
- Additional References for VLAN Assignment by Name
- Feature Information for VLAN Assignment By Name
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Information About VLAN Assignment by Name
VLANs Overview
A VLAN is a switched network that is logically segmented by functions, project teams, or applications rather than on a physical or geographical basis. For example, all workstations and servers used by a particular workgroup team can be connected to the same VLAN, regardless of their physical connections to the network or whether they are intermingled with other teams. You use VLANs to reconfigure the network through software rather than physically unplugging and moving devices or wires.
A VLAN can be thought of as a broadcast domain that exists within a defined set of switches. A VLAN consists of a number of end systems, either hosts or network equipment (such as bridges and routers), connected by a single bridging domain. The bridging domain is supported on various pieces of network equipment such as LAN switches that operate bridging protocols between them with a separate group for each VLAN.
VLANs provide the segmentation services traditionally provided by routers in LAN configurations. VLANs address scalability, security, and network management. You should consider several key issues when designing and building switched LAN networks:
LAN segmentation
Security
Broadcast control
Performance
Network management
Communication between VLANs
You extend VLANs into a wireless LAN by adding IEEE 802.11q tag awareness to the AP. Frames destined for different VLANs are transmitted by the AP wirelessly on different service set identifiers (SSIDs). Only the clients associated with that VLAN receive those packets. Each SSID can have one VLAN assigned to it. The benefit of using multiple SSIDs and VLANs is that you can configure different security features for each group. For example, users in VLAN 1 might be forced to use MAC authentication while users in VLAN 2 are not.
The figure below shows both wired and wireless VLANs coexisting on a router with an integrated AP and switch.
Wireless Device Deployment in VLANs
The basic wireless components of a VLAN consist of an AP and a client associated to it using wireless technology.
You configure an AP to connect to a specific VLAN by configuring its SSID to recognize that VLAN. Because VLANs are identified by a VLAN ID, it follows that if the SSID on an AP is configured to recognize a specific VLAN ID, a connection to the VLAN is established. When this connection is made, associated wireless client devices having the same SSID can access the VLAN through the AP. The VLAN processes data to and from the clients the same way that it processes data to and from wired connections.
You can configure up to 10 SSIDs or VLANs on the Cisco 800 series routers, and up to 16 SSIDs or VLANs on the Cisco 1800 series fixed-configuration routers and the Cisco 1841, 2800 and 3800 series modular routers with an AP high-speed WAN interface card (HWIC). You can assign only one SSID to a VLAN.
The limits for the 16 configurable VLANs on routers with an AP HWIC are:
The limits for the 16 configurable VLANs on the Cisco 1800 series fixed-configuration routers are:
1 static Wired Equivalent Privacy (WEP) encrypted VLAN, 7 dynamic WEP VLANs, and 8 unsecured VLANs
1 static and 15 unsecured VLANs
8 dynamic and 8 unsecured VLANs
16 unsecured VLANs
The limits for the 10 configurable VLANs on the Cisco 800 series routers are:
You can use the VLAN feature to deploy wireless devices with greater efficiency and flexibility. For example, one AP can handle the specific requirements of multiple users having widely varied network access and permissions. Without VLAN capability, multiple APs would be needed to serve classes of users based on the access and permissions they were assigned.
These are two common strategies for deploying wireless VLANs:
Segmentation by user groups: You can segment your wireless LAN user community and enforce a different security policy for each user group. For example, you can create wired and wireless VLANs in an enterprise environment for full-time and part-time employees and also provide guest access.
Segmentation by device types: You can segment your wireless LAN to allow different devices with different security capabilities to join the network. For example, some wireless users might have handheld devices that support only static WEP, and some wireless users might have more sophisticated devices using dynamic WEP. You can group and isolate these devices into separate VLANs.
Assignment of Users to VLANs Using a RADIUS Server
You can configure your RADIUS authentication server to assign users or groups of users to a specific VLAN when they authenticate to the network.
The VLAN-mapping process consists of these steps:
A client device associates to the AP using any SSID configured on the AP.
The client begins RADIUS authentication.
When the client authenticates, the RADIUS server maps the client to a specific VLAN, regardless of the VLAN mapping defined for the SSID the client is using on the AP. If the server does not return any VLAN attribute for the client, the client is assigned to the VLAN specified by the SSID mapped locally on the AP.
These are the RADIUS user attributes used for VLAN ID assignment. Each attribute must have a common tag value to identify the grouped relationship.
IETF 64 (Tunnel Type): Set this attribute to VLAN.
IETF 65 (Tunnel Medium Type): Set this attribute to 802.
IETF 81 (Tunnel Private Group ID): Set this attribute to a VLAN ID.
How to Configure Wireless VLANs
Configuring a Wireless VLAN
Using the LAN and VLAN Segmentation with Wireless Devices figure as a reference, perform this task to configure a VLAN on an AP.
1.
enable
2.
configure
terminal
3.
dot11
ssid
name
4.
vlan
vlan-id
5.
exit
6.
interface
dot11Radio
interface
7.
ssid
name
8.
exit
9.
exit
10.
interface
dot11Radio
interface.x
11.
encapsulation
dot1q
vlan-id
[native]
12.
end
13.
copy
running-config
startup-config
14.
show
vlans
DETAILED STEPS
Assigning Names to VLANs
You can assign a name to a VLAN in addition to its numerical ID. VLAN names can contain up to 32 ASCII characters. The access point stores each VLAN name and ID pair in a table.
Remember these guidelines when using VLAN names:
The mapping of a VLAN name to a VLAN ID is local to each access point, so across your network, you can assign the same VLAN name to a different VLAN ID.
Note | If clients on your wireless LAN require seamless roaming, we recommend that you assign the same VLAN name to the same VLAN ID across all access points, or that you use only VLAN IDs without names. |
Every VLAN configured on your access point must have an ID, but VLAN names are optional.
VLAN names can contain up to 32 ASCII characters in length. However, a VLAN name cannot be a number from 1 to 4095. For example, vlan4095 is a valid VLAN name, but 4095 is not. The access point reserves the numbers 1 through 4095 for VLAN IDs.
Assigning a Name to a VLAN
Perform this task to assign a name to a VLAN.
1.
enable
2.
configure
terminal
3.
dot11
vlan-name
name
vlan
vlan-id
4.
end
5.
copy
running-config
startup-config
6.
show
dot11
vlan-name
[vlan-name]
DETAILED STEPS
Configuration Examples for VLAN Assignment by Name
Example: VLAN Configuration Scenario
The following VLAN configuration scenario shows how to use VLANs to manage wireless devices in a typical branch office. In this example, two levels of access are available through VLANs configured on the network:
Employee access—Users can access all company files, databases, and sensitive information. Employees are required to authenticate using Cisco Light Extensible Authentication Protocol (LEAP).
Guess access—Users can access only the Internet and any external files stored specifically for guest users.
In this scenario, a minimum of two VLAN connections are required, one for each level of access. Because the AP can support up to 16 SSIDs on the AP HWIC and Cisco 1800 fixed-configuration routers, and up to 10 SSIDs on the Cisco 800 series routers, you can use the basic design shown in the table below.
Level of Access |
SSID |
VLAN ID |
---|---|---|
Employee |
employee |
1 |
Guest |
guest |
2 |
Employees configure their wireless client adapters to use the SSID named employee and guests configure their client adapters to use the SSID named guest. When these clients associate to the AP, they automatically belong to the correct VLAN. Wired clients attached to the router through the integrated switch can also belong to a specific VLAN. Wireless VLAN clients and wired VLAN clients can share subnets or they can belong to completely different subnets. This type of configuration can be accomplished using bridging or integrated routing and bridging (IRB) or routing on the dot11 interface.
The following examples show two configuration methods:
Bridge traffic between wireless VLANs and wired VLANs using IRB and route traffic from these networks through the bridged virtual interface (BVI). The clients in the wireless VLANs and wired VLANs will be in the same respective subnets as the IP address of the BVI interfaces.
Use routing to keep the wireless and wired VLANs in separate subnets.
Example: Configuring Wireless VLANs on an Access Point in Bridging Mode
Using the VLAN configuration scenario above, this example shows how to configure VLAN 1 and VLAN 2 on an AP in bridging mode. When the AP has been configured, the example shows how to configure each client device to recognize either the employee SSID or the guest SSID.
This example shows the following configuration steps:
Create a global SSID.
Assign a VLAN to each configured SSID.
Assign authentication types to each SSID.
Configure subinterfaces and 802.1q encapsulation for each VLAN under the dot11 interface.
Assign a bridge group for each subinterface.
Assign the same bridge group to the relevant wired VLAN.
Create a BVI interface and assign an IP address for each bridge group.
Configure the protocol to route each bridge group.
configure terminal dot11 ssid employee vlan 1 authentication open eap eap_methods authentication network-eap eap_methods authentication key-management wpa exit interface dot11Radio 0/0/0 no ip address encryption vlan 1 mode ciphers aes-ccm ssid employee exit exit dot11 ssid guest vlan 2 authentication open exit interface dot11Radio 0/0/0.1 encapsulation dot1q 1 native bridge-group 1 bridge-group 1 subscriber-loop-control bridge-group 1 spanning-disabled bridge-group 1 block-unknown-source no bridge-group 1 source-learning no bridge-group 1 unicast-flooding exit interface dot11Radio 0/0/0.2 encapsulation dot1q 2 bridge-group 2 exit interface FastEthernet 0/1/2 switchport access vlan 2 exit interface FastEthernet 0/1/3 switchport access vlan 2 exit interface vlan 1 bridge group 1 exit interface vlan 2 bridge group 2 exit interface bvi 1 ip address 10.10.10.1 255.255.255.0 exit interface bvi 2 ip address 20.20.20.1 255.255.255.0 exit bridge 1 route ip bridge 2 route ip exit copy running-config to startup-config
Example: Configuring Wireless VLANs on an Access Point in Routing Mode
Using the VLAN configuration scenario described in the previous section, this example shows how to configure VLAN 1 and VLAN 2 on an AP in routing mode. Routing can be used to keep the wireless and wired VLANs on separate subnets. After the AP has been configured, the example shows how to configure each client device to recognize either the employee SSID or the guest SSID.
This example shows the following configuration steps:
Create a global SSID.
Assign a VLAN to each configured SSID.
Assign authentication types to each SSID.
Configure subinterfaces and 802.1q encapsulation for each VLAN under the dot11 interface.
Configure an IP address for each subinterface.
configure terminal dot11 ssid employee vlan 1 authentication open eap eap_methods authentication network-eap eap_methods authentication key-management wpa exit interface dot11Radio 0/0/0 no ip address encryption vlan 1 mode ciphers aes-ccm ssid employee exit exit dot11 ssid guest vlan 2 authentication open exit interface dot11Radio 0/0/0 ssid guest exit exit interface dot11Radio 0/0/0.1 encapsulation dot1Q 1 native ip address 10.10.10.1 255.255.255.0 exit interface dot11Radio 0/0/0.2 encapsulation dot1q 2 ip address 50.50.50.1 255.255.255.0 end copy running-config startup-config
Where to Go Next
If you want to configure quality of service (QoS) parameters on an AP, see the “Configuring QoS on an Access Point” module.
Additional References for VLAN Assignment by Name
The following sections provide references related to configuring VLANs for wireless LANs.
Related Documents
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
Cisco IOS wireless LAN commands: complete command syntax, command mode, command history, defaults, usage guidelines, and examples |
|
VLAN conceptual information |
Cisco IOS LAN Switching Configuration Guide |
Standards
Standard |
Title |
---|---|
No new or modified standards are supported, and support for existing standards has not been modified. |
— |
MIBs
MIB |
MIBs Link |
---|---|
No new or modified MIBs are supported, and support for existing MIBs has not been modified. |
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFCs
RFC |
Title |
---|---|
No new or modified RFCs are supported, and support for existing RFCs has not been modified. |
— |
Technical Assistance
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
Feature Information for VLAN Assignment By Name
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to . An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
VLAN Assignment by Name |
12.4(15)T |
This feature provides the ability for the RADIUS server to assign an 802.1x client to a VLAN identified by name. |