05-16-2012 03:48 PM - edited 07-03-2021 10:10 PM
hello friends,
if i have a dhcp pool configure in core switch (IOS), than to configure option 43 for wireless for the APs in the same pool, how can we configure a controller's ip address
my question is
what is the best formula or tool to convert a wireless lan controller's ip to hexadecimal for its use with dhcp pool in ios switch?
thanks
05-16-2012 04:43 PM
There are many online binary to he converter. I just use MissingCalc on my iPhone:)
Thanks,
Scott Fella
Sent from my iPhone
05-16-2012 09:47 PM
If the AP model is not 1000 series , we use TLV format to define the option 43 :
Type is f1
Lenght : no of controller * 4
Value : ip address of each cotnroller concatenated with each others . Make sure that every octet in the ip address is represented by two hexadecimal digits.
example:
we have two cotnrollers with management ips as follow
10.126.126.2 and 10.127.127.2
so the type is f1
length is 2* 4 = 8 ---08 in hex
ip addresses translates to
0a7e7e02 and 0a7f7f02
You can use calculator to do the conversion.
so the command to be applied is
option 43 hex f1080a7e7e020a7f7f02
05-17-2012 12:29 AM
guys i was about to ask the same question i didnt get the type we have 2125 model (i have one contoller)
ip dhcp pool access-points
network 10.X.X.0 255.255.255.0
default-router 10.X.X.1
option 60 ascii Cisco AP c1142 (what does this mean)
option 43 hex f104.0a5e.dec8 what does this mean
lease 7
why life is so hard :-) this config is taken from exsisiting i need to config the same in other site so kindly help me with option 60 and option 43 how to come up with the values
05-17-2012 01:23 AM
DHCP servers must be programmed to return the option based on the access point DHCP Vendor Class Identifier (VCI) string (DHCP Option 60). The VCI strings for Cisco access points that can operate in lightweight mode are listed in Table F-1.
Access Point | Vendor Class Identifier (VCI) |
---|---|
Cisco Aironet 1000 series | Airespace.AP1200 |
Cisco Aironet 1100 series | Cisco AP c1100 |
Cisco Aironet 1130 series | Cisco AP c1130 |
Cisco Aironet 1200 series | Cisco AP c1200 |
Cisco Aironet 1240 series | Cisco AP c1240 |
Cisco Aironet 1250 series | Cisco AP c1250 |
Cisco Aironet 1300 series | Cisco AP c1300 |
Cisco Aironet 1500 series | Cisco AP c15001 |
Cisco AP.OAP15002 , Cisco AP.LAP15102, or | |
Airespace.AP12003 | |
Cisco Aironet 1520 series | Cisco AP c1520 |
Cisco Aironet 1550 series | Cisco AP c1550 |
option 43 : Here you put the ip address of the management interface of the WLC in TLV format
Example:
If the controller have ip address 10.1.1.1
DHCP option 43 value will be calculated as follows:
T=f1
L=4* number of controllers = 4*1=4 (04)
value is the ip address of the management interface in Hex format : 0A010101
so option 43 in this case is fa040a010101
----------------------------------------------------------------------
make sure to rate correct answer
01-07-2017 01:50 PM
Hi folks,
juts found this topic as I was trying to figure out how does that work.. As I couldn't find any tool to do that I put a very quick and dirty script together, which should do the job...
#!/usr/bin/python
ips=['10.126.126.2', '10.127.127.2']
iphex=''
type='f1'
wlcs='{0:x}'.format(4*len(ips)).zfill(2)
for ip in ips:
for oct in ip.split('.'):
iphex+='{0:x}'.format(int(oct)).zfill(2)
print 'option 43: %s%s%s' % (type,wlcs,iphex)
Edit the ips list with the IP/IPs of your controllers and copy->paste it to a python shell... It should work .. ;-)
Hope this helps someone..
05-17-2012 02:42 AM
Thanks for the lovely explanation but the only thinmg which i dont understand is
option 43 hex f104.0a5e.dec8 (why the format has . normally hexa doesnt have that so do we have to use it or not
secondly if I give managment IP to AP (staticaly ) 10.1.1.1 and WLC has 10.1.1.100 same subnet (suppose /24) then do i have to do this excersise of hexa etc
Thanks
05-17-2012 02:59 AM
There is no need for the . while entering the option
If you have the AP and the cotnroller on the same subnet there is no need for DHCP option 43 cause the AP shoule be
able to hunt the wireless lan controller through broadcast discovery request on its local subnet. This broadcast discovery request will be intercepted by the controller on the local subnet by sending back a discovery response to that request.
From the discovery response the AP gets more info about the controller and proceed with the rest of steps of Join process.
------------------------------------------------------------
Please make sure to rate correct answer
05-17-2012 03:04 AM
You can add the TLV without any intervening delimiters such as “.”
You have to use TLV with option 43 hex
Well if the AP is in the same subnet as the WLC there is no need to configure DHCP option 43 cause the AP
will be able to discover the controller through broadcast discovery request on its local subnet which will be
intercepted by the controller on the same subnet and reply accordingly.
Mohammad
11-05-2013 12:03 AM
HI,
The below link form the Cisco site gives a good explanantion on how to generate the Option43 for many types of DHCP servers.
http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a00808714fe.shtml
I used tis doc to create opt43 in my Lab environment using IOS and on pruduction using Windows DHCP.
11-05-2013 11:22 AM
DHCP option 43 and option 60 config guide..
http://www.cisco.com/en/US/docs/wireless/controller/5.2/configuration/guide/c52lwap.html#wp1105242
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide