Preview

Configuring DHCP server in Ubuntu

Satisfactory Essays
Open Document
Open Document
303 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Configuring DHCP server in Ubuntu
DHCP Server configuration

1) Configure the network interface to give a static IP address to the DHCP server
Edit the file /etc/network/interfaces

2) Use the command sudo apt-get install isc-dhcp-server in the terminal to install DHCP.
3) For the DHCP to assign Ipv4 addresses edit the file /etc/dhcp/dhcpd.conf and provide the range of address you want to the DHCP server to assign.

4) For ipv6 address, create a new file dhcpd6.conf and then configure the range of ipv6 addresses which needs to be assigned. The file should be created in /etc/dhcp/dhcpd6.conf

5) For ipv6, edit the file /etc/sysctl.conf and provide the below configurations. net.ipv6.conf.all.forwarding=1 net.ipv6.conf.all.autoconf=1 net.ipv6.conf.all.accept_ra=1 6) Enter the below commands to enable the configurations made above. sudo sysctl -w net.ipv6.conf.all.autoconf=1 sudo sysctl -w net.ipv6.conf.all.accept_ra=1 sudo sysctl -w net.ipv6.conf.all.forwarding=1

7) Install the router advertisement daemon or radvd by using the command
Sudo apt-get install radvd

8) Create file /etc/radvd.conf and put the internal interface and prefix there.

9) Now restart all the service using the commands
Sudo /etc/init.d/networking restart
Sudo /etc/init.d/radvd restart
Sudo /etc/init.d/isc-dhcp-server restart
Sudo /etc/init.d/isc-dhcp-server6 restart

10) Also edit the firewall to allow ipv6. The file to be edited is /etc/default/ufw and set the ipv6 to yes.

Testing:
1) Connect a client in the same network as the DHCP server. The server will assign IP address to the client.
Screenshot of the client’s IP address assigned by the DHCP server

Screenshot the DHCP server system logs showing the DHCP request and response transactions

Screenshot of the dhcp.leases file for the DHCP server showing the leased ip addresses

You May Also Find These Documents Helpful

  • Satisfactory Essays

    NT1330 Unit 2 homework

    • 364 Words
    • 2 Pages

    Check the workstations using ipconfig /all and find out if the ip range is within the address range you assigned, if it is a different address then the workstation failed to contact the DHCP server and has gone into apipa mode. The Network Interface Card might be assigned an incorrect driver. Another possible cause of the problem is that the patch cable is not plugged into the Network Interface Card, or is not connected to a switch on the other end. However, it could be that the server has run out of IP addresses that it can assign to clients. You can easily tell if this is the problem by comparing the size of the DHCP address scope to the number of devices on your network that request IP addresses from the DHCP server. But since only some of the workstations have got addresses the problem might be the DHCP server. Start off by doing some ping tests to verify that the DHCP server is able to communicate across the network. If the DHCP server is able to communicate with other computers on the network, then I recommend verifying that the DHCP server has an IP address that is compatible with the scope that the server is configured to assign addresses from. The server itself has to be assigned a static address in the same subnet range, such as 192.168.0.199. If this still doesn’t solve the problem make sure that the DHCP server is still authorized by the Active Directory to lease IP addresses. You should also check to verify that the scope is active, and that the necessary services are running on the DHCP server.…

    • 364 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1330 Unit 1 Exercise 1

    • 524 Words
    • 3 Pages

    -In a classic client connection to a Ethernet port, when the client tries to connect through DHCP exchange by broadcasting DHCP discovery frame to search a DHCP server. If the DHCP server is not present on the local subnet, a DHCP discovery must be forwarded by the router. And this is done by configuring an IP Helper Address on the router, to relay certain broadcast UDP frames (like DHCP) to a specific IP destination. In case of DHCP - the router will forward the DHCP discovery and request as unicast frames to one or more pre-configured DHCP servers.…

    • 524 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    A switch does not need an IP, you can just plug in your devices and they will automatically connect to the Internet. The IP address allows you to manage the switch the configuration with different VLANs and other network functions. To configure the switch you will need to use the CLI, which is the exec command interpreter. Using…

    • 747 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    NT 1330 Unit 2 Exercise 1

    • 363 Words
    • 2 Pages

    Make sure the address scope has enough addresses if not widen the scope range. Check to see if it is a router/firewall problem and makes sure you…

    • 363 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Week 4 B IP Subnetting Lab

    • 2462 Words
    • 19 Pages

    configuration, there are 5 segments which need to be addressed: three Ethernet interfaces and two…

    • 2462 Words
    • 19 Pages
    Powerful Essays
  • Satisfactory Essays

    None of these Save Question 3 (1 point) Clients can send a DHCP request message to multiple DHCP servers. Question 3 options: True False Save Question 4 (1 point)…

    • 268 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1210 LAb6.1

    • 401 Words
    • 2 Pages

    The router auto assigns the IP addresses when you first start using the router. It shows you how the setting gets lock but you could unlock them to change those settings.…

    • 401 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The DHCP server would have the responsibility of assigning IP addresses to the client computers and other devices that are enabled as DHCP clients. This will eliminate the need to manually assign IP addresses to all users and devices on the network. This main server will also serve as storage for Active Directory and user account management.…

    • 247 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 3253 Words
    • 14 Pages

    Ubuntu Linux convert DHCP network configuration to static IP configuration. Now to change or convert…

    • 3253 Words
    • 14 Pages
    Powerful Essays
  • Satisfactory Essays

    netw 240 week 7

    • 330 Words
    • 3 Pages

    Select an ARP reply that contains the label “##.##.##.## is at xx:xx:xx:xx:xx:xx, where ##.##.##.## is the default gateway IP address.…

    • 330 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2. IPv4 and IPv6 are not compatible. Requiring levels of translation at the network level in order for each to talk to each other.…

    • 334 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    nt1330 unit 1

    • 565 Words
    • 3 Pages

    Reserve the first and last 20 or so addresses in each dhcp scope for statically assigned addresses and network devices / gateway addresses.…

    • 565 Words
    • 3 Pages
    Good Essays
  • Good Essays

    NT1330 final exam

    • 1081 Words
    • 3 Pages

    4. Which feature is an integral part of IPv6, where as it was an optional feature under IPv4? IPSec…

    • 1081 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Unit 3 Lab

    • 290 Words
    • 2 Pages

    DHCP eliminates the need to assign static IP addresses by allowing a server to assign addresses to devices as they connect to the network.…

    • 290 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Data Comm

    • 501 Words
    • 3 Pages

    3) We set the DHCP server to provide a narrow range of IP addresses. What is the maximum range that it can provide? What would be the starting and ending addresses if this full range were utilized?…

    • 501 Words
    • 3 Pages
    Satisfactory Essays