Find the answer to your Linux question:
Results 1 to 5 of 5

Thread: Linux Routing

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Linux Routing


    Hi friends,
    I need to setup a linux router. The computer that is to be the router has 2 ethernet cards with ips 192.168.0.1 and 192.168.1.1.

    Its like this:
    COMP1: 192.168.0.2

    COMP2: (ROUTER) :2 cards
    card1: 192.168.0.1
    card2: 192.168.1.1

    COMP3: 192.168.1.2

    Now whenever I send a packet from COMP1 to COMP3, it comes to COMP2 card1 but does not go to COMP3 nor card2 of COMP2.

    What is the porblem???
    Please give me a sample configuration if possible...
    Thanx in advance...

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    in the computer which has 2 network cards
    go to
    /proc/sys/net/ipv4/
    and as root

    echo 1 > ip_forward !
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3

    Red face

    Quote Originally Posted by cyberinstru
    echo 1 > ip_forward !
    Is that all???

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    That shud be enuf

    echo 1 > /proc/sys/net/ipv4/ip_forward
    COMP1 default Gw is 192.168.0.2

    and the default gateway of COMP3 is 192.168.1.1
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  6. #5

    Thumbs up

    Quote Originally Posted by cyberinstru
    That shud be enuf
    COMP1 default Gw is 192.168.0.2
    and the default gateway of COMP3 is 192.168.1.1
    Thank u so much...

Posting Permissions

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