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

    I applaud your efforts, to get the some of the workstation to pick up new leases from the new DHCP scope. You may have missed a few steps though. You see when the PC comes online, does a broadcast looking for a DHCP server. DHCP server responds with an OFFER message, offering the PC an IP address, subnet mask, and default gateway, as well as various DNS options, and WINS if configured.…

    • 261 Words
    • 1 Page
    Satisfactory Essays
  • 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

    -DHCP means Dynamic Host Configuration Protocol and is a part of application layer. A DHCP server has a number of IP address in its memory to assign for the computers/hosts on a network.…

    • 524 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    When PC’s are booted up, they automatically start looking for the DHCP server on the network. The server, once contacted sends out a message offering an IP address, subnet mask, default gateway, etc. The PC then essentially says back to the server, “ok, I got it”.…

    • 322 Words
    • 1 Page
    Satisfactory 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

    Start by checking the DHCP setting and configurations and make sure they all correctly configured.…

    • 363 Words
    • 2 Pages
    Good 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
  • Satisfactory Essays

    Lab 2

    • 310 Words
    • 2 Pages

    Question 9: What nodes appear underneath the DHCP scope that you created in exercise 3-1? Address Pool Address Leases, Reservations, Scope Options…

    • 310 Words
    • 2 Pages
    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

    Use the ifconfig command to verify your IP Address and Subnet Mask. Make a note of the interface (eth0 or eth1). Use the route command to determine the Default Gateway. Record this information in the table below:…

    • 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

    8. If a system will be a DHCP server, what type of address should you set? Static IP…

    • 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