LinuxQuestions.org
Review your favorite Linux distribution.
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-02-2005, 08:15 AM   #1
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
iproute


Hi to all,

I'm having problems writing iproute cmds..

I have a PC that is connected to a switch together with other PCs. The subnet is 192.168.10.0/24. I want to direct the traffic of, say PC_A, to PC_X using iproute. The destination of the traffic from PC_A is PC_B. The traffic has to go through PC-X before going to PC-B. HOw can i do that?

Pls help...

Regards,
Visham
 
Old 08-02-2005, 10:28 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
To get from PC-A to PC-B you want to go through PC-X? And all three PC's are in the same subnet 192.168.10.0?

If all three PC's are in the same switch and the same subnet then they don't require routes to talk to each other, that is handled by ARP.

If PC-X is connected to another subnet and you want PC-A and PC-B to get to that subnet then you need to configure PC-X as the default gateway on PC-A and B.

Otherwise you need to clarrify your topology as it sounds somewhat confused from your description.
 
Old 08-03-2005, 12:50 AM   #3
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Hi Pete,

First of all, many thx for your reply...

actually the topology is as I described it and as you understood it..Yes the three PCs are on the same subnet and connected to the same switch. Normally if PC_A and PC_B want to communicate, a virtual circuit is created between them by the switch. They speak directly to each othr. I don't want that. I want PC_A to communicate with PC_B through PC_X, all of which are found on the same subnet and connected to the same switch. PC_X has to do some processing on the traffic from PC_A to PC_B. Is that achievable using iproute?

Regards,
Visham
 
Old 08-03-2005, 02:13 AM   #4
javaroast
Member
 
Registered: Apr 2005
Posts: 131

Rep: Reputation: 19
ip route

Here is an example of the command to use on PC_A

ip route add (PC_B IP Address/32 via PC_X IP Address)

ie ip route add 192.168.10.5/32 via 192.168.10.10

That should do it for you.
 
Old 08-04-2005, 01:40 AM   #5
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Many many thx for the reply Javaroast..

Two things more:

1)

If I want PC_A to talk to each other member of the subnet that is connected to the same switch (i.e the whole cluster) through PC_X, will it be sth like this:

ip route add 192.168.10.0/24 via 192.168.10.10


2)

If I have to load balance the traffic from PC_A to any other member of the cluster (192.168.10.0) through PC_X and PC_Y, what will the rule be like? I know we have to use the "equalize" and "weight" keywords. I having problems with the syntax.

Can you help?

Thx again..

Warm regards,
Visham
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tables in iproute mikerock Linux - Networking 1 05-12-2005 03:39 AM
new to iproute. please help ? mrpc_cambodia Red Hat 0 07-05-2004 11:20 PM
iproute with 2.6.5 (slack 9.1) Soma Slackware 4 04-20-2004 02:17 AM
Where to Download iproute? mooreted Slackware 6 03-05-2004 08:04 PM
2 versions of iproute ? lozz1978 Linux - Newbie 2 01-07-2004 10:58 AM

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

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