From Hack Sphere Labs Wiki
Revision as of 21:36, 28 November 2011 by Webdawg (talk | contribs) (Created page with "If you transfer files over your LAN and do not have gigabit...get it. Right now my gigabit equipment is lacking. I have some new equipment ready to test. Here are some tests a...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

If you transfer files over your LAN and do not have gigabit...get it.

Right now my gigabit equipment is lacking. I have some new equipment ready to test. Here are some tests and config tips and guides. You will have problems with SOHO switches not really supporting Jumbo Frames and problems with protocols keeping up with the connection speed. I suggest Cisco because I have used them but I am about to test a nice Dell switch.

These are some of my tests.

ZFS, NFS, OpenSolaris, and Ubuntu Clients Test Results

NFS Client/Server Setup

I have an opensol server and ubuntu clients. This is the guide I created from my testing and my results.

Open Solaris

Open Solaris NFS Config Guide


svcs nfs/server
svcadm enable nfs/server
zfs set sharenfs=on mypool/myfs


See Above Link


Ubuntu NFS Config Guide


See Above Link


sudo apt-get install portmap nfs-common
sudo mount /home/me/myfiles

Mounting at boot using /etc/fstab Invoke the text editor using your favorite editor, or gksudo gedit /etc/fstab

/etc/fstab was like this: /files nfs rsize=8192,wsize=8192,timeo=14,intr


mount /local/mount/point/dir

GIGABIT MTU and Static IP Config Test

Ubuntu Client

sudo ifconfig eth1 netmask mtu 9000

OpenSolServer + e1000g NIC MTU Not Working?

WHY ISNT MY GIGABIT WORKING LINK (You should look at this. I have a nice Intel Gigabit Nic and I needed it) The MaxFrameSize below should be changed for two of my nics.

sudo nano /kernel/drv/e1000g.conf
restart the system
sudo ifconfig e1000g1 netmask mtu 9000
svcadm restart network/nfs/server

GIGABIT MTU and Static IP Config Permanent


One of the first ways I tried to set a persistent static IP


sudo nano /etc/nwam/llp

change e1000g1 dhcp --> e1000g1 static

svcadm restart svc:/network/physical:nwam

NOTE: I found out that this configuration should have worked if I had one interface. nwam (as of May 2, 2010 and OpenSolaris 2009.06 snv_111b X86) only tracks ONE interface. They said it should be fixed in the next release. #opensolaris @ freenode

The Second Way I tried to set a persistent IP and worked - Here Is The Sun Guide

The only way I could do this over SSH was if I made a bash script with the commands that I am using.

From what has been explained to me each nic gets a 'hostname'. That is when physical:default runs or ifconfig it searches the nic file for the host name and pulls the nic IP out of the hosts file. It does the same thing for the netmask file. It goes hostname->ip->network->netmask. The canocial name of the machine is defined in "/etc/nodename". We are going to edit three files: nodename, hostname.<nic>, and netmasks.

pfexec bash (This will give you a root prompt)
cat <youhostname> > /etc/nodename
 ex.  cat cella > /etc/nodename
svcadm enable network/physical:default
svcadm disable network/physical:nwam (SSH DIES :( )
nano /etc/hostname.<nic>
enter your hostname/nicname in the file (one line) and save
 ex.  staticnic
 ex.  cella

nano /etc/hosts
First:  Take out and references to and your real host name else it will try to assign to your nic.  Make sure to keep localhost
Next:  Add the line:  the.ip.of.nic yourhostnameornickname
# Internet host table
#::1 cella cella.local localhost loghost localhost loghost      cella loghost
nano /etc/inet/netmasks
It will pull the mask by referencing the network if the ip that you added to /etc/hosts
Add to the end (Substitute you information):
 for ip
 for ip

If you run into problems try things like:

ifconfig <thenicorhostname> up
ifconfig e1000g1 plumb mtu 1500


ifconfig e1000g0 dhcp

will give you a dhcp addy

ifconfig e1000g0 dhcp

Now you have to restart physical:default or reboot the system

svcadm restart svc:/network/physical:default

to reboot

pfexec reboot

Notes: ifconfig e1000g0 dhcp+caiman/slim_install_GetStarted_nwam nwam man page, A sun blog that uses GUI tools, Another blog doing it wrong, The Belinix Way, The Second Way Kinda, SunOS DHCP Client Crazyness,

Adding Another Static Nic

Follow the same instructions as above just use a different hostname/nic name in the /etc/hosts file:

ex staticnic1 staticnic2

Then add a /etc/hostname.<realnicname> file with one of the above hostnames.

If you are on the same network you should be fine with the netmasks file. If not add you new network.

Adding a DHCP Nic On Top Of That
pfexec touch /etc/dhcp.<nic>
pfexec touch /etc/hostname.<nic>

That should be enough.

pfexec touch /etc/dhcp.e1000g0
pfexec touch /etc/hostname.e1000g0

then restart interfaces

svcadm restart svc:/network/physical:default

or reboot machine

pfexec reboot


Once you have the static ip and everything setup on your Opensolaris box you may need to set a MTU so it will be persistent over reboots. To do this you simply edit /etc/hostname.<nic> and add mtu YOURMTU to the SAME line. The file is passed strait to ifconfig on boot I guess. (I should verify that. It could have made everything more simpler.)

so instead of



cella mtu 1500


First we have to remove that lame GUI management program with:

sudo apt-get remove network-manager

Next We Edit:

sudo nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet static

auto eth0
iface eth0 inet dhcp


Issue a restart command to networking:

sudo /etc/init.d/networking restart

Should be good to go....

Gigabit Tests

I have 3 files that total 1464.9 MB. I am testing MTU's right now and GUI vs command line copy tools.

  • 9000MTU:
webdawg@tutis:~$ time cp /home/webdawg/Desktop/Lots\ Of\ Temps/* /mnt/shelf1/TEST
real    0m27.706s
user    0m0.352s
sys    0m8.685s

Results = 52.88MB a sec (not megaBITS)

  • 1500 mtu
webdawg@tutis:~$ time cp /home/webdawg/Desktop/Lots\ Of\ Temps/* /mnt/shelf1/TEST
real    0m21.945s
user    0m0.284s
sys    0m3.432s

Results = 66.76mb a sec


While I do not have the official results from using GNOME to copy files. I was getting like 13MB a sec. This is LAME.


Copying Files Faster:

Next Test Considerations: