Solved

How to ping from dual NICS in linux

Posted on 2008-06-12
6
561 Views
Last Modified: 2013-11-15
I have 2 ubuntu servers that I am attempting to install heartbeat on. Each server has 2 NIC cards. Right now I have the 1 NIC for each server going to the regular network and the 2 NICS on both servers connected with a crossover cable. I have tried to setup my private network for heartbeat to communicate by the following below

server 1                                                                                          server 2

auto eth1                                                                                      auto eth0
iface eth1 inet static                                                                      iface eth0 inet static
        address 10.10.10.10                                                             address 10.10.10.11
        netmask 255.0.0.0                                                                 netmask 255.0.0.0

the other NICs are eth0 on server 1 and eth1 on server 2 are connected to my router and can connect to the internet. I can ping from ethernet NIC that is connect to the router which connects to the interent. But when I try to ping from the NICS that are setup for my private network that uses heartbeat. It doesnt find the host. How do I ping from eth1 on server 1 to eth0 on server 2?
0
Comment
Question by:tupac1979
  • 3
  • 2
6 Comments
 
LVL 19

Expert Comment

by:http:// thevpn.guru
ID: 21772787
Print out

route -n
0
 

Author Comment

by:tupac1979
ID: 21772919
Here you go thanks
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 eth0
0
 
LVL 19

Accepted Solution

by:
http:// thevpn.guru earned 250 total points
ID: 21773028
make sure your eht1 is up

try
ifconfig eth1 up and then pring out

ifconfig
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 8

Assisted Solution

by:Rance_Hall
Rance_Hall earned 250 total points
ID: 21773279
you did a good thing (tm) by making your your heartbeat private net is a different net than your "public" net.

Im referring to your heartbead net being 10.* based and your "public" net being 192.168.* based.


Now once you follow the above notes and you make sure that your 10.* iface is up and running you will see an entry in your ifconfig for the ip address of the heartbeat nic.


the point of your route -n output is the problem, the system doesnt yet know to route 10.* net traffic to the eth1 iface.

the kernel *should* update your routes when the eth1 iface comes up.

if it doesnt you may have to do some reasearch on static routes and the ways to use the route command, (ie route add ?)

0
 

Author Comment

by:tupac1979
ID: 21778231
ok thanks I ran the command ifconfig eth1 up and I still dont see an ip address that I configured in my etc/network/interfaces also how do I ping the other server from eth1 NIC because whenever I run the ping command it uses the eth0 network which is my 192. network. Thanks
0
 

Author Comment

by:tupac1979
ID: 21778869
ok thanks guys I got it working now all I had to was restart. Thanks
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now