Community discussions

MikroTik App
 
MrYan
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Sat Feb 27, 2010 6:13 pm

Bridge all ports on hAP AX^2

Sun Dec 10, 2023 7:37 pm

The hAP ax^2 comes with ether1 as a WAN port and ether2-5 as LAN. I wanted to have all 5 ports in the bridge so I went ahead and added ether1 to the bridge. Didn't work, so I rebooted the router - which made no difference.

What did get it working was to make ether1 the first entry in the bridge port configuration section. That requires some faffing around as you can't just move them.

Anyone else tried all ports in the bridge and had a different experience?
Last edited by MrYan on Mon Dec 11, 2023 12:15 pm, edited 1 time in total.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5806
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Bridge all ports on hAP AX^2

Sun Dec 10, 2023 8:20 pm

Interface list.
Move ether 1 from wan to lan.
And then move dhcp client from ether 1 to bridge.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 20440
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Bridge all ports on hAP AX^2

Sun Dec 10, 2023 11:20 pm

I really thing asking about adding stuff to a bridge is the WRONG WAY to think.
Instead
a. identify all user(s)/device(s) / groups of users/devices including the admin
b. identify all the traffic the above users/devices require to accomplish.

Draw a network diagram of the plan, detailing where the mikrotik device fits on a network and where it gets internet from
and what other smart devices or dumb devices it supports behind it.

I ask this because you have provided zero practical information to figure out what you are trying to do and thus have no clue what you need.

Also post config
/export file=anynameyouwish ( minus router serial#, public WANIP information, keys etc... )
 
MrYan
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Sat Feb 27, 2010 6:13 pm

Re: Bridge all ports on hAP AX^2

Mon Dec 11, 2023 10:46 am

My query is to those who have a hAP ax^2 and have tried to bridge all ports.

Non-working configuration was:
Flags: X - DISABLED, I - INACTIVE
Columns: INTERFACE, BRIDGE, HW, PVID, PRIORITY, PATH-COST, INTERNAL-PATH-COST, HORIZON
#   INTERFACE  BRIDGE  HW   PVID  PRIORITY  PATH-COST  INTERNAL-PATH-COST  HORIZON
0   ether2     bridge  yes    31  0x80             10                  10  none   
1 I ether3     bridge  yes     1  0x80             10                  10  none   
2   ether4     bridge  yes     1  0x80             10                  10  none   
3   ether5     bridge  yes     1  0x80             10                  10  none   
4   ether1     bridge  yes    32  0x80             10                  10  none
Whereas working configuration is:
Flags: X - DISABLED, I - INACTIVE
Columns: INTERFACE, BRIDGE, HW, PVID, PRIORITY, PATH-COST, INTERNAL-PATH-COST, HORIZON
#   INTERFACE  BRIDGE  HW   PVID  PRIORITY  PATH-COST  INTERNAL-PATH-COST  HORIZON
0   ether1     bridge  yes    32  0x80             10                  10  none   
1   ether2     bridge  yes    31  0x80             10                  10  none   
2 I ether3     bridge  yes     1  0x80             10                  10  none   
3   ether4     bridge  yes     1  0x80             10                  10  none   
4   ether5     bridge  yes     1  0x80             10                  10  none   
All my other configuration - bridging, IP routing, firewalling, Internet access etc are working. They are configured on VLANs over the bridge so aren't directly related to the bridge ports.

I could see packets tagged with VLAN 32 on the bridge (using /tool/sniffer), but they weren't seen on ether1 - like it wasn't part of the bridge. I'd seen that previously when bringing a port out of disabled state, although that was resolved with a reboot. On this occasion however, that didn't work.

The change that made the difference was the ordering. Hence the question whether others had observed the same behaviour.
Last edited by MrYan on Mon Dec 11, 2023 12:15 pm, edited 1 time in total.
 
holvoetn
Forum Guru
Forum Guru
Posts: 5806
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Bridge all ports on hAP AX^2

Mon Dec 11, 2023 11:16 am

Show config.
The order of ports in bridge setup is (in my experience) irrelevant.
 
MrYan
Member Candidate
Member Candidate
Topic Author
Posts: 161
Joined: Sat Feb 27, 2010 6:13 pm

Re: Bridge all ports on hAP AX^2

Mon Dec 11, 2023 12:12 pm

Relevant configuration below.

Yes, I know there will be comments about the problem being elsewhere and the whole configuration is required but I'll take my chances. Things work, so this is more a case of leaving some information in case others encounter the same problem.
/interface bridge
add admin-mac=XX:XX:XX:XX:XX:XX auto-mac=no dhcp-snooping=yes frame-types=admit-only-vlan-tagged name=bridge priority=0x1000 vlan-filtering=yes
/interface bridge port
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether1 pvid=32 trusted=yes
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether2 pvid=31 trusted=yes
add bridge=bridge interface=ether3
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether4
add bridge=bridge interface=ether5
/interface bridge vlan
add bridge=bridge tagged=bridge untagged=ether3,ether4,ether5 vlan-ids=1
add bridge=bridge tagged=bridge,ether3,ether5 vlan-ids=101
add bridge=bridge tagged=bridge untagged=ether2 vlan-ids=31
add bridge=bridge tagged=bridge untagged=ether1 vlan-ids=32
 
holvoetn
Forum Guru
Forum Guru
Posts: 5806
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Bridge all ports on hAP AX^2

Mon Dec 11, 2023 1:07 pm

Partial config = unable to answer.
How are your interface lists defined and firewall rules using those interface lists ?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 20440
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Bridge all ports on hAP AX^2

Mon Dec 11, 2023 3:10 pm

Why would you want to bridge all ports............... That is not a requirement its an attempt, maybe legit, or maybe wrong, to design a config for some reason.
We care about the reason because the WHOLE CONFIG is often integrated and thus having the complete picture helps point towards development of an efficient and working config.

/export file=anynameyouwish ( minus router serial number, public WANIP information, keys etc.

Network diagram ??

Who is online

Users browsing this forum: almdandi, Bing [Bot] and 33 guests