mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   WakeOnLan (There must be someone who knows the answer to this.) (https://www.mersenneforum.org/showthread.php?t=21342)

wildrabbitt 2016-05-28 14:10

WakeOnLan (There must be someone who knows the answer to this.)
 
Hi,

I've used this page : [URL]https://help.ubuntu.com/community/WakeOnLan[/URL]

and I've got as far as the part where I'm told to edit the interfaces file

[QUOTE]
shahar@shahar-backup:~$ cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.0.0.1 netmask 255.255.255.0 gateway 10.0.0.138 up ethtool -s eth0 wol g

[/QUOTE]


What I need to know is whether or not I'm meant to enter the numbers written in for address, netmask and gateway as they are above or use ones specific to my computer.

Please help.

Mark Rose 2016-05-28 16:02

They will be specific to your network. If you type in this command we can help you create the entry in /etc/network/interfaces:

ip route show
ip address show

xilman 2016-05-28 16:35

have
have you
have you heard
have you heard the
have you heard the one
have you heard the one about
have you heard the one about traceroute

wildrabbitt 2016-05-28 18:46

done it
 
illiam@william-desktop:~$ ip route show
william@william-desktop:~$ ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:e0:4c:e9:96:a7 brd ff:ff:ff:ff:ff:ff
william@william-desktop:~$ ^C
william@william-desktop:~$ ^C
william@william-desktop:~$




When I booted up this time, the ubuntu screen said

"Booting without full network configuration."

Not sure what the consequences of that are in terms of how far I'm going to get with using wakeonlan.

Mark Rose 2016-05-28 19:30

[QUOTE=xilman;435016]have
have you
have you heard
have you heard the
have you heard the one
have you heard the one about
have you heard the one about traceroute[/QUOTE]

That won't show the netmask.

Mark Rose 2016-05-28 19:31

[QUOTE=wildrabbitt;435025]illiam@william-desktop:~$ ip route show
william@william-desktop:~$ ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:e0:4c:e9:96:a7 brd ff:ff:ff:ff:ff:ff
william@william-desktop:~$ ^C
william@william-desktop:~$ ^C
william@william-desktop:~$




When I booted up this time, the ubuntu screen said

"Booting without full network configuration."

Not sure what the consequences of that are in terms of how far I'm going to get with using wakeonlan.[/QUOTE]

You need to get networking working first.

wildrabbitt 2016-05-28 19:51

Thanks.

Might it not be working because I DID add that snippet to the interfaces file?

chalsall 2016-05-28 20:02

[QUOTE=wildrabbitt;435028]Might it not be working because I DID add that snippet to the interfaces file?[/QUOTE]

Possibly. Try removing the created interfaces file, and reboot. Do you have network connectivity? Then run "ethtool eth0 | grep Wake" as root. If you see something like:[code] Supports Wake-on: g
Wake-on: g[/code]
...then you shouldn't need the interfaces file.

I use WoL all the time, but under CentOS. Works great!

Edit: From the machine you are trying to wake up the remote machine from, you can issue the "arp -n" command (root or unprivileged) to get the MAC address of the remote machine. If you don't see it, ping it and the run the arp command again. Note, of course, that both machines must be on the same LAN (or, at least, can communicate via ICMP).

wildrabbitt 2016-05-28 22:19

Okay. I took those lines out of interfaces and rebooted and there were no messages about network configuration issues.

I reran those commands and got this :




illiam@william-desktop:~$
william@william-desktop:~$ ip route show
default via 192.168.1.254 dev eth0 proto static
169.254.0.0/16 dev eth0 scope link metric 1000
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.70 metric 1
william@william-desktop:~$ ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:e0:4c:e9:96:a7 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.70/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::2e0:4cff:fee9:96a7/64 scope link
valid_lft forever preferred_lft forever
william@william-desktop:~$


So can you help me create the entry now?

chalsall 2016-05-28 22:34

[QUOTE=wildrabbitt;435031]So can you help me create the entry now?[/QUOTE]

What does "ethtool eth0 | grep Wake" as root say?

There's a good chance you don't need to create an interfaces file. The above will tell you this.

Separately, from the machine you wish to wake up this machine, do you see this remote machine's MAC?

wildrabbitt 2016-05-29 06:09

This is what I get when I run arp -n :


william@william-GA-78LMT-USB3:~$ arp -n
Address HWtype HWaddress Flags Mask Iface
192.168.1.254 ether c4:ea:1d:b0:a9:58 C enp3s0
192.168.1.67 ether 74:d4:35:5e:a6:18 C enp3s0
william@william-GA-78LMT-USB3:~$


All times are UTC. The time now is 22:24.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.