Junos OS

last person joined: 20 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  Static route to gateway

    Posted 08-20-2015 23:33

    hello guys need your help whether this is a correct config.

     

    netscreen:
    set route 0.0.0.0/0 interface e_if_3 gateway 8.1.QQ.XX preference 20


    -------


    JunOS:
    set interfaces ge-1/2/0 unit 1 description to->outside_world
    set interfaces ge-1/2/0 unit 1 Inside_Me inet address 5.1.QQ.XX/27

    set routing-options static route 0.0.0.0/0 next-hop 8.1.QQ.XX preference 20

     

    is it okay to specify subnet mask "/27" or it should be "/24"?

     

    Correct subnet mask is /27, when configuring  does it needs to be set as "/24"?

     

    Thanks for any help.



  • 2.  RE: Static route to gateway

     
    Posted 08-20-2015 23:37

    Hi JJJCR,

     

    If the correct subnet is /27 you need to specify /27 itself.

    You do not need to specify /24.

     

    If the subnet is /30 you should specify it as /30.

     

     



  • 3.  RE: Static route to gateway

    Posted 08-20-2015 23:40

    Hi ssn, thanks for the clarification.

     

    Is the configuration correct?

     

    Thanks.



  • 4.  RE: Static route to gateway

     
    Posted 08-20-2015 23:42

    Yes JJJCR , the configuration is correct.

    I am assuming that you want the prefernce of the static route to be set as 20.



  • 5.  RE: Static route to gateway

    Posted 08-21-2015 01:24

    Yes, i'm setting the preference to 20 because there is another route.

     

    But if I will be having one static route, I can omit the preference?



  • 6.  RE: Static route to gateway
    Best Answer

    Posted 08-21-2015 02:59

    Hello,

     

    No it is not correct as JUNOS won't allow You to set "unit 1" without "vlan-tagging" + "vlan-id" knobs, it has to be "unit 0" then.

    HTH

    Thanks

    Alex



  • 7.  RE: Static route to gateway

    Posted 08-23-2015 23:58

    Thanks, Alex.