Solved

How to ping from dual NICS in linux

Posted on 2008-06-12
6
559 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

757 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

20 Experts available now in Live!

Get 1:1 Help Now