You are not logged in.

#1 2012-04-29 12:40:56

asd01
Member
Registered: 2010-12-19
Posts: 19

[SOLVED] Static IP?

I'm trying to set-up static ip on my machine as per article in the Wiki and I can't quite get it to work.
In my rc.conf I have:

interface=wlan0              # wireless interface
address=192.168.0.3          # prefered ip address
netmask=255.255.255.0        # from router settings
broadcast=192.168.1.255      # from Wiki article
gateway=192.168.0.1          # reported by route -n

Next I do

echo "nohook resolv.conf" > /etc/dhcpcd.conf

And add Google name server to /etc/resolv.conf

echo "nameserver 8.8.8.8" > /etc/resolv.conf

My daemons array (just in case if that might have some importance no this issue) is as follows

DAEMONS=(iptables syslog-ng dbus net-auto-wireless fcron alsa)

I tried substituting gateway=192.168.0.1 for one from router admin page (WAN Default Gateway) but that didn't solve it either. Any ideas what I'm missing here?

Last edited by asd01 (2012-04-29 13:17:37)

Offline

#2 2012-04-29 12:50:09

Zeddi
Member
From: Germany near Bremen
Registered: 2009-08-30
Posts: 30

Re: [SOLVED] Static IP?

What means "Doest't work"?

Can you ping the router? Can you ping outside your local net?  What is the output of ifconfig wlan0?

You choosed an WLAN-Device, but did you configure it to the right SSID? Does it need some kind of encryption? WPA? Have you read https://wiki.archlinux.org/index.php/Wifi ?


I'm not very used to write English since i've left School, so please be patient!

Offline

#3 2012-04-29 13:17:18

asd01
Member
Registered: 2010-12-19
Posts: 19

Re: [SOLVED] Static IP?

Solution was quite simple - just add network to my daemon array (facepalm)... Marking as solved.

Offline

Board footer

Powered by FluxBB