Junos OS

 View Only
last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  Static route with IP range

    Posted 05-02-2023 12:00

    All,

    I just have a quick question, that I think I know the answer to, but am just looking for verification. On SRX series firewalls, are static routes limited to full subnets, or can there be a range that doesn't conform to a standard subnet?
    Example: Currently we have 10.10.10.0/24 next-hop 10.10.9.1;
    Can we have something like 10.10.11.27-38 next-hop 10.10.8.1;

    Everything I find looks like it is limited to just a subnet.

    Thank you,
    Andrew



    ------------------------------
    ANDREW NEUSSENDORFER
    ------------------------------


  • 2.  RE: Static route with IP range
    Best Answer

    Posted 05-02-2023 15:33

    I believe the route statement requires a subnet mask so you could do it like:

    10.10.11.27/32 next-hop 10.10.8.1
    10.10.11.28/32 next-hop 10.10.8.1


    ------------------------------
    PAUL PETERSON
    ------------------------------



  • 3.  RE: Static route with IP range

    Posted 05-02-2023 18:14

    Paul,

    Thanks for the quick reply. That is what I was thinking. I'm going to have to list the IP addresses one at a time with the /32. I have three groups of 10 addresses, so it will just be a little more of a list.

    Thank you,
    Andrew



    ------------------------------
    ANDREW NEUSSENDORFER
    ------------------------------



  • 4.  RE: Static route with IP range

    Posted 05-02-2023 20:44

    I use this IP range to CIDR tool that creates a minimal list out of any ip range you give it.

    In your case 10.10.11.27-38 yields:

    10.10.11.27/32
    10.10.11.28/30
    10.10.11.32/30
    10.10.11.36/31
    10.10.11.38/32

    https://www.meridianoutpost.com/resources/etools/network/convert-ip-to-CIDR.php



    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------



  • 5.  RE: Static route with IP range

    Posted 05-03-2023 07:55

    Hi,
    if extra reserve addresses are allowed and/or required, you can configure as below :
    10.10.11.24/29 next-hop 10.10.8.1
    10.10.11.32/29 next-hop 10.10.8.1

    just two entries
    Regards,



    ------------------------------
    MOHUMMAD MAHDY ABBASS
    ------------------------------