Professional Web Applications Themes

Linux IP Routing - Linux Setup, Configuration & Administration

Hi, I am trying to route traffic between 2 subnets using linux machine. i have 2 network card on the linux machine, one leg connected to the first subnet and the second to the other subnet. I have set the /proc/sys/net/ipv4/ip_forward to 1. I am not able to ping from subnet 1 to subnet 2. Is there anything else that need to be done ? Any help/suggestion would be appreciated. Thanks,...

  1. #1

    Default Linux IP Routing

    Hi,

    I am trying to route traffic between 2 subnets using linux machine.
    i have 2 network card on the linux machine, one leg connected to the
    first subnet and the second to the other subnet.

    I have set the /proc/sys/net/ipv4/ip_forward to 1.

    I am not able to ping from subnet 1 to subnet 2.

    Is there anything else that need to be done ?
    Any help/suggestion would be appreciated.


    Thanks,
    Eyal Guest

  2. #2

    Default Re: Linux IP Routing

    Eyal Rif <com> wrote: 

    What's the routing table of the gateway? Have you assigned
    the IPs correctly to the two nics? (I mean: is eth0 really
    connected to the correct network?)

    Davide
    Davide Guest

  3. #3

    Default Re: Linux IP Routing

    On 26 Nov 2003 11:50:49 -0800, Eyal Rif <com> wrote: 

    Since you provided absolutely no info about your specific networks or
    routing it is impossible to tell what might be wrong. But do the boxes on
    each subnet have either have a route to the Linux box as a gateway for the
    other subnet, or a default route to the Linux box?

    --
    David Efflandt - All spam ignored http://www.de-srv.com/
    David Guest

  4. #4

    Default Re: Linux IP Routing

    com (David Efflandt) wrote in message news:<xnet.com>... 
    >
    > Since you provided absolutely no info about your specific networks or
    > routing it is impossible to tell what might be wrong. But do the boxes on
    > each subnet have either have a route to the Linux box as a gateway for the
    > other subnet, or a default route to the Linux box?[/ref]
    Hi,

    Here is more details regarding my current configuration

    Machine A(10.1.1.1/255.0.0.0)
    route - 20.0.0.0 10.1.1.2
    |
    |
    |
    Linux Router ( has 2 NICs) - NIC1 - 10.1.1.2
    NIC2 - 20.1.1.1
    route 20.0.0.0 0.0.0.0 NIC2
    route 10.0.0.0 0.0.0.0 NIC1

    |
    Machine B(20.1.1.2/255.255.255.0)
    route - 10.0.0.0 20.1.1.1

    ip_forward is set to 1.

    I can ping from A and B to both legs of the Linux Router.
    I can't ping A to B.

    Is there something I am doing wrong ?

    Thanks,
    Eyal Guest

Similar Threads

  1. Routing with WSE 2.0
    By Pete Wright in forum ASP.NET Web Services
    Replies: 3
    Last Post: February 3rd, 04:00 PM
  2. Routing
    By Dave McDuell in forum Windows Server
    Replies: 1
    Last Post: June 28th, 07:24 PM
  3. Help on routing
    By Martin Jeppesen in forum Linux / Unix Administration
    Replies: 0
    Last Post: October 15th, 02:24 AM
  4. SCO Routing
    By Robin in forum SCO
    Replies: 11
    Last Post: September 15th, 09:14 AM
  5. routing problem
    By cyborg in forum Windows Networking
    Replies: 5
    Last Post: September 9th, 11:28 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139