PE1 @ 5 – BGP MVPN with mLDP Transport

## Last commit: 2015-02-08 16:15:35 UTC by juniper
version “14.2I20150107_0731_vvenkatraman [vvenkatraman]”;
system {
    host-name PE1;
    root-authentication {
        encrypted-password “$1$66bx.vo9$PIll8o9lJjY1Ll0FB4vR90”; ## SECRET-DATA
    }
    login {
        user juniper {
            uid 2000;
            class super-user;
            authentication {
                encrypted-password “$1$/W70nWca$D8n.ofd3z0BrIalpS7bO9/”; ## SECRET-DATA
            }
        }
    }
    services {
        ssh;
        telnet;
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
    }
}
chassis {
    fpc 2 {
        pic 0 {
            tunnel-services {
                bandwidth 10g;
            }
        }
    }
}
interfaces {
    ge-2/0/0 {
        mac 00:50:56:8b:69:0e;
        unit 0 {
            family inet {
                address 10.255.0.21/16;
            }
        }
    }
    vt-2/0/0 {
        unit 1 {
            family inet;
        }
    }
    ge-2/0/1 {
        vlan-tagging;
        mac 00:50:56:8b:4d:21;
        unit 1010 {
            vlan-id 1010;
            family inet {
                address 10.1.0.1/31;
            }
        }
    }
    ge-2/0/2 {
        vlan-tagging;
        mac 00:50:56:8b:4f:c8;
        unit 1011 {
            vlan-id 1011;
            family inet {
                address 10.1.11.1/24;
            }
        }
    }
    ge-2/0/3 {
        mac 00:50:56:8b:a4:3d;
        unit 0 {
            family inet {
                address 10.0.0.0/31;
            }
            family iso;
            family mpls;
        }
    }
    ge-2/0/4 {
        mac 00:50:56:8b:0d:d5;
        unit 0 {
            family inet {
                address 10.0.0.2/31;
            }
            family iso;
            family mpls;
        }
    }
    ge-2/0/5 {
        mac 00:50:56:8b:ea:34;
    }
    lo0 {
        unit 0 {
            family inet {
                address 172.16.0.11/32;
            }
            family iso {
                address 49.0000.1720.1600.0011.00;
            }
        }
        unit 1 {
            family inet {
                address 192.168.10.11/32;
            }
        }
    }
}
routing-options {
    static {
        route 0.0.0.0/0 discard;
    }
    router-id 172.16.0.11;
    autonomous-system 0.65000;
    forwarding-table {
        export PL-LB;
    }
}
protocols {
    igmp {
        interface ge-2/0/2.1011 {
            version 3;
        }
    }
    rsvp {
        interface ge-2/0/3.0;
        interface ge-2/0/4.0;
    }
    mpls {
        icmp-tunneling;
        interface ge-2/0/3.0;
        interface ge-2/0/4.0;
    }
    bgp {
        group IBGP-RR {
            type internal;
            local-address 172.16.0.11;
            advertise-inactive;
            family inet {
                unicast;
            }
            family inet-vpn {
                unicast;
            }
            family inet-mvpn {
                signaling;
            }
            export PL-IBGP-RR-OUT;
            mvpn-iana-rt-import;
            neighbor 172.16.0.201;
            neighbor 172.16.0.202;
        }
    }
    isis {
        level 1 disable;
        level 2 wide-metrics-only;
        interface ge-2/0/3.0 {
            point-to-point;
            level 2 metric 100;
        }
        interface ge-2/0/4.0 {
            point-to-point;
        }
        interface lo0.0;
    }
    ldp {
        track-igp-metric;
        interface ge-2/0/3.0;
        interface ge-2/0/4.0;
        p2mp;
    }
    lldp {
        interface all;
    }
}
policy-options {
    policy-statement PL-EBGP-65001-OUT {
        term DIRECT {
            from {
                route-filter 10.1.11.0/24 exact;
                route-filter 192.168.10.11/32 exact;
            }
            then accept;
        }
    }
    policy-statement PL-IBGP-RR-OUT {
        term NHS {
            from family inet;
            then {
                next-hop self;
            }
        }
        term DIRECT {
            from {
                route-filter 10.1.11.0/24 exact;
            }
            then accept;
        }
    }
    policy-statement PL-LB {
        then {
            load-balance per-packet;
        }
    }
    policy-statement PL-VRF-A-EXP {
        term EBGP {
            from protocol bgp;
            then {
                community add RT-VPN-A;
                accept;
            }
        }
        term CONNECTED {
            from {
                protocol direct;
                route-filter 10.1.11.0/24 exact;
                route-filter 192.168.10.11/32 exact;
            }
            then {
                community add RT-VPN-A;
                accept;
            }
        }
        term MULTICAST {
            from family inet-mvpn;
            then {
                community add RT-VPN-A;
                accept;
            }
        }
    }
    policy-statement PL-VRF-A-IMP {
        term MATCH-RT-VPN-A {
            from community RT-VPN-A;
            then accept;
        }
    }
    community RT-VPN-A members target:65000:1001;
    community SRC-AS members src-as:65000:0;
}
routing-instances {
    VRF-A {
        instance-type vrf;
        interface vt-2/0/0.1 {
            multicast;
        }
        interface ge-2/0/1.1010;
        interface ge-2/0/2.1011;
        interface lo0.1;
        route-distinguisher 172.16.0.11:101;
        provider-tunnel {
            rsvp-te {
                label-switched-path-template {
                    default-template;
                }
            }
            selective {
                group 232.0.0.0/8 {
                    source 0.0.0.0/0 {
                        rsvp-te {
                            label-switched-path-template {
                                default-template;
                            }
                        }
                    }
                }
            }
        }
        vrf-import PL-VRF-A-IMP;
        vrf-export PL-VRF-A-EXP;
        vrf-table-label;
        protocols {
            bgp {
                group EBGP-65001 {
                    export PL-EBGP-65001-OUT;
                    peer-as 65001;
                    as-override;
                    neighbor 10.1.0.0;
                }
            }
            pim {
                interface ge-2/0/1.1010;
                interface ge-2/0/2.1011;
            }
            mvpn {
                mvpn-mode {
                    rpt-spt;
                }
            }
        }
    }
}

Advertisements