Routing Question - Non-contiguous IP Blocks

Discussion in 'Cisco' started by Edumac, Sep 1, 2005.

  1. Edumac

    Edumac Guest

    Hi, I'm having a little trouble figuring out how to do this, or even if it
    can be done.

    When we originally got our t1 installed, we ordered 5 public IP addresses.
    At the time, this seemed like enough, all we needed was smtp, www, and a
    couple of other things.

    Now it turns out we need more public ip addresses for ftp, more www, etc.

    Our ISP could not expand our existing subnet. Instead, they offered us 5
    more ip addresses in a non-contiguous subnet.

    For example:

    Original subnet: 62.43.171.2 through 62.43.171.6 (255.255.255.248)

    Additional subnet: 62.43.171.242 through 62.43.171.246 (255.255.255.248)

    The way I envision this working is to put a secondary ip address on my
    router's outside interface:

    Router#(conf-int): ip address 62.43.171.242 255.255.255.248 secondary.

    But I'm not sure what the routing statement should be. Currently the
    default is set to:

    0.0.0.0 --> 62.43.171.1

    If I add a route statement: 62.43.171.241 --> 62.43.171.242, will that work
    to route traffic to/from this new subnet?

    Thanks.
     
    Edumac, Sep 1, 2005
    #1
    1. Advertising

  2. On 01.09.2005 17:40 Edumac wrote

    > Hi, I'm having a little trouble figuring out how to do this, or even if it
    > can be done.
    >
    > When we originally got our t1 installed, we ordered 5 public IP addresses.
    > At the time, this seemed like enough, all we needed was smtp, www, and a
    > couple of other things.
    >
    > Now it turns out we need more public ip addresses for ftp, more www, etc.
    >
    > Our ISP could not expand our existing subnet. Instead, they offered us 5
    > more ip addresses in a non-contiguous subnet.
    >
    > For example:
    >
    > Original subnet: 62.43.171.2 through 62.43.171.6 (255.255.255.248)
    >


    actually the subnet is 62.43.171.0/29, 62.43.171.0-62.43.171.7

    > Additional subnet: 62.43.171.242 through 62.43.171.246 (255.255.255.248)
    >


    actually the subnet is 62.43.171.240/29, 62.43.171.240-62.43.171.247

    > The way I envision this working is to put a secondary ip address on my
    > router's outside interface:
    >
    > Router#(conf-int): ip address 62.43.171.242 255.255.255.248 secondary.
    >
    > But I'm not sure what the routing statement should be. Currently the
    > default is set to:
    >
    > 0.0.0.0 --> 62.43.171.1
    >
    > If I add a route statement: 62.43.171.241 --> 62.43.171.242, will that work
    > to route traffic to/from this new subnet?
    >


    That of course will work. But observe that traffic from network1 to
    network2 always has to go via the router.

    You could also set

    ip route add 62.43.171.240/29 dev eth0

    on network1 system and

    ip route add 62.43.171.0/29 dev eth0
    ip route add default via 62.43.171.2

    on network2 system (given 62.43.171.2 is your router's primary LAN address).

    That way traffic between network1 and network2 is directly exchanged.

    Another option might be to get a /28 (or even /27) from your provider
    and to return network1.

    I would go for that option.


    Arnold
    --
    Arnold Nipper, AN45
     
    Arnold Nipper, Sep 1, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?ZGhvb3Zlcg==?=

    contiguous files

    =?Utf-8?B?ZGhvb3Zlcg==?=, Jul 28, 2005, in forum: Microsoft Certification
    Replies:
    4
    Views:
    11,194
    lowdes
    Dec 28, 2005
  2. kritaly

    gmail blocks .rar files from non-gmail address

    kritaly, Aug 17, 2005, in forum: Computer Support
    Replies:
    3
    Views:
    3,772
    Barry OGrady
    Aug 18, 2005
  3. Guest
    Replies:
    61
    Views:
    1,442
    Patrick Boch
    Mar 18, 2005
  4. Stu

    OT: When is Contiguous not Contagious?

    Stu, Mar 9, 2006, in forum: Computer Support
    Replies:
    3
    Views:
    850
    Whiskers
    Mar 9, 2006
  5. Replies:
    1
    Views:
    478
    Barry Margolin
    Mar 10, 2007
Loading...

Share This Page