PE3 @ 5 – BGP MVPN with mLDP Transport and C-PIM ASM

## Last commit: 2015-02-11 21:42:20 UTC by juniper
version “14.2I20150107_0731_vvenkatraman [vvenkatraman]”;
system {
    host-name PE3;
    root-authentication {
        encrypted-password “$1$16KQQHMf$BF/M2czmieG3p6aPZzMgQ0”; ## SECRET-DATA
    }
    login {
        user juniper {
            uid 2000;
            class super-user;
            authentication {
                encrypted-password “$1$0bM5RjcF$.2/5R95p7bBHBphC5atit0”; ## 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:4b:4f;
        unit 0 {
            family inet {
                address 10.255.0.23/16;
            }
        }
    }
    vt-2/0/0 {
        unit 0 {
            family inet;
        }
    }
    ge-2/0/1 {
        mac 00:50:56:8b:de:eb;
        unit 0 {
            family inet {
                address 10.0.0.9/31;
            }
            family iso;
            family mpls;
        }
    }
    ge-2/0/2 {
        mac 00:50:56:8b:8f:be;
        unit 0 {
            family inet {
                address 10.0.0.12/31;
            }
            family iso;
            family mpls;
        }
    }
    ge-2/0/3 {
        vlan-tagging;
        mac 00:50:56:8b:93:85;
        unit 1034 {
            vlan-id 1034;
            family inet {
                address 10.2.0.33/24 {
                    vrrp-group 20 {
                        virtual-address 10.2.0.100;
                        priority 200;
                        preempt;
                        accept-data;
                    }
                }
            }
        }
    }
    ge-2/0/4 {
        vlan-tagging;
        mac 00:50:56:8b:eb:18;
        unit 1033 {
            vlan-id 1033;
            family inet {
                address 10.2.33.3/24;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 172.16.0.33/32;
            }
            family iso {
                address 49.0000.1720.1600.0033.00;
            }
        }
        unit 1 {
            family inet {
                address 192.168.20.33/32 {
                    primary;
                }
                address 10.10.10.10/32;
            }
        }
    }
}
routing-options {
    router-id 172.16.0.33;
    autonomous-system 65000;
    forwarding-table {
        export PL-LB;
    }
}
protocols {
    igmp {
        interface ge-2/0/4.1033 {
            version 3;
        }
        interface ge-2/0/3.1034 {
            version 3;
        }
    }
    rsvp {
        interface ge-2/0/1.0;
        interface ge-2/0/2.0;
    }
    mpls {
        icmp-tunneling;
        interface ge-2/0/1.0;
        interface ge-2/0/2.0;
    }
    bgp {
        group IBGP-RR {
            type internal;
            local-address 172.16.0.33;
            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/1.0 {
            point-to-point;
        }
        interface ge-2/0/2.0 {
            point-to-point;
            level 2 metric 100;
        }
        interface lo0.0;
    }
    ldp {
        track-igp-metric;
        interface ge-2/0/1.0;
        interface ge-2/0/2.0;
        p2mp;
    }
}
policy-options {
    policy-statement PL-EBGP-65002-OUT {
        term DIRECT {
            from {
                route-filter 10.2.33.0/24 exact;
                route-filter 192.168.20.33/32 exact;
                route-filter 10.10.10.10/32 exact;
            }
            then accept;
        }
        term BGP {
            from protocol bgp;
            then {
                community delete RT-ALL;
                community delete RI-ALL;
                community delete SRC-AS-ALL;
            }
        }
    }
    policy-statement PL-IBGP-RR-OUT {
        term NHS {
            then {
                next-hop self;
            }
        }
        term DIRECT {
            from {
                route-filter 10.2.33.0/24 exact;
                route-filter 10.2.0.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.2.33.0/24 exact;
                route-filter 192.168.20.33/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 RI-ALL members rt-import:*:*;
    community RT-ALL members target:*:*;
    community RT-VPN-A members target:65000:1001;
    community SRC-AS-ALL members src-as:*:*;
}
routing-instances {
    VRF-A {
        instance-type vrf;
        interface vt-2/0/0.0 {
            multicast;
        }
        interface ge-2/0/3.1034;
        interface ge-2/0/4.1033;
        interface lo0.1;
        route-distinguisher 172.16.0.33:101;
        vrf-import PL-VRF-A-IMP;
        vrf-export PL-VRF-A-EXP;
        vrf-table-label;
        routing-options {
            multicast {
                ssm-groups 226.0.0.0/8;
            }
        }
        protocols {
            bgp {
                group EBGP-65002 {
                    export PL-EBGP-65002-OUT;
                    peer-as 65002;
                    as-override;
                    neighbor 10.2.0.3;
                }
            }
            pim {
                rp {
                    local {
                        address 10.10.10.10;
                    }
                }
                interface ge-2/0/3.1034;
                interface ge-2/0/4.1033;
            }
            mvpn;
        }
    }
}

Advertisements