Joshua Parker Ruehlig
Hall of Famer
- Joined
- Dec 5, 2011
- Messages
- 5,949
So I decided to add a second NIC to my FreeNAS box to have a second route for packets to flow. What I was thinking was to have one ip for GUI/SSH/NFS/(JAIL) and have the second IP be strictly for iscsi. I bought an intel PCI nic, and it shows up on my system as em0. My onboard NIC is re0.
PfSense Router
|
Unmanaged Switch
| |
FreeNAS
Everything seems to work great at first, I add each interface separately in the GUI as DHCP, my router assigns them 192.168.1.4(re0) and 192.168.1.12(em0).
I can ping both IPs just fine.
I can even see / mount targets on the 192.168.1.12 IP
$sudo iscsiadm -m discovery -t st -p 192.168.1.12
192.168.1.12:3260,1 iqn.2011-03.local.freenas:openelec1
The problem seems to be when I actually use 192.168.1.12 for anything, either right away, or very quickly iscsi/NFS stops responding on 192.168.1.12, a ping from anywhere in my network also hangs. To fix this I can just ssh into the 192.168.1.4 IP and run 'ifconfig em0 down' 'ifconfig em0 up' and everything works again.
Not sure whats going on here, syslog isn't complaining wherever the interface locks up (and ifconfig doesn't show anything funny, still looks like it's up). Should I setup the different NIC to be on different switches on different subnets? Not sure what's going on, or what exactly I'm doing wrong. Any help would be greatly appreciated. Thanks!
PfSense Router
|
Unmanaged Switch
| |
FreeNAS
Everything seems to work great at first, I add each interface separately in the GUI as DHCP, my router assigns them 192.168.1.4(re0) and 192.168.1.12(em0).
I can ping both IPs just fine.
I can even see / mount targets on the 192.168.1.12 IP
$sudo iscsiadm -m discovery -t st -p 192.168.1.12
192.168.1.12:3260,1 iqn.2011-03.local.freenas:openelec1
The problem seems to be when I actually use 192.168.1.12 for anything, either right away, or very quickly iscsi/NFS stops responding on 192.168.1.12, a ping from anywhere in my network also hangs. To fix this I can just ssh into the 192.168.1.4 IP and run 'ifconfig em0 down' 'ifconfig em0 up' and everything works again.
Not sure whats going on here, syslog isn't complaining wherever the interface locks up (and ifconfig doesn't show anything funny, still looks like it's up). Should I setup the different NIC to be on different switches on different subnets? Not sure what's going on, or what exactly I'm doing wrong. Any help would be greatly appreciated. Thanks!