Results 1 to 4 of 4

Thread: Connecting two networks

  1. #1

    Connecting two networks

    I want to connect my two networks, Network-A(192.168.1.x) and Network-B(192.168.2.x) using a single server machine.
    The server machine with two NICS is part of both networks, means i have pluged a wire from Network-A to one NIC of that machine and pluged second wire to second NIC from Network-B. For both networks i have defined that server as gateway also.
    But i dont know how packet arriving at one NIC would be forwarded to second NIC on the serve machine and reach its destination. Do i need to use iptables to perform this job or it can be done without it.
    I also have set a flat "net.ipv4.ip_forward = 1" in a config file named "/etc/sysctl.conf" which allows to forward a packet from one NIC to other.
    I would be very thankful for this help as I have been searching for this problem for a long time

  2. #2
    If I am understanding you correctly, you want your computer to act as a router between 2 networks.
    If that is the case, you might want to look at these links:
    My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive.

  3. #3

    yes u got my objective

    yes my core aim is to send some data from one network to other, so definatly the middle machine would be working as router. but i dont want to implement on a large scale. as all the links u provided are to make a medium size network and they are readymade softwares. i just have 2 systems in each network n want to know the simplest way to do it.

  4. #4
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    If all you need is connect two networks, Linux as a Bridge can be a solution for you. The features are built into kernel but you need admin utils to manage the job.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

Similar Threads

  1. Politicians and best-effort networks
    By chris in forum General Chat
    Replies: 1
    Last Post: 07-14-2005, 12:24 AM
  2. I need help connecting two networks at my house.
    By ZeliardM in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 03-14-2005, 10:32 PM
  3. Configuring redhat 9 as a router between 2 private networks
    By menonrr in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 11-19-2004, 07:31 AM
  4. Networks for Beginners
    By Sonic Revenge in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 05-29-2002, 02:19 AM
  5. Web Hosting - Pinehead Networks
    By pinehead in forum Announcements and Suggestions
    Replies: 47
    Last Post: 02-22-2002, 12:14 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts