LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Routing concept (https://www.linuxquestions.org/questions/linux-networking-3/routing-concept-368384/)

ajkannan83 09-30-2005 03:55 AM

Routing concept
 
Hello friends

My question is

Windows 2000 Professional Machine 1 (IP) – 192.168.0.100 (IP Routing is already enabled)

Redhat Linux Server 9.0 Machine (IP NIC 1) – 192.168.0.104
(IP NIC 2) – 192.168.0.103

Windows 2000 Professional Machine 2 (IP) – 192.168.0.66 (IP Routing is already enabled)


Windows 2000 Professional Machine 1 and Red hat Linux Server 9.0 (NIC 1) is connected to 8 port switch 1.

Redhat Linux Server 9.0(NIC 2) and Windows2000 Professional Machine 2 is connected to another 8 port switch 2.

In Windows 2000 Professional Machine 1 > ping 192.168.0.66(call windows Prof Machine2)

Request timed out
Request timed out
Request timed out
…

But a UTP cable is connected between two switches (Switch 1 & Switch 2) it is pinging.

But I don’t want this.

If any routing concepts to ping two machines (Windows Machine 1 & Windows Machine 2)

If any routing enable in Linux server.

Whether any idea please reply.

Thank you

Snowbat 09-30-2005 05:27 AM

So at the moment it looks like this. The problem here is all machines are on the same subnet. Linux (unless you use advanced routing techniques) will have only one logical route to this subnet so ALL traffic to the subnet will be sent either to eth0 or eth1 BUT NOT BOTH:
Code:

  --------------------------------
  [RH9                          ]
  [192.168.0.104  192.168.0.103 ]
  --------------------------------
      |                      |
-----------------      ----------------
[switch 1      ]------[switch 2      ]
-----------------      ----------------
      |                      |
----------------      ----------------
[2K m1        ]      [2K m2        ]
[192.168.0.100 ]      [192.168.0.66  ]
----------------      ----------------

If you want to use routing, you'll need to introduce a new subnet, say 192.168.1.0.
Code:

  --------------------------------
  [RH9                          ]
  [192.168.0.104    192.168.1.1  ]
  --------------------------------
      |                      |
-----------------      ----------------
[switch 1      ]      [switch 2      ]
-----------------      ----------------
      |                      |
----------------      ----------------
[2K m1        ]      [2K m2        ]
[192.168.0.100 ]      [192.168.1.2  ]
----------------      ----------------

I've removed the link between switch 1 and switch 2, but you could leave it in. It won't be used anyway. To achieve this:
RH9 machine
Code:

ifconfig eth1 192.168.1.1
echo 1 > /proc/sys/net/ipv4/ip_forward

2K m1: Ensure default route is 192.168.0.104
2K m2: Ensure default route is 192.168.1.1


All times are GMT -5. The time now is 04:26 PM.