doc:appunti:linux:sa:wakeonlan
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:wakeonlan [2012/06/15 10:54] – [XBMC Remote] niccolo | doc:appunti:linux:sa:wakeonlan [2017/12/27 08:26] (current) – [Su un'altra macchina] niccolo | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
|   * Eseguire '' |   * Eseguire '' | ||
| + | ===== ethtool automatico al boot ===== | ||
| + | |||
| + | Con Debian vi sono almeno due modi per eseguire **ethtool** al bootstrap della macchina. Il sistema più tradizionale è utilizzare l' | ||
| + | |||
| + | < | ||
| + | iface eth0 inet static  | ||
| + |         address 192.168.1..39  | ||
| + |         netmask 255.255.255.0  | ||
| + |         up / | ||
| + | </ | ||
| + | |||
| + | Con versioni recenti del pacchetto **ethtool** vi è uno script che gestisce in automatico l' | ||
| + | |||
| + | < | ||
| + | iface eth0 inet dhcp | ||
| + | ethernet-wol g | ||
| + | </ | ||
| ===== XBMC Remote ===== | ===== XBMC Remote ===== | ||
| Line 19: | Line 36: | ||
| Vedere il bug **[[http:// | Vedere il bug **[[http:// | ||
| + | |||
| + | ===== Wake-on-LAN proxy ===== | ||
| + | |||
| + | **Problema: | ||
| + | |||
| + | **Soluzione: | ||
| + | |||
| + | Supponiamo di avere una GNU/Linux box all' | ||
| + | |||
| + | < | ||
| + | ip neigh change 192.168.3.254 lladdr ff: | ||
| + | ip neigh add    192.168.3.254 lladdr ff: | ||
| + | iptables -t nat -A PREROUTING --protocol udp --dport 9 -j DNAT --to-destination 192.168.3.254 | ||
| + | </ | ||
| + | |||
| + | dove: | ||
| + | |||
| + | * **eth0** è la scheda di rete su cui deve essere inoltrato il pacchetto | ||
| + |   * **192.168.3.254** è un indirizzo IP libero, che viene usato solo per il broadcast. Infatti viene associato in modo manuale e permanente al MAC address **ff: | ||
| + |   * La regola '' | ||
| + | |||
| + | In questo modo sarà sufficiente indirizzare il magick packet verso il proxy (192.168.3.1) indicando però il MAC address effettivo dell' | ||
| + | |||
| + | Vedere la pagina [[http:// | ||
doc/appunti/linux/sa/wakeonlan.1339750488.txt.gz · Last modified:  by niccolo
                
                