Turn on your Server from anywhere!

Sdílet
Vložit
  • čas přidán 13. 06. 2024
  • In this video, I'll show you how to configure Wake On LAN, a technology that uses a small packet sent over your network to power on your server or computer, even when it's powered off. I'll also explain how to enable Wake On LAN in both your BIOS and OS, as well as how to send the Magic Packet. Plus, I'll show you how to integrate Wake On LAN into Home Assistant and how to route it across networks. #techtutorial #homelab #wakeonlan
    Related Videos/Links
    Home Assistant Tutorial: • Home Assistant and Zig...
    ________________
    💜 Support me and become a Fan!
    → christianlempa.de/patreon
    💬 Join our Community!
    → christianlempa.de/discord
    ________________
    Read my Tech Documentation
    christianlempa.de/docs
    My Gear and Equipment-*
    christianlempa.de/kit
    ________________
    Timestamps:
    00:00 - Introduction
    00:53 - Community Update
    02:18 - How does Wake on LAN work?
    05:35 - Enable WoL on Linux
    10:57 - Create the magic packet
    13:06 - What about routing?
    16:28 - Set up WoL in HomeAssistant
    ________________
    All links with “`*`” are and/or include affiliate links.
  • Věda a technologie

Komentáře • 142

  • @olsenlid
    @olsenlid Před 8 měsíci +68

    Happy to see you back, Christian! Remember, if you don't have your health, all the money in the world won't matter. Mental health is important. Great to see you taking a step back, reflecting and being open about it, and coming back stronger! Wish you all the best for the future!

  • @zyghom
    @zyghom Před 26 dny

    it is amazing that you spent 20 minutes on explaining rather than 1 minute on showing the commands - much appreciated ;-)

  • @GumShoeNoir
    @GumShoeNoir Před 8 měsíci +6

    Thanks Christian! How topical and timely! I'm glad you're back. I just implemented power monitoring of my servers using HomeAssistant with some Sonoff S31 mini plugs. I can't wait to enhance the UI with a power button. FWIW you can use the Sonoff to switch power but I disable this functionality so that I don't accidently power off a device when I'm blindly exploring wires and by invertedly power off a server without a proper shutdown.

  • @jacobbrown1445
    @jacobbrown1445 Před 8 měsíci +2

    Absolutely great video. Thank you for the in-depth explanation of this at the packet level. I’ve heard of this concept in other videos and now finally understand it fully

  • @Myuuiii
    @Myuuiii Před 8 měsíci +4

    Wake-On-LAN has been great for me for the exact same reason you said, saving power. I go between two houses so being able to turn it off and on without being there is so useful. Look forward to the rest of the video! 💖

  • @sekus
    @sekus Před 8 měsíci

    Welcome back! I am still trying to absorb all of your past videos. You have great content on your channel!

  • @demanuDJ
    @demanuDJ Před 8 měsíci +3

    Happy to have you back on youtube. Keep pushing forward Christian!

  • @lalala987
    @lalala987 Před 8 měsíci +2

    Schön, dass du zurück bist! ❤ bitte geh es gemütlich an, kein Stress. Optimalerweise machst du nur so viel, wie dir spaß macht!

  • @biglipsadboi5475
    @biglipsadboi5475 Před 5 měsíci

    I’ve literally spent a week trying to figure this out and this is the only video that properly explains and teaches, thanks so much

  • @MrJackPL
    @MrJackPL Před 8 měsíci +2

    Home assistant part it is what I was looking for! Thank you! It will reduce my bills.

  • @jonathanchevallier7046
    @jonathanchevallier7046 Před 8 měsíci

    Happy to see you back Christian. Thank you for this video.

  • @AliCaliskan-km5jc
    @AliCaliskan-km5jc Před 8 měsíci

    Nice to see you back! Really missed your awesome content

  • @patrickcasavant1044
    @patrickcasavant1044 Před 8 měsíci

    Hey welcome back to your channel!! :) I hope everything is going well for you! VERY appy to see that you are back! Forget about all others youtuber, all your content is very is absolutely perfect!! You entertain us and help us enormously!! Wish you the best!

  • @iongchihang5828
    @iongchihang5828 Před 8 měsíci +3

    I just wanted to learn how to configure Wake on LAN in Homeassistant, then you uploaded this video🥰🥰

  • @davemeech
    @davemeech Před 8 měsíci

    Welcome back! Awesome seeing a video from you again. The home lab itch is once again real.

  • @marsim4150
    @marsim4150 Před 8 měsíci +1

    really happy to see you back 🙂

  • @deathpie5000
    @deathpie5000 Před 8 měsíci

    I greatly appreciate all of your content ,I'm glad to see you're back. I would love to see more proxmox videos, maybe setting some up for use just like it was a normal desktop being able to CZcams with sound and everything, how to get on board graphics to pass through? Who knows, I love all your videos but when you can I'd love some proxmox :) I watched all the learn Linux TV but I'd still love some from you I think many would :) I know that you're very busy so only if you get time, keep going bud. You are amazing

  • @ChrisValcke
    @ChrisValcke Před 8 měsíci

    glad to see you back! great example of using HA to automate the Homelab

  • @itssoaztek4592
    @itssoaztek4592 Před 8 měsíci

    Excellent. Thank you so much!! The timing couldn't be better.

  • @brodierobson4490
    @brodierobson4490 Před 8 měsíci

    Welcome back! this is exactly what I was looking for to

  • @diazrocks
    @diazrocks Před 8 měsíci

    awesome video man! great to see you back!

  • @romayojr
    @romayojr Před 8 měsíci +3

    i haven’t watched the video yet but welcome back christian!

  • @ZeeKay80
    @ZeeKay80 Před 8 měsíci

    Welcome back!! Missed your videos

  • @vaster1142
    @vaster1142 Před 8 měsíci

    I was so excited when I saw that you uploaded but I guess I'll come back for this when I finally have my server setup

  • @zairahira3447
    @zairahira3447 Před 8 měsíci

    Good to see your video after a long time Christian :)

  • @ash_lab
    @ash_lab Před 8 měsíci

    Happy to see you back Man !!

  • @accesser
    @accesser Před 8 měsíci

    Looking good man, welcome back hope you had a good break

  • @drbyte2009
    @drbyte2009 Před 8 měsíci

    Glad that you are back !!👍

  • @neodzen
    @neodzen Před 8 měsíci

    Glad to see your new video, Christian!

  • @ApexDesignsAU
    @ApexDesignsAU Před 8 měsíci

    Perfect timing! A few power outages have put me offline recently, glad I will be able to remotely boot back up!

  • @A4orce84
    @A4orce84 Před 8 měsíci +4

    Hey Christian - Great video! What do you use to build out your diagrams? I really dig the color scheme and look / feel.
    Keep up the great content, thanks again!

  • @entropy_69
    @entropy_69 Před 8 měsíci +1

    it's good to see you back, I hope you're doing well! :)

  • @jorgegomez374
    @jorgegomez374 Před 8 měsíci

    Glad your back my friend. Take care

  • @vaster1142
    @vaster1142 Před 8 měsíci +1

    Man resumed like he never left ❤❤❤❤

  • @mason8714
    @mason8714 Před 8 měsíci

    welcome back matey! good to see you online :)

  • @lucaannuiti675
    @lucaannuiti675 Před 8 měsíci

    Thank you for continuing sharing knowledge 👍

  • @cserajesh
    @cserajesh Před 8 měsíci

    Happry to see you back :) Good content

  • @mathesonstep
    @mathesonstep Před 8 měsíci

    Great video Welcome back

  • @aminebc8541
    @aminebc8541 Před 8 měsíci

    Welcome back🎉🎉🎉🎉 we missed you, really happy to see you again😊😊😊

  • @aliyektaie9123
    @aliyektaie9123 Před 8 měsíci

    Hi, its a beautiful day to see you back! 🎉 hope you had a good time off 😊

  • @marcelk.4371
    @marcelk.4371 Před 8 měsíci

    Willkommen zurück Christian 😊

  • @Psoewish
    @Psoewish Před 8 měsíci

    This is also really fun to enable on your actual desktop PC and setting up a trigger through say homebridge. Being able to turn my pc on and off whenever is so lovely, I even have it sync with my desk lamp depending on time of day.

  • @plagosus
    @plagosus Před 8 měsíci

    First, welcome back. I am glad that you feel like making videos again and that you enjoy it.
    Second, this is a great topic. Would watch with joy.

  • @lukaswalker2342
    @lukaswalker2342 Před 2 měsíci

    very helpful video love the in-detail explanations

  • @markandrow4010
    @markandrow4010 Před 8 měsíci

    Great tutorial as always, thank you. 👍

  • @mauricetroisville646
    @mauricetroisville646 Před 8 měsíci

    Willkommen zurück ❤ Ich weiß nicht ob du auch Inspiration durch User annimmst, aber ich fände es toll etwas über die Kombination von Teleport über Tailscale (oder auch andere Mesh-Networks) zu erfahren. 😊 Vielleicht hat ja auch ein anderer User hier Erfahrungen damit und hätte Lust mir ein bisschen Wissen weiterzugeben.

  • @davidclark9173
    @davidclark9173 Před 8 měsíci

    welcome back you were missed!

  • @kennethbudts105
    @kennethbudts105 Před 8 měsíci +1

    Static arp entry on your router/fw to cross subnets would work as well. Thanks for the awesome content

  • @ArifKamaruzaman
    @ArifKamaruzaman Před 8 měsíci

    Ey good to see another video.

  • @Mr.White90
    @Mr.White90 Před 7 měsíci

    Hey Christian! It's great to have you back! Keep doing such great videos! One question: What servers are you powering down at night? Are you shutting them down manuall or automatically? Grüße aus Deutschland!

  • @JensAndersson
    @JensAndersson Před 8 měsíci

    Great video, thanks

  • @markloughtonUK
    @markloughtonUK Před 8 měsíci

    Perfect. I'll use it with the Work Day Integration and automate the startup so it doesn't turn on at weekends or holidays. Thanks !

  • @mistakek
    @mistakek Před 7 měsíci

    Thanks. This was rather simple, and pfsense has wake on lan service. Now I don't have to walk across the room to turn on my test system when I want to try something on it. 🤣

  • @nalle475
    @nalle475 Před 8 měsíci

    Welcome back 😊

  • @patrickambrosso
    @patrickambrosso Před 8 měsíci

    Welcome Back Christian!

  • @BGroothedde
    @BGroothedde Před 8 měsíci

    Awesome video. Do you have a video on your terminal configuration? I love the lines before each prompt

  • @ionia-life
    @ionia-life Před 8 měsíci

    Super video!.. Thanks...

  • @eleuteriogarcia1225
    @eleuteriogarcia1225 Před 8 měsíci

    As everyone's saying, I'm happy to see you here again! Willkommen zurück!

  • @JavierPerez-fq2fi
    @JavierPerez-fq2fi Před 8 měsíci

    Welcom back Christian! Remember to take it easy after this time off, there is no hurry 😊

  • @rille47
    @rille47 Před 8 měsíci

    Great video, I do magic packets and also use the lom interfaces eg. dell-idrac hpe-ilo supermicro-ipmi and send wake up and shut-down instructions via ssh and scripts.

  • @IJayJayI
    @IJayJayI Před 8 měsíci

    This is a wonderful video - great instructions. Another alternative is what I do is use govee smart plugs. After powering off pc safetly remotely i shut the power off in the govee app. In the bios of the server pc i make sure that power turns on when power is detected. So when i turn power back on on the govee smart plug my server will auto power on. Just another alternative :)

  • @legendaryz_ch
    @legendaryz_ch Před 8 měsíci +3

    10:36 small addition: the seventh bit of the MAC-address indicates, wether the address is a globally unique address or a generated one:
    bit 0: unique, natural MAC address
    bit 1: generated address
    so for example
    01:23:45:67:89:AB is natural while
    03:23:45:67:89:AB has been created
    ~Tobi

  • @hagner75
    @hagner75 Před 6 měsíci

    Nice guide!
    One difference, at least for me, was that I had to reboot home assistant for it to pick up the entity.

  • @Siyual
    @Siyual Před 20 dny

    Interesting, I'd not heard of HomeAssistant before this video. What I was doing was using a Raspberry Pi Zero with a static IP plugged in via USB to my router. If the router is up, it's up. Then I can VPN into my home network, and terminus into the Pi from my phone to run the WoL script.
    I'll check out home assistant, that looks very useful!

  • @IwishIcanFLighT
    @IwishIcanFLighT Před 8 měsíci +3

    Great video! Wake On Lan is neat, I've used it a lot in the past. But after trying the PiKVM I highly prefer its reliability with remote ATX control, plus all the other benefits of the PiKVM. TBF it might be a bit overkill if it's just to wake up a secondary server from time to time.

    • @sivi151
      @sivi151 Před 8 měsíci +2

      Free vs 300 eur/device does not compare really in the real world

    • @naveentechs
      @naveentechs Před 8 měsíci

      @@sivi151 not if you can make one yourself for less than 100$

  • @NetScalerTrainer
    @NetScalerTrainer Před 8 měsíci +3

    My supermicro servers can be powered on by IPMI commands. No OS changes required. When the server boots, the OS just boots up!

  • @user-hc4lh8cl5z
    @user-hc4lh8cl5z Před 8 měsíci

    Nice Video, will try this night. But I'd like to know whitch Shell you used for the video. I really need this for Linux

  • @BondiBen
    @BondiBen Před 7 měsíci

    Hey, thanks for the great video. I am just curious how jou created the overview at 0:44 is that a special program or something?

  • @pcroom595
    @pcroom595 Před 8 měsíci

    Welcome back!
    What about when you don't have /etc/network/interfaces => There's only folders there if-up.d, etc. and in there wpasupplicant. Also writing the command in there doesn't execute after reboot.

  • @VelislavVarbanov
    @VelislavVarbanov Před 6 měsíci

    ip addr show is fine, but ‘ip a s’ is even better 😂. More so ‘ip a’ as show is the default behavior. A neat thing I learned this week after finally ditching ifconfig.

  • @brianedge6253
    @brianedge6253 Před 8 měsíci

    Love the video Christian! Well, I love all your videos, and have been eagerly waiting for anything new. This is a great topic, and I have been using WoL for years, but never was able to get it work on my Linux Server. Tried your method, and can't do it without sudo, so the /etc/network/interfaces change won't work on reboot. :(
    Anyone on here know the solution? I know this isn't a forum, but if you have an easy answer, I'd appreciate a reply. :)

  • @Chalisque
    @Chalisque Před 8 měsíci

    I love wake on lan. I have some HP microservers for NAS's that don't need to be on that often. I have a Thinkpad (with broken screen) as a server for common stuff. All are woken by wakeonlan and suspended/powered-off via ssh. I have a web interface running on my Pi3 so that I can control it all through a browser (e.g. from my phone).

  • @Jan12700
    @Jan12700 Před 8 měsíci +2

    Is there a better way with the routing? In the company I work we have a software distribution tool (like the microsoft endpoint configuration manager) that also can send WoL packets, but because the tool runs in the server network and the clients are in their own network section the WoL doesn't work directly with it. We use also a VM that is in the Client network to turn on the clients with a WoL tool. It would be nicer if we just could route the packets directly into the client network.

  • @awetisimgaming7473
    @awetisimgaming7473 Před 8 měsíci +1

    This seems like a pretty cool idea, but I'm sort of stumped when I comes to mine I think, I have full disk encryption with LUKS, and I'm not sure if the home assistant could detect the prompt, and maybe remote input a password, but I think that would be necessary for me to implement this fully on my machine. Also preferably not storing the password on the home assistant device since that's part of the beauty of my encrypted disk is you're screwed until you have me there to type it in or something

  • @AntonKrall
    @AntonKrall Před 8 měsíci

    Which terminal / shell are you using on your mac, looks very interesting

  • @michaelhess4825
    @michaelhess4825 Před 8 měsíci +1

    This is a good intro. I would like to point out wol is not used (or shouldn't be) in business/enterprise/carrier networks. Either use remote managed pdu's for physical, or api calls if using virtualization. If you need to use it for bulk updates of clients for example, make sure you have acl's on your switch infrastructure to firewall access from your jump machine only! There are better options, scheduled on/off on the os for example.

    • @jakedrake99
      @jakedrake99 Před 8 měsíci +1

      As a newcomer to enterprise IT, why shouldn't it be used?

    • @michaelhess4825
      @michaelhess4825 Před 8 měsíci +1

      @@jakedrake99 security. Don't want systems turning on when they shouldn't be. Think about relatively insecure dev boxes, cert roots, anything that isn't hardened.

  • @yifeiren8004
    @yifeiren8004 Před 8 měsíci

    Actually, for professional IT, there is HBI that you can use software like MAAS to monitor the server, install system, auto provisioning, etc.

  • @andreas.grundler
    @andreas.grundler Před 8 měsíci

    It would also be great to be able to schedule the startup and shutdown of the servers. I don't know if every BIOS can do that yet.

  • @Alistarwormwood
    @Alistarwormwood Před měsícem +1

    I'm using kubuntu and don't have network/interfaces. Is there somewhere else I can have this script?

  • @Morpheus2515
    @Morpheus2515 Před 7 měsíci

    Love your videos - which app are you using on your phone to use WOL ?

    • @christianlempa
      @christianlempa  Před 7 měsíci +1

      Home Assistant is pretty easy

    • @Morpheus2515
      @Morpheus2515 Před 7 měsíci

      Thanks will try it out later :)@@christianlempa

  • @BurkenProductions
    @BurkenProductions Před 8 měsíci

    What software are you making those network drawings in? Looks cool

  • @TommYFreaK
    @TommYFreaK Před 8 měsíci

    How you manage your Servers in Visual Studio?

  • @Anklav24
    @Anklav24 Před 8 měsíci

    I've noticed that if my proxmox doesn't shut down properly, such as during a power outage, WoL doesn't work before property reboot. Why?

  • @markloughtonUK
    @markloughtonUK Před 8 měsíci

    Anybody know why you have to input the MAC address into the Switch setup and then again into the Button setup ? If you are selecting the switch as part of the button creation process then wont the info already be available to the button ?

  • @MikeOzwood
    @MikeOzwood Před 8 měsíci

    Please don`t forget to talk about the Security Risks behind the WOL over Internet. Normally it's save to use it on the Local Network (in most cases), but especially it's used over internet, it could be a not so harmless risk!!!

  • @johnboyboy919
    @johnboyboy919 Před 3 měsíci

    Make sure when your PC is off you can still see link lights
    If you have 2 mac addresses, try both
    and if that doesn't work try the other one
    and if that doesn't work try the other one

  • @TomBroyer
    @TomBroyer Před 7 měsíci

    What Terminal are you using in Section 4 of the video? looks nice

  • @tld8102
    @tld8102 Před 8 měsíci

    is it safe to leave this feature turned on? what if a device on the network is compromised

  • @psicodelico6
    @psicodelico6 Před 8 měsíci

    Propagate VLAN to Client works?

  • @c0p0n
    @c0p0n Před 8 měsíci +1

    I don't understand why os support would be required to turn on the computer. The os isn't active, since the computer is powered off. What am I missing?

  • @ravipratapmishra7013
    @ravipratapmishra7013 Před 8 měsíci

    Will it work even if server is encrypted(hardisk)?

  • @Stoney_Eagle
    @Stoney_Eagle Před 7 měsíci

    My servers even have shutdown and reboot on LAN 😁
    I have 2 Dell poweredge servers with IDRAC, but they are on 24-7 and I rarely touch them.

  • @christianmayr7953
    @christianmayr7953 Před 8 měsíci

    Take HPE-Server's und u got iLO remote-Managment or Dell AND you could see the booting procedure! It's the most coolest feature to remote control headless your Server's

  • @welovetech7357
    @welovetech7357 Před 8 měsíci

    hi, is it possible for os to detect if it was powered by wol or not,?? i have pc whith dualboot windows/linux and i want to set grub tu run windows on normal boot and linux on wol

    • @welovetech7357
      @welovetech7357 Před 8 měsíci

      second question, you have activated wol at the os level do that change anything to grub ?

  • @Myuuiii
    @Myuuiii Před 8 měsíci

    Lets go

  • @byrd203
    @byrd203 Před 8 měsíci

    I do use windows server in my home lab setup. Yes, I'm been using it from Windows Server 2000 then I went to Server 2003 then Home Server 2003 then Home Server 2011/2008R2/SBS11 SBS11 boot CD from Dell creates the Driver Partion then it installed my Drivers right from Factory then I setup the 20211 System years ago this way then I Went to Synology Nas but still use Server 2022 yes love it yes SBS 2011 is the same platform as home server 2011 same family so funny though no one tells you that but I Knew they Both run 2008R2 so lol worked perfectly installing those drivers manually Locks up the system Dell was weird with that OS

  • @deep_utsav
    @deep_utsav Před 8 měsíci

    Any idea on how I can set it up on ubuntu machine. I can't seem to find the /etc/network/interface file on the system

    • @christianlempa
      @christianlempa  Před 8 měsíci +1

      Yeah, that should be put inside the a yaml config in netplan /etc/netplan/...yaml and then add a "post-up" section under your interface

    • @deep_utsav
      @deep_utsav Před 8 měsíci

      @@christianlempa Thanks I'll try it out

  • @postnick
    @postnick Před 8 měsíci

    I have a small web service on a Rasbery Pi where I can go to click a button to wake up any of my devices.

  • @mmuneebahmed
    @mmuneebahmed Před 7 měsíci +1

    How to WoL to a VM or even a container?

    • @christianlempa
      @christianlempa  Před 7 měsíci

      You don’t need it on a VM or Container, just use remote commands :D

  • @RX_100.0
    @RX_100.0 Před 8 měsíci

    Is it possible to turn on my computer remotely?