How to configure DHCP Server in Ubuntu Linux 18.04 ( Complete Server & client )

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 148

  • @lilia_spn
    @lilia_spn 6 ปีที่แล้ว +11

    Hey dude you are awesome! Simple explanation and great video, you made the configuration very understandable 👌🏻👌🏻✌ thanks :D

    • @saron1822
      @saron1822 3 ปีที่แล้ว +1

      Modul 123 carry

  • @wyst8
    @wyst8 ปีที่แล้ว +1

    Thank you for your excellent step-by-step instruction! I was able to follow along and found the part I had missed while setting up my client. It works!

  • @flamyoad
    @flamyoad 6 ปีที่แล้ว +5

    This video definitely deserves more views. Keep up the good work !!

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      Thanks :)

    • @flamyoad
      @flamyoad 6 ปีที่แล้ว

      I have a question. Can the DHCP server in my Ubuntu VM assign IP to my windows10 host? (I'm using Host-only-Adapter). I followed the steps in your video but the adapter keeps getting 169.254.xx.xx as its IP address.

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว +1

      Yes but for that you need to configure it to a network interface connected to you host machine..
      In the video I have used bridge network to connect my vm to base machine...
      I hope this helps you :)

  • @yeraa3
    @yeraa3 5 ปีที่แล้ว +4

    Gracias buen señor. Me has salvado la vida. Te debo una. Me congratula que haya tan buen trabajadores como usted. Con amor desde ASIR (Antártida). Adiós... :)

  • @clipperdaily420
    @clipperdaily420 5 ปีที่แล้ว +1

    Nice one again brother. You are doing great work man.

  • @morfigasoulslayer
    @morfigasoulslayer 4 ปีที่แล้ว

    I love you my indian man, you are better than teacher

  • @MrNiyoku
    @MrNiyoku 4 ปีที่แล้ว +2

    Thanks dude, you helped me for my homework ! :D

  • @Kuki1537
    @Kuki1537 4 ปีที่แล้ว +5

    exam tomorrow, thank you

  • @smurad404
    @smurad404 4 ปีที่แล้ว +1

    love the way you describe.
    thanks a lot

  • @juansebastianmunozmartinez7414
    @juansebastianmunozmartinez7414 5 ปีที่แล้ว

    Jaja second 0:08 the automated captions saying "Hello friends you're watching erotic solutions" jajaja, die laughin'.

  • @Ghosc1k
    @Ghosc1k 4 ปีที่แล้ว +2

    That is insanely useful tutorial.

  • @vediyappanvillali2763
    @vediyappanvillali2763 4 ปีที่แล้ว +1

    Well explained. Appreciate your efforts and knowledge sharing mind :-)

  • @Sneaker_Net
    @Sneaker_Net 3 ปีที่แล้ว

    Nice work, thanks for the video.

  • @dangerouzdan8471
    @dangerouzdan8471 4 ปีที่แล้ว

    Dude you are an actual life saver! Thanks👍

  • @zeuscanoe
    @zeuscanoe 5 ปีที่แล้ว +2

    Your head was in front of the last server command you spoke about
    :0)

  • @ON3STG
    @ON3STG 6 ปีที่แล้ว +1

    Hi very nice video about the setup. Great help :-)

  • @lakshmistudies1043
    @lakshmistudies1043 3 ปีที่แล้ว +1

    What keys we have to use for write and quit

  • @h.w7141
    @h.w7141 4 ปีที่แล้ว

    thanks man much appreciate it you are awesome

  • @alzahalemn7322
    @alzahalemn7322 3 ปีที่แล้ว

    Excellent video, I was able to set this up ez

  • @fakename8670
    @fakename8670 ปีที่แล้ว

    Hi I followed video right to end all was working except for end assigning fixed address to windows client
    Windows client was just windows 11
    Also it's lease only lasts for short time before having to forget and reconnect to wifi on windows client

  • @taharasheed2343
    @taharasheed2343 2 ปีที่แล้ว

    u are life saver brother ❤️

  • @girumdemisse4313
    @girumdemisse4313 3 ปีที่แล้ว

    thank you bro! that helped a looooot.

  • @GerardGriffin
    @GerardGriffin 5 ปีที่แล้ว +1

    Would you ever consider doing a tutorial of setting up an Ubuntu PXE server to do an unattended installation?

  • @alanmiguelmartinezleon1986
    @alanmiguelmartinezleon1986 6 ปีที่แล้ว +2

    Hi :D !!!! Very Good!! thank you so much man!!!

  • @rakshithaambarish1689
    @rakshithaambarish1689 3 ปีที่แล้ว +1

    Sir, how are you writing and Quitting ? Ctrl+O to write and ?

    • @gamerboy-su1uq
      @gamerboy-su1uq 2 ปีที่แล้ว

      For write-Press F3
      For close the window-press F2

  • @kvpandurangarao9665
    @kvpandurangarao9665 6 ปีที่แล้ว +1

    very nice explanation Thank you

  • @skyltdockan
    @skyltdockan 5 ปีที่แล้ว +2

    Nice guide, I will try this. But is it not a bit odd to set the GW to .255? Is that not reserved for broadcasts?

    • @thesingleindian7368
      @thesingleindian7368 3 ปีที่แล้ว

      One more strange thing is that both the broadcast and gateway addresses are same. Time - 6:47 . But, it wouldn't matter much as the whole setup is being routed through a virtual switch and is being emulated in a virtual machine/environment. In real world, where you'd use the connected machines for real-life tasks, it'd be a problem. But, again... When you are the DHCP, you become the gateway. Hence, going with localhost address should be fine, unless you have a separate gateway server configured on your network.

  • @k1ng0fr4ng3
    @k1ng0fr4ng3 4 ปีที่แล้ว +3

    respects broski

  • @braju568
    @braju568 3 ปีที่แล้ว

    Very nice video indeed but would have been more comprehensive if dhcp option tag configuration covered as well.

  • @worldonlinux1139
    @worldonlinux1139 2 ปีที่แล้ว

    Should the DHCP server must have a static ip address? before setting the configuration? If no, why?

  • @kubakonieczny655
    @kubakonieczny655 3 ปีที่แล้ว

    super filmik pozdrawiam z polski :DD

  • @karankajrolkar2707
    @karankajrolkar2707 5 ปีที่แล้ว +2

    How you are add another window for Ubuntu and windows on same user

  • @dorothyjolly7299
    @dorothyjolly7299 6 ปีที่แล้ว +1

    Thank you, one of the best video on DHCP installation and configuration. By the way when i run dhcp-lease-list command it is not showing the lease list. Instead it is saying cannot open /car/db/dhcpd.lease. Any helpful tips to get this sorted out?

    • @thesingleindian7368
      @thesingleindian7368 3 ปีที่แล้ว +1

      You'd have found the answer long back. But, I am still answering because it may help others. This is because the DHCPd service is trying to read the lease list from "/car/db/dhcpd.lease"(in your case). But, the actual lease list resides in "/var/lib/dhcp/dhcpd.leases". 15:33 - Check your /etc/dhcp/dhcpd.conf file and change the location pointer/directory where it is reading the lease list from... A good start is to look the error message and replace that directory path with the above one.

  • @victoralvarado7370
    @victoralvarado7370 5 ปีที่แล้ว +1

    Amazing!

  • @annloraineluyao6004
    @annloraineluyao6004 3 ปีที่แล้ว

    when I entered the restart command in client-side -- the output was failed to restart networking.service: unit networking.service not found and my and enp0s3 output is mtu 1500 qdisc noop state down group default ubuntu. how can I resolve it?

  • @yarek_staryi_idy_na_nowyj
    @yarek_staryi_idy_na_nowyj 5 ปีที่แล้ว

    SUPER OCHOOOO POMOGŁO W RZYCIU, ZNALAZŁEM 1000000000000 DOLARÓŒ PO TYM WIDEO , PIĘKNĘ WIDEO !!!!!!!!!!!!!!

  • @odewumibamise8155
    @odewumibamise8155 2 ปีที่แล้ว

    This /etc/netwok/interfaces file does not exist on ubuntu 20.04. Please how do i go about it?

  • @bablushaw6856
    @bablushaw6856 5 ปีที่แล้ว

    correct me if i am wrong.. i was thinking gateway address should be placed in option router, instead you provided broadcast addr. what if you provide inet addr found from ifconfig?

  • @omershalev1855
    @omershalev1855 6 ปีที่แล้ว +1

    If I use a client on another computer, Is there something that I have to pay attention on?
    Or everything is the same?
    By the way, Great video!!! And thanks for the quick answers

  • @betraid
    @betraid 6 ปีที่แล้ว +1

    1 thing, in your video you use /etc/network/interfaces, but in 18.04 this file is replaced by /etc/netplan/50-cloud-init.yaml right?

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      No

    • @jaxonryan1313
      @jaxonryan1313 5 ปีที่แล้ว +1

      @@AndroidandTechSolutions I read something about that making a new method to set a static ip for instance

    • @josht2454
      @josht2454 4 ปีที่แล้ว +1

      That is server-side to configure static ip or dhcp on the interfaces

  • @dorothyjolly7299
    @dorothyjolly7299 6 ปีที่แล้ว +1

    Sorry typing error it should be /var/db/dhcpd.leases

  • @sarmadghafoor8215
    @sarmadghafoor8215 6 ปีที่แล้ว +1

    Hello , Can we configure any Wifi Router (Link Sys) to get IPs for users from Linux machine dhcp server instead of using pool inside Router. ??

  • @jaxonryan1313
    @jaxonryan1313 5 ปีที่แล้ว +1

    My brother at 2:43 may I ask what was it you input to exit I tried typing "^X" as reads but didnt work could you please give us a hint on the matter (Sorry am a bit of a newbie to linux terminal

  • @hamza3524
    @hamza3524 2 ปีที่แล้ว

    the first adaptator is connected on NAT or inner network?

  • @subhamucet
    @subhamucet 4 ปีที่แล้ว

    How to configure dhcp server for multiple vlan subnet or multiscope ???

  • @mehvishnoor9013
    @mehvishnoor9013 4 ปีที่แล้ว

    When you write the conmond
    Sudo nano /etc/default/isc-dhcp-servrr
    Then ens3 k bad apny kia type kia ya kia press kia jis k bad next page aya...mera next page empty ata hy ....kindly guide m kal mera exam hy

  • @TabishPatvi
    @TabishPatvi 2 ปีที่แล้ว

    Can you show it with ubuntu, instead of windows

  • @ChillerDragon
    @ChillerDragon 5 ปีที่แล้ว +2

    1:42 first i installed netdudes xd
    but he probably means
    apt install net-tools

  • @tvtenhagen
    @tvtenhagen 4 ปีที่แล้ว +5

    Drinking game:
    take a shot every time he says "okey"

  • @AhmadRajab
    @AhmadRajab 3 ปีที่แล้ว

    whats the client side and how did you configure it?

  • @Geo-sc3mg
    @Geo-sc3mg 4 ปีที่แล้ว

    Just wondering about the last part of enabling the dhcp, I dont know if this is right "sudo ufw allow in on enp0s3 from any port 68 to any port 67 UDP" can you write down here what's exactly you did cause your camera blocked it so I wasn't sure about that part. ty

  • @joseoplmx
    @joseoplmx 3 ปีที่แล้ว

    Hello, i have a ubuntu 14, it was configured by someone else a few years i know that it works because it assigns ip's from network 10.X.X.X to the devices but if i check with command dhcp-lease-list it doesnt show any ip assigned, neither if i look in the dhcpd.conf the pool 10.x.x.x doesnt exist, where should i look?, regards

  • @smurad404
    @smurad404 4 ปีที่แล้ว

    what is the setting of VM Network Adaptor?
    can I connect to this server to GNS3..?

  • @harshitsharma5597
    @harshitsharma5597 4 ปีที่แล้ว

    i had configured the dhcp server at the host side completley and its working but but at the client side my clients are not getting connected withe the host am not getting the dhcp servers ip at client side it is still displaying the its old ip address.

  • @matthieumbayo7452
    @matthieumbayo7452 4 ปีที่แล้ว

    Hi there, I have a question,
    Let's assume we have 10 scopes for our IT infrastructure, in the infra we have 2 buildings and each building hase its own scopes.
    say we have 1st scope is IT in building A, and 5th Scope is IT in building B. now I want to make a reservation for one IT user in both fisrt scope and fifth scope.
    Can Ubuntu DHCP Server be able to do that ? Or, do you know some solutions to this ?
    thank you in advance.

  • @gerryvalenzuela9158
    @gerryvalenzuela9158 4 ปีที่แล้ว

    I want to get DHCP server for my cisco gear lab but do I really need DHCP client windows on any of my network topologies ?

  • @anandusurendran8742
    @anandusurendran8742 5 ปีที่แล้ว

    I did all the things as shown in video. Client is not getting ip. May i know the network configuration like which network card is being used n all.

    • @anandusurendran8742
      @anandusurendran8742 5 ปีที่แล้ว

      When we go to ifconfig we can see 1 port n 1 loopback. Is that NAT or Bridge???

  • @pramodchavan5807
    @pramodchavan5807 4 ปีที่แล้ว

    Sir I've trying to manage client machine frm server and install softwares and drivers from server..
    How I do plz help..🙏

  • @I.N.E.A
    @I.N.E.A 5 ปีที่แล้ว

    good job man, can you upload how to install and configure snort on ybuntu server please?

  • @yurrymatufira3701
    @yurrymatufira3701 6 ปีที่แล้ว

    i have question in minutes 2:41, after typing "ens" what can i do?
    thanks.. i'm newbie, want to learn server.. (ctrl+s and ctrl+z) or any?
    thanks master..

    • @jaxonryan1313
      @jaxonryan1313 5 ปีที่แล้ว

      Uh i had trouble myself in case you hadnt figured it out yet its ctrl+x
      as in hold control x
      your welcome

  • @hassinayaz7310
    @hassinayaz7310 6 ปีที่แล้ว +1

    thanks a lot for the video .. but client cannot access internet . is there something else to be done ?

  • @venkateshd7248
    @venkateshd7248 2 ปีที่แล้ว

    Hi bro, i have done the same as you do but in dhcp-lease-list i cannot see my client ip address. can you help me with that?

  • @omershalev1855
    @omershalev1855 6 ปีที่แล้ว +1

    Does the client have to be a virtual machine? Will it work also with my phone or another laptop?

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      It is not necessary that client must be another virtual machine it can be other computer also.. :)

  • @livingphate
    @livingphate 6 ปีที่แล้ว +1

    Hi there Thanks for this, however how can i add a failover router so that if the first router inter fails it will change the dhcp to allow all users to connect to the second router?

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      I am not sure but yes..
      I will research on this and will let you know

    • @thesingleindian7368
      @thesingleindian7368 3 ปีที่แล้ว

      This isn't a router configuration. This is a DHCP server. You can add failover DHCP servers to the router config. But, not the other way around. If you are asking - what if the switch fails, and you need redundancy... Add one more NIC to your machine and add another switch and configure it to be the failover interface in the dhcpd configuration file. But, this is unnecessary redundancy. I feel that I answered your question in the first part... You can add additional/optional DHCP servers to the routers, because they route traffic, you cannot add additional routers to the DHCP server... DHCP server's job is to hand out DHCP IP addresses...

  • @zuzelmonster9450
    @zuzelmonster9450 2 ปีที่แล้ว

    why is your subnet ending on .0 if your inet is ending on .10?

  • @shc1990
    @shc1990 6 ปีที่แล้ว

    hi, i am working on aproject were i need to use ubuntu 16.04.5 GUI as ltsp server to use with thin client pc. but till now i am not successful. need a few suggestion

  • @sakshamkataria3093
    @sakshamkataria3093 6 ปีที่แล้ว

    It's not getting configured.....after checking the status it's showing
    Active : failed
    I checked but configurations are correct

  • @yeohfuseong
    @yeohfuseong 6 ปีที่แล้ว

    DHCP server running but the ip address on windows not within range
    Lease list is empty

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      Stop dhcp then start

    • @yeohfuseong
      @yeohfuseong 6 ปีที่แล้ว

      is it fine if both client & server has the same ip address?
      Ubuntu server inet : 10.0.2.15
      Windows ip address: 10.0.2.15
      Since both are attached to NAT on virtualBox

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      No like that your dhcp will not work

    • @yeohfuseong
      @yeohfuseong 6 ปีที่แล้ว

      What should i do to resolve then? Im using virtualBox

    • @BichaelStevens
      @BichaelStevens 6 ปีที่แล้ว

      @@yeohfuseong Bridget net instead of NAT

  • @Martin-gg1vo
    @Martin-gg1vo 6 ปีที่แล้ว

    bro can u help if i type commad ifconfig ensp7s0 doesnt show his inet and subnetmask,should i setting with myself with command(sudo ifconfig ensp7s0 192.168......)

  • @somnathroy8803
    @somnathroy8803 5 ปีที่แล้ว

    Sir I sees that some time after my public ip is changed ?? so how can connect with domain

  • @sakshamkataria3093
    @sakshamkataria3093 6 ปีที่แล้ว

    What's that part after giving the interface name "write and quit"...I didn't get it

  • @lucathekid7
    @lucathekid7 4 ปีที่แล้ว +2

    what a video

  • @purufrozen1508
    @purufrozen1508 5 ปีที่แล้ว

    on 7:39 sec how you have started writing again

  • @benjaminwe4
    @benjaminwe4 3 ปีที่แล้ว

    Do you know how can i set the dhcp authentication?

  • @adityawibowo2447
    @adityawibowo2447 6 ปีที่แล้ว

    what network adapter you use in both of your client?

  • @BichaelStevens
    @BichaelStevens 6 ปีที่แล้ว

    Only windows gets listen in lease list, not the ubuntu client

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      Bro watch again

    • @BichaelStevens
      @BichaelStevens 6 ปีที่แล้ว

      Ok I shut down my windows machine and now the Ubuntu client is showing
      why does only 1 client work at a time?

    • @BichaelStevens
      @BichaelStevens 6 ปีที่แล้ว

      @@AndroidandTechSolutions I did and I followed your instructions religiously.
      Only 1 of 2 clients shows up at any time. If windows client is shut down, then ubuntu shows up. If not, only windows shows up

  • @camille8712
    @camille8712 5 ปีที่แล้ว +1

    How did you get the different clients

  • @somnathroy8803
    @somnathroy8803 5 ปีที่แล้ว

    Sir I want to host jsp website from my computer ubuntu Os and install tomcat so I want to know Static Ip must be buy or normal Internate connection by router is enough for it?? Domain name need to buy must or just any name we can do just like royinfotech.com?? can you help me??

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  5 ปีที่แล้ว

      Hi,
      Yes you need to buy domain and you need to point that domain to your public ip which is trough your router..
      In your router you need do port forwarding to make your server live on the internet.
      Hope this helps..
      Thanks!!

    • @somnathroy8803
      @somnathroy8803 5 ปีที่แล้ว

      Sir I want to buy domain after I can connect my PC as linux tomcat webserver so how can do it?? again I need to buy static Ip ??

  • @Inkrementalgeber
    @Inkrementalgeber 6 ปีที่แล้ว

    Instead of installing the net-tools package just for "ifconfig" simply do "ip addr" ... welcome to GNU/Linux

  • @krisrock2185
    @krisrock2185 3 ปีที่แล้ว

    command 8:49 please

  • @Th3M4nuc9
    @Th3M4nuc9 6 ปีที่แล้ว +3

    oke? big man

  • @MosiaTV
    @MosiaTV 3 ปีที่แล้ว

    Make a notepad with commands to be easier for viewers follow your video

  • @airxayasith1738
    @airxayasith1738 6 ปีที่แล้ว +1

    can client access internet ??

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      Yes

    • @airxayasith1738
      @airxayasith1738 6 ปีที่แล้ว

      client can get ip address from dhcp but it can't access internet. can you please help ?

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      Look for that you have to set gate way from which the Internet is coming

    • @airxayasith1738
      @airxayasith1738 6 ปีที่แล้ว +1

      can you config proxy server for client can't access some website such as: facebook or google

    • @AndroidandTechSolutions
      @AndroidandTechSolutions  6 ปีที่แล้ว

      Yes wil upload a video regarding it in a few days it is done through squid server

  • @enzoscandelt3350
    @enzoscandelt3350 2 ปีที่แล้ว

    ddin't work

  • @mehvishnoor9013
    @mehvishnoor9013 4 ปีที่แล้ว

    Plzzz repaly m as soon as possibke

  • @ApoRekt
    @ApoRekt 2 ปีที่แล้ว

    okay

  • @Dreffyt
    @Dreffyt 4 ปีที่แล้ว

    ok

  • @kevincorreia9680
    @kevincorreia9680 2 ปีที่แล้ว

    666

  • @camille8712
    @camille8712 5 ปีที่แล้ว +1

    How did you get the different clients

  • @creestl8638
    @creestl8638 3 ปีที่แล้ว

    ok