LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 03-20-2005, 05:42 PM   #1
KGodwin
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
|RESOLVED| FreeBSD 5.3 - Network Problem - DHCP Client


Basically the problem is this:
I have a FreeBSD box connect to in a network with a router, the router works fine since all the Windows boxes (another desktop and laptop) and my Mac Mini can all connect to it. However, I'm a *Nix n00b and while I can get everything else working on my desktop. I cannot seem to get my DHCP server to assign an IP to the FreeBSD box.


Running FreeBSD 5.3

ifconfig output:

dc0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST) mtu 1500
options=<MVLAN_MTU>
inet6 <ommited>
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
ether <ommited>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active

/etc/rc.conf related lines:
ifconfig_dc0="DHCP"

/etc/hosts
::1 localhost localhost
l127.0.0.1 localhost localhost

/etc/dhclient.conf
FreeBSD Defaults, a blank file

ping to the router/dhcp = 100% PacketLoss (1.1.1.1)
ping to the host (aka localhost) = 0% PacketLoss so it is 'working'

The only error message I get (which as far I have been able to discover is meaningless based on newsgroups I can find)

from an up/down on ifconfig

dc0: failed to force tx and rx to idle state

dhclient dc0

Can't bind to dhcp address: address is already in use

No DHClient proccesses are running.

Last edited by KGodwin; 03-23-2005 at 03:14 PM.
 
Old 03-20-2005, 06:29 PM   #2
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
Why do you have the loopback IP address set in hosts?

EDIT:

Also, the name server needs to have all machines setup for a specific domain host.

Why isn't the name of the host in hosts?

like... mydomain.org ?

And the DNS servers, are they set also in the FreeBSD box?

Check out the HOWTO link here > http://www.bind9.net/links

Last edited by t3gah; 03-20-2005 at 06:34 PM.
 
Old 03-21-2005, 01:18 AM   #3
KGodwin
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by t3gah
Why do you have the loopback IP address set in hosts?\


Because that's the way it was setup after I ran Sysinstall. I haven't touched that part.



Quote:
Also, the name server needs to have all machines setup for a specific domain host.
There is no DNS ... so no domains...

Quote:
Why isn't the name of the host in hosts?

like... mydomain.org ?
see above....maybe I'm just used to Mac/Win but if there is no DNS there is no domains...


Quote:
And the DNS servers, are they set also in the FreeBSD box?

Check out the HOWTO link here > http://www.bind9.net/links
I think you don't have a damn clue what the hell I am talking about, no offense.

I'm talking about a standard home network with a DHCP router, no DNS servers, no domains.

I'll look at the link and edit if it helps.

EDIT:

The total summation of the link is...stuff on DNS binds....that isn't what I need.

What I need is for the FreeBSD installation to accept an IP from the DHCP, which it is not doing.

Last edited by KGodwin; 03-21-2005 at 01:20 AM.
 
Old 03-21-2005, 01:27 AM   #4
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
Are you talking about a firewall router like Linksys?
 
Old 03-21-2005, 01:45 AM   #5
KGodwin
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by t3gah
Are you talking about a firewall router like Linksys?
Yep.

EDIT:
Just fyi, I'm going to sleep I just got home from work. Anyway, I'm download Knoppix and LBA and a couple other linux distributions in the hopes that one of them will work closer to out of the box than this one =) I'm a lazy bastard, if I can't get it working in a couple hours I get irritated although if you can help me that would be great. =)

Last edited by KGodwin; 03-21-2005 at 01:47 AM.
 
Old 03-23-2005, 03:13 PM   #6
KGodwin
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Resolved See Link for details:

http://www.freebsdforums.org/forums/...threadid=29684
 
Old 03-30-2005, 05:55 AM   #7
Ekkume
Member
 
Registered: Mar 2005
Location: Finland
Distribution: Debian Sid, FreeBSD, Mandrake, Red Hat
Posts: 84

Rep: Reputation: 15
Re: |RESOLVED| FreeBSD 5.3 - Network Problem - DHCP Client

Go back into sysinstall and make like you are selecting your installation media again. Select network, and see if it asks if you already have your network configured. If it does, answer no. Let it try to configure your network with DHCP and see what happens. Don't install anything, just let it configure your network connection and see what happens. This worked for me. Trying to configure the nw afterward didn't work for me. Hope this helps.





Quote:
Originally posted by KGodwin
Basically the problem is this:
I have a FreeBSD box connect to in a network with a router, the router works fine since all the Windows boxes (another desktop and laptop) and my Mac Mini can all connect to it. However, I'm a *Nix n00b and while I can get everything else working on my desktop. I cannot seem to get my DHCP server to assign an IP to the FreeBSD box.


Running FreeBSD 5.3

ifconfig output:

dc0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST) mtu 1500
options=<MVLAN_MTU>
inet6 <ommited>
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
ether <ommited>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active

/etc/rc.conf related lines:
ifconfig_dc0="DHCP"

/etc/hosts
::1 localhost localhost
l127.0.0.1 localhost localhost

/etc/dhclient.conf
FreeBSD Defaults, a blank file

ping to the router/dhcp = 100% PacketLoss (1.1.1.1)
ping to the host (aka localhost) = 0% PacketLoss so it is 'working'

The only error message I get (which as far I have been able to discover is meaningless based on newsgroups I can find)

from an up/down on ifconfig

dc0: failed to force tx and rx to idle state

dhclient dc0

Can't bind to dhcp address: address is already in use

No DHClient proccesses are running.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP client redhat 8.0 does not register hostname in network harmen Linux - Networking 6 03-23-2009 06:01 PM
Linux dhcp client can't get address on Windows network km4hr Linux - Networking 12 03-10-2005 08:35 PM
FreeBSD 5.2.1 and DHCP problem... Mega Man X *BSD 6 11-26-2004 06:06 PM
dhcp client problem. LinuxRam Linux - Networking 1 11-02-2004 08:37 AM
DHCP client problems - network config RedHat123 Linux - Networking 1 12-16-2001 12:52 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration