November 3rd, 2001, 06:52 AM
freeBSD and DHCP
I have just installed freeBSD, but then i try to get an IP from my DHCP (build in function in my SpeedStream 2610 Router) it won't give me an IP. The NIC that i use is an onboard, build in the chipset from SIS730.
November 3rd, 2001, 07:31 AM
>> i try to get an IP from my DHCP
What did you do exactly?
>> The NIC that i use is an onboard
I don't really care what NIC you use, but is it detected on boot?
>> build in function in my SpeedStream 2610 Router
Don't you have any static IP at all? As a server OS, why you configure FreeBSD with inconsistent IP using DHCP?
November 3rd, 2001, 11:36 AM
I ran /stand/sysinstall and tried to setup DHCP that way.
I detects the NIC on boot
It's is the first time I am using freeBSD, so it is mostly a hobby project. I will trie to get apache, mysql, php, proftpd and maybe a CS server up and running. The server will mostly be used at home or in small LAN parties
November 3rd, 2001, 02:17 PM
>> I ran /stand/sysinstall and tried to setup DHCP that way
Forget about GUI tool. Say your NIC is vr0, just append ifconfig_vr0="DHCP" to /etc/rc.conf (not /etc/defaults/rc.conf).
Check FreeBSD handbook for dhclient's configuraton.
>> I will trie to get apache, mysql, php, proftpd and maybe a CS server up and running
Just so you know, DHCP is for big company that sysadmins can't administer all workstation to configure IP individually. For home-use, even with 20 boxes, you should configure non-routable IPs manually. When your FreeBSD box is behind a router, DHCP is something you MUST not even try. I'm sure you will need to forward particular ports to your FreeBSD box. When the IP is dynamically assigned, how is it going to stay consistent?
November 3rd, 2001, 02:27 PM
Thanks for your help, but there is still something that i don't understand. I tried to plugin a RealTek card, and used ifconfig_rl0="DHCP" in /etc/rc.conf. Whit this card i obtained a IP. but then I use the onboard card it will not. Also then i transfer files between my laptop and the BSD box i can only recive with 15-30 KB / S ! The network that I use is 3com 100Mbit, and i should at least reach speeds about 4-5 MB / S. Have any idea what that can bee.
November 3rd, 2001, 02:36 PM
>> but then I use the onboard card it will not
I already asked you this previously. Is the onboard card being detected? If so, have you configured it in /etc/rc.conf?
>> i can only recive with 15-30 KB / S
Thru router or what? If they are connected directly, you must use crossover cable, not straight.
November 3rd, 2001, 02:53 PM
yes, the onboard card is detected and i have configured it in the /etc/rc.conf
the two computers are connected trough a hub, and the only speed that the hub supports is 100Mbit, so all my trafic so far is local.
November 3rd, 2001, 03:06 PM
Do a traceroute (use IP, not local hostname) on both ends and see.
November 4th, 2001, 03:52 AM
I have found my problem now. It's the hub that i use thats not working. Then i connect the router directly to the onboard NIC i can get a IP and every think is working, but then i try through the hub, nothing will work I have a another question for you. How do I get telnetd up and running, Then i try running it I get the error: getpeername: Socket operation on non-socket ????
November 5th, 2001, 01:06 AM
Don't use DHCP (as I said previously) then it will be fixed automatically.
November 5th, 2001, 10:14 AM
OK. Thanks for your help.