LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-05-2007, 01:25 PM   #1
pacini
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Rep: Reputation: 0
2 NICs - 2 Separated Network -- Help!


Hi,
I've been googlin' for a solution for a while now, and no luck yet. Can someone enlighten me how's this possible?

I'm running on dual WAN networks:
Eth0 (IP: x.x.x.2, GW x.x.x.1): Running with a public IP (ISP1) address exposed to the internet.
Eth1 (IP: y.y.y.2, GW y.y.y.1): Running with a private IP address (ISP2) for our branches data link (No Internet access), this is used for our VoIP solution.

Now, whenever we enable Eth0, VoIP drop calls (for the reason of having multi default gateways). How do I disable this from happening? Also, how do I enable Eth0 to allow Internet access to my VoIP netwotk (if possible)?

Your help is highly appreciated,
Thanks!

Last edited by pacini; 12-05-2007 at 01:27 PM. Reason: Adding more info
 
Old 12-05-2007, 02:54 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by pacini View Post
I'm running on dual WAN networks:
Eth0 (IP: x.x.x.2, GW x.x.x.1): Running with a public IP (ISP1) address exposed to the internet.
Eth1 (IP: y.y.y.2, GW y.y.y.1): Running with a private IP address (ISP2) for our branches data link (No Internet access), this is used for our VoIP solution.

Now, whenever we enable Eth0, VoIP drop calls (for the reason of having multi default gateways). How do I disable this from happening? Also, how do I enable Eth0 to allow Internet access to my VoIP netwotk (if possible)?
What does the output of "route" look like?
 
Old 12-07-2007, 12:09 PM   #3
pacini
LQ Newbie
 
Registered: Dec 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by David1357 View Post
What does the output of "route" look like?
route -n output:

192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.10.22.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 10.10.22.1 0.0.0.0 UG 100 0 0 eth1
0.0.0.0 192.168.7.1 0.0.0.0 UG 100 0 0 eth0


Thanks.
 
Old 12-07-2007, 02:44 PM   #4
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Quote:
Originally Posted by pacini View Post
0.0.0.0 10.10.22.1 0.0.0.0 UG 100 0 0 eth1
0.0.0.0 192.168.7.1 0.0.0.0 UG 100 0 0 eth0
Well, that’s your problem: you have two default routes, and the one on top is the wrong one. To get rid of this problem you could run (as root):
Code:
route del default gw 10.10.22.1
As for your other problem (getting your private Voip network access to the internet) you have to do a couple things:
  1. Enable ip forwarding on your machine (i.e., “sysctl net.ipv4.ip_forward=1”).
  2. Make the forwarding machine the default gateway for all the other machines on the network. Instructions vary.
 
  


Reply



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
Multiple NICs, One (Private) Network? artagesw Linux - Networking 8 11-13-2007 08:11 PM
How 2 NICs with 2 Diff. Gateway Network Connection Possible azamup Linux - Networking 1 09-20-2007 04:37 PM
Two NICs network traffic goes only through one gemini728 Linux - Networking 6 07-08-2007 10:48 AM
2 NICs, network access on one, internet on the other jen_p_s Linux - Networking 7 09-11-2006 02:17 AM
Two nics on the same network, how? geraldomanaus Linux - Networking 2 07-19-2005 10:46 PM

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

All times are GMT -5. The time now is 08:02 PM.

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