First off, this is for a small corporate situation where we have two buildings separated by a highway and a 20 year old run of multimode fiber between them. The current setup in building 2 is an ancient CentreCOM 24port hub and fiber transceiver. We are wanting to add WiFi in that building so rather than adding an AP to the old equipment, I have ordered this: https://mikrotik.com/product/CRS125-24G-1S-2HnD-IN along with an SFP module. My experience with MikroTik is pretty much limited to equipment in the class of the RB951G-2HnD.
The setup will be that the CRS125 will provide no DHCP server or NAT, basically behaving as a switch and wireless access point only. The server in building one will have the DHCP server. I have done something like this with an RB951G with a configuration similar to this:
#Configuration for no DHCP server, no NAT. Ether1 port (WAN) connects with static address
#Other Ethernet ports and wlan are added to bridge and get DHCP addresses from building 1 DHCP server
/interface bridge
add fast-forward=no name=bridge1
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-g/n disabled=no mode=ap-bridge ssid=\
MikroTik
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk disable-pmkid=yes \
eap-methods="" mode=dynamic-keys supplicant-identity=MikroTik \
wpa-pre-shared-key=password123 wpa2-pre-shared-key=password123
/interface bridge port
add bridge=bridge1 interface=wlan1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
add bridge=bridge1 interface=ether1
/interface list member
add interface=ether1 list=WAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
add interface=wlan1 list=LAN
/ip address
add address=172.16.1.99/24 interface=ether2 network=172.16.1.0
/ip dhcp-client
add dhcp-options=hostname,clientid interface=bridge1
/ip dns
set servers=8.8.8.8
/ip route
add distance=1 gateway=172.16.1.1
My questions are:
1.) Can I configure the SFP port like I did ether1 in the above example?
2.) does bridging work similar to other MT routers where “ether2” is the master on the bridge?
Sorry if these are vague questions. Just trying to get a plan together before the equipment arrives.
You can configure sfp port the same way as ether ports
Bridging as you did it in example config is mostly wrong. The /interface bridge port is fine. The rest of config should not refer to individual ports that are members of bridge, but the bridge itself. That’s true for /ip config and /interface list … and there’s no WAN port in your config, all ports are equal (it doesn’t matter that sfp is connecting towards router). And you don’t need DHCP client, you’re setting static IP address to switch/AP.
mkx, thanks for the info. I thought I would need the DHCP server for the bridge (ethernet ports + wlan) and the router itself is assigned a static IP. What am I missing? Also, how do I avoid listing each port as members of the bridge when I don’t want ether1 on the bridge? Maybe my whole concept is wrong? Thanks,
You mentioned that there’s a DHCP server on the other side of the highway. Since CRS will act as a switch (with addition of AP), all those DHCP requests and assignments will pass between ether ports and SFP just fine.
Why wouldn’t you want to have ether1 member of bridge? All ports listed as bridge members have exactly same functionality … including sfp. And that’s transparently passing ethernet packets between any of ports (with applied inteligence of passing a packet only to the port where receiver is connected).