May 8, 200818 yr I want to setup 2 independent network with different subnet (i.e. 192.168.1.x and 192.168.2.x) but machines on both network can access unraid server at the same time. Is it something doable or not? I know if it's a windows box, I can have 2 networks card installed and everything will works fine. But pretty sure unraid only recognize 1 network card.
May 8, 200818 yr That's all it officially supports, but you should be able to manually configure the second NIC. When you get the command right, just put it in your go script so it'll do it automatically whenever your server boots up.
May 8, 200818 yr There's a way around this but it's a hack if you don;t want to set the IP's manually. You have to modify the /etc/rc.d/rc.inet1.conf before emhttp is fired off. Here's the part of the file that needs to change. Notice how part is commented out, that's where it's defined from the external source (web config) # Config information for eth0: # tmm - Read settings from config file: fromdos </boot/config/network.cfg >/var/tmp/network.cfg source /var/tmp/network.cfg DHCP_HOSTNAME[0]="hostname" #IPADDR[0]="" #NETMASK[0]="" #USE_DHCP[0]="yes" #DHCP_HOSTNAME[0]="" # Config information for eth1: IPADDR[1]="" NETMASK[1]="" USE_DHCP[1]="" DHCP_HOSTNAME[1]="" On my network this is the file that sets everything up. bash-3.1# more /boot/config/network.cfg # Generated network settings USE_DHCP=yes IPADDR= NETMASK= GATEWAY= You might have to set the definition of /etc/rc.d/rc.inet1.conf manually, copy it into place and possibly forgo setting the IP address from the web interface. I believe once the variables are defined from the external SOURCED file they may erase others. I haven't tested this, but here would be where you do it. Another choice is to let everything come up and then call dhcp to set the other interface. and the old fashion way of setting configurations manually with ifconfig.
Archived
This topic is now archived and is closed to further replies.