Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linux Router design

Posted on 2004-09-22
3
Medium Priority
?
242 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 300 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

704 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