LinuxQuestions.org
Review your favorite Linux distribution.
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 05-10-2007, 10:48 PM   #1
please
Member
 
Registered: Apr 2007
Posts: 195

Rep: Reputation: 30
gateway 2


HI

i have 2 uplink and 1 internal link.i want to use 2 uplink at the same time.i installed core 5.
so how can i do?i already did as lartc.com but i can`t use when take off cable from eth0.i can use when put in this cable to eth0.why i can`t use with eth2?i appreciate yr advice please help me sir.
my information
etho(ISP1)
ip-10.241.215.163
nesk-255.255.255.240
GW-10.241.215.161

eth2(ISP2)
ip-10.255.8.104
nesk-255.255.255.252.0
GW-10.255.8.1

eth1
ip-192.168.1.1
nesk-255.255.255.0

Thanks
Please
 
Old 05-11-2007, 01:35 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well other than refering you to lartc.org chapter 4 there's nothign we can tell you. you've said nothign useful about what you've actually tried to implement, so we can't comment on why it's not working.
 
Old 05-11-2007, 01:54 AM   #3
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
I hit command ip route ls table main
default via 10.241.215.161 dev eth0
i saw above
how can i add 2 gateway in my 3 nics?
Help me again sir

Thanks
PLEASE

Last edited by please; 05-11-2007 at 01:55 AM.
 
Old 05-11-2007, 06:54 AM   #4
tinksmartbstupi
Member
 
Registered: Dec 2004
Location: Coram, NY
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
Are you trying to multicast (I think that's the right word) your connections? (make 2 into one line) or are you just trying to add two gateway's in hopes that you'll get faster internet? or are you connecting two networks? what is this for? redundancy? load spliting? etc?
 
Old 05-11-2007, 10:54 PM   #5
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
for faster
pls instruction me

hi tinksmartbstupi pls reply me

Last edited by please; 05-15-2007 at 02:41 AM.
 
Old 05-15-2007, 02:43 AM   #6
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Unhappy

hi tinksmartbstupi
pls instruction me

thanks
Please
 
Old 05-15-2007, 11:56 AM   #7
tinksmartbstupi
Member
 
Registered: Dec 2004
Location: Coram, NY
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
You could make a trunk I think it's called (look in you net config file examples, and it'll explain it near the bottom)

What you can do is use more then one network card, acting as one to get twice the speed, BUT
You must have the same configuration at the other end.

So that option is probably out of the question, if I understand you.

I think the best way to do this would be to setup routing on the computer so it could pick the fastest way to the data, You should take a look in the gentoo docs on how to setup a router. although I've never build a router before I've played with some stuff, so if you have any questions let me know.
 
Old 05-15-2007, 09:51 PM   #8
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Unhappy

hi thank you
i have 1 question

i did route as LARTC.ORG .and than i was tested my 2 uplinks NICs
my second uplink is did not work when i take off cable from first uplink.why did not work?

Thanks
 
Old 05-16-2007, 06:56 AM   #9
tinksmartbstupi
Member
 
Registered: Dec 2004
Location: Coram, NY
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
You have to make sure that both gateways are in your routing table, because the way a router works is that it will pick the quickest way to get your data to the other data, so if it see's there's no connection on link1 it will automatically re-route to link-2, etc.
 
Old 05-16-2007, 11:47 PM   #10
please
Member
 
Registered: Apr 2007
Posts: 195

Original Poster
Rep: Reputation: 30
Question

hi
thanks for your advice
now i got that,i got 2nd uplink is working when 1st cable take off
BUT
2nd is not worked when my isp link is down(not down power) for 1st card.
they r sending request to 1st card ,these request are not jump to
2nd Nic.
i got again when i closed power of my ADSL modem.

how should i do again?

Please
 
Old 05-29-2007, 09:22 AM   #11
tinksmartbstupi
Member
 
Registered: Dec 2004
Location: Coram, NY
Distribution: Slackware
Posts: 47

Rep: Reputation: 15
Did you set this up?

http://lartc.org/howto/lartc.rpdb.multiple-links.html

is it working?
 
Old 05-29-2007, 11:33 AM   #12
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Rep: Reputation: 30
Im not sure if he is trying to multicast?

It sounds like he has a server with 3 nic cards. He would like 2 of the nics cards to route traffic to the internet for load balancing puposes or outside the lan. While the 3rd card will only take traffic destined to and from the LAN.

If this is the case he will need routing rules that will define the 3rd nic as a gateway and rules to forward traffic to the other gateways (Nics)

Im not an expert with iptables.
But there should be a way to setup forwarding rules for the 3rd (downlink)card to accept certain ranges of addresses on your network, and forward traffic from specific ranges to one of the other nic cards of your choice.

Last edited by Kilahchris; 05-29-2007 at 12:08 PM.
 
  


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
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
What is a gateway? can I have more than one gateway on a vlan? abefroman Linux - Networking 3 09-06-2005 10:43 AM
Odd problem: Gateway unreachable after certain amount of time (Win XP Gateway) SocialEngineer Linux - Networking 2 08-13-2004 12:54 AM
What is this ??? Gateway or NOT ??? Lilltjalle Mandriva 3 11-30-2003 11:10 AM
Gateway Demon Linux - Hardware 0 03-19-2003 12:35 PM

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

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