First make sure that you have ip forwarding enabled in your kernel, then you will have to make sure that /proc/sys/net/ipv4/ip_forward has a 1 in it and not a 0 (this is to tell your computer to forward packets across interfaces)
Then in your dhcp.conf (on my gentoo box it's in /etc/dhcp/ but i don't remember where it is on debian) you need to set up your subnet that you will want to give out addresses on, a very basic subnet declaration looks like


subnet 10.254.239.0 netmask 255.255.255.224 {
    range 10.254.239.10 10.254.239.20;
    option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
    }

If you need help figuring out what all that means let me know but it should be pretty self explanatory. From there just make sure that your nic that is listening for dhcp requests is on that subnet and then just plug in your other computer and get a dhcp address from it.

-Chris

____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to