PDA

View Full Version : need DHCP help (Ubuntu 8.10)


Hoss212
2nd March 2009, 01:20
Sry if this is in wrong topic.
Ok I have looked at many guides and forums and have configured my files as follows:

/etc/network/interfaces

#The loopback interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp


/etc/hosts

127.0.0.1 localhost localhost
63.246.59.228 Server1.static.net Server1

(IPv6 info not relevant)


/etc/networks

default 0.0.0.0
loopback 127.0.0.0
link-local 169.254.0.0
localnet 63.246.59.0


/etc/resolv.conf

nameserver 63.246.63.142
nameserver 69.60.160.203
search geus.org


Those are all the configs that come to mind if you need any more just ask.

The problem im having is that when i restart my networking with /etc/init.d/networking restart i get this error.


Listening on LPF/eth0/00:13:72:d0:4f:bd
Sending on LPF/eth0/00:13:72:d0:4f:bd
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
(it repeat line above this 8 times at different interval numbers)
No DHCPOFFERS received.
No working leases in persistent database - sleeping

falko
2nd March 2009, 15:16
I guess there's no DHCP server in your network.

Hoss212
3rd March 2009, 15:47
Ok so then how should i configure the network to get a connection?

falko
4th March 2009, 14:34
Do you have a router in your network? Normally you can enable a DHCP server on your router (through the router's web interface).

matey
4th March 2009, 14:55
I had a similar problem and I noticed there were 3 NICs on the server, so I changed the eth0 to eth2 (or whichever is connected or just plug the cable to the right one) and the problem was solved.