Announcement

Collapse
No announcement yet.

Routing between subnets using Windows XP Pro SP2

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

  • Routing between subnets using Windows XP Pro SP2

    Here is an illustration showing what I'm trying to accomplish:



    The PCS computer (lower right) needs to be able to send email alerts. I've issued the following on PCS:

    route -p add 192.168.50.0 netmask 255.255.255.0 192.168.254.2

    From PCS I can ping 192.168.50.50, but no other members of that subnet.
    I must be missing a route or a default gateway somewhere. The route tables from both PCS and DB are below.

    Any help would be greatly appreciated.

    Dave

    Code:
    # The Setup:
    # """"""""""
    #     Computer                     IPs                        Gateway
    #     ---------- ------------------------------------------ ------------
    #     PCS         192.168.254.1
    #     DB          192.168.254.2 192.168.50.50               192.168.50.1
    #     Linksys                   192.168.50.1   123.x.x.x    123.x.x.y
    #
    #     192.168.254.0/24    PLC1 Subnet
    #     10.10.10.0/24       PLC2 Subnet               (<-- change:1 here)
    #     192.168.50.0/24     LAN Subnet
    #     123.x.x.0/24        ISP Subnet
    #
    #     The PCS computer has one network card. It is on a subnet with various PLC
    #     devices. All IPs on this subnet are statically assigned.
    #
    #     The DB computer has two network cards. One on the PLC1 subnet, the other
    #     on the office LAN subnet. It has the IPEnableRouter=1 regedit applied.
    #
    #     The Linksys router is connected to the LAN subnet. Its WAN port is
    #     connected to the DSL modem supplied by the ISP. It assigns IPs to the LAN
    #     subnet via DHCP.
    #
    # The Question:
    # """""""""""""
    #     What additional settings are required to allow computers and devices on
    #     the PLC1 subnet access to the internet?       (<-- change:2 here)
    #
    #     Computers and devices on the PLC1 subnet must be able to send email
    #     alerts.                                       (<-- change:3 here)
    #
    #     The answer likely lies in a few simple route table entries. I think the
    #     proverbial forest is hiding the trees. I can't seem to get it working.
    #
    #     On the PCS computer I tried:
    #
    #         route -p add 192.168.50.0 mask 255.255.255.0 192.168.254.2
    #
    #     Which allows ping 192.168.50.50 to work, but the rest of the subnet is
    #     inaccessible. Suggestions would be appreciated.
    #
    #     I'm guessing there are entries also required on the DB computer.
    #
    #     Thanks in advance to the community for any help offered.
    #
    #     Dave
    #
    # PCS Computer Route Table:
    # """""""""""""""""""""""""
    #     ===========================================================================
    #     0x1 ........................... MS TCP Loopback interface
    #     0x2 ...00 21 9b 87 ed a6 ...... Intel(R) Gigabit
    #     ===========================================================================
    #     Network Destination          Netmask        Gateway      Interface  Metric
    #                 0.0.0.0          0.0.0.0  192.168.254.2  192.168.254.1      20
    #               127.0.0.0        255.0.0.0      127.0.0.1      127.0.0.1       1
    #            192.168.50.0    255.255.255.0  192.168.254.2  192.168.254.1       1
    #           192.168.254.0    255.255.255.0  192.168.254.1  192.168.254.1      20
    #           192.168.254.1  255.255.255.255      127.0.0.1      127.0.0.1      20
    #         192.168.254.255  255.255.255.255  192.168.254.1  192.168.254.1      20
    #               224.0.0.0        240.0.0.0  192.168.254.1  192.168.254.1      20
    #         255.255.255.255  255.255.255.255  192.168.254.1  192.168.254.1       1
    #     Default Gateway: 192.168.254.2
    #     ===========================================================================
    #     Persistent Routes:
    #         Network Address  Netmask Gateway        Address  Metric
    #            192.168.50.0    255.255.255.0  192.168.254.2       1
    #
    #     Windows IP Configuration        Ethernet adapter PLC:
    #         Primary Dns Suffix :            Description . . : Intel(R) Gigabit
    #         Node Type . . . . . : Unknown   Dhcp Enabled. . : No
    #         IP Routing Enabled. : No        IP Address. . . : 192.168.254.1
    #         WINS Proxy Enabled. : No        Subnet Mask . . : 255.255.255.0
    #                                         Default Gateway : 192.168.254.2
    #
    # DB Computer Route Table:
    # """"""""""""""""""""""""
    #     ===========================================================================
    #     0x1 ........................... MS TCP Loopback interface
    #     0x2 ...00 17 3f ce c0 5f ...... Realtek RTL8139
    #     0x3 ...00 21 9b 87 ed 84 ...... Intel(R) Gigabit
    #     ===========================================================================
    #     Network Destination          Netmask        Gateway      Interface  Metric
    #                 0.0.0.0          0.0.0.0   192.168.50.1  192.168.50.50      20
    #               127.0.0.0        255.0.0.0      127.0.0.1      127.0.0.1       1
    #            192.168.50.0    255.255.255.0  192.168.50.50  192.168.50.50      20
    #           192.168.50.50  255.255.255.255      127.0.0.1      127.0.0.1      20
    #          192.168.50.255  255.255.255.255  192.168.50.50  192.168.50.50      20
    #           192.168.254.0    255.255.255.0  192.168.254.2  192.168.254.2      20
    #           192.168.254.2  255.255.255.255      127.0.0.1      127.0.0.1      20
    #         192.168.254.255  255.255.255.255  192.168.254.2  192.168.254.2      20
    #               224.0.0.0        240.0.0.0  192.168.50.50  192.168.50.50      20
    #               224.0.0.0        240.0.0.0  192.168.254.2  192.168.254.2      20
    #         255.255.255.255  255.255.255.255  192.168.50.50  192.168.50.50       1
    #         255.255.255.255  255.255.255.255  192.168.254.2  192.168.254.2       1
    #     Default Gateway:     192.168.50.1
    #     ===========================================================================
    #     Persistent Routes:
    #         None
    #
    #     Windows IP Configuration
    #         Primary Dns Suffix :
    #         Node Type . . . . . : Unknown
    #         IP Routing Enabled. : Yes
    #         WINS Proxy Enabled. : No
    #
    #     Ethernet adapter LAN:                     Ethernet adapter PLC:
    #         Description . . . . : Realtek RTL8139     Description . . : Intel(R) Gigabit
    #         Dhcp Enabled. . . . : Yes                 Dhcp Enabled. . : No
    #         Autoconfig Enabled  : Yes                 IP Address. . . : 192.168.254.2
    #         IP Address. . . . . : 192.168.50.50       Subnet Mask . . : 255.255.255.0
    #         Subnet Mask . . . . : 255.255.255.0       Default Gateway :
    #         Default Gateway . . : 192.168.50.1
    #         DHCP Server . . . . : 192.168.50.1
    #         DNS Servers . . . . : 142.x.x.x
    #                               142.x.x.y
    #
    #  Changes:
    #  """"""""
    #   correction 1: typo PCS2 s/b PLC2
    #   clarification 2: better qualify sentence
    #   clarification 3: better qualify sentence
    Last edited by PLCDave; 27th August 2009, 18:36. Reason: Corrections

  • #2
    Re: Routing between subnets using Windows XP Pro SP2

    Make 192.168.254.2 the gatewary for PCS and PLC1 if you want to give them internet access. You can then remove that route entry from PCS as it is too specific.
    (You could also leave the route entry on PCS and not make the gateway changes, thus isolating PCL1 communication to its subnet)

    Then on the Linksys add a route to the 192.168.254.0/24 network via 192.168.50.50 on the LAN interface.
    (This lets the 192.168.50.0 network know how to get to the 192.168.254 network. )

    Add another route to the 10.10.10.0/24 network via 192.168.50.75 to the Linksys and also the appropriate gateway entries on the 10 network devices, if you need the same access for them.
    Last edited by spfaff; 27th August 2009, 14:59.

    Comment


    • #3
      Re: Routing between subnets using Windows XP Pro SP2

      I thought making DB the gateway for the PLC1 subnet should have done the trick. I forgot the other half of routing - how to get back.

      I will try the suggestions you've provided. I may have to upgrade the Linksys router if it won't allow updates to its routing table.

      I have always wanted to better understand routing and how to implement custom routes. The sandbox this real world application provides combined with input from forums like this are proving to be the best tools in gaining that understanding.

      Thanks again for your help, I'll let you know how it goes...

      Dave

      PS: I noticed and corrected some errors in my original post when reading your reply. Chages noted in original post.

      Comment


      • #4
        Re: Routing between subnets using Windows XP Pro SP2

        I neglected to mention that you can use alternative firmware for your Linksys routers, depending on what type they are of course.

        Checkout OpenWRT or Sveasoft.

        They have more customizable options for routing and the like.

        Could be a lower cost option.

        Again, it all depends on your hardware.

        Steve

        Comment

        Working...
        X