Results 1 to 3 of 3

Thread: How to define dhcp server to only serve specific nic

  1. #1
    Join Date
    Apr 2014
    Location
    Tucson AZ, USA
    Beans
    1,057
    Distro
    Ubuntu

    How to define dhcp server to only serve specific nic

    I'm looking at a guide to add a squid transparent proxy to my network. http://www.purplealienplanet.com/node/25 is the guide I am looking into. What I need though since everything is on a common switch, how can I instruct the dhcp server (using isc-dhcp-server) to only serve dhcp addresses on the virtual network interface. In my case enp2s0:0. Not on the default enp2s0. I don't want to knock out the network at my home as it is serving a number of smaller apartments on my property (grandparents, parents, and my place on a shared piece of land). I need to get it right the first time.
    Last edited by Tadaen_Sylvermane; February 17th, 2017 at 08:50 PM.

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How to define dhcp server to only serve specific nic

    Hi Tadaen_Sylvermane.

    You should be able to list the interfaces you want to serve in this file:
    Code:
    /etc/default/isc-dhcp-server
    Look for the line that looks like this:
    Code:
    INTERFACES=""
    and change it appropriately. For example:
    Code:
    INTERFACES="enp2s0:0"
    Then restart the dhcp ervice:
    Code:
    sudo systemctl restart isc-dhcp-server.service
    Hope it helps. Let us know how it goes.
    Regards

  3. #3
    Join Date
    Apr 2014
    Location
    Tucson AZ, USA
    Beans
    1,057
    Distro
    Ubuntu

    Re: How to define dhcp server to only serve specific nic

    Thank you. I figured that was it but wanted to be sure, as mentioned gotta get it right the first time thank you very much.

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
  •