wake on lan 设置

352 views
Skip to first unread message

lyxmoo

unread,
Jul 17, 2011, 11:24:33 AM7/17/11
to Shanghai Linux User Group
某有一主板,设置 wake on MagicPacket 状态下,从他机发wakeonlan mac不能启动,
此时看ethtool intf 状态得:

Supports Wake-on: pumbg
Wake-on: g

某盲目之下,搜得 ethtool -s intf wol pumbg 状态,这次起作用了。查了一下pumbg 分别表示以下含义:

p Wake on phy activity
u Wake on unicast messages
m Wake on multicast messages
b Wake on broadcast messages
a Wake on ARP
g Wake on MagicPacket(tm)

为什么只设置 MagicPacket g 不起作用?而全设置 pumbg 以后,会否因为一些莫名广播包就让机器起了?

Chaos Eternal

unread,
Jul 17, 2011, 11:31:42 AM7/17/11
to sh...@googlegroups.com
我觉得这个问题应该看rp的。。。


2011/7/17 lyxmoo <lyx...@gmail.com>

lyxmoo

unread,
Jul 17, 2011, 12:41:11 PM7/17/11
to Shanghai Linux User Group
看rp, 没道理啊

On Jul 17, 11:31 pm, Chaos Eternal <chaoseter...@shlug.org> wrote:
> 我觉得这个问题应该看rp的。。。

liyaoshi

unread,
Jul 17, 2011, 9:10:59 PM7/17/11
to sh...@googlegroups.com
acpi 配置成 s3 ? 

Yiling Cao (c2h2)

unread,
Jul 17, 2011, 9:42:41 PM7/17/11
to sh...@googlegroups.com
主板默认是不开的,要设置的呀。

2011/7/18 liyaoshi <liya...@gmail.com>

Chaos Eternal

unread,
Jul 17, 2011, 9:52:32 PM7/17/11
to sh...@googlegroups.com
我觉得可能得拿个示波器看看

2011/7/18 liyaoshi <liya...@gmail.com>

liyaoshi

unread,
Jul 17, 2011, 10:31:58 PM7/17/11
to sh...@googlegroups.com
话说,wake on lan ,

以前,pci插槽的那种,多会有根线,好像就是连atx power on 

现在板载的,有那个么?

Chaos Eternal

unread,
Jul 17, 2011, 10:38:24 PM7/17/11
to sh...@googlegroups.com
版载还是要看做工的吧。。。

很久不拆机器了。。上星期把公司发的本子放在家里wol,出门轻松好多阿。

2011/7/18 liyaoshi <liya...@gmail.com>

liyaoshi

unread,
Jul 17, 2011, 10:42:02 PM7/17/11
to sh...@googlegroups.com
你顺大便把账号也放出来,大家一起乐和乐和

Chaos Eternal

unread,
Jul 17, 2011, 11:02:05 PM7/17/11
to sh...@googlegroups.com
帐号 root

2011/7/18 liyaoshi <liya...@gmail.com>

lyxmoo

unread,
Jul 17, 2011, 11:22:31 PM7/17/11
to Shanghai Linux User Group
不要歪楼,本子放着做wol有什么用?

要省电啊,耗电多的机器定点自动关机,用一个省电的他机激活耗电多的机器。

On 7月18日, 上午10时38分, Chaos Eternal <chaoseter...@shlug.org> wrote:
> 版载还是要看做工的吧。。。
>

Chaos Eternal

unread,
Jul 17, 2011, 11:31:28 PM7/17/11
to sh...@googlegroups.com
偶的openwrt负责发wol包,公司发的dell的本子还是很费电的。


2011/7/18 lyxmoo <lyx...@gmail.com>

liyaoshi

unread,
Jul 18, 2011, 12:20:35 AM7/18/11
to sh...@googlegroups.com
你那个机器wol 能不能用ARP包 唤醒?

要是连这个多唤醒不了,那就是设计有问题了

Crane Cai

unread,
Jul 18, 2011, 3:36:09 AM7/18/11
to sh...@googlegroups.com
- set BIOS to enable wake up from PCI / PCIE devices

- nvidia ethernet nic need in S5 (do not do 4sec power off, instead of
normal power off)

- work around default wol is disabled by driver, use "/usr/sbin/ethtool
-s eth0 wol g" to open it in rcS.d/S99wol you created

--
Crane
------------------------------------------------------------------------------
我们必不可停止探索,而一切探索的尽头,就是重回起点,并对起点有首次般的了解。
------------------------------------------------------------------------------

lyxmoo

unread,
Jul 18, 2011, 3:55:38 AM7/18/11
to Shanghai Linux User Group
不晓得啊,我有一个dhcpd在那里,还有ntop那里,还有win机器那里,

我设置了pumbg全了以后,会8会导致arp就唤醒了,会8会广播包就唤醒了?

Chaos Eternal

unread,
Jul 18, 2011, 3:59:50 AM7/18/11
to sh...@googlegroups.com
写个程序try一下?
你现在 ethtool intf 出来 wol那块是啥属性?

2011/7/18 lyxmoo <lyx...@gmail.com>

lyxmoo

unread,
Jul 18, 2011, 4:00:01 AM7/18/11
to Shanghai Linux User Group
看贴不仔细啊, ethtool -s eth0 wol g 不起作用,而设置了 wol pumbg才行

On 7月18日, 下午3时36分, Crane Cai <zm...@pixelworks.com> wrote:
> - set BIOS to enable wake up from PCI / PCIE devices

>
> --
> Crane

Chaos Eternal

unread,
Jul 18, 2011, 4:06:18 AM7/18/11
to sh...@googlegroups.com
少一个都不行?

lyxmoo

unread,
Jul 18, 2011, 4:17:12 AM7/18/11
to Shanghai Linux User Group
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: pumbg
Current message level: 0x00000033 (51)
Link detected: yes

如果:Wake-on: g 不工作。目前设置的pumbg 才能行, 但我觉得标记设置多了。

lyxmoo

unread,
Jul 18, 2011, 4:19:19 AM7/18/11
to Shanghai Linux User Group
你的本子设置了几个标志那里?

On 7月18日, 下午4时06分, Chaos Eternal <chaoseter...@shlug.org> wrote:
> 少一个都不行?

Chaos Eternal

unread,
Jul 18, 2011, 4:19:41 AM7/18/11
to sh...@googlegroups.com
g

2011/7/18 lyxmoo <lyx...@gmail.com>

Crane Cai

unread,
Jul 18, 2011, 4:39:00 AM7/18/11
to sh...@googlegroups.com
On Mon, Jul 18, 2011 at 04:06:18PM +0800, Chaos Eternal wrote:
> 少一个都不行?

我只知道我这样设了后,可以。其他没有什么可以说。

Sherlock

unread,
Jul 30, 2011, 6:03:01 AM7/30/11
to sh...@googlegroups.com
你Y的直连机器测试过WOL好用不?


2011/7/18 lyxmoo <lyx...@gmail.com>

你的本子设置了几个标志那里?

On 7月18日, 下午4时06分, Chaos Eternal <chaoseter...@shlug.org> wrote:
> 少一个都不行?



--
==========
      InitX
==========

lyxmoo

unread,
Jul 30, 2011, 7:12:05 AM7/30/11
to Shanghai Linux User Group

这个发出来的是 ether magic 包,与直连木有关系,

别觉得你咆哮一下就能吓人了。 老张,我BS你一下,你不要见怪哦。

On Jul 30, 6:03 pm, Sherlock <initxje...@gmail.com> wrote:
> 你Y的直连机器测试过WOL好用不?

Sherlock

unread,
Aug 1, 2011, 1:09:49 AM8/1/11
to sh...@googlegroups.com
很多包无法通过SW或者GW转发的。
偶家的linux gw就无法通过PPTP协议。

2011/7/30 lyxmoo <lyx...@gmail.com>



--
==========
      InitX
==========

lyxmoo

unread,
Aug 1, 2011, 1:59:27 AM8/1/11
to Shanghai Linux User Group
老张,你这就是乱举例证明了。WOL 的包可以被SW转发,没问题的。一般来说是ethernet broadcast包。

magic packet is sent on the data link or layer 2 in the OSI model and
broadcast to all NICs using the network broadcast address; it is
typically sent as a UDP datagram to port 7 or 9, or directly over
Ethernet as EtherType 0x0842.

而且偶的机器都已经可以了,只是在Linux下标志位有疑问。

如果第一帖中疑问的莫名广播包就让机器起了,那这个莫名的广播包只能是magic packet. 所以太平。

Magic packet consists of the following parts:

1. 6 Bytes Header which is nothing but 6 bytes of 0xff.
2. 16*6 Bytes Data. To produce data you'll need to repeat remote
computers MAC (Media Access Control) Address 16 times.


On 8月1日, 下午1时09分, Sherlock <initxje...@gmail.com> wrote:
> 很多包无法通过SW或者GW转发的。
> 偶家的linux gw就无法通过PPTP协议。
>

Reply all
Reply to author
Forward
0 new messages