Solved

Linux Router design

Posted on 2004-09-22
3
192 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now