- Wake on line linux
- Ubuntu Documentation
- Enabling WoL in the BIOS
- Using an Integrated NIC
- Using a Non-Integrated NIC
- Enabling WoL in the NIC
- Determining whether the NIC supports WoL
- Enabling WoL in the NIC
- Testing Wake-On-LAN
- Command-line tools
- GTK+ tool
- Configure other operating systems
- Troubleshooting
- External Links
- How To Wake Up Computers Using Linux Command [ Wake-on-LAN ( WOL ) ] By Sending Magic Packets
- Client Software
- Linux Install etherwake Under Debian / Ubuntu Linux
- Installing a tool to send a Wake-On-LAN “Magic Packet” on RHEL/CentOS Linux
- Installing wakeonlan on macOS Unix
- How Do I Send WOL Magic Packets Under Linux?
- Examples
- How Do I Verify That Remote Linux Server Supports Wake-on-LAN (WOL)?
- How to use the wakeonlan in your backup scripts
- Wake on line linux
Wake on line linux
опять перейдёт в состояние «d» и, если вам нужно, добавьте приведённую выше
команду куда-нибудь в /etc/rc.local.
Это может не работать (или не сработать второй раз), если выполнялся сброс (переинициализации) карты (в том числе — на ноутбуках после «сна»).
Лучше это делать из:
— Ubuntu/Ddebian: /etc/network/interfaces в post-up / pre-down
— AltLinux — в /etc/net/ifaces/ethX/ifup-post
— в других — в соотв. местах, выполняемых _каждый раз_ после инициализации устройства или перед его отключением.
1.4 , Р ( ? ), 12:58, 21/12/2010 [ответить] | + / – |
хочу через интернет. ))) |
1.6 , Alex ( ?? ), 01:17, 27/12/2010 [ответить] | + / – |
> девятый порт, помеченный в /etc/services как discard, что означает то, что > пакет с этого порта отправить не получится Бред, это просто название протокола, RFC863. |
1.7 , sam ( ?? ), 17:23, 29/12/2010 [ответить] | + / – |
Если на компьютере несколько сетевых карт обязательно нужно указать в параметр -i адрес Например, если нужно разбудить комп с адресом 192.168.2.34 в сети 192.168.2.0/24 то можно так и указать например широковещательный адрес сети Источник Ubuntu DocumentationThis page explains how to enable use of Wake-on-LAN (WoL) in systems that have Ubuntu installed. Wake-on-LAN enables users to turn on a computer across a network from another network device. It can be very useful in situations where computers are not all next to each other or there are a lot of machines. WoL works by sending a packet of data called a Magic Packet™ to the target machine. When the packet is received, the target machine’s network device (Network Interface Controller or NIC) wakes-up the rest of the machine. In order to use WoL it must be supported and enabled as necessary in the BIOS, NIC and other network hardware (routers, switches etc). You may also need to configure some software if things don’t work out-of-the-box. Enabling WoL in the BIOSThis section may differ depending on whether or not you have a NIC integrated into your motherboard. Using an Integrated NICTo enable WoL in the BIOS, enter the BIOS setup and look for something called «Wake up on PCI event», «Wake up on LAN» or similar. Change it so that it is enabled. Save your settings and reboot. Using a Non-Integrated NICIf your NIC is not integrated into your motherboard, you will still have to configure your BIOS to allow devices to wake up your computer. Boot your computer and enter the BIOS settings menu. In one of the sub-menus there will hopefully be the option to allow USB and/or PCI devices to wake-up the computer. Enable the setting that is appropriate for your NIC. Save your settings and reboot. PCI NICs sometimes require a cable connection to the power supply in order to stay awake when the computer is off/asleep. Check your manual to see if yours does and install if necessary. Enabling WoL in the NICDetermining whether the NIC supports WoLFirst, determine which NIC will be used, and then check whether it supports the Magic Packet™ using where is the device name of your NIC, e.g. eth0. This command will output some information about your the capabilities of your NIC. If this output contains a line similar to the following: where contains the letter g, the NIC should support the WoL Magic Packet™ method (for the other letters look at man ethtool). Enabling WoL in the NICTo check whether WoL is enabled in the NIC, one could use If contains g and not d, then Magic Packet™ is enabled. However, if does contain d, WoL needs to be enabled by running the following command: On most systems, issuing this command is required after each boot. If the system’s networking is configured via ifupdown, then it is easy to add the line up ethtool -s wol g below the interface’s configuration stanza in /etc/network/interfaces. For example: This will ensure that WoL is enabled in the NIC on each boot. Fore more information see the interfaces manual. Testing Wake-On-LANTest WoL by powering off the system and trying to send it the magic packet using: Command-line toolsGTK+ toolConfigure other operating systemsIf the system dual-boots with other operating systems, they should be configured to also enable or, at least, not disable WoL in the NIC. This is beyond the scope of this document but here’s a starting point for Microsoft’s OS’s. TroubleshootingIf WoL is not working as expected, there are a number of lines of investigation to follow:
WakeOnLan (последним исправлял пользователь g1orgosp 2015-08-31 14:29:10) The material on this wiki is available under a free license, see Copyright / License for details Источник How To Wake Up Computers Using Linux Command [ Wake-on-LAN ( WOL ) ] By Sending Magic PacketsW ake-on-LAN (WOL) is an Ethernet networking standard that allows a server to be turned on by a network message. You need to send ‘magic packets’ to wake-on-lan enabled ethernet adapters and motherboards to switch on the called systems. Make sure you connect the NIC (eth0 or eth1) with the motherboard and enable the BIOS’s WOL function. This is a quick guide to enable WOL under RHEL / Fedora / CentOS / Debian / Ubuntu Linux. Client SoftwareIt would be best if you used software to send WoL ( Wake-on-LAN ) magic packets to the target system. You will find various tools for all modern operating systems, including MS-Windows 8/10, Apple macOS & OS X, all modern Linux distros, FreeBSD, OpenBSD, NetBSD and many smartphones. Linux Install etherwake Under Debian / Ubuntu LinuxWe use the etherwake command to send a Wake-On-LAN “Magic Packet” under Linux operating systems. Type the following apt-get command/apt command to install the same under Debian / Ubuntu Linux desktop: Installing a tool to send a Wake-On-LAN “Magic Packet” on RHEL/CentOS LinuxThere is also Perl script to wake up computers. We can install it as follows on Debian/Ubuntu Linux: Type the following dnf command/yum command on your Fedora/RHEL/CentOS system. For instance: Red Hat Linux and friends users should use the net-tools package, which may be installed by default. The command name is ether-wake.
Join Patreon ➔ Installing wakeonlan on macOS UnixHow Do I Send WOL Magic Packets Under Linux?Type the following command:
ExamplesHere is how to use the limited broadcast address (255.255.255.255): How Do I Verify That Remote Linux Server Supports Wake-on-LAN (WOL)?First, reboot the remote server and go to BIOS > Power Management > “Wake On LAN”. Please turn WoL on. Next, save and close the bios settings. After activating Wake On LAN (WoL) in your BIOS hardware option for the network interface card, it is also necessary to activate it using ethtool. The ethtool command will configure eth0 to respond to the magic packet:
Type the following command to see current status of wol for eth0: If you are using RHEL / SL / Fedora / CentOS Linux, edit /etc/sysconfig/network-scripts/ifcfg-eth0: Save and close the file. If you are using Debian / Ubuntu Linux, edit /etc/network/interfaces: How to use the wakeonlan in your backup scriptsHere is a sample shell script that will wake up my laptop (IP 192.168.2.25 and mac 48:2a:e3:5c:16:bc) from my rsnapshot Linux backup server: Источник Wake on line linuxКак настроить Wake On Lan в Linux-01 Всем привет сегодня расскажу как настроить Wake On Lan в Linux. WakeOnLan (WOL) — это технология позволяющая включить компьютер, методом отправки на него специального пакета данных, называемыми Magic Packet. Принцип работы этой технологии таков, что при выключении компьютера он переходит в дежурный режим и переводит сетевую карту в режим пониженного потребления, просматривая все поступающие пакеты из сети. Если сетевой адаптер обнаружит Magic Packet, он выдаст сигнал на включение компьютера. Примечание: для использования данной технологии необходима поддержка данной функции (технологии) сетевым адаптером, почти все современные сетевые адаптеры поддерживают данную технологию. В данном посте мы рассмотрим настройку данной функции на примере ОС Linux. 1. В первую очередь мы просмотрим список наших сетевых интерфейсов используя утилиту ethtool: В ответ получим список наших используемых сетевых интерфейсов (в моём случае он 1): eth0 Link encap:Ethernet HWaddr 6c:62:6d:f0:ce:b4 Нам необходим интерфейс который имеет доступ к внешней сети (в моём случае eth0). Теперь проверим поддерживает ли сетевой адаптер данную технологию и настроим её используя утилиту ethtool. Устанавливаем её: и запустим её, для просмотра информации о сетевом интерфейсе: В ответ мы получим всю информацию о нашем сетевом интерфейсе: Settings for eth0: Где Supports Wake-on: pg — означает что наш сетевой интерфейс поддерживает технологию Wake On Lan, Wake-on: d — но она отключена. Wake On Lan можно включить вручную 1 командой, но при каждой перезагрузке нашей машины он будет деактивироватся, для этого мы создадим и будем использовать специальный скрипт. Добавляем в скрипт строки: Даём права скрипту: Создаём символическую ссылку и делаем наш скрипт исполняемым: Проверяем что всё нормально вводим команду: Если ничего в ответ не получили, значит всё хорошо и можно проверить на практике. Вот так вот просто настроить Wake On Lan в Linux Источник |