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


Summary for Router C (PE Router for Portland)

Routing Instance for VPN

routing-instances {
    VPN-Sunnyvale-Portland-Austin {
        instance-type l2vpn;
        interface so-6/0/0.3;
        interface so-6/0/0.4;
        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 Portland {
                    site-identifier 3;
                    interface so-6/0/0.4 {
                        remote-site-id 1;
                    }
                    interface so-6/0/0.5 {
                        remote-site-id 2;
                    }
                }
            }
        }
    }
}

Configure CCC Encapsulation Types for Interfaces

[edit]
interfaces {
    interface so-6/0/0 {
        encapsulation frame-relay-ccc;
        unit 4 {
            encapsulation frame-relay-ccc;
        }
    }
    interface so-6/0/0 {
        encapsulation frame-relay-ccc;
        unit 5 {
            encapsulation frame-relay-ccc;
        }
    }
}

    Master Protocol Instance

protocols {

Enable RSVP

    rsvp {
        interface all;
    }

Configure MPLS LSPs

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

Configure IBGP

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

    Configure VPN Policy

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


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