Menu="NetworkSettings" Title="Interface Rules" Cond="file_exists('/boot/config/network-rules.cfg')" --- $cfg = '/boot/config/network-rules.cfg'; function strip($item) { list($key,$val) = explode('"',$item); return $val; } exec("awk '/NAME=\"eth/{print $4 $8}' $cfg",$rules); exec("grep -Po '^# \K.*' $cfg",$info); $link = []; $i = 0; foreach ($rules as $rule) { list($mac,$eth) = array_map('strip',explode(',',$rule)); $link[$eth]['mac'] = $mac; $link[$eth]['info'] = $info[$i++]; } ksort($link,SORT_NATURAL); ?>
> The interface assignment rules can be changed here and might be necessary to set the preferred interface for managing unRAID - *use with care, usually there is no need to change*. > > **eth0** is the main interface used to manage the unRAID system. The other interfaces are optional and may be used as desired. > Every interface must be uniquely identified by its MAC (hardware) address. > > The interface assignment is stored on the flash device under */config/network-rules.cfg*. This file can be viewed with any editor, but it is recommended to make changes via the webGUI only.