You are not logged in.

#1 2008-04-07 08:23:37

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Setting up a static IP problem

First, here is my relevant rc.conf data.

lo="lo 127.0.0.1"
#eth0="dhcp"
eth0="eth0 192.168.1.110 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(lo 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)

Here is my /etc/hosts file

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1        localhost.localdomain    localhost alpha-pc
192.168.1.110   alpha-pc.domain.org  alpha-pc
# End of file

My resolv.conf has my 2 dns servers listed, so I know that isn't the problem.  When I try to restart my network with these settngs, I get this error message.

[nelson@alpha-pc ~]$ sudo /etc/rc.d/network restart
:: Stopping Network                                                      [DONE]
:: Starting Network                                                      [BUSY] SIOCADDRT: No such process
                                                                         [FAIL]
[nelson@alpha-pc ~]$

I have to switch back to DHCP to even post this message...

Any idea what is wrong and how I can fix it?

Offline

#2 2008-04-07 09:09:54

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Setting up a static IP problem

Offline

#3 2008-04-08 07:48:52

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Re: Setting up a static IP problem

Thanks, that was the problem.  When I started my computer with those settings I got a static IP.  Thanks a lot.

Offline

Board footer

Powered by FluxBB