Sorry. not been reading here.
a simple config:
AP1
ros code
:global ifwepcode dd3b028168e282034509f7970d795bf6
:global pkg [ :toarray "advanced-tools,ppp,routerboard,security,system,wireless" ]
/system identety set name="AP1"
/ system package {
:foreach p in=$pkg do={ :if ( [ find name=$p ] = "" ) do={ :put "required package missing: $p"; :delay 500ms } };
:foreach p in=[ find ] do={ :if ( [ :typeof [ :find ( $pkg + "routeros-x86" + "routeros-mipsbe" + "routeros-mipsle" + "routeros-ppc" ) [ get $p name ] ] ] = "num" ) do={ enable $p } else={ disable $p } }
:foreach p in=[ find ] do={ :if ( [ :len [ :tostr [ get $p scheduled ] ] ] > 0 ) do={ :put ( "packages scheduled, must reboot" ) } }
}
/ interface wireless security-profiles { :foreach x in=[ find ] do={ :if ( $x != "*0" ) do={ remove $x } }; set default mode=static-keys-required static-key-0=$ifwepcode static-sta-private-key=$ifwepcode static-transmit-key=key-0 group-ciphers="" wpa-pre-shared-key="" wpa2-pre-shared-key="" tls-mode=no-certificates tls-certificate=none static-algo-1=none static-key-1="" authentication-types="" unicast-ciphers="" static-algo-2=none static-key-2="" static-algo-3=none static-key-3="" radius-mac-authentication=no group-key-update=5m; add name=none mode=none }
/ interface bridge {
:foreach x in=[ filter find ] do={ filter remove $x };
:foreach x in=[ port find dynamic=no ] do={ port remove $x };
:foreach x in=[ find ] do={ remove $x }
add name=bridge ageing-time=30m disabled=no
filter add chain=forward mac-protocol=ip ip-protocol=udp dst-address=255.255.255.255/32 comment="[udp], broadcast"
filter add chain=forward action=drop comment=default
:foreach i in=[ .. ethernet find ] do={ port add interface=$i bridge=bridge disabled=no }
:foreach i in=[ .. wireless find ] do={ port add interface=$i bridge=bridge disabled=yes }
}
/interface wireless set 0 ssid=ssid mode=ap-bridge wds-mode=dynamic wds-default-bridge=bridge frequency=5500 frequency-mode=superchannel band=5ghz-onlyn preamble-mode=long default-forwarding=no default-authentication=yes channel-width=20/40mhz-ht-above wireless-protocol=nv2 name=AP1
/ip dhcp-client add interface=bridge disabled=no
AP2
ros code
:global ifwepcode dd3b028168e282034509f7970d795bf6
:global pkg [ :toarray "advanced-tools,ppp,routerboard,security,system,wireless" ]
/system identety set name="AP2"
/ system package {
:foreach p in=$pkg do={ :if ( [ find name=$p ] = "" ) do={ :put "required package missing: $p"; :delay 500ms } };
:foreach p in=[ find ] do={ :if ( [ :typeof [ :find ( $pkg + "routeros-x86" + "routeros-mipsbe" + "routeros-mipsle" + "routeros-ppc" ) [ get $p name ] ] ] = "num" ) do={ enable $p } else={ disable $p } }
:foreach p in=[ find ] do={ :if ( [ :len [ :tostr [ get $p scheduled ] ] ] > 0 ) do={ :put ( "packages scheduled, must reboot" ) } }
}
/ interface wireless security-profiles { :foreach x in=[ find ] do={ :if ( $x != "*0" ) do={ remove $x } }; set default mode=static-keys-required static-key-0=$ifwepcode static-sta-private-key=$ifwepcode static-transmit-key=key-0 group-ciphers="" wpa-pre-shared-key="" wpa2-pre-shared-key="" tls-mode=no-certificates tls-certificate=none static-algo-1=none static-key-1="" authentication-types="" unicast-ciphers="" static-algo-2=none static-key-2="" static-algo-3=none static-key-3="" radius-mac-authentication=no group-key-update=5m; add name=none mode=none }
/ interface bridge {
:foreach x in=[ filter find ] do={ filter remove $x };
:foreach x in=[ port find dynamic=no ] do={ port remove $x };
:foreach x in=[ find ] do={ remove $x }
add name=bridge ageing-time=30m disabled=no
filter add chain=forward mac-protocol=ip ip-protocol=udp dst-address=255.255.255.255/32 comment="[udp], broadcast"
filter add chain=forward action=drop comment=default
:foreach i in=[ .. ethernet find ] do={ port add interface=$i bridge=bridge disabled=no }
:foreach i in=[ .. wireless find ] do={ port add interface=$i bridge=bridge disabled=yes }
}
/interface wireless set 0 ssid=ssid mode=ap-bridge wds-mode=dynamic wds-default-bridge=bridge frequency=5500 frequency-mode=superchannel band=5ghz-onlyn preamble-mode=long default-forwarding=no default-authentication=yes channel-width=20/40mhz-ht-above wireless-protocol=nv2 name=AP1
/ip dhcp-client add interface=bridge disabled=no
This will make your unit a transparent bridge, with filter.
It will get IP from dhcp (i have no clue how you put your ip, pppoe?)
not tested. Try it.
