Solved

How to ping from dual NICS in linux

Posted on 2008-06-12
6
563 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
centos linux 65 185
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 49
Upgrade BIOS / EUFI at Scale 4 69
Ubuntu don’t allow SU command in terminal 7 58
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

713 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