ORBIT-USER: help wanted on running two wireless card and configure_error

Luis R. Rodriguez mcgrof at gmail.com
Thu Feb 22 12:42:32 EST 2007


On 2/21/07, Bin Zan <zanb at eden.rutgers.edu> wrote:
>
>
> Hello all,
>       When I was trying to run the following simulation, I got
> configure_error. Basiclly what I want to test is if I can configure two
> wirless interface card on one node, and another node can communicate with
> one of the card.  After I got this error, I am wondering if there is
> something wrong in my script. After different trial, I found I couldn't
> figure out. Then I went back to run helloworld script after image both nodes
> again. I also get configure_error. Any one know the possible reason? Most of
> all, I want to make sure my script is correct, and the error is becuase of
> some other reasons?
>
> Thanks,
> Bin Zan
>
> BTW, does any node on grid also have more than one wireless card?
>
>
> ++++++++++++++++++++
> imageNodes [1,1..2] baseline-2.0.ndz
>
> ###########################################
> defNodes('sender', [1,1]) {|node|
>   node.prototype("test:proto:sender", {
>    'destinationHost' => '192.168.1.2',
>     'packetSize' => 1024,
>     'rate' => 300,
>     'protocol' => 'udp'
>   })
>   node.net.w0.mode = 'managed'
>   node.net.w0.ip = '192.168.1.1'
>   node.net.w0.essid = 'network1'
> }
>
> defNodes('receiver', [1,2]) {|node|
>   node.prototype("test:proto:receiver" , {
>     'protocol' => 'udp',
>      })
>   node.net.w0.mode = 'master'
>   node.net.w0.ip = '192.168.1.2'
>   node.net.w0.essid = 'network1'
>   node.net.w1.mode = 'master'
>   node.net.w1.ip = '192.168.2.2'
>   node.net.w1.essid = 'network2'
> }
>
> #
> # Now, start the application
> #
> whenAllInstalled() {|node|
>   wait 40
>
>   allNodes.startApplications
>   wait 40
>
>   Experiment.done
> }

The problem was within udev, which builds on hotplug, on the
/etc/udev/rules.d/z25_persistent-net.rules. This saves the current MAC
address with the respective interface name to keep them persistent,
any new interfaces detected with different MAC addresses will get a
higher interface index. What happened was I didn't remove it before
saving the image and thereafter new saving has been done on the image
therefore expanding the interface index even further.
z25_persistent-net.rules is generated by
/etc/udev/persistent-net-generator.rules. To disable persistent udev
network interface naming both of these files need to be removed.

Before saving an image please run:

/misc/src/winlab/baseline/post.sh

Amongst other things this will remove z25_persistent-net.rules,
persistent-net-generator.rules and trims down the image with
unnecessary data. The important aspect is the generator file is no
longer present on our new images so this should be a non-issue moving
forward. I have run the post script on the new and a few old images we
have and trimmed down some space on them even further. Bellow are
reflected the new image sizes:

Image-name              Old-Size        New-Size        Size-saved
baseline-1.0.12.ndz     143MB           130MB           13MB
baseline-2.0.ndz        174MB           159MB           15MB
baseline-2.1.ndz        212MB           193MB           19MB
baseline-dev.ndz        251MB           231MB           20MB

Again, thanks for reporting this Zan. Let me know if you run into any
further issues.

  Luis



More information about the orbit-user mailing list