2 Active Nics?

Latest response

Here is my scenario.

Currently running RedHat 6.7 with 1 of my 8 nic cards active utilizing my production network eth0, which has a static IP and gateway as defined by my network team.

Now I need to active a 2nd nic card eth1 for my backup and storage team to utilize only our backup network with a separate static IP and gateway.

1.) Is this even possible to have 2 active nics with different static IPs (subnet is different) and gateways?
2.) If 1 is possible is there a way to define what traffic/services/applications utilize which nic outward. Meaning I want all traffic to use eth0 except for our networker service to use eth1 for backups.

Thanks.

Responses

Hello Eric,

default gateway should be associated with eth0

add a static route to your backup network and define it for eth1 in the file /etc/sysconfig/network-scripts/route-eth1

Example entry:

10.10.10.0/24 via 192.168.0.10

Kind regards,

Jan Gerrit Kootstra

Jan,

Thank you for your reply. This is new to me. So please excuse my ignorance on my questions.

1.)Where do I define the default gateway and I'm assuming that gateway value should be the same as the gateway currently assigned to my eth0 nic card?

2.) In your example entry how do I determine those values? ie. what does your 10.10.10.0/24 value represent and what does the 192.X value represent?

Thanks again.

You've already set the gateway in /etc/sysconfig/network-scripts/ifcfg-eth0, yes? If so, you can leave it there. If not, you can add it there or set it "globally" in /etc/sysconfig/network (using the GATEWAY parameter).

The values he used were notional. You should replace them with your actual network/gateway values (you mentioned that your network team provided you with address information). Using his example, "10.10.10.0/24" represents the network addresses to be routed, and "192.168.0.10" represents the gateway through which to route the requests.

Hello, some useful links relevant to this subject Static Routes and the Default Gateway, and the following section Configuring Static Routes in ifcfg files.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.