[Voyage-linux] ETH0, ETH1 and ATH0 in the same LAN

Edwin Whitelaw (spam-protected)
Mon Apr 5 20:02:19 HKT 2010


Look at the documentation on bridging.  If you bridge eth0, eth1 & ath0 
you will have a 3 port switch and the IP address will be assigned to br0.

Have your DHCP server listen on "br0"

-----sample config-----
# madwifi-ng WDS Bridge
auto br0
iface br0 inet static
       address 192.168.2.1
       netmask 255.255.255.0
       network 192.168.2.0
       broadcast 192.168.2.255
       bridge_ports eth0 eth1 ath0
       pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
       pre-up iwconfig ath0 essid <your ESSID> channel 2
       post-down wlanconfig ath0 destroy

auto eth2 (your USB WAN interface)
iface eth2 inet [static|dhcp]       (However your WAN interface needs to 
be configured)
.
.
.
.
etc
-----end sample--------

HTH,

Edwin

-----------
Antti Turunen wrote:
> Dear Voyage masters,
>
> I am using Voyage in Alix 6b2 and I am using a USB modem as the WAN port.
>
> I would like configure my router in the basic "home router" style 
> where both of the ethernet ports and the WLAN card transpanently see 
> each other and also provide DHCP service to the clients despite of the 
> port the client connects. NAT'ing to WAN I have already practiced.
>
> Could you please help me and tell what would be the correct way to do 
> this kind of configuration?
>
>
> Thanks in advance,
>
> Anttu
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>   

-- 
<=+=+=+==+=+=+==+=+=+=+=+=+=+=+=>
Edwin Whitelaw, P.E.
New River Valley Unwired, LLC
2200 Lonesome Dove Dr
Christiansburg, VA 24073
540-239-0318





More information about the Voyage-linux mailing list