Announcement

Collapse
No announcement yet.

RH9 route add

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • RH9 route add

    Ok, I've added routes to my RH9 box, but they don't seem to work. WTF?

  • #2
    Sorry, my telepathic powers aren't working tonight. Unfortunately for you, this means that I can't magically see what you did, and in what way it doesn't work.

    Comment


    • #3
      Sorry for being so vague, i figured I'd just post to see if there was a known issue or anything.

      Anyway, we have a computer (Winchester) on a network. We want it to see the network it's on (network A), as well as network B, which it is not physically wired into. The gateway machine (Potter) is on both A and B via dual NICs. So we add a route to say "for the B subnet, go through Network A IP addy of Winchester". No dice.

      It works fine on our Sun boxes though.

      Comment


      • #4
        I think that something like

        <pre>ip route add netaddr_of_B/netmask_of_B via potter_ip_on_A</pre>

        or

        <pre>route add -net netaddr_of_b netmask netmask_of_B gw potter_ip_on_A</pre>

        There is probably also some graphical tool for this but I'm not sure since I'm at work right now.

        Comment


        • #5
          Dumb question, but is IP forwarding enabled on Potter?

          Comment


          • #6
            Now that I'm at home I looked at redhat-config-network and it has a place to add static routes, at least it does on Severn (the current beta) and I think I remember seeing it on RH9. That way you don't have to worry about messing up the syntax on those commands. I remmeber I'd always forget to add the -net and it would take me much longer than I would have liked to figure it out.

            Comment


            • #7
              Originally posted by mallowman
              I think that something like

              <pre>ip route add netaddr_of_B/netmask_of_B via potter_ip_on_A</pre>

              or

              <pre>route add -net netaddr_of_b netmask netmask_of_B gw potter_ip_on_A</pre>

              There is probably also some graphical tool for this but I'm not sure since I'm at work right now.
              I tried the graphical tool and supposedly added the route. No difference.

              Comment


              • #8
                Originally posted by runderwo
                Dumb question, but is IP forwarding enabled on Potter?
                Yep

                Comment


                • #9
                  Is this still not working? or have you given up on it? Out of curiosity, what is the output of the commands "ifconfig" and "route"?

                  Comment


                  • #10
                    Haven't given up yet. I'll go get you the outputs of those...brb.

                    Comment


                    • #11
                      Ok, I got it! when you told me to run the route command to print out the routes, i immediately noticed that the route that I added in the GUI didn't actually do anything. I re-added it, rebooted, and did a "route" again, and there it was.

                      After a few hours of tinkering, I finally got it to work. Here's the lowdown:

                      I had installed two NICs in this box right off the bat. eth0 had no connection (it was just there to play with), and eth1 actually had a wire plugged into the NIC.

                      I configured both NICs (which were both the same 3com models) with the SAME settings and the SAME routes, etc etc. Everything was the same but the IP's (they had diff IPs so that I could simply plug the box and work on it in 1 of 2 subnets)

                      However, for whatever reason, even though via the GUI program, I added the same route to BOTH NICs, and verified this multiple times, the ROUTE command only displayed it on eth0 (which was not used). Fed up, I removed both NICs from the network profile and pulled the card called "eth0". Rebooted, reconfigured, and WHAM...good to go. Don't ask my why it didn't work before.

                      Comment

                      Working...
                      X