You are not logged in.

#1 2010-11-01 22:28:52

jacopastorius82
Member
Registered: 2010-10-27
Posts: 31

Static ip in rc.conf not assigned

I set up rc.conf under network to give wlan0 static ip as follows:

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
wlan0="wlan0 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.100.255"
INTERFACES=(wlan0 eth0)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

but ifconfig -a returns an output that shows my wireless card has not the ip i assigned to in rc.conf.

wlan0     Link encap:Ethernet  HWaddr 00:22:5F:A8:AA:F8  
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::222:5fff:fea8:aaf8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:442027 errors:0 dropped:0 overruns:0 frame:0
          TX packets:281916 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:656933941 (626.5 Mb)  TX bytes:25026451 (23.8 Mb)

I installed network-manager gnome applet which show wlan0 set to DHCP, maybe it override rc.conf??

Offline

#2 2010-11-01 23:26:38

TigTex
Member
From: Portugal
Registered: 2008-06-19
Posts: 301

Re: Static ip in rc.conf not assigned

jacopastorius82 wrote:

I installed network-manager gnome applet which show wlan0 set to DHCP, maybe it override rc.conf??

Yep... Remove "network" from rc.conf DAEMONS= line and use only network-manager... OR... remove network-manager and write "network" on that line if you only use 1 connection (saves RAM).

Wiki might help you...

Last edited by TigTex (2010-11-01 23:27:23)


.::. TigTex @ Portugal .::.

Offline

#3 2010-11-01 23:57:31

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 388

Re: Static ip in rc.conf not assigned

#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"

These lines are the problem.

Offline

#4 2010-11-02 01:30:37

lxeliger
Member
Registered: 2010-06-16
Posts: 3

Re: Static ip in rc.conf not assigned

Also, make sure that the IP in /etc/resolv.conf is set to your router. It's explained in the wiki, but I managed to overlook that when I first tried to set a static IP for a new Arch install.

Offline

#5 2010-11-02 07:15:31

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

Re: Static ip in rc.conf not assigned

Radioactiveman wrote:
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"

These lines are the problem.

No they're not. The OP is asking about the wlan0 interface, not eth0.

Offline

#6 2010-11-02 09:37:06

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: Static ip in rc.conf not assigned

jacopastorius82 wrote:

I installed network-manager gnome applet which show wlan0 set to DHCP, maybe it override rc.conf??

Indeed. Your gnome-panel-applets are processed long after the rc.conf.

I'd suggest using wicd anyway. This way you have an easy to configure network AND network access without booting into a DE.

Offline

#7 2010-11-02 17:14:57

jacopastorius82
Member
Registered: 2010-10-27
Posts: 31

Re: Static ip in rc.conf not assigned

I want a tool that automatizes commands to make wlan0 up at startup. Wicd can do that as gnome applet network-manager does?

Or..to solve my problem..i can just mantain network manager and set it up with the same settings in rc.conf

Last edited by jacopastorius82 (2010-11-02 17:17:51)

Offline

#8 2010-11-02 17:23:32

jacopastorius82
Member
Registered: 2010-10-27
Posts: 31

Re: Static ip in rc.conf not assigned

lxeliger wrote:

Also, make sure that the IP in /etc/resolv.conf is set to your router. It's explained in the wiki, but I managed to overlook that when I first tried to set a static IP for a new Arch install.

i set /etc/resolv.conf with opendns dns, which are the same i set in my router..this shouldn't be a problem

Offline

#9 2010-11-03 02:06:24

Awebb
Member
Registered: 2010-05-06
Posts: 6,272

Re: Static ip in rc.conf not assigned

jacopastorius82 wrote:

I want a tool that automatizes commands to make wlan0 up at startup. Wicd can do that as gnome applet network-manager does?

Or..to solve my problem..i can just mantain network manager and set it up with the same settings in rc.conf

It can do that. In fact, it does a better job. wicd runs as a daemon, so you'll have your wlan0 without booting into gnome. That means you'd be able to ssh into your box even if the X server is down.

Well... https://wiki.archlinux.org/index.php/Wicd

Offline

Board footer

Powered by FluxBB