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


Summary for Router A (PE Router for Sunnyvale)

Routing Instance for VPN

routing-instances {
    VPN-Sunnyvale-Portland-Austin{
        instance-type l2vpn;
        interface so-6/0/0.0;
        interface so-6/0/0.1;
        route-distinguisher 100:1;
        vrf-import vpn-SPA-import;
        vrf-export vpn-SPA-export;

Configure Layer 2 VPN

    protocols {
        l2vpn {
            encapsulation-type frame-relay;
            site Sunnyvale {
                site-identifier 1;
                interface so-6/0/0.0;
                interface so-6/0/0.1;
            }
        }
    }

Configure CCC Encapsulation Types for Interfaces

interfaces {
    interface so-6/0/0.0 {
        encapsulation frame-relay-ccc;
        unit 0 {
            encapsulation frame-relay-ccc;
        }
    }
    interface so-6/0/0.1 {
        encapsulation frame-relay-ccc;
        unit 1 {
            encapsulation frame-relay-ccc;
        }
    }
}

Master Protocol Instance

protocols {

Enable RSVP

    rsvp {
        interface all;
    }

Configure MPLS LSPs

    mpls {
        label-switched-path RouterA-to-RouterB {
            to 192.168.37.5;
            primary Path-to-RouterB {
                cspf;
            }
        }
        label-switched-path RouterA-to-RouterC {
            to 192.168.37.10;
            primary Path-to-RouterC {
                cspf;
            }
        }
        interface all;
    }

Configure IBGP

    bgp {
        import match-all;
        export match-all;
        group pe-pe {
            type internal;
            neighbor 192.168.37.5 {
                local-address 192.168.37.1;
                family l2vpn {
                    unicast;
                }
            }
            neighbor 192.168.37.10 {
                local-address 192.168.37.1;
                family l2vpn {
                    unicast;
                }
            }
        }
    }

    Configure VPN Policy

policy-options {
    policy-statement match-all {
        term acceptable {
            then accept;
        }
    }
    policy-statement vpn-SPA-export {
        term a {
            then {
                community add SPA-com;
                accept;
            }
        }
        term b {
            then reject;
        }
    }
    policy-statement vpn-SPA-import {
        term a {
            from {
                protocol bgp;
                community SPA-com;
            }
            then accept;
        }
        term b {
            then reject;
        }
    }
    community SPA-com members target:69:100;
}

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