Re: Wake-on-LAN support in FreeBSD?

2009-05-19 Thread Paul Schmehl
--On May 12, 2009 6:33:03 AM -0700 Peter Steele pste...@maxiscale.com 
wrote:


So, based on what I've read here and in my searches, for wake-on-LAN to
work on a given system, the NIC itself has to support this feature, and
in addition the OS has to be able to enable this feature (via the driver
for the NIC). It seems likely that when this appears that a new option
will be provided for the ifconfig command.

Since we're stuck on 7.0, I guess the only option is to implement it
ourselves...



I'm on 7.2 STABLE.  man (8) ifconfig mentions wol, so the capability at 
least exists in 7.2.  In grepping through the device sources, it looks 
like the e1000 driver has wol capabilities enabled as do a couple of 
others.  You may be able to use that code at least to get headway in 
creating drivers, if you can't use those existing drivers.  If you're 
using the e1000 driver already (I believe you mentioned you're running 
Intel NICs), you may be able to use wol out of the box without making any 
changes.  Seems worth testing at least.


Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-14 Thread Peter Steele
I just noticed my 7.2-R i386 PC-Engines ALIX2 board with vr devices show up 
(WOL_UCAST,WOL_MAGIC) in the ifconfig listing. Seems they're making some of 
it available in 7.2-RELEASE 
 
I'll have to test/try this out, I'm glad I'm starting to see it happen. 

Unfortunately we're pretty much stuck on 7.0... 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-13 Thread Ruben de Groot
On Tue, May 12, 2009 at 06:36:31AM -0700, Peter Steele typed:
  FUD, read ifconfig(8) 
 
 There is no mention of wake-on-LAN in the man page for ifconfig in 7.0. I'd 
 be interested in seeing if the 8.0 man page has added anything. 

It has:

 wol, wol_ucast, wol_mcast, wol_magic
 Enable Wake On Lan (WOL) support, if available.  WOL is a facil-
 ity whereby a machine in a low power state may be woken in
 response to a received packet.  There are three types of packets
 that may wake a system: ucast (directed solely to the machine's
 mac address), mcast (directed to a broadcast or multicast
 address), or magic (unicast or multicast frames with a ``magic
 contents'').  Not all devices support WOL, those that do indicate
 the mechanisms they support in their capabilities.  wol is a syn-
 onym for enabling all available WOL mechanisms.  To disable WOL
 use -wol.

Ruben

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-13 Thread Tim Judd
On Wed, May 13, 2009 at 5:47 AM, Ruben de Groot mai...@bzerk.org wrote:

 On Tue, May 12, 2009 at 06:36:31AM -0700, Peter Steele typed:
   FUD, read ifconfig(8)
 
  There is no mention of wake-on-LAN in the man page for ifconfig in 7.0.
 I'd be interested in seeing if the 8.0 man page has added anything.

 It has:

 wol, wol_ucast, wol_mcast, wol_magic
 Enable Wake On Lan (WOL) support, if available.  WOL is a
 facil-
 ity whereby a machine in a low power state may be woken in
 response to a received packet.  There are three types of
 packets
 that may wake a system: ucast (directed solely to the machine's
 mac address), mcast (directed to a broadcast or multicast
 address), or magic (unicast or multicast frames with a ``magic
 contents'').  Not all devices support WOL, those that do
 indicate
 the mechanisms they support in their capabilities.  wol is a
 syn-
 onym for enabling all available WOL mechanisms.  To disable WOL
 use -wol.

 Ruben


I just noticed my 7.2-R i386 PC-Engines ALIX2 board with vr devices show up
(WOL_UCAST,WOL_MAGIC) in the ifconfig listing.  Seems they're making some of
it available in 7.2-RELEASE


I'll have to test/try this out, I'm glad I'm starting to see it happen.


Thought you'd all like to know.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-12 Thread Paul B. Mahol
On 5/12/09, Tim Judd taj...@gmail.com wrote:
 On Mon, May 11, 2009 at 4:18 PM, Peter Steele pste...@maxiscale.com wrote:

 Has anyone successfully used the wake-on-LAN tool wol to wake-up a FreeBSD
 system? If yes, what NICs did you need to use to get this to work?


 Search the archives.  The question of Wake-on-LAN has been around for a
 while.  I typically respond.

 Long story short: Wake-on-LAN requires OS/NIC driver support.  The OS puts
 the NIC in a mode at shutdown that allows Wake-on-LAN to work.  FreeBSD has
 no Wake-on-LAN driver support, hence, no host running FreeBSD has
 Wake-on-LAN capabilities.

FUD, read ifconfig(8)

 I'm shocked that the Intel NICs don't have this support, given that Intel
 provides such excellent documentation and/or drivers for FreeBSD.

 Please search the archives.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



-- 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-12 Thread Peter Steele
Tim, I know nothing about WOL on FreeBSD, but according to the wiki, 
development just started in 8 CURRENT: 
http://wiki.freebsd.org/WakeOnLan 

I came across that same reference. Unfortunately we're stuck on 7.0. I take it 
the point of the wol command that available in the ports collection is that 
it can be used to wake any system that supports wake-on-LAN, and these systems 
can be running any OS. 

So, based on what I've read here and in my searches, for wake-on-LAN to work on 
a given system, the NIC itself has to support this feature, and in addition the 
OS has to be able to enable this feature (via the driver for the NIC). It seems 
likely that when this appears that a new option will be provided for the 
ifconfig command. 

Since we're stuck on 7.0, I guess the only option is to implement it 
ourselves... 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-12 Thread Peter Steele
 FUD, read ifconfig(8) 

There is no mention of wake-on-LAN in the man page for ifconfig in 7.0. I'd be 
interested in seeing if the 8.0 man page has added anything. 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-12 Thread Christian Laursen

Peter Steele wrote:
I came across that same reference. Unfortunately we're stuck on 7.0. I take it the point of the wol command that available in the ports collection is that it can be used to wake any system that supports wake-on-LAN, and these systems can be running any OS. 

So, based on what I've read here and in my searches, for wake-on-LAN to work on a given system, the NIC itself has to support this feature, and in addition the OS has to be able to enable this feature (via the driver for the NIC). It seems likely that when this appears that a new option will be provided for the ifconfig command. 


In some cases (depending on the NIC and the BIOS) WOL works even without 
OS support. It might be worth testing before you do anything else.


--
Christian Laursen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-12 Thread Peter Steele
In some cases (depending on the NIC and the BIOS) WOL works even without 
OS support. It might be worth testing before you do anything else. 

I've tried various experiments with the wol command to try to wake up one of 
our boxes with no luck. We're using the stock nVidia driver. There is also no 
mention of wake-on-LAN in the BIOS, although there is an option for enabling 
wake-on-ring (something different). I've sent an email to our suppliers to see 
what they have to say about wake-on-LAN support for these boxes. We may need a 
BIOS upgrade. 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-12 Thread Peter
 --On May 11, 2009 8:06:41 PM -0600 Tim Judd taj...@gmail.com wrote:

 I've read Google, I've done my research, and know that what I say is the
 last word.  They've exampled how WOL works, and as I said, it's a mode
 the NIC gets set to and then the ACPI shuts the power off.

 Without this mode, the WOL packets get to it, but it doesn't consider
 them magic, and as a result, it will not power on the box.

 There were some examples, but not enough testing/any testing results
 were
 posted online so I assume the poster left it stagnant.


 Tim, I know nothing about WOL on FreeBSD, but according to the wiki,
 development just started in 8 CURRENT:
 http://wiki.freebsd.org/WakeOnLan

 So unless you're running CURRENT, it doesn't look like you're going to
 have any success trying to get it to work.  Even if you have 8 CURRENT,
 you'll still need to figure out if your NIC is supported yet, or write the
 code yourself if you have that capability.

 Paul Schmehl, If it isn't already
 obvious, my opinions are my own
 and not those of my employer.


Been using WOL on -STABLE since 7.0 I believe [not sure]
Currently using WOL on fxp and vr cards [which wiki lists as supported]

/usr/ports/net/wol
 and then:
wol -vi 172.20.6.255 00:30:6e:11:f8:45

this box was both public IP and private IP - If I do a wol broadcast on
255.255.255.255 it will not wake up the other box, plugged into same
switch - but doing broadcast on local subnet wakes it up any ideas?

I do have an nvidia card, if I boot the bios/POST ONLY, and not let it go
into FreeBSD [hard power off at boot prompt], WOL works [via BIOS].  If I
boot up FreeBSD, do graceful shutdown WOL no longer works.

]Peter[

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-12 Thread Fabian Keil
Peter Steele pste...@maxiscale.com wrote:

 Has anyone successfully used the wake-on-LAN tool wol to wake-up a FreeBSD 
 system? If yes, what NICs did you need to use to get this to work? 

Yes, with CURRENT and re(4):
f...@africanqueen ~ $pciconf -lv | grep -A 4 re0
r...@pci0:0:9:0: class=0x02 card=0x816910ec chip=0x816910ec rev=0x10 
hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RTL8110SB Single-Chip Gigabit LOM Ethernet Controller'
class  = network
subclass   = ethernet

Fabian


signature.asc
Description: PGP signature


Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Peter Steele
Has anyone successfully used the wake-on-LAN tool wol to wake-up a FreeBSD 
system? If yes, what NICs did you need to use to get this to work? 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Tim Judd
On Mon, May 11, 2009 at 4:18 PM, Peter Steele pste...@maxiscale.com wrote:

 Has anyone successfully used the wake-on-LAN tool wol to wake-up a FreeBSD
 system? If yes, what NICs did you need to use to get this to work?


Search the archives.  The question of Wake-on-LAN has been around for a
while.  I typically respond.

Long story short: Wake-on-LAN requires OS/NIC driver support.  The OS puts
the NIC in a mode at shutdown that allows Wake-on-LAN to work.  FreeBSD has
no Wake-on-LAN driver support, hence, no host running FreeBSD has
Wake-on-LAN capabilities.

I'm shocked that the Intel NICs don't have this support, given that Intel
provides such excellent documentation and/or drivers for FreeBSD.

Please search the archives.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Peter Steele


 Long story short: Wake-on-LAN requires OS/NIC driver support. The OS puts the 
 NIC in a mode at shutdown that allows Wake-on-LAN to work. FreeBSD has no 
 Wake-on-LAN driver support, hence, no host running FreeBSD has Wake-on-LAN 
 capabilities. 
 
I'm shocked that the Intel NICs don't have this support, given that Intel 
provides such excellent documentation and/or drivers for FreeBSD. 
 
Please search the archives. 

I did do a search before posting and I wasn't very encouraged by what I found. 
You've confirmed my findings, unfortunately. 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Wojciech Puchar

Has anyone successfully used the wake-on-LAN tool wol to wake-up a FreeBSD 
system?


wake on lan works before any OS is started, actually before computer is 
powered up - as it's made to power up computer by LAN

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Wojciech Puchar

Long story short: Wake-on-LAN requires OS/NIC driver support.  The OS puts
the NIC in a mode at shutdown that allows Wake-on-LAN to work.  FreeBSD has

isn't it BIOS option?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Tim Judd
On Mon, May 11, 2009 at 5:05 PM, Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:

  Has anyone successfully used the wake-on-LAN tool wol to wake-up a FreeBSD
 system?


 wake on lan works before any OS is started, actually before computer is
 powered up - as it's made to power up computer by LAN


Like normal, you've completely missed the point.

I will try not to scream at you.

I've read Google, I've done my research, and know that what I say is the
last word.  They've exampled how WOL works, and as I said, it's a mode the
NIC gets set to and then the ACPI shuts the power off.

Without this mode, the WOL packets get to it, but it doesn't consider them
magic, and as a result, it will not power on the box.

There were some examples, but not enough testing/any testing results were
posted online so I assume the poster left it stagnant.

Wojciech - I get so disappointed, you seem to mislead people more than the
rest.  I strongly encourage you to read into the topics BEFORE you post to
the mailing list.


--TJ
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Paul Schmehl

--On May 11, 2009 8:06:41 PM -0600 Tim Judd taj...@gmail.com wrote:


I've read Google, I've done my research, and know that what I say is the
last word.  They've exampled how WOL works, and as I said, it's a mode
the NIC gets set to and then the ACPI shuts the power off.

Without this mode, the WOL packets get to it, but it doesn't consider
them magic, and as a result, it will not power on the box.

There were some examples, but not enough testing/any testing results were
posted online so I assume the poster left it stagnant.



Tim, I know nothing about WOL on FreeBSD, but according to the wiki, 
development just started in 8 CURRENT:

http://wiki.freebsd.org/WakeOnLan

So unless you're running CURRENT, it doesn't look like you're going to 
have any success trying to get it to work.  Even if you have 8 CURRENT, 
you'll still need to figure out if your NIC is supported yet, or write the 
code yourself if you have that capability.


Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Wake-on-LAN support in FreeBSD?

2009-05-11 Thread Tim Judd
On Mon, May 11, 2009 at 8:34 PM, Paul Schmehl pschmehl_li...@tx.rr.comwrote:

 --On May 11, 2009 8:06:41 PM -0600 Tim Judd taj...@gmail.com wrote:


 I've read Google, I've done my research, and know that what I say is the
 last word.  They've exampled how WOL works, and as I said, it's a mode
 the NIC gets set to and then the ACPI shuts the power off.

 Without this mode, the WOL packets get to it, but it doesn't consider
 them magic, and as a result, it will not power on the box.

 There were some examples, but not enough testing/any testing results were
 posted online so I assume the poster left it stagnant.


 Tim, I know nothing about WOL on FreeBSD, but according to the wiki,
 development just started in 8 CURRENT:
 http://wiki.freebsd.org/WakeOnLan

 So unless you're running CURRENT, it doesn't look like you're going to have
 any success trying to get it to work.  Even if you have 8 CURRENT, you'll
 still need to figure out if your NIC is supported yet, or write the code
 yourself if you have that capability.

 Paul Schmehl, If it isn't already
 obvious, my opinions are my own
 and not those of my employer.
 **
 WARNING: Check the headers before replying



Paul,

That's excellent news, and I will remember this as something to look forward
to.  Seems to be a very important thing to many people and I'm glad we're
moving that way.


Thank you, Paul for the update.


--TJ
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org