assigning an IP address when triggering handovers

Panagiotis Georgopoulos panos at comp.lancs.ac.uk
Fri Jul 30 13:21:48 EDT 2010


I am not using an external script to do the handover, I am using the select_network option from within wpa_cli (I think this performs an efficient handover). Wpa_cli loads the network {} segments from my wpa_supplicant.conf configuration and thus I can select them at run time. 

What I was thinking was whether I could set the ip_address from within wpa_cli or get the ip address somehow in my network segments in my wpa_supplicant.conf so that wpa_cli loads them with all the other info.

I just found out that there is a way to execute an "action script" when a connection or disconnection happens and I am going to try this now. I think the idea is that you run wpa_cli -a action_script in the background and when a connection happens this gets called. So it seems that I can put in there my ifconfig and ip route statements. 

If anyone has a better idea I'd be happy to hear it!

Cheers,
Panos




> -----Original Message-----
> From: Blaise Gassend [mailto:blaise at willowgarage.com]
> Sent: 30 July 2010 17:05
> To: Panagiotis Georgopoulos
> Cc: hostap at lists.shmoo.com
> Subject: Re: assigning an IP address when triggering handovers
> 
> Could the script that is sending wpa_cli commands not just run an
> ifconfig command also, or send the right signal to dhclient to reaquire
> an address? As far as I know wpa_supplicant doesn't deal with IP
> addresses, but I may be wrong.
> 
> On Fri, 2010-07-30 at 10:41 +0100, Panagiotis Georgopoulos wrote:
> > Hello all,
> >
> >
> >
> >                 In my wpa_supplicant.conf I have two network sections
> > and I am using wpa_cli to trigger handovers from one to the other and
> > vice versa. Currently I am using static ip addresses and ideally I
> > would like when I trigger a handover to assign a new ip address to
> the
> > wireless interface as fast as possible.
> >
> >
> >
> > Is there any way that wpa_supplicant or wpa_cli can do this for me?
> > E.g. any ip_address option that could go in the wpa_supplicant.conf
> or
> > any command in wpa_cli to assign an ip address to the interface? I am
> > assuming that if such an option exists, when it will be enforced, the
> > kernel  will take care of the routing table as well
> >
> >
> >
> >                 Thanks a lot in advance,
> >
> >                 Panos
> >
> >
> >
> >
> > _______________________________________________
> > HostAP mailing list
> > HostAP at lists.shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap
> 




More information about the HostAP mailing list