<html>
<body>
Hi Andrew,<br><br>
no problem here it is. I just read Punky message and I'm going to read
the doc link because I think there is a more elegnt way to do it. Anyway
herefollowing the two scripts:<br>
--------------------------------------------------------------------<br>
/etc/network/interfaces:<br>
--------------------------------------------------------------------<br>
<font face="Courier New, Courier"># Used by ifup(8) and ifdown(8). See
the interfaces(5) manpage or<br>
# /usr/share/doc/ifupdown/examples for more information.<br><br>
auto lo<br>
iface lo inet loopback<br><br>
auto eth0<br>
iface eth0 inet static<br>
<x-tab> </x-tab>address
0.0.0.0<br>
<x-tab> </x-tab>netmask
0.0.0.0<br>
<x-tab> </x-tab>broadcast
0.0.0.0<br>
<x-tab> </x-tab>network
0.0.0.0<br><br>
</font>-------------------------------------------------------------<br>
/etc/init.d/wireless<br>
------------------------------------------------------------<br>
<font face="Courier New, Courier">#! /bin/sh<br>
#<br>
# This script starts the atheros wireless cards and execute<br>
# "iwconfig" for wireless configuration and bridge
command.<br>
#<br>
# Version:<x-tab> </x-tab>@(#)WIFI for
Atheros 01-July-2005 author (me)<br>
#<br><br>
# iwpriv wlan0 mode 3<br>
iwpriv mode 3<br>
iwconfig ath0 mode master<br>
iwconfig ath0 essid WHATEVER<br>
iwconfig ath0 enc off<br>
iwconfig ath0 rate auto<br>
# iwconfig txpower auto<br>
iwconfig ath0 channel 1 <br>
ifconfig ath0 0.0.0.0 up<br><br>
# iwconfig ath1 mode master<br>
# iwconfig ath1 essid WAP-A<br>
# iwconfig ath1 enc off<br>
# iwconfig ath1 rate auto<br>
# ifconfig ath1 0.0.0.0 up<br><br>
brctl addbr br0<br>
brctl addif br0 eth0<br>
brctl addif br0 ath0<br>
# ifconfig eth0 up # if it's not already up by network script in
/ETC/NETWORK/INTERFACES<br>
ifconfig br0 192.168.1.200 # i.e. give an IP address for SSH is useful
;-)<br>
ifconfig br0 up<br>
-------------------------------------------------------<br>
Putting all the commands in the "interfaces" script did not
work for me.<br>
Well, it works fine now, the bridge is up and you can ping and SSH to it.
If I come up with something more elegant (thanks to Punky doc) I will
post here.<br>
cheers<br>
Giorgio<br><br>
<br>
</font><blockquote type=cite class=cite cite="">Would you share you
scripts with me? I seem to still be getting errors.<br><br>
Thanks,<br>
_<br>
/-\ ndrew<br><br>
On Fri, 2005-08-26 at 07:28 +1100, Giorgio Ducci wrote:<br>
> Hi ANdrew,<br>
> <br>
> I had the same problem as you. I do not know why but apparently in
<br>
> debian/voyage you cannot configure a bridge at the same as
interfaces in <br>
> the same script ::p<br>
> What I made it is a separate script the /etc/init
directory with a <br>
> symlink in rc2.s to start at boot after all other scripts. it's a
trick not <br>
> very clean, I know but in this way it works fine. I am not an expert
so I <br>
> just workaround that. If you have only one bridge in the network it
is <br>
> useful to turn off Spanning Tree with ==> brctl stp br0
off.<br>
> By the way, could you please explain to me how did you solve the
problem of <br>
> FC4 and voyage install? I did not so ....<br>
> Cheers<br>
> Giorgio<br>
> <br>
> >I am having some trouble building a bridge with
voyage-0.2pre1.<br>
> ><br>
> >Here is my /etc/network/interfaces file:<br>
> ><br>
> ># Used by ifup(8) and ifdown(8). See the interfaces(5) manpage
or<br>
> ># /usr/share/doc/ifupdown/examples for more information.<br>
> >auto lo<br>
> >iface lo inet loopback<br>
> ><br>
> >iface br0 inet static<br>
> > address 192.168.254.20<br>
> > netmask 255.255.255.0<br>
> > broadcast 192.168.254.255<br>
> ><br>
> >iwconfig wlan0 essid testing mode master<br>
> >ifconfig wlan0 0.0.0.0 up<br>
> >ifconfig eth0 0.0.0.0 up<br>
> ><br>
> >brctl addbr br0<br>
> >brctl addif br0 eth0<br>
> >brctl addif br0 wlan0<br>
> >ifconfig br0 up<br>
> ><br>
> ><br>
> >When I issue a /etc/init.d/networking restart command I get this
error:<br>
> ><br>
> >Setting up IP spoofing protection: rp_filter.<br>
> >Enabling packet forwarding...done.<br>
> >Reconfiguring network interfaces.../etc/network/interfaces:13:
duplicate<br>
> >option<br>
> >ifdown: couldn't read interfaces file
"/etc/network/interfaces"<br>
> >/etc/network/interfaces:13: duplicate option<br>
> >ifup: couldn't read interfaces file
"/etc/network/interfaces"<br>
> >done.<br>
> ><br>
> >Any ideas on how to make my interfaces file work?<br>
> ><br>
> ><br>
> >_______________________________________________<br>
> >Voyage-linux mailing list<br>
> >Voyage-linux@list.voyage.hk<br>
>
><a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" eudora="autourl">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
> <br>
> <br>
> </blockquote></body>
</html>