You are not logged in.
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
You need to uncomment gateway in routes. It should read:
ROUTES=(gateway)
Offline
i was told that the DHCP requires the !
are you sure?
Offline
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
Sorry, you are right, ignore my post!
Offline
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
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
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
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
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
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