This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

2.016 and DHCP? (help)

I have cable and my ISP supplies my external card with an IP.  So I need to get DHCP working...

I have searched the forum for help on this, and others posted the same question.  Many were simply pointed to here: http://docs.astaro.org/attic/dhcp, and -presto- their problems appear to have been solved.  So sorry if this is a repost.  I am just looking for a little more of a step-by-step process.  


I installed the files found here: http://docs.astaro.org/attic/dhcp

No luck.  

I noticed that the updateip file found in the above download states that DHCP must first be installed.  QUOTE: "dhcp must already installed and configure and be in a functioning state before using this script".  This confuses me in that I thought I was running this script to install DHCP?  If this is not true then how do I first install DCHP?  Is it installed by default with 2.016?  (it does not seem to be).

Concerning the updateip file, what has to be updated in this file before I run the script?

Do I have to set any file/folder permissions before I run this script?  Do i have to run it as su (super user)?  (i tried running it while logged in as root).

Any insight on how to get this to work would be great!!!!

Thanks for any help!!!

JT

[ 17 May 2002: Message edited by: JT ]



This thread was automatically locked due to age.
  • Benoit's dhcp package was a little bit confusing to me too when I installed it several months ago.

    As I understand it, Benoit's package is the dhcp client (dhcpc) and /sbin/dhcpcd is the daemon that makes it work.  When you execute install_utils.sh (which I had to make executable by chmod 755), it installs (i.e. copies) all of the files needed for you to get an IP for your external NIC from a dhcp server, but you have to do some work on them.

    I am a linux novice, & learn by trial & error on test machines.  Here's what I did, logged on as root, to get Benoit's package to work on my simple setup (two NICs; external NIC eth1; no DMZ/servers):

    1. Note that on boot, a startup link (/etc/rc.d/rc2.d/S04dhcp) starts etc/rc.d/dhcp, and that etc/rc.d/dhcp in turn starts /sbin/dhcpcd - the binary that actually tries to find a dhcp server and obtain an IP for your external NIC.  The dhcp script should not need editing unless your external NIC is not eth1.  If your external NIC is not eth1, you need to edit /etc/dhcp accordingly.

    2. Note also that /sbin/updateip is really a configuration file called by /etc/dhcp (see the last line in /etc/dhcp).  You don't need to start or stop /sbin/updateip; /etc/dhcp does that for you.

    3. You do need to edit /sbin/updateip to reflect your IP settings & system configuration.  If you have a simple two NIC system with no DMZ/servers, and your external NIC is eth1:

      - In 'echo "Hostname: your.domain.com"....' change 'your.domain.com' to whatever you use.

      -In the '#Static entries:' section: 

         -- change the 10.10.10.10 in 'echo eth0#Internal#10.10.10.10#255.255.255.0....' to the IP of your internal NIC

         --, comment out the next two lines ('echo X#InEmail#....' and 'echo X#InWeb....')

         --  change the 10.10.10.0 in 'echo X#net_10#10.10.10.0#255.255.255.0#....' to your internal network IP (i.e. your internal NIC IP, but with a zero (0) on the end).

    In a simple two NIC system with the external NIC eth1, that's all you have to edit in /sbin/updateip.  If your external NIC is not eth1, you need to edit /sbin/updateip accordingly.

    4. Finally, in my case at least, none of the files in Benoit's package were executable as downloaded. (You can tell this from the console screen - white is non-executable, green is executable).  I did a chmod 755 on 'install_utils.sh' to get it to execute, then a chmod 755 on every file installed by 'install_utils.sh' that I thought should be executable , i.e. /sbin/dhcpcd, /etc/rc.d/dhcp, /sbin/grep, 
    /sbin/egrep, /sbin/fgrep, /sbin/more, /sbin/pico, /sbin/updateip.  I don't recall whether I did a chmod on /etc/rc.d/rc2.d/S04dhcp.  I don't think so.

    Benoit's dhcpc package, configured as above, worked for me for several months until I decided to start using Astaro 3.05 after getting it to work on my setup.

    Hope this (verbose) response helps.
  • Thank you very much BillH for the detailed reply!  i've got it working now by following your suggestions.  

    I appreciate your help!

    JT