Community discussions

MikroTik App
 
User avatar
qatar2022
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Mon Aug 24, 2020 11:12 am

hEX PoE RB960PGS as switch

Wed Sep 07, 2022 8:04 am

Dear all
i have MikroTik hEX PoE RB960PGS and i need it to work as switch but each time when i make setup and i need device ip 192.168.8.55 but the device chooses random ip not what i need
is there anything missing i can't figure out the problem

MikroTik hEX PoE RB960PGS connect to MikroTik RB5009=192.168.8.1
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: hEX PoE RB960PGS as switch

Wed Sep 07, 2022 8:30 am

This should be about what are needed as a minimum of config lines to set for it act like a switch.
/interface bridge
add ingress-filtering=no name=bridge vlan-filtering=yes

/interface bridge port
add bridge=bridge ingress-filtering=no interface=ether1
add bridge=bridge ingress-filtering=no interface=ether2
add bridge=bridge ingress-filtering=no interface=ether3
add bridge=bridge ingress-filtering=no interface=ether4
add bridge=bridge ingress-filtering=no interface=ether5
add bridge=bridge ingress-filtering=no interface=wlan1
add bridge=bridge ingress-filtering=no interface=wlan2

/ip address
add address=192.168.8.55/24 interface=bridge network=192.168.8.0

/ip dns
set servers=192.168.8.1

/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=192.168.8.1
Create a bridge.
Assign all ports to the bridge
Set IP address to the bridge
Set DNS
Set Default GW
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11627
Joined: Thu Mar 03, 2016 10:23 pm

Re: hEX PoE RB960PGS as switch

Wed Sep 07, 2022 8:38 am

If you need RB960PGS as simple switch (without any routing, firewall or DHCP functionality), then the easiest path to get there is:
  1. get winbox from download.mikrotik.com
  2. connect to RB960PGS using MAC connectivity. When winbox displays list of detected devices under "Neighbors" tab, click on RB960PGS's MAC address
  3. select System -> Reset Configuration and select "No Default Configuration" and "Do Not Backup". Next click "Reset Configuration"
  4. reconnect to the device (repeat step #2). Remember that configuration is reset, so it'll be default username and password (administrator and blank password) that you have to use to connect.
  5. very probably (I don't remember exacly) you'll be prompted for administrator's password.
    You might be asked for any other settings, don't follow any suggestions you may get from winbox.
  6. under Bridge -> Bridge create new bridge (e.g. named "bridge"). Leave other properties at default.
  7. under Bridge -> Ports add all ports (under Interface selector) to bridge (under Bridge selector). Do it for all ports (ether1-ether5 and sfp1). Leave other properties at their defaults.
  8. under IP -> Addresses set switch's IP address to bridge interface (don't use any of etherX or sfp1 interfaces!). Make sure you set address with correct subnet mask (probably 192.168.8.55/24 is correct).
  9. set up any other settings needed (e.g. default route to be able to fetch ROS updates, DNS settings, NTP client under System -> NTP client, etc.)
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19370
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: hEX PoE RB960PGS as switch

Wed Sep 07, 2022 1:54 pm

viewtopic.php?t=182276

Just ignore the wifi bits.........
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: hEX PoE RB960PGS as switch

Wed Sep 07, 2022 2:18 pm

Dear @qatar2022,

are you going to not reply as usual, as you have already done with the other posts you have opened?

Just for examples:
viewtopic.php?p=877324#p877324
viewtopic.php?p=877598#p877598
viewtopic.php?p=880778#p880778
viewtopic.php?p=881035#p881035
viewtopic.php?p=882771#p882771
viewtopic.php?p=882857#p882857
viewtopic.php?p=919738#p919738
viewtopic.php?p=945637#p945637
viewtopic.php?p=950938#p950938
viewtopic.php?p=952572#p952572

You are really rude: A minimal response, to those who take their time to help you, should be.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12008
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: hEX PoE RB960PGS as switch

Wed Sep 07, 2022 2:30 pm

But returning to OP question,
what RouterOS version you have on RB960PGS?
the device chooses random ip
no, not choice "random" ip, it take one from the DHCP Server pool on main router.

1) Check if you are able to enter inside the config with WinBox using MAC address and not the IP
2) Full reset the RouterBOARD on System / Reset Configuration selecting only "No Default configuration" and "Do Not Backup"
3) After reset paste this script on WinBox terminal:

Place the correct IPs on this script:
/int bridge add name=bri-lan protocol-mode=none admin-mac=[/int ethernet get ether1 mac-address] auto-mac=no
/int bridge port
add bridge=bri-lan interface=ether1
add bridge=bri-lan interface=ether2
add bridge=bri-lan interface=ether3
add bridge=bri-lan interface=ether4
add bridge=bri-lan interface=ether5
add bridge=bri-lan interface=sfp1
/ip address add interface=bri-lan address=192.168.8.55/24
/ip dns set servers=192.168.8.1
/ip route add gateway=192.168.8.1
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: hEX PoE RB960PGS as switch

Wed Sep 07, 2022 3:37 pm

You need to set admin-mac for the bridge. The default setting of auto-mac=yes, will set the mac-address of the bridge to the mac-address of a bridge port interface first to populate after reboot. This makes the bridge mac-address some what random. Setting the admin-mac makes it's mac-address static.

Who is online

Users browsing this forum: Amazon [Bot] and 74 guests