[Voyage-linux] bridge wlan eth [ 0.7.5 ]

(spam-protected) (spam-protected)
Fri Sep 2 03:48:14 HKT 2011


Yes, sure. Works perfectly now!

To be honest my first attempt was to assign an ipv6 address to br0 instead of wlan0. It didn't work. No idea why, probably my interfaces file was dirty or something went wrong restarting the /etc/init.d/networking
A fresh reboot sorted out.

Sincerely, thanks a million

Davide


p.s.

for future search I leave down below configuration files:

On AP side:

/etc/network/interfaces

auto br0
iface br0 inet dhcp
       bridge_ports eth0 wlan0
iface br0 inet6 static
        address fec0::1
        netmask 64
        gateway fec0::1

auto eth0
iface eth0 inet manual

auto wlan0
iface wlan0 inet manual
        hostapd /etc/hostapd/hostapd.wlan0.conf
_____________________________________

/etc/hostapd/hostapd.wlan0.conf

interface=wlan0
bridge=br0
driver=nl80211
hw_mode=g
channel=2
#logger_syslog=-1
#logger_syslog_level=2
#logger_stdout=-1
#logger_stdout_level=2
#debug=4
#dump_file=/tmp/hostapd.dump
#ctrl_interface=/var/run/hostapd
#ctrl_interface_group=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
#eapol_key_index_workaround=0
#eap_server=0
wpa=2
ssid=yournet
wpa_passphrase=yourpass
#wpa_psk=youpass
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
#eapol_version=1
_____________________________________

At host side:

/etc/network/interfaces

auto wlan0
iface wlan0 inet dhcp
       up iwconfig wlan0 essid yournet
       wpa-ssid yournet
       wpa-psk yourpass

iface wlan0 inet6 static
        address fec0::3
        netmask 64
        gateway fec0::1



Cheers

Davide

On 1 Sep 2011, at 17:08, Punky Tse wrote:

> On 1/9/2011 23:59, themrorange at gmail.com wrote:
>> In this way, both the eth0 and the wlan0 are getting the IP address from the same DHCP, isn't it.
> No.  Only br0 will get the DHCP and runs layer 3 (IP).  eth0 and wlan0 are just slaves and provide layer2 features (link and ethernet).
> 
> -- 
> 
> Regards,
> Kim-man "Punky" Tse
> 
> * Open Source Embedded Solutions and Systems
>  - Voyage Linux (http://linux.voyage.hk)
>  - Voyage ONE   (http://linux.voyage.hk/voyage-one)
>  - Voyage MPD   (http://linux.voyage.hk/voyage-mpd)
> * Voyage Store   (http://store.voyage.hk)
> 





More information about the Voyage-linux mailing list