snoopy86 Posted June 3, 2015 Share Posted June 3, 2015 Hi, it would be nice if you could configure all network cards and not just default one in the gui. Unraid knows about it because it is shown in the dashboard. In my case i have two but i can configure only one. The other must be set up in the network.cfg Quote Link to comment
theone Posted June 5, 2015 Share Posted June 5, 2015 How do you setup your 2nd network NIC in the network.cfg file? I use a command in the go file: ifconfig eth1 192.168.2.105 netmask 255.255.255.0 up Quote Link to comment
snoopy86 Posted June 7, 2015 Author Share Posted June 7, 2015 I have it like that in the go script: ifconfig eth1 up And in the cfg: # Config information for eth0: USE_DHCP[0]="no" IPADDR[0]="xxx.xxx.xxx.xxx" NETMASK[0]="255.255.255.0" GATEWAY[0]="xxx.xxx.xxx.xxx" DHCP_KEEPRESOLV[0]="no" DNS_SERVER1[0]="xxx.xxx.xxx.xxx" DNS_SERVER2[0]="xxx.xxx.xxx.xxx" DNS_SERVER3[0]="" BONDING[0]="no" BONDING_MODE[0]="1" BRIDGING[0]="no" BRNAME[0]="br0" BRSTP[0]="yes" # Config information for eth1: IPADDR[1]="" NETMASK[1]="" USE_DHCP[1]="yes" DHCP_HOSTNAME[1]="" Quote Link to comment
JorgeB Posted April 27, 2016 Share Posted April 27, 2016 +1 With the support of multichannel included in Samba v4.4 this would be welcome. P.S. using the config above eth1 is up but it does not get a DHCP address. Quote Link to comment
macester Posted April 27, 2016 Share Posted April 27, 2016 The problem is that unraid uses a custom "rc.inet1" script that binds eth0 -> ethX(8?)¨(with bonds and bridges) cant remember excactly since i´m not on unraid now. The second problem is how the GO file since it runs very late, rc.inet1 runs very early(rc/slack standard) then things like libvirtd is started so that messes up bridges,second interfaces etc.. (when they are dependent on the config that comes from the GO file, autostarts of VM for example can take for ever times outs after 3 minutes). Plugin suffers from this asweal since they have no option to start before "rc.inet1"(to push config) (can always make one that loads late and simply does an ugly restart of services and starts vm etc.. but terribly ugly) I acctually made a custom build of unraid with vlan(kernel) support and a custom rc."scripts" to circumvent all this(but not very user friendly) (that is why I use plain ol´ debian however coming back in a hearbeat when this gets fixed(added) in the future) A more simpler sulution would be to add/change all this in the core =P. But the even simpler solution before this gets added is to make a second "GO" file for "advanced users" or "dev plugins" that is called "DEV_GO" and is called early in the "RC" scripts either at the very end of "rc.S" or lets say it´s own rc scripts that is called first "rc.01" This would make it possible to completly change pretty much any config you want(would probably need a pretty hefty statement that this is not supported =P) //mace Quote Link to comment
bonienl Posted April 28, 2016 Share Posted April 28, 2016 Development is currently done to add support for multiple interfaces configuration and support of VLANs (802.1q). This will all be possible from the GUI. Below a picture of one of the supported use cases. Have patience though! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.