How to get and then use DHCP offers to config the wlan connection?
Hi guys
I'm using the following in a script to connect to my house's wi-fi - it works perfectly for me - simple, and with a static IP: Code:
modprobe zd1211rw #load the module needed by my wireless LAN adapter Code:
ifconfig wlan0 10.0.0.8 netmask 255.255.255.0 Thanks! |
Well from the slightly odd position you're coming from you would just surely use an if statement checking the essid you are connected to or something, but your script already forces you to use a specific essid in the first place so surely what you want to achieve is not actually going to help you? What's wrong with just using network manager or something else normal?
|
Quote:
So what you're saying is I'm screwed if I use this approach and now suddenly want to change horses in mid-stream and use DHCP? AFAIK I can only call dhclient and leave it at that...? All I effectively need is the ability to find an available IP in the local subnet, and the syntax I need to pass, for doing that, to dhclient - if any... |
All times are GMT -5. The time now is 05:36 PM. |