Junos OS

last person joined: 6 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Initial setup routing over gateway in other subnet

    Posted 10-31-2015 07:39

    Hi,

    Being in the process of replacing an test Linux box with a vSRX I ran into patrol on setting up the routing on the external interface.

     

    Basically what I need to achieve is to route 0.0.0.0/0 from my 111.222.245.188 interface through an gateway in a different subnet, namely 111.222.235.129.

    Now, I got this working on my old solution, but I don't know what I'm missing on the SRX. The only thing this config results in is that he neglects the routes to the gateway as they're considered unreachable.

     

     

     

    Both the old and the new setup/config is attached and I'm greatful for any help I can get.

     

    Cheers,
    Chris

    Attachment(s)



  • 2.  RE: Initial setup routing over gateway in other subnet
    Best Answer

    Posted 10-31-2015 09:21

    The best answers are the ones you provide yourself 😉

     

    So, got it to work and here's the config for reference:

     

    interfaces {
        ge-0/0/0 {
            unit 0 {
                family inet {
                    unnumbered-address lo0.0;
                }
            }
        }
        ge-0/0/1 {
            unit 0 {
                family inet {
                    address 10.49.0.1/24;
                }
            }
        }
        fxp0 {
            unit 0;
        }
        lo0 {
            unit 0 {
                family inet {
                    address 111.222.245.188/32;
                }
            }
        }
    }
    routing-options {
        static {
            route 0.0.0.0/0 {
                next-hop 111.222.235.129;
                resolve;
            }
            route 111.222.235.129/32 {
                qualified-next-hop ge-0/0/0.0;
            }
        }
    }

    Cheers,

    Chris


    #point-to-point
    #hostrouting