You are not logged in.

#1 2008-08-24 12:09:29

techprophet
Member
Registered: 2008-05-13
Posts: 209

WPA Wireless and static IP?

Hello, I have a WPA (not WPA2) encrypted wifi network at my house. I have both arch boxes connected to it fine. But I want to assign a static IP to one of them. Are the procedures the same as for an ethernet device? I would think not, but I am not sure how to do this.

Offline

#2 2008-08-24 14:31:51

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: WPA Wireless and static IP?

You can either set the router to assign specific IPs based on each computer's MAC address (this is how you do it on the kind of router I have, for example), or you can configure it on each of the computers.  This is, for example, how I have it set up on my computer using WPA2 network and netcfg.

CONNECTION="wireless"
DESCRIPTION="A wpa2 encrypted wireless connection using static ip"
INTERFACE=ath0
SCAN="no"
SECURITY="wpa-config"
ESSID="xxxxxxxxxxxxx"
IP="static"
IFOPTS="192.168.1.143 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="192.168.1.1"
DNS1=208.67.222.222
DNS2=208.67.220.220
WPA_CONF=/etc/wpa_supplicant.conf

Last edited by fwojciec (2008-08-24 14:43:10)

Offline

#3 2008-08-24 19:52:23

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: WPA Wireless and static IP?

I use wicd, following the instruction on the Arch wiki I had wireless w/WPA and a static IP address setup in < 5 minutes. Wicd is also a great program to used if you have laptop that you travel alot with.

Offline

#4 2008-08-25 12:25:07

techprophet
Member
Registered: 2008-05-13
Posts: 209

Re: WPA Wireless and static IP?

Hey, Im having trouble with netcfg. My computer that I want a static ip on is headless, so Wicd doesn't look like what I need.

Here is my netcfg conf for it.

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID='xxxxxxxxxxxx"
KEY="xxxxxxxxxxxxxxx"
IP="static"
IFOPTS="192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.150"
GATEWAY="192.168.1.1"
DNS1=208.67.222.222
DNS2=208.67.220.220
WPA_CONF=/xxxxxxxxxxxxxx.conf

My router is at 192.168.1.1 and my netmask is correct. I am not sure what the broadcast value is. It fails saying that it couldn't add the gateway. Yet my gateway is that one. My router is a Linksys WRT54G

Offline

#5 2008-08-25 15:05:02

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: WPA Wireless and static IP?

your broadcast should be 192.168.1.255
That might help. smile

Edit: Also I think your dns should be the same as your gateway but since you're using static, I'm not sure if it matters.

Last edited by bgc1954 (2008-08-25 15:07:13)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#6 2008-08-25 16:05:49

techprophet
Member
Registered: 2008-05-13
Posts: 209

Re: WPA Wireless and static IP?

I got it! For refererence, my router was in Gateway mode and I messed up the IP address. Thanks for the tip on the broadcast.

Here's my config:

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa"
ESSID="xxxxxxxxxxxxxxxxxx"
KEY="xxxxxxxxxxxxxxxxxxx"
IP="static"
IFOPTS="192.168.1.150 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY=192.168.1.1
DNS1=208.67.222.222
DNS2=208.67.220.220
WPA_CONF=/xxxxxxxxxxxxxxxx.conf

Offline

Board footer

Powered by FluxBB