LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-01-2006, 10:26 AM   #1
jakko
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
Broadcast over multiple/specific NIC for wake on lan problem


Hi!

I'm having a problem with wake-on-lan. The configuration is as follows :

One server, two nics.
One nic is for local lan, and the other is connected directly (crossover) to a NAS (there is a reason why the NAS is connected directly to the server, and not the LAN)

The nic for the LAN is eth0 in the range 192.168.0.xxx, the other eth1 on range 192.168.1.xxx. Up to here everything works great, I can connect without issues, so all links work correctly.

The problem however is when I want to wake-on-lan the NAS from the server. I've tried three different programs (the client app delivered with the NAS, a PERL script and a PYTHON script) to do the WOL, but they all fail. When I tcpdump I see that the broadcast is sent only over eth0 and not eth1 as well. This means that the NAS doesn't get to see the magic WOL packet and won't start up.

The broadcast address used in the scripts is 255.255.255.255, and other ones won't work (I've tried 192.168.1.255 as it said in ifconfig).

Is there any way I can specify which interface to choose when broadcasting the magic packet e.g. in Python?
Or do the routing tables have something to do with this?

Thanks!
 
Old 04-02-2006, 05:29 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
You could add a default gw for access to all ipīs (0.0.0.0) to the router table entry for the eth1 nic (give it an higher metric value then the eth0 has).
But in order to make it work you have to take the eth0 down (by ifdown eth0) before you issue the wake-on-lan command after that eth0 can be reactivated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wake on lan upload-3 Linux - Networking 2 06-12-2006 01:00 PM
wake on lan ampena Debian 3 11-16-2005 06:21 AM
Wake on LAN tommyknocker Linux - Networking 4 07-26-2005 01:26 PM
wake on lan?? alaios Linux - Hardware 2 08-10-2004 01:04 PM
Wake-on-LAN dARkHunTEr Linux - Hardware 0 11-04-2003 04:17 PM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration