Gigabit

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

Server:

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

Client:

See Above Link

Ubuntu

Ubuntu NFS Config Guide

Server:

See Above Link

Client: http://www.cyberciti.biz/tips/ubuntu-linux-nfs-client-configuration-to-mount-nfs-share.html

sudo apt-get install portmap nfs-common
sudo mount server.mydomain.com:/network/officesdocs /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:

server.mydomain.com:/files /files nfs rsize=8192,wsize=8192,timeo=14,intr

then

mount /local/mount/point/dir

GIGABIT MTU and Static IP Config Test

Ubuntu Client

sudo ifconfig eth1 10.0.2.10 netmask 255.255.255.0 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
MaxFrameSize=0,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0;
restart the system
sudo ifconfig e1000g1 10.0.2.200 netmask 255.255.255.0 mtu 9000
svcadm restart network/nfs/server

GIGABIT MTU and Static IP Config Permanent

OpenSolaris

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

(This did not work - READ NOTE BELOW IT MAY WORK NOW - AND WILL WORK IF YOU ONLY HAVE ONE INTERFACE)

sudo nano /etc/nwam/llp

change e1000g1 dhcp --> e1000g1 static 10.0.2.200/24

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 127.0.0.1 and your real host name else it will try to assign 127.0.0.1 to your nic.  Make sure to keep 127.0.0.1 localhost
Next:  Add the line:  the.ip.of.nic yourhostnameornickname
Save
ex:
# Internet host table
#
#::1 cella cella.local localhost loghost
127.0.0.1 localhost loghost
10.0.2.200      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):  10.0.2.0 255.255.255.0
Save
ex:
192.168.0.0 255.255.255.0
 for ip 192.168.1.25
10.0.2.0 255.255.255.0
 for ip 10.0.2.150

If you run into problems try things like:

ifconfig <thenicorhostname> up
ifconfig e1000g1 plumb 10.0.2.200/24 mtu 1500

and

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
10.0.2.200 staticnic1
10.0.2.201 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.

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

then restart interfaces

svcadm restart svc:/network/physical:default

or reboot machine

pfexec reboot


SETTING THE MTU

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

its

cella mtu 1500

Ubuntu

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
address 192.168.1.35
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0
iface eth0 inet dhcp

Save

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

  • GUI TOOL

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

Notes

Copying Files Faster:

Next Test Considerations: