You are not logged in.

#1 2009-05-15 19:15:03

Jeffers0n
Member
Registered: 2008-07-09
Posts: 12

Problem using netcfg w/ wireless and static ip [SOLVED]

I've been trying to get this to work for a couple days now and I'm going crazy.  I'm trying to use netcfg to setup my wireless interface with a static ip address, but for some reason it's not working.  Here's the profile:

CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wep"
ESSID="homenet"
KEY="XXXXXXXXXX"
IP="static"
IPOPTS="192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY=192.168.1.1
DNS1=192.168.1.1

When I run "netcfg wireless" I get:

SIOCADDRT: File exists
- Adding gateway 192.168.1.1 failed

I can use a different netcfg wireless profile set for dhcp jsut fine.  I can also set everything manually using iwconfig, ifconfig, route, etc... without problems.

Is there something wrong in my profile? Or is this possibly a bug in netcfg? Any help will be greatly appreciated.

Last edited by Jeffers0n (2009-05-15 19:28:09)

Offline

#2 2009-05-15 19:22:59

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Problem using netcfg w/ wireless and static ip [SOLVED]

Try changing IPOPTS to IFOPTS   smile

Good luck!
Scott

Offline

#3 2009-05-15 19:27:33

Jeffers0n
Member
Registered: 2008-07-09
Posts: 12

Re: Problem using netcfg w/ wireless and static ip [SOLVED]

Yup that worked, I knew it was something stupid.  Thanks! :-)

Offline

Board footer

Powered by FluxBB