Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: ISC-DHCP-SERVER configuration help!

  1. #21
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ISC-DHCP-SERVER configuration help!

    No need to destroy the ubuntu installation, there doesn't seem to be anything wrong with it.

    If the router is 192.168.0.1 you need to set for example the 192.168.0.10 address on eth0, and internet should work.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  2. #22
    Join Date
    Nov 2012
    Location
    Miami, FL
    Beans
    30
    Distro
    Ubuntu

    Re: ISC-DHCP-SERVER configuration help!

    Alright Darkod you convinced me to continue on with my challenge. Does it matter that I am also using a squid proxy server for the dhcp as well? I did as you advised with using 192.168.0.10 as the address for eth0 but still cannot connect to the internet. I even tried 192.168.1.10 on eth0 and still nothing. I first need to get the internet back on working. I have toggled with the interfaces quiet a few times but I do not think that, that is where the problem relies. Any ideas?

  3. #23
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ISC-DHCP-SERVER configuration help!

    Hmm, I am not sure how it would work with a proxy in the picture. Usually you would leave servers outside the proxy but it depends if the network can accept this configuration and allow the server to go out only using the router and without the proxy.

    If it doesn't allow it, yes, you have to take that into account too. Because in that case the internet goes through the proxy which would apply for this server too. From the router point of view, the server will be just a client.

    So even if you reinstall the OS, you will still have the same issue.

    Also, the 192.168.0.10 I suggested is just an example. Make sure another machine is not using the same IP address. It's best to select a static IP which is outside the router dhcp range so that it can't be delegated to another machine.

    PS. In /etc/network/interfaces you did change the gateway to 192.168.0.1 right? And you have to either restart the server or just the networking with:
    sudo /etc/init.d/networking restart

    so that the changes take effect.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  4. #24
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,033
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: ISC-DHCP-SERVER configuration help!

    It sounds to me like all you are missing is "masquerading" or "network address translation." You've already taken care of the problem of enabling packet forwarding, but you don't seem to have a masquerading rule.

    I've lost track of which interface points to the Internet and which to the local network, but if eth0 points to the Internet, try adding this rule to iptables:

    Code:
    sudo iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to [your machine's external IP address]
    replacing "[your machine's external IP address]" with the IP assigned to eth0. That tells the computer to "masquerade" all traffic sent out the eth0 interface and pretend that the traffic is coming from this machine's externally-facing address.

    If this works, add the command (without sudo) to /etc/rc.local so it will be run any time the machine boots up.
    Last edited by SeijiSensei; November 15th, 2012 at 09:30 PM.
    If you ask for help, please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #25
    Join Date
    Nov 2012
    Location
    Miami, FL
    Beans
    30
    Distro
    Ubuntu

    Re: ISC-DHCP-SERVER configuration help!

    Thank you guys for all the help with everything! I was able to get the DHCP working with some configuring within my interfaces. I figured out how to get my subnet add and also did some changes in the dhcpd.conf file. Thanks you all a million! Darokod you are awesome. Now the my squid3 proxy is acting up but I can figure that out through some configuring. Thank you all again, you guys have no idea how grateful I am.

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •