How do I set my subnet mask for this range??

Discussion in 'Cisco' started by batmon, Dec 19, 2003.

  1. batmon

    batmon Guest

    Hi,

    I need to have two routes, one to connection 1 and one to connection
    2. Here is what I want.

    10.10.0.0/16 (class B) all go to gateway 1 expect
    10.10.200.0/24 ~ 10.10.212.0/24 -> these goes to gateway 2.

    How do I do this?? can I do it with length mask or subnet maske? I
    can enter more then one entry to make it work, that's fine.

    Thank you.
     
    batmon, Dec 19, 2003
    #1
    1. Advertisements

  2. batmon

    Brian V Guest

    Pretty simple,

    Just add 2 routes.
    ip route 10.10.200.0 255.255.255.0 x.x.x.x
    ip route 10.10.0.0 255.255.0.0 y.y.y.y

    Routing will always take best/most match path first.

    -Brian
     
    Brian V, Dec 19, 2003
    #2
    1. Advertisements

  3. :I need to have two routes, one to connection 1 and one to connection
    :2. Here is what I want.

    :10.10.0.0/16 (class B) all go to gateway 1 expect
    :10.10.200.0/24 ~ 10.10.212.0/24 -> these goes to gateway 2.

    :How do I do this?? can I do it with length mask or subnet maske? I
    :can enter more then one entry to make it work, that's fine.

    ip route 10.10.200.0 255.255.248.0 gateway2
    ip route 10.10.208.0 255.255.252.0 gateway2
    ip route 10.10.212.0 255.255.255.0 gateway2
    ip route 10.10.0.0 255.255.0.0 gateway1
     
    Walter Roberson, Dec 19, 2003
    #3
  4. batmon

    Rick Guest

    These 3 lines should cover what you want.

    ip route 10.10.200.0 255.255.248.0 x.x.x.x
    ip route 10.10.208.0 255.255.252.0 x.x.x.x
    ip route 10.10.0.0 255.255.0.0 y.y.y.y
     
    Rick, Dec 19, 2003
    #4
  5. batmon

    Rick Guest

    OOPS!
    These 4 lines should cover what you want.

    ip route 10.10.200.0 255.255.248.0 x.x.x.x
    ip route 10.10.208.0 255.255.252.0 x.x.x.x
    ip route 10.10.212.0 255.255.255.0 x.x.x.x
    ip route 10.10.0.0 255.255.0.0 y.y.y.y
     
    Rick, Dec 19, 2003
    #5
  6. batmon

    Brian V Guest

    I missed the 10.10.200 thru 212 in your question, took it as only 10.10.200
    My bad, Walter and Rick have it right!
    -Brian
     
    Brian V, Dec 20, 2003
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.