Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-12-2013, 04:21 PM
|
#1
|
Member
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273
Rep:
|
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.
|
|
|
09-12-2013, 06:07 PM
|
#2
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
|
|
09-13-2013, 05:24 AM
|
#3
|
Member
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317
Rep:
|
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
|
|
|
09-21-2013, 03:30 PM
|
#4
|
Member
Registered: Apr 2010
Location: India /Hyderabad
Distribution: RedHat, CentOS
Posts: 273
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|