Hello everyone,
Due to design issues we must use ports 1 and 2 on a CRS125-24G-1S for client connectivity. However, there are a few ports left unused, to which we could assign the master and gateway ports. Even though I was only asked to have a go at configuring switches a coupe of weeks back, I had a go at making a script that does the basics, but as I was trying to do some modifications to it and getting deeper into the system, I found that there might be other implications to my changes (i.e. interface specific settings ).
See bellow my quick script that I was hopping to do the job.
:local mastermac [/interface get ether22-slave-local mac-address];
:foreach i in=[/interface find] do={
/interface ethernet set $i master-port=none
};
/interface ethernet set ether1-gateway name=ether1-slave-local;
/interface ethernet set ether2-master-local name=ether2-slave-local;
/interface ethernet set ether21-slave-local name=ether21-gateway;
/interface ethernet set ether22-slave-local name=ether22-master-local;
/interface bridge port remove numbers=1;
/interface bridge port remove numbers=0;
/interface bridge port add bridge=bridge-local interface=ether22-master-local;
/interface bridge port add bridge=bridge-local interface=wlan1;
/interface bridge set bridge-local admin-mac=$mastermac;
:for i from=0 to=19 do={ /interface ethernet set $i master-port=ether22-master-local};
:for i from=22 to=24 do={ /interface ethernet set $i master-port=ether22-master-local };
Is there a safe way to assign other ports to master and gateway? Could I assign the SFP port to master?