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


Requesting Specific Routes on the Customer 2 Router

Customer 2 has a link to the ISP, as well as a link to AS 8000. This customer has requested specific customer routes from the ISP, as well as from AS 8000. Customer 2 wants to use the ISP for transit service to the Internet, and has requested a default route from the ISP.

[edit]
interfaces {
    so-0/0/1 {
        description "Connection to ISP Router 3";
        unit 0 {
            family inet {
                address 10.222.61.2/30;
            }
        }
    }
    so-0/0/2 {
        description "Connection to Private-Peer 2";
        unit 0 {
            family inet {
                address 10.222.6.1/30;
            }
        }
    }
    fxp0 {
        description "MGMT INTERFACE - DO NOT DELETE";
        unit 0 {
            family inet {
                address 10.251.0.8/24;
            }
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.64.1/32;
            }
        }
    }
}
routing-options {
    static {
        route 192.168.64.0/25 reject;
        route 192.168.64.128/25 reject;
        route 192.168.65.0/25 reject;
        route 192.168.66.0/25 reject;
        route 192.168.67.0/25 reject;
        route 192.168.65.128/25 reject;
        route 192.168.66.128/25 reject;
        route 192.168.67.128/25 reject;
    }
    autonomous-system 2468;
}
protocols {
    bgp {
        group External-Peers {
            type external;
            import inbound-routes;
            export outbound-routes;
            neighbor 10.222.61.1 {
                peer-as 1000;
            }
            neighbor 10.222.6.2 {
                peer-as 8000;
            }
        }
    }
}
policy-options {
    policy-statement outbound-routes {
        term statics {
            from protocol static;
            then accept;
        }
        term internal-bgp-routes {
            from {
                protocol bgp;
                as-path my-own-routes;
            }
            then accept;
        }
        term no-transit {
            then reject;
        }
    }
    policy-statement inbound-routes {
        term AS1000-primary {
            from {
                protocol bgp;
                as-path AS1000-routes;
            }
            then {
                local-preference 200;
                accept;
            }
        }
        term AS8000-backup {
            from {
                protocol bgp;
                as-path AS8000-routes;
            }
            then {
                local-preference 50;
                accept;
            }
        }
    }
    as-path my-own-routes "()";
    as-path AS1000-routes "1000 .*";
    as-path AS8000-routes "8000 .*";
}

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