Turn on your Server from anywhere!

Ғылым және технология

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.

Пікірлер: 143

  • @olsenlid
    @olsenlid9 ай бұрын

    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
    @zyghom2 ай бұрын

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

  • @Myuuiii
    @Myuuiii9 ай бұрын

    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! 💖

  • @GumShoeNoir
    @GumShoeNoir9 ай бұрын

    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.

  • @sekus
    @sekus9 ай бұрын

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

  • @jacobbrown1445
    @jacobbrown14459 ай бұрын

    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

  • @demanuDJ
    @demanuDJ9 ай бұрын

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

  • @lalala987
    @lalala9879 ай бұрын

    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!

  • @jonathanchevallier7046
    @jonathanchevallier70469 ай бұрын

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

  • @biglipsadboi5475
    @biglipsadboi54756 ай бұрын

    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

  • @christianlempa

    @christianlempa

    6 ай бұрын

    Thank you! I'm glad it helped you :)

  • @AliCaliskan-km5jc
    @AliCaliskan-km5jc9 ай бұрын

    Nice to see you back! Really missed your awesome content

  • @davemeech
    @davemeech9 ай бұрын

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

  • @ChrisValcke
    @ChrisValcke9 ай бұрын

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

  • @marsim4150
    @marsim41509 ай бұрын

    really happy to see you back 🙂

  • @MrJackPL
    @MrJackPL9 ай бұрын

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

  • @vaster1142
    @vaster11429 ай бұрын

    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

  • @diazrocks
    @diazrocks9 ай бұрын

    awesome video man! great to see you back!

  • @deathpie5000
    @deathpie50009 ай бұрын

    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 KZread 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

  • @patrickcasavant1044
    @patrickcasavant10449 ай бұрын

    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!

  • @ash_lab
    @ash_lab9 ай бұрын

    Happy to see you back Man !!

  • @itssoaztek4592
    @itssoaztek45929 ай бұрын

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

  • @ZeeKay80
    @ZeeKay809 ай бұрын

    Welcome back!! Missed your videos

  • @iongchihang5828
    @iongchihang58289 ай бұрын

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

  • @christianlempa

    @christianlempa

    9 ай бұрын

    Haha awesome timing bro 👊

  • @brodierobson4490
    @brodierobson44909 ай бұрын

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

  • @zairahira3447
    @zairahira34479 ай бұрын

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

  • @romayojr
    @romayojr9 ай бұрын

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

  • @drbyte2009
    @drbyte20099 ай бұрын

    Glad that you are back !!👍

  • @entropy_69
    @entropy_699 ай бұрын

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

  • @vaster1142
    @vaster11429 ай бұрын

    Man resumed like he never left ❤❤❤❤

  • @jorgegomez374
    @jorgegomez3749 ай бұрын

    Glad your back my friend. Take care

  • @neodzen
    @neodzen9 ай бұрын

    Glad to see your new video, Christian!

  • @ApexDesignsAU
    @ApexDesignsAU9 ай бұрын

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

  • @cserajesh
    @cserajesh9 ай бұрын

    Happry to see you back :) Good content

  • @Myektaie
    @Myektaie9 ай бұрын

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

  • @mason8714
    @mason87149 ай бұрын

    welcome back matey! good to see you online :)

  • @mathesonstep
    @mathesonstep9 ай бұрын

    Great video Welcome back

  • @aminebc8541
    @aminebc85419 ай бұрын

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

  • @lucaannuiti675
    @lucaannuiti6759 ай бұрын

    Thank you for continuing sharing knowledge 👍

  • @Psoewish
    @Psoewish9 ай бұрын

    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.

  • @accesser
    @accesser9 ай бұрын

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

  • @davidclark9173
    @davidclark91739 ай бұрын

    welcome back you were missed!

  • @markandrow4010
    @markandrow40109 ай бұрын

    Great tutorial as always, thank you. 👍

  • @plagosus
    @plagosus9 ай бұрын

    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
    @lukaswalker23423 ай бұрын

    very helpful video love the in-detail explanations

  • @christianlempa

    @christianlempa

    3 ай бұрын

    Glad it was helpful!

  • @A4orce84
    @A4orce849 ай бұрын

    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!

  • @mauricetroisville646
    @mauricetroisville6469 ай бұрын

    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.

  • @eleuteriogarcia1225
    @eleuteriogarcia12259 ай бұрын

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

  • @patrickambrosso
    @patrickambrosso9 ай бұрын

    Welcome Back Christian!

  • @marcelk.4371
    @marcelk.43719 ай бұрын

    Willkommen zurück Christian 😊

  • @JavierPerez-fq2fi
    @JavierPerez-fq2fi9 ай бұрын

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

  • @nalle475
    @nalle4759 ай бұрын

    Welcome back 😊

  • @JensAndersson
    @JensAndersson9 ай бұрын

    Great video, thanks

  • @kennethbudts105
    @kennethbudts1059 ай бұрын

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

  • @ionia-life
    @ionia-life9 ай бұрын

    Super video!.. Thanks...

  • @markloughtonUK
    @markloughtonUK9 ай бұрын

    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 !

  • @ArifKamaruzaman
    @ArifKamaruzaman9 ай бұрын

    Ey good to see another video.

  • @mistakek
    @mistakek9 ай бұрын

    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. 🤣

  • @Mr.White90
    @Mr.White909 ай бұрын

    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!

  • @BGroothedde
    @BGroothedde9 ай бұрын

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

  • @IJayJayI
    @IJayJayI9 ай бұрын

    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 :)

  • @hagner75
    @hagner758 ай бұрын

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

  • @rille47
    @rille479 ай бұрын

    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.

  • @legendaryz_ch
    @legendaryz_ch9 ай бұрын

    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

  • @Siyual
    @Siyual2 ай бұрын

    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!

  • @NetScalerTrainer
    @NetScalerTrainer9 ай бұрын

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

  • @IwishIcanFLighT
    @IwishIcanFLighT9 ай бұрын

    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

    9 ай бұрын

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

  • @naveentechs

    @naveentechs

    9 ай бұрын

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

  • @brianedge6253
    @brianedge62539 ай бұрын

    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. :)

  • @user-hc4lh8cl5z
    @user-hc4lh8cl5z9 ай бұрын

    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

  • @Chalisque
    @Chalisque9 ай бұрын

    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).

  • @michaelhess4825
    @michaelhess48259 ай бұрын

    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

    9 ай бұрын

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

  • @michaelhess4825

    @michaelhess4825

    9 ай бұрын

    @@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.

  • @VelislavVarbanov
    @VelislavVarbanov8 ай бұрын

    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.

  • @pcroom595
    @pcroom5959 ай бұрын

    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.

  • @BondiBen
    @BondiBen9 ай бұрын

    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?

  • @awetisimgaming7473
    @awetisimgaming74739 ай бұрын

    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

  • @andreas.grundler
    @andreas.grundler9 ай бұрын

    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.

  • @yifeiren8004
    @yifeiren80049 ай бұрын

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

  • @AntonKrall
    @AntonKrall9 ай бұрын

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

  • @Jan12700
    @Jan127009 ай бұрын

    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.

  • @Morpheus2515
    @Morpheus25158 ай бұрын

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

  • @christianlempa

    @christianlempa

    8 ай бұрын

    Home Assistant is pretty easy

  • @Morpheus2515

    @Morpheus2515

    8 ай бұрын

    Thanks will try it out later :)@@christianlempa

  • @willraya1791
    @willraya1791Ай бұрын

    i will probably be setting this up oce i get home for some readon my server went down randomly and im away from it 😢

  • @TommYFreaK
    @TommYFreaK9 ай бұрын

    How you manage your Servers in Visual Studio?

  • @Alistarwormwood
    @Alistarwormwood3 ай бұрын

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

  • @markloughtonUK
    @markloughtonUK9 ай бұрын

    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 ?

  • @BurkenProductions
    @BurkenProductions9 ай бұрын

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

  • @christianlempa

    @christianlempa

    9 ай бұрын

    Apple Keynote :D

  • @0zzy0zwood
    @0zzy0zwood9 ай бұрын

    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!!!

  • @psicodelico6
    @psicodelico69 ай бұрын

    Propagate VLAN to Client works?

  • @johnboyboy919
    @johnboyboy9194 ай бұрын

    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

  • @Anklav24
    @Anklav249 ай бұрын

    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?

  • @Myuuiii
    @Myuuiii9 ай бұрын

    Lets go

  • @ravipratapmishra7013
    @ravipratapmishra70139 ай бұрын

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

  • @tld8102
    @tld81029 ай бұрын

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

  • @Stoney_Eagle
    @Stoney_Eagle9 ай бұрын

    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.

  • @TomBroyer
    @TomBroyer8 ай бұрын

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

  • @christianlempa

    @christianlempa

    8 ай бұрын

    Warp

  • @christianmayr7953
    @christianmayr79539 ай бұрын

    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
    @welovetech73579 ай бұрын

    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

    9 ай бұрын

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

  • @postnick
    @postnick9 ай бұрын

    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.

  • @c0p0n
    @c0p0n9 ай бұрын

    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?

  • @RX_100.0
    @RX_100.09 ай бұрын

    Is it possible to turn on my computer remotely?

  • @deep_utsav
    @deep_utsav9 ай бұрын

    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

    9 ай бұрын

    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

    9 ай бұрын

    @@christianlempa Thanks I'll try it out

  • @byrd203
    @byrd2039 ай бұрын

    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

Келесі