LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-15-2006, 08:30 PM   #1
gimmee
Member
 
Registered: Jul 2006
Location: New Zealand
Distribution: Fedora 17 64bit (Desktop) Fedora 15 (Laptop)
Posts: 98

Rep: Reputation: 17
Talking Does wpa_supplicant work with static ip.


Hi all

Just wondering if wpasupplicant can be setup to use static ip address.

At the moment i have my computers set for static ip adresses as I use port forwarding on the router. Also I have the router totally open at the moment but wanted to try wpa psk on the linksys router.

Wireless works fine otherwise. Sitting by the pool at the moment trying to find the answer to this question but most people seem to use dhcp.

At the moment i am getting the following:

root@Evo6:/home/gimmee# wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf
Failed to read read or parse configuration '/etc/wpa_supplicant.conf'.

My simple wpa_supplicant.conf has the following

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel


network={
ssid=Gimmee
key_mgmt=NONE

}

and my simple network file has the following

auto lo

iface lo inet loopback

iface eth1 inet static
address 192.168.1.102
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
wireless-essid Gimmee

auto eth1


Slowly getting a handle on my simple homenetwork but still a ways to go yet.

Thanks in advance to any help.

Gimmee
 
Old 12-15-2006, 10:06 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
I believe that the dhcp negotiation occurs after authentication. So configure dhcp or static a static IP address outside of the wpa_supplicant.conf and then you get static IP's.
My desktop has a static address using wireless.
Code:
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='192.168.1.101'
MTU=''
NAME=''
NETMASK='255.255.255.128'
This is a part of my /etc/sysconfig/network/ifcfg-wlan0 file.
In SuSE, the wpa info is contained in the ifcfg-wlan0 file and these values used to create /var/run/wpa_supplicant.conf dynamically. Your setup is different. Remember however that when you connect to other networks, you probably have to use dhcp to get an IP address.

If you connect to other networks, you can launch an action script from wpa_cli which could contain iwconfig statements.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not make wpa_supplicant work with ipw2200 crisostomo_enrico Slackware 1 11-03-2006 06:03 PM
static ip doesn't work but dhcp does peru Linux - Networking 2 09-18-2006 05:07 PM
Why does static IP not work with Debian but does with WinXP? Win 2 Linux Debian 3 09-17-2006 01:58 PM
Static won't work - DHCP does derajer Slackware 6 12-15-2005 02:05 PM
gcc -static doesn't work ! tceast Programming 8 09-08-2003 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration