You are not logged in.

#1 2005-11-28 21:38:21

lafayette
Member
From: Italy
Registered: 2004-10-17
Posts: 58

static ip with wlan

Hi all, I've a brand new wlan card (Asus WL-138g) and I've installed it fine with ndiswrapper. But only the first time I've managed to browse correctly, now I've configured all in rc.conf with static ip, and gateway, but he doesn't ping anything. If I try to ping anything, I don't get any output even if I press Ctrl+C. In routes table I get a line referring to destination 192.168.1.0 that pass through gateway 0.0.0.0; and a second line (the one added in config) for destination 0.0.0.0 through gaeway 192.168.1.254 (wifi router). The ip of the card is 192.168.1.100, anyone can help?

sorry for the long post

Offline

#2 2005-12-01 19:41:05

lafayette
Member
From: Italy
Registered: 2004-10-17
Posts: 58

Re: static ip with wlan

Ok I've managed where the problem is, I need to give at boot the command for "iwconfig wlan0 essid 'mywifinet'". Where should I put it, in rc.local or there's a cleaner way to do it?
Last thing: once I give "ndiswrapper -i mydriver.inf" I need to leave the inf file in the same dir or can I delete it?
thanks

Offline

#3 2005-12-01 21:07:39

Panu
Member
From: UK
Registered: 2005-10-09
Posts: 27

Re: static ip with wlan

lafayette wrote:

I need to give at boot the command for "iwconfig wlan0 essid 'mywifinet'". Where should I put it, in rc.local or there's a cleaner way to do it?

I have mine in rc.local. Don't know about the ndiswrapper thing.

Offline

#4 2005-12-01 21:19:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: static ip with wlan

lafayette wrote:

Ok I've managed where the problem is, I need to give at boot the command for "iwconfig wlan0 essid 'mywifinet'". Where should I put it, in rc.local or there's a cleaner way to do it?

/etc/conf.d/wireless

Offline

#5 2005-12-01 21:33:14

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: static ip with wlan

Panu wrote:
lafayette wrote:

I need to give at boot the command for "iwconfig wlan0 essid 'mywifinet'". Where should I put it, in rc.local or there's a cleaner way to do it?

I have mine in rc.local. Don't know about the ndiswrapper thing.

Wireless support is handled via the networking script.  You can simply add
wlan_wlan0="wlan0 essid MyEssid"
to rc.conf

Offline

#6 2005-12-02 01:37:23

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: static ip with wlan

I prefer to create a profile under /etc/network-profiles/[profile-name] and make the relevant changes to rc.conf (NET_PROFILE=). I find this much nicer, as it keeps everything in one profile file (including what you normally put in /etc/resolv.conf - I don't know how many times I've lost those settings when running dhcpcd for some reason)

Offline

#7 2005-12-02 02:59:23

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: static ip with wlan

nightfrost wrote:

I prefer to create a profile under /etc/network-profiles/[profile-name] and make the relevant changes to rc.conf (NET_PROFILE=). I find this much nicer, as it keeps everything in one profile file (including what you normally put in /etc/resolv.conf - I don't know how many times I've lost those settings when running dhcpcd for some reason)

Yes, the profiles are great for roaming networks.  I just assumed he was using wireless at home and only at home.

Offline

#8 2005-12-02 09:12:55

lafayette
Member
From: Italy
Registered: 2004-10-17
Posts: 58

Re: static ip with wlan

ok thanks all. Yes I use wifi only @ home so I edited wireless file in /etc/conf.d
And what about ndiswrapper files?

Offline

#9 2005-12-02 16:00:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: static ip with wlan

lafayette wrote:

ok thanks all. Yes I use wifi only @ home so I edited wireless file in /etc/conf.d
And what about ndiswrapper files?

ndiswrapper is in the community repo (it should be in pacman.conf already, just commented).

If you run a custom kernel, you'd have to use abs to recompile it.

Offline

Board footer

Powered by FluxBB