Monday, 22 October 2018

WLC useful commands


To configure IP Address in AP
config ap static-ip enable AP-NAME IP-ADDRESS MASK GATEWAY

To configure AP Credentials for Telnet/SSH
config ap telnet enable AP-NAME
config ap ssh enable AP-NAME
config ap mgmtuser add username USERNAME password PASSWORD enablesecret ENABLE-PASSWORD AP-NAME

config ap mgmtuser add username USERNAME password PASSWORD enablesecret ENABLE-PASSWORD all 

To change AP mode
config ap mode MODE AP-NAME

To configure ap group name in AP
config ap group-name GROUP-NAME AP-NAME

To configure flexconnect native vlan in AP
config ap flexconnect vlan native VLAN-ID AP-NAME

To check vlan id of interface
show interface summary

To check wlan id of interface
show wlan summary

To map vlan id to wlan in flexconnect AP
config ap flexconnect vlan wlan WLAN-ID VLAN-ID AP-NAME

To configure wlan and mapping wlan interface in ap group
config wlan apgroup interface-mapping add GROUP-NAME WLAN-ID INTERFACE-NAME

To downgrade AP to autonomous from WLC
config ap tftp-downgrade TFTP-IP-ADDRESS FILENAME AP-NAME

To check cdp neighbour of AP
show ap cdp neighbors detail AP-NAME

To disable wireless clients from connecting network (Adding clients in exclusion list)
config exclusionlist add MAC-ADDRESS DESCRIPTION


To configure AP Group in access point from WLC CLI
config ap group-name AP-GROUP-NAME AP-NAME

To configure AP High Availability from WLC CLI

config ap primary-base WLC-NAME AP-NAME WLC-IP-ADDRESS

To enable LED of AP
config ap led-state enable AP_NAME

To disable LED of AP
config ap led-state disable AP_NAME

To reload AP
config ap reset AP-NAME

To configure ip address in interface

config interface address management IP-ADDRESS SUBNET_MASK GATEWAY

To configure vlan in interface

config interface vlan management VLAN-ID

To apply filter in WLC for quick findings
grep include “pattern” “commands”

Examples..
grep include "AP Serial Number" "show ap config general AP-NAME"
grep include "MAC Address" "show ap config general AP-NAME”
grep include "IP Address" "show ap config general AP-NAME"

Upgrading IOS in L2 switches


Copy the new IOS image to switch
copy tftp: flash:

verify the image
verify /md5 flash:IOS-NAME

Configure the boot path to new IOS
boot system switch all flash:/PATH

Verify the path
sh boot

Save the config
write
Now you are all set to reboot the device !

Upgrading IOS in 4500 series switches


Copy the new IOS image to switch
copy tftp: bootflash:

verify the image
verifiy bootflash:IOS-NAME

If 4500 is connected in VSS then follow below steps,
  1. copy bootflash: slavebootflash:
  2. verify slavebootflash:IOS-NAME

Set the boot register to 0×2102 for the switch to boot from the BOOT variable. 
config-register 0x2102

If it is not set then it will try to use 0x2101 setting and will lead to use the first file found in the bootflash. If there is no other IOS then ignore this else configure the register with 0x2102. 0x2102 will use the boot system command which you will set in next step.

Set the boot variable to new image
no boot system flash bootflash:IOS-NAME
boot system flash bootflash:IOS-NAME
no boot system flash slavebootflash:IOS-NAME
boot system flash slavebootflash:IOS-NAME

Save the config
write

Verify the bootvar path
show bootvar
Now you are all set to reboot the device !

Lightweight Access Point Configuration Commands


Configuring CAPWAP IP Address and WLC priming for Joining WLC
capwap ap ip add IP-ADDRESS SUBNET-MASK
capwap ap ip default-gateway GATEWAY-IP-ADDRESS
capwap ap controller ip add WLC-IP-ADDDRESS

Configuring Primary WLC in AP through CLI
capwap ap primary-base WLC-NAME WLC-IP-ADDRESS

Configuring and converting mobility AP to capwap AP for Joining WLC
ap-type capwap
capwap ap ip IP-ADDRESS SUBNET-MASK GATEWAY-IP-ADDRESS
capwap ap primary-base WLC-NAME WLC-IP-ADDRESS


Converting capwap AP to Mobility AP
capwap ap ip IP-ADDRESS SUBNET-MASK GATEWAY-IP-ADDRESS
ap-type mobility-express tftp://TFTP-SERVER-IP/FILE-NAME

To remove factory default ap tag 945 from AP
capwap ap ethernet tag 0 

To restart CAPWAP Process for sending joining request to newly configured capwap WLC IP Address
test capwap restart

To remove previously known IP Address from AP
debug capwap console cli
erase /all nvram:
reload

To remove previously configured controller IP from AP
clear capwap private-config

To configure AP in factory default setting
Plug AP
Press mode button do not unplug AP
Unplug AP, make sure that mode button is not released
Plug AP, make sure that mode button is not released
Wait for 30 seconds and release the mode button

To stop AP from rebooting while upgrading from lightweight to autonomous
debug capwap client no-reload

Autonomous Access Point Configuration


Configuring Radio Interface
interface Dot11Radio0
ssid SSID-NAME – Assigning SSID in interface
encryption mode ciphers aes-ccm – Set the encryption
encryption vlan 1 mode ciphers aes-ccm – Configure the encryption for vlan

Configuring Radio sub interface
interface Dot11Radio0.1 – To create sub interface
encapsulation dot1Q 1 native – To configure native vlan for sub interface (if you don’t type native then by default native command will be applied in the interface)

Configuring Radio sub interface
interface Dot11Radio1.1 – To create sub interface
encapsulation dot1Q 1 native – To configure native vlan for sub interface (if you don’t type native then by default native command will be applied in the interface)

Configuring Ethernet interface
interface GigabitEthernet0.1 – To create sub interface
encapsulation dot1Q 1 native  – To configure native vlan for sub interface (if you don’t type native then by default native command will be applied in the interface)

Configuring SSID
dot11 ssid SSID-NAME
vlan 1 – Configure the vlan, as ssid must have vlan to broadcast ssid
authentication open – Setting authentication for ssid, if needed for wpa then configure after this command.
authentication key-management wpa version 2 – Once the authentication is set then you can  configure this, encryption mode for vlan 1 must be configured in radio interface.
wpa-psk ascii 12345678 – To configure the key
guest-mode – To broadcast ssid

Key Points
Switchport configuration can be either trunk or access, if it is trunk then native vlan will be used to get the IP Addresess.
For multiple ssid you just need to replace the guest-mode with mbssid guest-mode and mbssid command must be added in radio interface (dot0/dot1)

2504 Compatibility for HA


2504 failover model is N+1, Meaning we have a Primary controller configured with a backup controller. There is no communication between the two controllers and they operate as standalone devices, so you have to configure them separately and license them separately.

2504 does not support SSO (Stateful Switch Over).

SSO Scenario
Normally with other WLCs you configure them as an HA pair, in the event of a failure of a controller the AP will seamlessly associate to the second controller.

Different WLC Model cannot be paired with HA and if it happens WLC with higher model will become active and other will go into maintenance mode.

N+1 Scenario
Ensure the secondary controller is licensed to support the same amount of access points as the primary. (This can be an expensive option) 

The most common scenario is to purchase an HA-SKU controller AIR-CT2504-HA-K9. (HA is replaced with the number of built in license i.e AIR-CT2504-5-K9 – this is a 5 AP license box and is the smallest number of licenses you can purchase.) This is a box dedicated only for failover situations. It does not contain any built in licenses but will support up the maximum for the box (75) access points in the event of a failover for a period of 90 days. After which time you will start to get license alerts from the controller – after 90 days the access points will continue to work. 

You can also convert a standard controller i.e a AIR-CT2504-5-K9 into an HA-SKU box with the following command (config redundancy unit secondary)

What are Sticky Clients ?

What are Sticky Clients ? CREDIT : http://wifinigel.blogspot.com/2015/03/what-are-sticky-clients.html One term you'll often hear banded ...