Community discussions

MikroTik App
 
g18c
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 61
Joined: Sat May 26, 2012 11:11 pm

Purpose of using Bridge for CAP

Wed Jul 14, 2021 6:42 pm

I have a CAP connected to CAPsMAN and setup per the wiki, everything is working in tunnel mode.

I would like to know why on the CAP we need to add ether1 into the bridge, can we not just use ether1 (without a bridge) for tunnel mode?

I am planning to convert the CAPsMAN to use VLAN mode, would I need to use a bridge on the CAP in that case?
/interface bridge
add admin-mac=B8:69:F4:D5:23:D3 auto-mac=no comment=defconf name=bridge protocol-mode=none
/interface wireless
# managed by CAPsMAN
set [ find default-name=wlan1 ] antenna-gain=0 band=2ghz-b/g/n channel-width=20/40mhz-XX country=no_country_set distance=indoors frequency=auto frequency-mode=manual-txpower installation=indoor mode=ap-bridge \
    ssid=MikroTik-D523D4 station-roaming=enabled wireless-protocol=802.11
# managed by CAPsMAN
set [ find default-name=wlan2 ] antenna-gain=0 band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX country=no_country_set distance=indoors frequency=auto frequency-mode=manual-txpower installation=indoor mode=\
    ap-bridge ssid=MikroTik-D523D5 station-roaming=enabled wireless-protocol=802.11
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/user group
set full policy=local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,password,web,sniff,sensitive,api,romon,dude,tikapp
/interface bridge port
add bridge=bridge comment=defconf interface=ether1
/ip neighbor discovery-settings
set discover-interface-list=*2000011
/interface wireless cap
# 
set bridge=bridge discovery-interfaces=bridge enabled=yes interfaces=wlan1,wlan2
/ip address
add address=192.168.1.11/24 comment=defconf interface=bridge network=192.168.1.0
/ip dns
set servers=192.168.1.1
/ip route
add distance=1 gateway=192.168.1.1
/system identity
set name=AP-DOWN
/system ntp client
set enabled=yes primary-ntp=192.168.1.1
/system routerboard mode-button
set enabled=yes on-event=dark-mode
/system script
add comment=defconf dont-require-permissions=no name=dark-mode owner=*sys policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="\r\
    \n   :if ([system leds settings get all-leds-off] = \"never\") do={\r\
    \n     /system leds settings set all-leds-off=immediate \r\
    \n   } else={\r\
    \n     /system leds settings set all-leds-off=never \r\
    \n   }\r\
    \n "
Last edited by g18c on Wed Jul 14, 2021 6:46 pm, edited 1 time in total.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11968
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Purpose of using Bridge for CAP

Wed Jul 14, 2021 6:45 pm

Simply because for put tunnel on ether1, you must use... a bridge!
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Purpose of using Bridge for CAP

Wed Jul 14, 2021 9:10 pm

What do you mean by tunnel mode ?

CapsMAN can be either in CapsMAN Forwarding Mode or Local Forwarding Mode...

In case Capsman Forwarding mode is used, the Cap interface will be automatically added to the Capsman's Router Bridge Interface, not on your CAP, so on your Cap you could just use your ether1 without any Bridge...

However, in case you use Local Forwarding Mode, the Cap Interface will be automatically added to the CAP's Bridge interface, so you must use a Bridge here...
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18968
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Purpose of using Bridge for CAP

Fri Jul 16, 2021 5:54 pm

I use capac without capsman, far easier to configure and works well.
I use ether1 as the incoming trunk port for my vlans ( guest wifi, home wifi, iot, wifi and media wifi).
Works great (note the capac gets an IP address on the home/trusted LAN since I dont use a management vlan)
I also setup eth2 as a separate IP address (and if not accessible attach a wire that leads to an accessible location) to enable access to the capac if anything goes funky on the bridge.

Who is online

Users browsing this forum: No registered users and 30 guests