LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2013, 01:41 PM   #1
trackstar2000
Member
 
Registered: Apr 2013
Posts: 82

Rep: Reputation: Disabled
2 NICs on physical machine


Hello,


I will be working on Centos 6.4 with 2 NIC configuration. One IP will be 192.168.XX.XX and the other 134.XX.XX.XX.

Are there any specifics I should be aware of when I enter them in the Network settings. I haven't worked with linux with 2 NICs setup.

TIA,
TS
 
Old 06-19-2013, 02:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
having two nics is not interesting. It's what you're actually doing with them them affects things. You need to give us the full picture if you want advice. Only thing that people seem to always want to do is to have two default gateways. I still have no idea what they think that means.
 
Old 06-19-2013, 02:15 PM   #3
trackstar2000
Member
 
Registered: Apr 2013
Posts: 82

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
having two nics is not interesting. It's what you're actually doing with them them affects things. You need to give us the full picture if you want advice. Only thing that people seem to always want to do is to have two default gateways. I still have no idea what they think that means.
One is for the public facing and other is internal. For internal, it will communicate with our backup server. It is the network guy's idea . A main concern is to make sure the machine communicates to the backup server on the correct NIC. We use EMC Networker.

Last edited by trackstar2000; 06-19-2013 at 02:24 PM.
 
Old 06-19-2013, 02:17 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
perfectly logical idea. Well done him. So what's the concern?
 
Old 06-19-2013, 02:53 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
The rules of TCP/IP don't change in linux. The issue would be usually a combination of IP address and subnet mask. That should allow IP range choice to correct endpoint within subnet. If it goes outside of subnet then you'd have to add in a gateway address. This may be confusing if both nic's need a gateway. That could be fixed with some settings. Usually internal lan doesn't use a gateway but tell us the exact topology.

Linux versions may put gateway and other settings in different places. It may be automated on some dhcp or may have to have some network manager settings changed.
 
Old 06-19-2013, 04:53 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally Posted by trackstar2000 View Post
One is for the public facing and other is internal. For internal, it will communicate with our backup server. It is the network guy's idea . A main concern is to make sure the machine communicates to the backup server on the correct NIC. We use EMC Networker.
good idea, I've done something like that myself except it was a web server talking to a back-end database server and file server.

as mentioned, as long as the two nics are assigned to two distinct discrete networks and the backup server is configured to belong to the same network as the internal nic than it should work
something like this:
Code:
{public facing}
       |{192.168.2.0/255.255.255.0}          {192.168.1.0/255.255.255.0)  
       [public interface]---{machine}---[private interface]---[nic]{backup server}
                                             192.168.1.1           192.168.1.2
those are separate networks, any request to 192.168.1.2 from 192.168.1.1 should go to the backup server
 
Old 06-20-2013, 01:01 PM   #7
trackstar2000
Member
 
Registered: Apr 2013
Posts: 82

Original Poster
Rep: Reputation: Disabled
It turns out the network guy used a cicso asa (used NAT). I only had to use one physical NIC which is 10.XX.XX.XX. When I am logged in, the browser shows my IP address as 134.XX.ZZ.ZZ (Same iP I used for SSH).


We are trying to get backup to run (our backup server is on 134.XX.YY.YY)
 
Old 06-21-2013, 02:19 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
your backup server is on a public IP? OK now THAT is really really dumb.

But is there an issue here that you need help with or are we done?
 
  


Reply



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
how to know the remote machine is Virtual machine or physical machine pantdk Linux - Server 19 10-16-2014 01:48 PM
Cloning a virtualbox machine to physical machine with clonezilla eboy98 Linux - General 6 01-14-2013 08:32 AM
bridge two NIC's in virtual OS with NIC's in physical machine m4rtin Linux - Networking 0 01-24-2012 05:58 PM
Single physical nic with two ip's on the same vlan pgb205 Linux - Networking 3 08-23-2011 07:57 PM
NIC physical address hennaheto Linux - Networking 2 01-30-2004 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 AM.

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