You are not logged in.

#1 2010-04-15 03:28:46

wsims
Member
Registered: 2010-04-15
Posts: 34

[SOLVED] Static IP address issue

I'm a new archlinux user, and getting a static IP to "stick" is driving me absolutely nuts. My config settings are below.
After I make these changes and issue the /etc/rc.d/network restart command, i get a static ip, and everything works great. The problem is after i reboot, I get a DHCP address of 192.168.1.107 plus my /etc/resolv.conf is overwritten by networkmanager.

I was trying not to make this topic my first post, but oh well sad

What am I missing?

I've edited my /etc/rc.conf:

# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="archlinux"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
eth0="eth0 192.168.1.145 netmask 255.255.255.0 broadcast 192.168.1.255"

INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

eddited /etc/resolv.conf

nameserver 208.67.222.222
nameserver 208.67.220.220

edited /etc/conf.d/dhcpcd

#
# Arguments to be passed to the DHCP client daemon
#

DHCPCD_ARGS="-C resolv.conf -q"

Last edited by wsims (2010-04-15 04:02:11)

Offline

#2 2010-04-15 03:42:01

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: [SOLVED] Static IP address issue

I also use static ip .I dont understand why are using DHCP with static ip.
Also if you are using rc.conf  for network connection there is no need for network manager.

Your rc.conf is correct. There is just no need for DHCP daemon.


Tamil is my mother tongue.

Offline

#3 2010-04-15 03:46:53

wsims
Member
Registered: 2010-04-15
Posts: 34

Re: [SOLVED] Static IP address issue

how do I disable DHCP?
I don't see it listed in the DAEMONS section of rc.conf
I commented out networkmanger in DAEMONS, and when I rebooted, I had no eth0 interface, only lo.

Any help would be greatly appreciated.

Last edited by wsims (2010-04-15 03:47:25)

Offline

#4 2010-04-15 03:54:04

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: [SOLVED] Static IP address issue

You should add network to the list of daemons.

DAEMONS=(syslog-ng @network @crond hal alsa  @sensors)

Tamil is my mother tongue.

Offline

#5 2010-04-15 03:58:54

wsims
Member
Registered: 2010-04-15
Posts: 34

Re: [SOLVED] Static IP address issue

Bingo! Restarted and my static IP is still intact!

Thank you sir.

Offline

Board footer

Powered by FluxBB