RouterBoard multiple MiniPCI device naming

Just got a brand new RB433 with two R52n-M cards… Prior connecting the antennas I just wanted to find out which adapter will be designated wlan1 and which one wlan2… Unfortunately neither board’s user manual, this forum or even Google could provide me with an answer.

I can see the MiniPCI slots are named J402 (the one closest to the board), J401 (the one in the middle) and J403 (the one farthest from the board) but I only assume that adapter in J402 will be named wlan2 and the one in J401 will be named wlan1 although I’m not 100% sure. Can anyone confirm?

most precise answer to this - when you have plugged in the cards and booted RouterOS, check mac address on the cards and then you will see what module has what name in the OS. As there are circumstances that will make ordering of the names random.

For example: place 1 module in middle slot and boot up the router and check that interface is there, then in either of free slots place additional module and second module will be wlan2. And even if you swapped places, they would still be named as before.

of course that would work… but usually the devices are named by the slot number they’re plugged in… I assume that in case I insert the first adapter in the lowest slot, boot up the system - the card will be named wlan1… shut it down afterwards, insert the second adapter in the middle slot, boot up the system again - the card in the middle slot will be named wlan2. shut the system down… do a factory default.. and the cards will be named differently…

as expected - reset configuration will wipe remembered port names

Check the ifpci. its always the same at same board.

Nice to use for naming interfaces.. eg:

 :global ifchannel "0"
:if ( [ :pick $product 0 ] = "SL" && [ :pick $product 1 ] = "5424" ) do={ :global ifnames none,Link,Left,Right,Link2,Sone5,Sone6,Sone7; :global ifpci 05:0f.0,05:0d.0,05:09.0,05:0b.0; :global ifband 5,5,5,5,5,5,5,5 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5424-IP54" && ( [ :pick $product 2 ] = "3" || [ :pick $product 2 ] = "4" ) ) do={ :global ifpci 00:05.0,00:0a.0,00:0b.0,00:04.0 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5424-IP54" && [ :pick $product 2 ] = "2" ) do={ :global ifpci 00:05.0,00:0a.0,00:0b.0 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5424-IP54" && [ :pick $product 2 ] = "5" ) do={ :global ifpci 00:12.0,00:14.0,00:13.0 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5424" && [ :pick $product 2 ] = "6" ) do={ :global ifpci 00:12.0,00:14.0,00:13.0 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5424" && [ :pick $product 2 ] = "7" ) do={ :global ifpci 00:12.0,00:14.0,00:13.0 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5424-IP24" && [ :pick $product 2 ] = "1" ) do={ :set ifpci 00:04.0,00:0a.0,00:0b.0; :set ifband 5,2,2; :set :if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "2414-IP24" && [ :pick $product 2 ] = "1" ) do={ :set ifpci 00:11.0,0,0,00:0d.0; :set ifband 2,2,2,2 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5418-IP54" && [ :pick $product 2 ] = "1" ) do={ :set ifpci 00:11.0,0,0,00:0d.0; :set ifband 5,2,2,2 }
:if ( [ :pick $product 0 ] = "PM" && [ :pick $product 1 ] = "5418-IP24" && [ :pick $product 2 ] = "1" ) do={ :set ifpci 00:11.0,0,0,00:0d.0; :set ifband 5,5,5,5 }
:if ( [ :pick $product 0 ] = "PP" && [ :pick $product 1 ] = "5418" && [ :pick $product 2 ] = "4" ) do={ :set ifpci 00:01.0; :set ifpcialt 00:02.0; :set ifband 5 }
:if ( [ :pick $product 0 ] = "PP" && [ :pick $product 1 ] = "5424" && ( [ :pick $product 2 ] = "1" || [ :pick $product 2 ] = "3" || [ :pick $product 2 ] = "4" ) ) do={ :set ifpci 00:05.0 }
:if ( [ :pick $product 0 ] = "PP" && [ :pick $product 1 ] = "5424" && [ :pick $product 2 ] = "1XR" ) do={ :set ifpci 00:01.0 }
:if ( [ :pick $product 0 ] = "PP" && [ :pick $product 1 ] = "5424" && [ :pick $product 2 ] = "5SR" ) do={ :set ifpci 00:0c.0 }
:if ( [ :pick $product 0 ] = "PP" && [ :pick $product 1 ] = "5424" && [ :pick $product 2 ] = "5" ) do={ :global ifpci 00:12.0 }
:if ( [ :pick $product 0 ] = "PP" && [ :pick $product 1 ] = "5424" && [ :pick $product 2 ] = "6" ) do={ :global ifpci 00:12.0 }
:if ( [ :pick $product 0 ] = "PP" && [ :pick $product 1 ] = "5424" && [ :pick $product 2 ] = "7" ) do={ :global ifpci 00:12.0,0,0,00:14.0; :set ifband 5,2,2,2,2,2,2 }
:if ( [ :pick $product 0 ] = "WL" && [ :pick $product 1 ] = "1000" && [ :pick $product 2 ] = "1" ) do={ :set ifpci 00:0e.0,05:00.0,01:00.0; :set ifband 5,2,2 }
:if ( [ :pick $product 0 ] = "PX" && [ :pick $product 1 ] = "2400"  [ :pick $product 2 ] = "1" ) do={ :set ifpci 00:00.0,00:00.0,00:00.0,00:0c.0; :set ifband 2,2,2,2 } 




.................................


/ interface wireless {
	:foreach i in=[ find ] do={ set $i security-profile=default }
	:foreach x in=[ find interface-type=virtual-AP ] do={ remove $x }
	:foreach i in=[ find ] do={
		:local ifn [ :find $ifpci [ info get $i pci-info ] ]
		:local ifa ( $mynetwork + ( $ifnetsize * $ifn ) + 1 )
		:local ifs $ifslink; :local ifb [ :pick 5ghz-turbo,5ghz,5ghz-10mhz,5ghz-5mhz [ :find 40,20,10,5 $ifwlink ] ];
		:if ( [ :tonum [ :pick $ifband $ifn ] ] = 2 ) do={ :set ifs $ifs2ghz; :set ifb [ :pick 2.4ghz-g-turbo,2.4ghz-onlyg,2.4ghz-b/g,2.4ghz-b,2ghz-10mhz,2ghz-5mhz [ :find 40,22,20,21,10,5 $ifw2ghz ] ] }
		:if ( $ifn > 1 && [ :tonum [ :pick $ifband $ifn ] ] = 5 ) do={ :set ifs $ifs5ghz; :set ifb [ :pick 5ghz-turbo,5ghz,5ghz-10mhz,5ghz-5mhz [ :find 40,20,10,5 $ifw5ghz ] ] }
		set $i name=[ :pick $ifnames $ifn ] frequency-mode=superchannel mode=ap-bridge ssid=$ifa radio-name=$ifa area=$ifa band=$ifb frequency=[ :tonum [ :pick [ :toarray $ifs ] 0 ] ] scan-list=$ifs country=[ :pick $country 0 ] security-profile=default hide-ssid=yes default-forwarding=no default-authentication=yes periodic-calibration=enabled preamble-mode=long proprietary-extensions=pre-2.9.25 rate-set=default ack-timeout=dynamic arp=enabled supported-rates-b="" basic-rates-b="" supported-rates-a/g=18Mbps basic-rates-a/g=18Mbps disabled=no
		:if ( $ifn > 1 ) do={ add name=( "u" . [ :pick $ifnames $ifn ] ) master-interface=$i ssid=INSTALL area=$ifa arp=disabled default-forwarding=no proprietary-extensions=pre-2.9.25 hide-ssid=yes security-profile=default disabled=[ get $i disabled ] } else={ set $i disabled=no }
	}