#添加一个桥。
/
interface
bridge add name=bridge1 protocol-mode=rstp
#将设备的网口添加到桥。
/
interface
bridge port add
interface
=ether1 bridge=bridge1
/
interface
bridge port add
interface
=ether2 bridge=bridge1
/
interface
bridge port add
interface
=ether3 bridge=bridge1
/
interface
bridge port add
interface
=ether4 bridge=bridge1
/
interface
bridge port add
interface
=wlan1 bridge=bridge1
/
interface
wireless enable wlan1
#启用AP模式。
/
interface
wireless cap set enabled=yes interfaces=wlan1 discovery-interfaces=bridge1 bridge=bridge1