mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2016-05-28, 14:10   #1
wildrabbitt
 
Jul 2014

3·149 Posts
Default WakeOnLan (There must be someone who knows the answer to this.)

Hi,

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

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

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.
wildrabbitt is offline   Reply With Quote
Old 2016-05-28, 16:02   #2
Mark Rose
 
Mark Rose's Avatar
 
"/X\(β€˜-β€˜)/X\"
Jan 2013

37×79 Posts
Default

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

Last fiddled with by Mark Rose on 2016-05-28 at 16:02
Mark Rose is offline   Reply With Quote
Old 2016-05-28, 16:35   #3
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

254358 Posts
Default

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
xilman is offline   Reply With Quote
Old 2016-05-28, 18:46   #4
wildrabbitt
 
Jul 2014

3·149 Posts
Default 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.
wildrabbitt is offline   Reply With Quote
Old 2016-05-28, 19:30   #5
Mark Rose
 
Mark Rose's Avatar
 
"/X\(β€˜-β€˜)/X\"
Jan 2013

37·79 Posts
Default

Quote:
Originally Posted by xilman View Post
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
That won't show the netmask.
Mark Rose is offline   Reply With Quote
Old 2016-05-28, 19:31   #6
Mark Rose
 
Mark Rose's Avatar
 
"/X\(β€˜-β€˜)/X\"
Jan 2013

37×79 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
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.
You need to get networking working first.
Mark Rose is offline   Reply With Quote
Old 2016-05-28, 19:51   #7
wildrabbitt
 
Jul 2014

3·149 Posts
Default

Thanks.

Might it not be working because I DID add that snippet to the interfaces file?
wildrabbitt is offline   Reply With Quote
Old 2016-05-28, 20:02   #8
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

22·7·359 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
Might it not be working because I DID add that snippet to the interfaces file?
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
...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).

Last fiddled with by chalsall on 2016-05-28 at 20:08
chalsall is offline   Reply With Quote
Old 2016-05-28, 22:19   #9
wildrabbitt
 
Jul 2014

3·149 Posts
Default

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?
wildrabbitt is offline   Reply With Quote
Old 2016-05-28, 22:34   #10
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

22×7×359 Posts
Default

Quote:
Originally Posted by wildrabbitt View Post
So can you help me create the entry now?
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?
chalsall is offline   Reply With Quote
Old 2016-05-29, 06:09   #11
wildrabbitt
 
Jul 2014

44710 Posts
Default

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:~$
wildrabbitt is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
If you choose an answer at random Uncwilly Lounge 12 2018-02-14 15:00
Answer in 5 . 4 . 3 . 2 . 1 ..... Uncwilly Puzzles 37 2016-10-19 02:03
mfakto is not running.. please give me a answer diablo5147 GPU Computing 1 2013-12-09 01:47
Manual reservation system obsolete? (Answer: no) thommy Prime Sierpinski Project 5 2006-02-21 16:36
please answer flasholinos Lone Mersenne Hunters 2 2003-06-17 19:08

All times are UTC. The time now is 10:58.


Thu Dec 9 10:58:32 UTC 2021 up 139 days, 5:27, 0 users, load averages: 0.97, 1.05, 1.16

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.