#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Denmark, Europe
    Posts
    15
    Rep Power
    0

    Question freeBSD and DHCP


    Hey.
    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.

    Kindly regards
    Martin Soendergaard
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> 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?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Denmark, Europe
    Posts
    15
    Rep Power
    0
    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
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> 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?
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Denmark, Europe
    Posts
    15
    Rep Power
    0
    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.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    >> 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.
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Denmark, Europe
    Posts
    15
    Rep Power
    0
    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.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Do a traceroute (use IP, not local hostname) on both ends and see.
  16. #9
  17. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Denmark, Europe
    Posts
    15
    Rep Power
    0
    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 ????
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Posts
    4
    Rep Power
    0
    Don't use DHCP (as I said previously) then it will be fixed automatically.
  20. #11
  21. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Denmark, Europe
    Posts
    15
    Rep Power
    0

    Thumbs up


    OK. Thanks for your help.

IMN logo majestic logo threadwatch logo seochat tools logo