[Contents] [Prev] [Next] [Index] [Report an Error]


Routing Instances Configuration Guidelines

You can create multiple instances of Border Gateway Protocol (BGP), Intermediate System-to-Intermediate System (IS-IS), Label Distribution Protocol (LDP), Open Shortest Path First (OSPF), Protocol Independent Multicast (PIM), Routing Information Protocol (RIP), and static routes by including statements at the [edit routing-instances routing-instance-name protocols] hierarchy level.

Each routing instance consists of sets of the following:

You can configure four types of routing instances:

For more detailed information about configuring VPNs, see the JUNOS Internet Software Configuration Guide: VPNs.

This chapter describes the following tasks for configuring routing instances:

To configure routing instances, include the following statements at the [edit routing-instances] hierarchy level of the configuration:

[edit]
routing-instances {

    routing-instance-name { 
        description text;
        forwarding-options {
            family (inet | inet6 | mpls) {
                filter {
                    input filter-name;
                }
            }
            hash-key {
                family inet {
                    layer-3 ;
                    layer-4 ;
                }
                family mpls {
                    label-1;
                    label-2;
                }
            }
            helpers {
                bootp {
                    description description-of-service;
                    interface interface-group {
                        description description-of-interface;
                        maximum-hop-count number;
                        minimum-wait-time seconds;
                        no-listen;
                        server [ addresses ]
                    maximum-hop-count number;
                    minimum-wait-time seconds;
                    server address < [ routing-instance routing-instance-name ] >;

                domain {
                    description description-of-service;

                    server address;

                    interface interface-name {
                        description description-of-interface;

                        no-listen;

                        server address < [ routing-instance routing-instance-name ] >;

                    }
                }

                tftp {
                    description description-of-service;

                    server address < [ routing-instance routing-instance-name ] >;

                    interface interface-name {
                        description description-of-interface;

                        no-listen;

                        server address;
                    }

                }

                traceoptions {

                    file filename {

                        files number;

                        size bytes;

                    }
                    flag flag;

                    level level;

                }

            }
            sampling {
                disable; 
                input {
                    family inet {
                        max-packets-per-second number;
                        rate number ;
                        run-length number ;
                    }
                }
                output {
                    cflowd host-name {
                        aggregation {
                            autonomous-system;
                            destination-prefix;
                            protocol-port;
                            source-destination-prefix {
                                caida-compliant;
                            }
                            source-prefix;
                        }
                        autonomous-system-type (origin | peer);

                        (local-dump | no-local-dump);

                        port port-number;

                        version format; 

                    }
                    file {
                        disable;
                        filename filename;
                        files number;
                        size bytes ;
                        (stamp | no-stamp);
                        (world-readable | no-world-readable);
                    }
                    port-mirroring {
                        interface interface-name;
                        next-hop address;
                    }
                }
                traceoptions {
                    file filename  {
                        files number;
                        size bytes ;
                        (world-readable | no-world-readable);
                    }
                }
            }
        }
        interface interface-name;
        instance-type (forwarding | l2vpn | no-forwarding | vrf);
        route-distinguisher (as-number:number  |  ip-address:number);
        vrf-import [ policy-names ];
        vrf-export [ policy--names ];
        vrf-table-label; 
        vrf-target {
            export community-name;
            import community-name;
        }
        protocols {
            bgp {
                bgp-configuration;
            }
            isis {
                isis-configuration;
            }
            ldp {
                ldp-configuration;
            }
            ospf {
                ospf-configuration ;
            }
            pim {
                pim-configuration ;
            }
            rip {
                rip-configuration;
            }
        }
        routing-options {
            aggregate {
                defaults {
                    aggregate-options;
                }
                route destination-prefix {
                    policy policy-name;
                    aggregate-options;
                }
            }
            auto-export {
                (disable | enable);
                family {
                    inet {
                        multicast {
                            (disable | enable);
                            rib-group rib-group;
                        }
                        unicast {
                            (disable | enable);
                            rib-group rib-group;
                        }
                    }
                }
                traceoptions {
                    file name <replace> <size size> <files number> <no-stamp> <world-readable>; 
                    flag flag <flag-modifier> <disable>; 
                }
            }
            autonomous-system autonomous-system <loops number>;
            confederation confederation-autonomous-system members autonomous-system ;
            fate-sharing { 
                group group-name;
                cost value ;
                from address [to address] ;
            }
            forwarding-table {
                export [ policy-names ];
            } 
            generate {
                defaults {
                    generate-options;
                }
                route destination-prefix {
                    policy policy-name;
                    generate-options;
                }
            }
            instance-export [ policy-names ];
            instance-import [ policy-names ];
            interface-routes {
                rib-group group-name ;
            }
            martians {
                destination-prefix match-type <allow>; 
            }
            maximum-routes route-limit <log-only | threshold value>;
            multicast { 
                scope scope-name {
                    interface interface-name ;
                    prefix destination-prefix ;
                }
                ssm-groups {
                    addresses;
                }
            }
            options {
                syslog (level level | upto level );
            }
            resolution {
                tracefilter [ policy-names ];
                traceoptions {
                    file name <replace> <size size> <files number > <no-stamp> 
                        <(world-readable | no-world-readable)>;
                    flag flag <flag-modifier> <disable>;
                }
            }
            rib routing-table-name {
                aggregate {
                    defaults {
                        aggregate-options;
                    }
                    route destination-prefix {
                        policy policy-name ;
                        aggregate-options;
                    }
                }
                generate {
                    defaults {
                        generate-options;
                    }
                    route destination-prefix {
                        policy policy-name;
                        generate-options;
                    }
                }
                martians {
                    destination-prefix match-type <allow>; 
                }
                static {
                    defaults {
                        static-options;
                    }
                    rib-group group-name;
                    route destination-prefix {
                        lsp-next-hop {
                            metric metric;
                            preference preference;
                        }
                        next-hop;
                        qualified-next-hop {
                            metric metric;
                            preference preference;
                        }
                        static-options;
                    }
                }
            }
            rib-groups {
                group-name {
                    import-policy [ policy-names ;
                    import-rib [ group-names ];
                    export-rib group-name; 
                }
            }
            route-record ;
            router-id address  ;
            static {
                defaults {
                    static-options;
                }
                rib-group group-name;
                route destination-prefix {
                    lsp-next-hop {
                        metric metric;
                        preference preference;
                    }
                    next-hop;
                    qualified-next-hop {
                        metric metric;
                        preference preference;
                    }
                    static-options;
                }
            }
            traceoptions {
                    file name <replace> <size size> <files number > <no-stamp> 
                        <(world-readable | no-world-readable)>;
                    flag flag <flag-modifier> <disable>; 
            }
        }
    }
}

[Contents] [Prev] [Next] [Index] [Report an Error]