You are not logged in.

#1 2007-02-13 15:33:32

joaospinto
Member
Registered: 2007-02-13
Posts: 40

error on /etc/rc.d/network restart

rc.conf

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

i execute

dhcpcd eth0
/etc/rc.d/network restart

is anything incorrect? why do i get FAIL?
btw, i can ping myself

Offline

#2 2007-02-13 15:50:50

sjg
Member
From: UK
Registered: 2007-02-10
Posts: 63

Re: error on /etc/rc.d/network restart

You need to uncomment gateway in routes. It should read:

ROUTES=(gateway)

Offline

#3 2007-02-13 16:30:06

joaospinto
Member
Registered: 2007-02-13
Posts: 40

Re: error on /etc/rc.d/network restart

i was told that the DHCP requires the !
are you sure?

Offline

#4 2007-02-13 17:13:33

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

Re: error on /etc/rc.d/network restart

This can fail for any number of reasons.  Can you post the output of "ifconfig -a" after each of the following commands:

ifconfig eth0 up
dhcpcd eth0

NOTE: these need to be done as root

Offline

#5 2007-02-13 17:35:46

sjg
Member
From: UK
Registered: 2007-02-10
Posts: 63

Re: error on /etc/rc.d/network restart

Sorry, you are right, ignore my post!

Offline

#6 2007-02-13 18:38:53

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: error on /etc/rc.d/network restart

Once you set /etc/rc.conf to use DHCP the only other thing you need to do is restart the network (as root of course) with:

/etc/rc.d/network restart

if you get errors please post the output of :
ifconfig
route
mii-tool

Offline

#7 2007-02-13 19:00:41

joaospinto
Member
Registered: 2007-02-13
Posts: 40

Re: error on /etc/rc.d/network restart

i had already done that... maybe it was something i didnt sellect on the base install no?
ifconfig:

lo blablabla
there was no eth0 :s

route:

Destination      Gateway      Genmask     Flags adsf (i dont understand what i wrote)     Use Iface

mii-tool:

SIOCGMIIPHY on 'eth0' (and 'eth2') failed: Operation not supported
SIOCGMIIPHY on 'eth1' failed: Invalid argument
no MII interfaces

ipconfig eth0 up
SIOCSIFFLAGS no such file or directory

shall i reinstall the base and select all packages?

Offline

#8 2007-02-13 20:29:59

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: error on /etc/rc.d/network restart

I get the FAIL too sometimes on network restart with my wifi card.
Doesn't really matter since it works anyways, dunno why it does it tho. My guess its somethin to do with the sequence the daemons load. acx dhcp network...

Ps i got !gateway too with dhcp, it works.

Last edited by Mikko777 (2007-02-13 20:31:23)

Offline

#9 2007-02-13 22:55:25

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: error on /etc/rc.d/network restart

if you do not get eth0 info with ifconfig something is wrong.
It may be that a) your card is not recognized or b) the driver for the nic card is not loaded.

R

Offline

#10 2007-02-13 23:33:52

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: error on /etc/rc.d/network restart

Am I correct assuming you have a pci network card?
Then do "lspci" and tell us what card it is...

The driver might be loaded. You wont see it in ifconfig until you bring it up.
"ifconfig eth0 up"


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#11 2007-02-14 08:09:28

joaospinto
Member
Registered: 2007-02-13
Posts: 40

Re: error on /etc/rc.d/network restart

i have already managed to connect to internet
i edited the dhcpcd file, added -S -R
i edited /etc/hosts and changed localhost to the pc name
and i added my driver in the modules section of rc.conf
which i hadnt done the last time and i was able to connect
ty anyhow

Offline

Board footer

Powered by FluxBB