LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2013, 05:15 AM   #1
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 133

Rep: Reputation: 0
NAS on eth1


Hi,

I have a Cent OS using eth0 for networking with clients.

Is it possible to connect a NAS to eth1 and mounting a share on it from the Linux host ?

I was thinking that perfomance on the NAS would increase, if it has its own netcard in the Linuxserver running 1GB.

eth0 is 192.168.1.1
How should i define eth1 ?

Regards
Thomas
 
Old 08-15-2013, 07:54 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
NAS devices are designed to stand alone. The bottle neck will not be the Ethernet connection, but the performance of the HDDs inside of the NAS, that is unless you are running on a 10BaseT network, or using a HUB instead of a Switch for your LAN.

If you have a 2nd NIC inside of your CentOS box then it should be active to begin with. You would just assign the IP the same way you did for eth0.

The path should be: /etc/sysconfig/network-scripts/ifcfg-eth#

here is mine:

Code:
[root@centos ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
TYPE="Ethernet"
HWADDR=00:00:00:00:00:00
NAME="System eth0"
ONBOOT="yes"
#BOOTPROTO="dhcp"
BOOTPROTO="static"
NM_CONTROLLED="no"
IPADDR=192.168.1.2
NETMASK=255.255.255.0
USERCTL="no"
#DEFROUTE=yes
#PEERROUTES=yes
#PEERDNS=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
you would just set yours eth1 to what ever IP scheme you need.
 
1 members found this post helpful.
Old 08-15-2013, 08:00 AM   #3
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 133

Original Poster
Rep: Reputation: 0
Thanks, looks simple :-)
 
Old 08-16-2013, 06:37 AM   #4
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
Depending on what exactly you want to achieve with this setup you might want to consider having the second NIC (eth1) on a different subnet than eth0.
If it's just about bandwith you could as well use bonding with both NICs on the same network.
Make sure that the whole network part supports your bandwith needs, it doesn't make sense to have 2x 1GB NIC at both ends bonded up and the switche(s) in the middle of the way can't process the amount of data...
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reliable centos nas server with raid or nas boxes which is better ? Gil@LQ Linux - Server 9 09-10-2015 06:13 AM
Unable to activate eth1 - device eth1 has different MAC address than expected. wkk1020@gmail.com Linux - Networking 18 10-29-2012 08:09 AM
Buffalo NAS - how do we get files on NAS syncing with Windows Sync? bykerbob Linux - Newbie 0 10-21-2008 09:59 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration