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 09-12-2013, 03:21 PM   #1
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Rep: Reputation: 1
routing with multiple linux routers


Hi all,

A 0 ---- B 0 ----- C 0 ------ D 0

in the above network there are 4 routers, if they are cisco all the 4 routers will share the routes and will be aware of rest of the networks, but if i want to connect 4 linux routers how can i do it. clients attached to router A will reach router B via A as gateway(local ip), but if want to reach router C, it can go via router B, but to reach D via C, how can i add route since router C IP and router A ip are not in the same subnet ?

can't we do this kind of routing with out cisco rotuer.

thanks in advance.
 
Old 09-12-2013, 05:07 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Two ways basically. Bridging, or double+ NAT. Bridging can be quirky since kernels > 2.6.32 in my experience. And double NAT should use different subnets for each interface, and probably ebtables to NAT the MAC addresses. Since routing has gotten more strict in recent years.

My setup has my desktop connected to my laptop via a cat5e crossover cable on a static IP. The laptop connects to the wireless router via DHCP, and uses a combination of iptables and ebtables to forward the desktops packets. The wireless router connects to the ISP. Overly complex in my opinion, but all existing hardware in my case.
 
Old 09-13-2013, 04:24 AM   #3
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Yes, you can use linux servers as replacement for your routers. Take a look at quagga, which is a software suite that implements the most common routing protocols.

Cheers
 
Old 09-21-2013, 02:30 PM   #4
Gil@LQ
Member
 
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273

Original Poster
Rep: Reputation: 1
hi gdejonge,

thanks man, you relly helped me a lot , i even don't know that there is package with this kind of capability.

thanks. im marking as solved.

Shadow_7... you too thanks for your time.
 
  


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
exchange routing between quagga routers via ospf, bgp, ibgp saiyen2002 Linux - Networking 4 01-19-2010 07:13 AM
two nics, two routers routing problem r3g1 Linux - Networking 2 04-26-2008 09:36 AM
Multiple routers on home network question grapnell Linux - Networking 4 04-09-2006 08:22 PM
API for using multiple routing tables on Linux Shakesh Linux - Networking 0 08-29-2005 05:45 PM
Setting up multiple routers toejam Linux - Networking 3 06-09-2004 10:08 AM

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

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