Command line create interface, mtu, lagg, VLAN and ad IP address

Status
Not open for further replies.

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
Yep, I have a 4 port NIC and I am a schmuck, I know I can script this so that it can be built in 1 second and if I have to change it I can unlink it and build it differently.

So I am asking on FreeNAS 9.3 stable current:

*) how to set em0, em1, em2 and em3 to mtu 9000(ifconfig em0 mtu 9000)
*) how to assign em0, em1, em2 and em3 to lagg0
*) how to set mtu 9000 to lagg0
*) how to set lagg0 as LACP
*) how to create vlan 991
*) how to set mtu 9000 to VLAN 991
*) how to assign VLAN 991 to lagg0
*) how to assign ip address 192.168.91.10/24 to VLAN 991

I am starting my search but I am afraid that the commands have to be pushed into the database and take the settings back out. I am also afraid that FreeNAS is different enough that I can't use FreeBSD 9.3 commands like I can on a FreeBSD generic host.

Thanks,
Joe
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874

RegularJoe

Patron
Joined
Aug 19, 2013
Messages
330
I ended up just doing it via the GUI, this was for a test with VMware's iSCSI port binding. Yes it is faster than 4 ports in 4 VLAN's but it introduces an ugly issue( http://kb.vmware.com/selfservice/mi...nguage=en_US&cmd=displayKC&externalId=2017084 ) for companies that might grow a SAN or Cluster to more than x hosts. iSCSI port binding is about 25% faster than using 4 VLAN's but having to wait 5 minutes for every iSCSI change or 30 minutes for a host to boot is just plain wrong. VMware might fix this some day. For a home lab I would suggest VMware iSCSI port binding as you can get 2-4 interfaces of bandwidth out of your FreeNAS box.

I HATE VMware iSCSI port binding!

Here is one example using binding and one using VLAN's:

-----------------------------------------------------------------------
CrystalDiskMark 5.0.2 (C) 2007-2015 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes

Sequential Read (Q= 8,T= 8) : 461.230 MB/s
Sequential Write (Q= 8,T= 8) : 339.108 MB/s
Random Read 4KiB (Q= 4,T= 4) : 85.901 MB/s [ 20971.9 IOPS]
Random Write 4KiB (Q= 4,T= 4) : 54.533 MB/s [ 13313.7 IOPS]
Sequential Read (T= 1) : 144.290 MB/s
Sequential Write (T= 1) : 145.986 MB/s
Random Read 4KiB (Q= 1,T= 1) : 9.699 MB/s [ 2367.9 IOPS]
Random Write 4KiB (Q= 1,T= 1) : 8.172 MB/s [ 1995.1 IOPS]

Test : 4096 MiB [L: 0.1% (0.1/81.0 GiB)] (x4) [Interval=0 sec]
Date : 2015/09/25 15:32:35
OS : Windows XP Professional SP3 [5.1 Build 2600] (x86)


-----------------------------------------------------------------------
CrystalDiskMark 5.0.2 (C) 2007-2015 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]
* KB = 1000 bytes, KiB = 1024 bytes

Sequential Read (Q= 8,T= 8) : 351.216 MB/s
Sequential Write (Q= 8,T= 8) : 233.760 MB/s
Random Read 4KiB (Q= 4,T= 4) : 98.856 MB/s [ 24134.8 IOPS]
Random Write 4KiB (Q= 4,T= 4) : 60.917 MB/s [ 14872.3 IOPS]
Sequential Read (T= 1) : 157.297 MB/s
Sequential Write (T= 1) : 157.718 MB/s
Random Read 4KiB (Q= 1,T= 1) : 10.670 MB/s [ 2605.0 IOPS]
Random Write 4KiB (Q= 1,T= 1) : 7.829 MB/s [ 1911.4 IOPS]

Test : 4096 MiB [K: 0.1% (0.1/71.0 GiB)] (x4) [Interval=0 sec]
Date : 2015/09/25 16:03:57
OS : Windows XP Professional SP3 [5.1 Build 2600] (x86)
 
Status
Not open for further replies.
Top