Solved

Linux Router design

Posted on 2004-09-22
3
230 Views
Last Modified: 2010-03-18
Hello,
        I have one LAN with all computer connected to switch which is connected to our main network.
       What i want is that making 2 computers in a LAN as routers. I want it to have a simulation like i am sending a packet and it is going through 2 routers and reaching in destination PC in My LAN. that is i want all thing in a my single LAN.
how can i set it up?
0
Comment
Question by:cranium2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 75 total points
ID: 12132875
In the simplest case a router implies two networks and that implies two interfaces on the router. Thus to set up a test scenario where there are two routers in a path will require three networks and two systems each with two network interfaces.  One can use networks from any of the RFC1918 reserved private networks for this, but since you ask to have one destination be an existing PC in the current LAN you have to be careful not to use a private network currently reachable from your existing LAN. For example if the current environment was using IP's from the 192.168.0.0/16 network we'd chose to make our new network in the 10.0.0.0/8 or 172.16.0.0/12 networks.

Accordingly the topology might look like:

               Existing LAN
                       |
                       | 192.168.1.0/24
                       |
           192.168.1.220
                 Router1
                10.0.0.1
                       |
                       | 10.0.0.0/24
                       |
                 10.0.0.2
                 Router2
                 10.0.1.1
                       |
                       | 10.0.1.0/24
                       |
                  10.0.1.2
                Test Node1

Thus Router1 would have one interface configured to be at 192.168.1.220 netmask 255.255.255.0 and connected to your switch and one interface configured for 10.0.0.1 netmask 255.255.255.0. Router2 has one interface at 10.0.0.2 netmask 255.255.255.0 and the other at 10.0.1.1 netmask 255.255.25.0. The 10.0.0.0 interfaces of the two routers can be connected via a crossover cable or both connected to a hub or switch (but not the switch for the existing LAN).

Router1 must have a static route set telling it that the 10.0.1.0/24 network is reachable via 10.0.0.2 and Router2 must have a static route to 192.168.1.0/24 via 10.0.0.1. Test Node1 only needs a default route set to 10.0.1.1, but the PC in the LAN will require a static route to 10.0.1.0 via 192.168.1.220.
0
 

Author Comment

by:cranium2003
ID: 12180750
hello jlevie,
            Thanks for ur answer. What am i having is a LAN with all 10 pcs connected to a single switch which is connected to other network. Now is that not possible to have 2 routers in a LAN with one switch as you said 10.0.0.0 require me another switch connected PC. Also i want Test Node1 and Existing LAN to be in one network.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12218635
To have two routers operating you must have three networks. One of the networks can be the local LAN on your switch. But the other two networks will have to be different. Between the two routers and between the last router and test node you can use crossover cables.
0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question