LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2013, 03:38 PM   #1
karish
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Rep: Reputation: Disabled
Dual NIC on Ubuntu Server 10.04


Hi,

I have a following network scenario with Ubuntu 10.04 Server.


PC ---Router-1 -----Router-2 ======== Server (eth0 and eth1)


I need to ping the server's both NIC from PC. However only 1 NIC replies. How can I make both NIC reply? Traffic entering each NIC should leave the same NIC that the traffic came through.
Here is my interface config:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.29.172.38
netmask 255.255.255.252
network 10.29.172.36
broadcast 10.29.172.39
gateway 10.29.172.37

auto eth1
iface eth1 inet static
address 10.29.170.146
netmask 255.255.255.252
network 10.29.170.144
broadcast 10.29.170.147
gateway 10.29.170.145

Any help will be appreciated.

Last edited by karish; 09-05-2013 at 03:40 PM.
 
Old 09-06-2013, 03:38 AM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
You have 2 gateways,
Quote:
Originally Posted by karish View Post
gateway 10.29.172.37
gateway 10.29.170.145
Are those the 2 interfaces in router2 facing the server?
 
Old 09-06-2013, 04:04 AM   #3
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
You can traceroute from PC to the server to check where the connection breaks. I am thinking that, since you have setup 2 different networks, you need to be able to route to those 2 separate networks; and currently you are only able to route to only 1 of them.
 
Old 09-06-2013, 06:05 PM   #4
karish
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ilesterg View Post
You have 2 gateways,


Are those the 2 interfaces in router2 facing the server?
Yes and they are on two different subnets.
 
Old 09-06-2013, 06:14 PM   #5
karish
LQ Newbie
 
Registered: Jan 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ilesterg View Post
You can traceroute from PC to the server to check where the connection breaks. I am thinking that, since you have setup 2 different networks, you need to be able to route to those 2 separate networks; and currently you are only able to route to only 1 of them.
Traceroute to Server's both NIC goes upto router2, however only 1 nic replies. Here is the route -n from the server:

xxxxxxx@SERVER:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.29.170.145 0.0.0.0 UG 100 0 0 eth1
0.0.0.0 10.29.172.37 0.0.0.0 UG 100 0 0 eth0
10.29.170.144 0.0.0.0 255.255.255.252 U 0 0 0 eth1
10.29.172.36 0.0.0.0 255.255.255.252 U 0 0 0 eth0
 
Old 09-08-2013, 08:07 PM   #6
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Sorry I'm not that familiar with routing in Linux yet. But, you've isolated the problem since the connection gets broken when it reaches router2. Can you ping the NIC which doesn't reply from router2? (if it has that capability)

What I'm trying to say is that, you have to setup routing on the router so it would know how to forward traffic to both 10.29.172.36 and 10.29.170.144 networks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dual NIC Server / No Internet? csw Linux - Networking 2 11-15-2011 01:22 AM
Ubuntu server is playing games with onboard dual NIC. pentiumone133 Linux - Networking 1 07-21-2010 05:58 AM
Ubuntu terminal server, Boot off more than one nic? Silver565 Linux - Server 2 12-13-2009 11:50 PM
LXer: Setting Up Dual-Dual NIC Bonding On Ubuntu In 30 Seconds LXer Syndicated Linux News 0 01-22-2009 08:30 AM
Dual NIC Proxy Server RedCamel Linux - Networking 3 03-16-2005 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:06 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