Tags

In this post we will look at General WLAN configuration CLI commands in detail. Here is the default settings of General Tab once you create a WLAN

WLAN-CLI-01

Here is the CLI commands related to this.

(WLC2) >config wlan ?

create         Creates a WLAN.
broadcast-ssid Configures SSID Broadcast on a WLAN.
interface      Configures the WLAN's interface.
disable        Disables a WLAN.
enable         Enables a WLAN.
delete         Deletes a WLAN.
radio          Configures the Radio Policy.
multicast      Configures the WLAN's multicast parameters.

Let’s create a new WLAN with ID of 17 & SSID called “Test-17” by using CLI commands. Here is the  how you create a new WLAN using CLI.

(WLC2) >config wlan create ?                            
foreignAp      Third Party Access Points.
<WLAN id>      Enter WLAN Identifier between 1 and 512.

(WLC2) >config wlan create 17 ?              
<name>         Enter Profile Name up to 32 alphanumeric characters.              

(WLC2) >config wlan create 17 Test-17 ?
<ssid>         Enter SSID (Network Name) up to 32 alphanumeric characters.

(WLC2) >config wlan create 17 Test-17 Test-17

By default following settings will be enable on this WLAN & you can see below CLI commands added to configuration once you create the SSID.

config wlan mfp client enable 17 
config wlan security wpa enable 17 
config wlan wmm allow 17 
config wlan exclusionlist 17 60 
config wlan broadcast-ssid enable 17 
config wlan interface 17 management 
config wlan session-timeout 17 1800

If you want to enable/disable broadcast this SSID you can do this on this WLAN as follows.

(WLC2) >config wlan broadcast-ssid ?               
disable        Disables Broadcast SSID on a WLAN.
enable         Enables Broadcast SSID on a WLAN.

(WLC2) >config wlan broadcast-ssid disable ?               
<WLAN id>      Enter WLAN Identifier between 1 and 512.

(WLC2) >config wlan broadcast-ssid {enable|disable} 17

You can map this WLAN to interface or interface group you created on your WLC. Here is the CLI for that. I have simply use management interface

(WLC2) >config wlan interface ?             
<WLAN id>      Enter WLAN Identifier between 1 and 512.
foreignAp      Third Party Access Points.

(WLC2) >config wlan interface 17 ?            
<interface-name> Enter the interface name upper case not supported.

(WLC2) >config wlan interface 17 management

Let’s create interface group called “int-group-1” & map interface “vlan11” & “vlan12″ (which is already created prior to this & not shown configuration in this post”. Here is the CLI config for interface group creation & mapping interface on to that.

(WLC2) >config interface group create int-group-1 "Interface Group 1" 
(WLC2) >config interface group interface add int-group-1 vlan11
(WLC2) >config interface group interface add int-group-1 vlan12

Now let’s map Test-17 WLAN to this interface group. You have to simply use interface group name instead of interface name.

(WLC2) >config wlan interface 17 int-group-1

Now let’s enable radio policy for this WLAN. Here are the option available. Without impacting other WLANs if you only want to certain type of clients able to join this network you have to configure this settings correctly. Let’s say no clients in 2.4 GHz should associate with less than 11Mbps data rates to this WLAN (In other words 802.11b clients should not associate). So you have to select 802.11g-only. In this example we will enable 802.11a & 802.11g clients to join this WLAN.

(WLC2) >config wlan radio 17 ?

802.11a-only   Configures the WLAN on 802.11a only.
802.11ag       Configures the WLAN on 802.11a and 802.11g only.
802.11bg       Configures the WLAN on 802.11b/g only (802.11b only, if 802.11g is disabled).
802.11g-only   Configures the WLAN on 802.11g only.
all            Configures the WLAN on all Radio bands.

(WLC2) >config wlan radio 17 802.11ag

Since we map this WLAN onto an interface group, multiple interface IP assign to same WLAN clients. Therefore to optimize multicast with this configuration you need to enable “multicast vlan select” feature. This will nominate 1 vlan for multicast communication for the entire interface group instead of each individual vlan send IGMP query for its client.

(WLC2) >config wlan multicast ?     
interface      Configures the WLAN's multicast interface.

(WLC2) >config wlan multicast interface ?              
<WLAN id>      Enter WLAN Identifier between 1 and 512.

(WLC2) >config wlan multicast interface 17 ?               
enable         Enables the multicast-interface feature for a WLAN.
disable        Disables the multicast-interface feature for a WLAN.

(WLC2) >config wlan multicast interface 17 enable ?               
<interface-name> Enter the interface name upper case not supported.

(WLC2) >config wlan multicast interface 17 enable vlan11

You can enable this WLAN by simply following CLI commands

(WLC2) >config wlan enable 17

Now if you look at the GUI WLAN general tab you would see something like this.

WLAN-GEN-CLI-01

Now if you try to join this SSID, even though you enable broadcast SSID you cannot see it visible. Why is this ? You have to remember only WLAN ID 1-16 are broadcast by default. If you create any WLAN ID greater than 16, then you have to create an AP Group to broadcast them.  Therefore let’s create an AP Group called “mrn-apgroup” and put my ap into this group.

(WLC2) >config wlan apgroup ?              
add            Creates a new AP Group.
delete         Deletes a existing ap group.
description    Configures a description for an AP group.
interface-mapping Adds or deletes a new apgroup/WLAN/interface mapping.
nac-snmp       Configures NAC SNMP functionality on given AP-Group. 
radio-policy   Configures Radio Policy on given AP-Group. 

(WLC2) >config wlan apgroup add ?              
<apgroup name> Specify the name of the apgroup to configure.

(WLC2) >config wlan apgroup add mrn-apgroup ?              
<description>  (optional) Specify the description for the AP group.

(WLC2) >config wlan apgroup add mrn-apgroup 

(WLC2) >config wlan apgroup interface-mapping ?              
add            Adds a new apgroup/WLAN/interface mapping.
delete         Adds a new apgroup/WLAN/interface mapping.

(WLC2) >config wlan apgroup interface-mapping add ?              
<apgroup name> Specify the name of the apgroup to configure.

(WLC2) >config wlan apgroup interface-mapping add mrn-apgroup ?              
<WLAN or Remote LAN Id> Enter WLAN or Remote LAN Identifier between 1 and 512.

(WLC2) >config wlan apgroup interface-mapping add mrn-apgroup 17 ?               
<Interface Name> Specify the interface name.

(WLC2) >config wlan apgroup interface-mapping add mrn-apgroup 17 int-group-1

Now let’s add AP in to the AP-Group created. Remember that AP will reboot & impact the clients if you are doing this on a production AP.

(WLC2) >show  ap summary 
Number of APs.................................... 1
Global AP User Name.............................. Not Configured
Global AP Dot1x User Name........................ Not Configured

AP Name             Slots  AP Model              Ethernet MAC       Location          Port  Country  Priority
------------------  -----  --------------------  -----------------  ----------------  ----  -------  ------
LAP2                 2     AIR-CAP3502I-N-K9     70:81:05:03:7c:ef        CAT2-Fa102  LAG      AU       1

(WLC2) >config ap group-name ?   
<groupname>    Enter the group name of Cisco APs as String

(WLC2) >config ap group-name mrn-apgroup ?        
<Cisco AP>     Enter the name of the Cisco AP.

(WLC2) >config ap group-name mrn-apgroup  LAP2

In GUI you will see like this

WLAN-GEN-CLI-02

Once you do this you will see “Test-17” SSID is visible to clients.

In the next post we will look at how to do the QoS specific configuration of a WLAN via CLI.

Related Posts

1. Configuring WLAN via CLI – Part 1
2. Configuring WLAN via CLI – Part 3
3. Configuring WLAN via CLI – Part 4
4. Configuring WLAN via CLI – Part 5
5. Configuring WLAN via CLI – Part 6