wlan wifi 以太網 橋接

You need to bridge the interface which is having an IP with the wifi

module. 

1) hostapd -i wlan0 /etc/hostapd.conf -B

2) ifconfig wlan0 up

3) ifconfig eth0 0.0.0.0

4) ifconfig wlan0 0.0.0.0

5) brctl addbr br0

6) brctl addif br0 eth0

7) brctl addif br0 wlan1s0

8) brctl show

9) ifconfig br0 up

10) udhcpc -i br0

 

Test on L4.9.88-2.0.0_ga  kernel.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章