Date created: Tuesday, August 18, 2015 7:14:26 PM. Last modified: Wednesday, June 10, 2020 12:01:42 PM

SRX240 PE Minimum Config

This is the minimum config for OSPF & LDP for an SRX 240 which has been switched to packet-mode from flow-mode, further info here: http://net.cmed.us/Home/juniper/flow-vs-packet-mode

interfaces {
    ge-0/0/0 {
        description ME3600-Gi0/5;
        encapsulation ethernet-ccc;
        unit 0 {
            family ccc;
        }
    }
    ge-0/0/1 {
        description ME3600-Gi0/13;
        mtu 1544;
        unit 0 {
            family inet {
                address 10.0.20.4/24;
            }
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 10.0.0.4/32;
            }
        }
    }
}
protocols {
    mpls {
        interface ge-0/0/1.0;
    }
    ospf {
        traceoptions {
            file ospf-log size 10k files 5;
            flag error;
            flag hello;
            flag event;
            flag state;
            flag lsa-ack;
            flag database-description;
            flag lsa-update;
            flag lsa-request;
        }
        area 0.0.0.0 {
            interface ge-0/0/1.0;
            interface lo0.0 {
                passive;
            }
        }
    }
    ldp {
        interface ge-0/0/1.0;
        interface lo0.0;
    }
    l2circuit {
        neighbor 10.0.0.1 {
            interface ge-0/0/0.0 {
                virtual-circuit-id 123;
            }
        }
    }
}
security {
    forwarding-options {
        family {
            mpls {
                mode packet-based;
            }
        }
    }
    zones {
        security-zone trust {
            host-inbound-traffic {
                system-services {
                    all;
                }
                protocols {
                    all;
                }
            }
            interfaces {
                ge-0/0/1.0 {
                    host-inbound-traffic {
                        system-services {
                            all;
                        }
                        protocols {
                            all;
                        }
                    }
                }
            }
        }
    }
}