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 08-14-2008, 09:14 PM   #1
tqa
LQ Newbie
 
Registered: Jun 2006
Posts: 24

Rep: Reputation: 15
Question static route path


Im doing a project that have to use 5 pcs sequentially.
currently, Im working on Fedora8 pcs.

scenario:
1. I have 5 pcs that connected in the same network
pc1 - 192.168.x.1
pc2 - 192.168.x.2
.
.
pc5 - 192.168.x.5

2. I want to statically define the path for each of the pc so that if I
traceroute from pc1 to pc5, it will list down the pc1 until to pc5.

Do I have to setup the new router box for those 5 pcs?

or Can I just edit the route table for each pc?

I really need help for this matter.
Thanks in advance guys!
 
Old 08-14-2008, 09:17 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
If the hosts are all on the same network, there is no routing. The packet is placed on the wire, and the target hosts receives the packet. Routing is between networks.
 
Old 08-14-2008, 09:23 PM   #3
tqa
LQ Newbie
 
Registered: Jun 2006
Posts: 24

Original Poster
Rep: Reputation: 15
any suggestion how can I setup the 5 pcs so that they can pass by each other?

Because i have to determine the node that pc1 will go through to get pc5.

Can I setup all the pcs as a router?
 
Old 08-14-2008, 09:29 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Each needs to be on its own network. You can setup either two NICs in stations 2, 3, and 4 and configure them as routers (it should be obvious why 1 and 5 need only one NIC), and then wire each station in a series:

Code:
1 <-> 2 <-> 3 <-> 4 <-> 5
or place routers in between:
Code:
1 <=> R1
      ^
      |
      v
2 <=> R2

...
      ^
      |
      v
5 <=> R5
or

configure aliases for each NIC on station 2, 3, and 4, such that the aliases are one different networks.
 
Old 08-14-2008, 09:55 PM   #5
tqa
LQ Newbie
 
Registered: Jun 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
configure aliases for each NIC on station 2, 3, and 4, such that the aliases are one different networks.

This could be pretty the cool solution!!

My prob is all the pcs have to get connected to the public network and they only have 1 NIC too. So, that is the constrain for me to place a router between each node.

Anyway, Im about to setup each pc such that they are in different network. how can i configure the aliases for each NIC?
 
Old 08-14-2008, 10:12 PM   #6
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
http://articles.techrepublic.com.com...1-5590748.html

But beware of this kernel bug:
https://bugs.launchpad.net/debian/+bug/210683

Last edited by Mr. C.; 08-14-2008 at 10:20 PM.
 
Old 08-14-2008, 10:23 PM   #7
tqa
LQ Newbie
 
Registered: Jun 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Im sorry..
the link can't be open
 
Old 08-14-2008, 10:30 PM   #8
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Either click the links, or right-click copy link. Don't copy/paste the actual text shown, which is abbreviated.
 
Old 08-14-2008, 10:41 PM   #9
tqa
LQ Newbie
 
Registered: Jun 2006
Posts: 24

Original Poster
Rep: Reputation: 15
Its seems like I still cant reach the site.. does this site same as this http://www.cyberciti.biz/faq/linux-c...work-card-nic/
 
Old 08-14-2008, 10:54 PM   #10
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
I just tested them both, and they both work. Which one of the two sites don't work when you click on the link directly?

If the directions in your link work, that's good enough, right?
 
Old 08-14-2008, 11:02 PM   #11
tqa
LQ Newbie
 
Registered: Jun 2006
Posts: 24

Original Poster
Rep: Reputation: 15
the cyberciti.biz works in me..I just want to confirm is that both of the site have the same content..if it is the same,it could be fine!!
anyway thanx alot for your help..Its stop me to configure how to setup the router look a like pcs. =)
 
  


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
persistent static route ANU Linux - Networking 5 04-01-2012 07:23 PM
static route anhtt Solaris / OpenSolaris 1 11-11-2007 03:50 PM
static route dvong3 Linux - Networking 1 01-25-2006 04:42 PM
Help with static route noinfo Linux - Networking 1 10-05-2005 11:40 AM
static route cox Linux - Networking 3 09-30-2003 02:22 PM

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

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