SRX

last person joined: 14 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Routing issue

    Posted 11-29-2015 12:18

    Hi Guys,

     

    How I can set this routing on my SRX ?

     

    Linux:

    auto eth0
    iface eth0 inet static
     address 1.1.52.201
     netmask 255.255.255.255
     broadcast 1.1.52.201
     post-up route add 1.1.1.1 dev eth0
     post-up route add default gw 1.1.1.1
     post-down route del 1.1.1.1 dev eth0
     post-down route del default gw 1.1.1.1

     

    I was thinking about editing /etc/rc.conf and then set:

    static_routes="net1 net2"
    route_net1="-net 1.1.1.1/32 1.1.52.201"
    route_net2="default 1.1.1.1"

     

     

    but I think that's not the way to do this.

     

    Basically what I need to do is:

     

    route add 1.1.1.1 dev eth0
    route add default gw 1.1.1.1

    How I can set this on SRX?

     

    Many thanks



  • 2.  RE: Routing issue

    Posted 11-29-2015 19:35

    If I understood you correctly, this is what you are looking for :

     

          set routing-options static route 0.0.0.0/0 next-hop 1.1.1.1 resolve

          set routing-options static route 1.1.1.1 next-hop 1.1.52.201

     

    Though it doesn't conform to your first sample code ( think there are many errors in that and it doesn't make sense ); but it fits your sample in the rc.conf file sample.

     



  • 3.  RE: Routing issue

    Posted 11-30-2015 01:23

    Hi,

     

    Thank you for your help.

     

    Unfortunately I still can't access anything - I'm getting no route.

     

    Maybe this page will help you: http://help.ovh.co.uk/bridgeclient

     

    It's not my ISP but they using the same routing method as my ISP.

     

    Thanks



  • 4.  RE: Routing issue

    Posted 11-30-2015 06:19

    If I may ask are you using a vSRX as a virtual router in place of a previous linux box for the link you shared with me ? Was it working in the past when you were using the Linux Box or is this your first time you attempt to configure it this way ( I'm trying to get a baseline configuration that was working in the past as this helps solve things faster 🙂 ).

     

    Also, as per the link can you access the server ( from the OVH Manager as per link ) and obtain the IP for the server ? Or is the IP 1.1.52.201 the IP of the server ?

     



  • 5.  RE: Routing issue
    Best Answer

    Posted 11-30-2015 07:41

    Hello,

    Ssuming Your SRX interface is (for example only) fe-0/0/4, here is the equivalent JUNOS config :

     

    set interfaces lo0.0 family inet address 1.1.52.201/32
    set interfaces fe-0/0/4.0 family inet unnumbered-address lo0.0 preferred-source-address 1.1.52.201
    set routing-options static route 1.1.1.1/32 qualified-next-hop fe-0/0/4.0
    set routing-options static route 0/0 next-hop 1.1.1.1
    

    The 1.1.1.1 MUST be able to answer ARP requests coming from 1.1.52.201 and MUST NOT discard them for the reason "not on common subnet".

    HTH

    Thx

    Alex



  • 6.  RE: Routing issue

    Posted 12-01-2015 07:01

    Hi,

     

    Thank you - now everything is working.

     

    Could you possibly help me with one more problem?

     

    How I can now create static NAT from 1.1.52.201 to 10.0.50.52?