[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 Version 2 (OSPF), Open Shortest Path First version 3 (OSPFv3), Protocol Independent Multicast (PIM), Routing Information Protocol (RIP), and static routes by including statements at the following hierarchy levels:

[edit routing-instances routing-instance-name protocols]

[edit logical-routers logical-router-name routing-instances routing-instance-name protocols]

Each routing instance consists of sets of the following:

You can configure six types of routing instances:

For more detailed information about configuring VPNs and Layer 2 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:

[edit]
routing-instances {

    routing-instance-name { 
        description text;
        forwarding-options;
        interface interface-name;
        instance-type (forwarding | l2vpn | no-forwarding | virtual-router | vpls | 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;
            }
            l2vpn {
                l2vpn-configuration;
            }
            ldp {
                ldp-configuration;
            }
            ospf {
                domain-id domain-id;
                domain-vpn-tag number;
                route-type-community (iana | vendor);
                ospf-configuration;
            }
            ospf3 {
                domain-id domain-id;
                domain-vpn-tag number;
                route-type-community (iana | vendor);
                ospf3-configuration;
            }
            pim {
                pim-configuration;
            }
            rip {
                rip-configuration;
            }
            vpls {
                vpls-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>; 
            }
        }
    }
}

You can configure the statements at the following hierarchy levels:


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