CE1 @ 14 – TE Static Bandwidth Constraints

## Last commit: 2015-06-19 15:11:04 CEST by kszarkowicz
version 14.2R3.8;
groups {
    GR-INTF {
        interfaces {
             {
                traps;
                hold-time up 5000 down 0;
            }
             {
                speed 1g;
                link-mode full-duplex;
                gigether-options {
                    auto-negotiation;
                }
            }
        }
    }
    GR-OSPF {
        routing-instances {
             {
                protocols {
                    ospf {
                        spf-options {
                            delay 50;
                            holddown 2000;
                            rapid-runs 5;
                        }
                        overload timeout 300;
                        reference-bandwidth 1000g;
                        area  {
                            interface “” {
                                interface-type p2p;
                                authentication {
                                    md5 0 key “$9$sngaGk.569pDi9p0BSys24”; ## SECRET-DATA
                                }
                                bfd-liveness-detection {
                                    minimum-interval 2000;
                                    multiplier 3;
                                }
                            }
                            interface  {
                                passive;
                                metric 1;
                            }
                        }
                    }
                }
            }
        }
    }
}
system {
    host-name 01-CE1;
    time-zone Europe/Vienna;
    arp {
        purging;
        gratuitous-arp-on-ifup;
        gratuitous-arp-delay 6;
    }
    root-authentication {
        encrypted-password “$1$kBnCFAVv$yCkmUO5F6Nef2KjXXFg6c.”; ## SECRET-DATA
    }
    login {
        user kszarkowicz {
            full-name “Krzysztof Grzegorz Szarkowicz”;
            uid 2000;
            class super-user;
            authentication {
                encrypted-password “$1$OlGAxJOb$VCpfftbRCvhSvLsEZoY.T0”; ## SECRET-DATA
                ssh-rsa “ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNrYGXXiIQNeB5ai/dQs7S5ua7FNMLbItfV/jRxNQzARRzeEYTe+kqWdyEftH1PBrFag5KAe/pZ/TmWyvM1TB5Qlbg7viQ2so3ITNXoXKpk+q1h1MYUgISE3F7dZ1a6TpF6uegEhduorvLHrrXH/77o+dzGEY9MTxAjaf00sH+MF3O/yXVH82fPpMAVu52Wviibo3xSX3y1I9fj4qTDqyuWdRBuEhOKTxehyn7fm5B93tfhz7Y0efkadypEvZlx9YpPSE3Jb8uNxMp3jCAYicoPwxU60RO7ouY3gfvL5pF61oP3efMUQAm9Hc7OxUHAKLuAyBS+JI5LE0MNYyZEjnX kszarkowicz@juniper.net”; ## SECRET-DATA
            }
        }
    }
    static-host-mapping {
        P1 inet [ 172.16.0.1 10.0.0.3 10.0.0.6 10.0.0.8 10.0.0.34 ];
        P2 inet [ 172.16.0.2 10.0.0.5 10.0.0.7 10.0.0.10 10.0.0.36 ];
        P3 inet [ 172.16.0.3 10.0.0.9 10.0.0.12 10.0.0.14 10.0.0.18 ];
        P4 inet [ 172.16.0.4 10.0.0.11 10.0.0.13 10.0.0.16 10.0.0.20 ];
        P5 inet [ 172.16.0.5 10.0.0.15 10.0.0.21 10.0.0.22 10.0.0.24 10.0.0.28 ];
        P6 inet [ 172.16.0.6 10.0.0.17 10.0.0.19 10.0.0.23 10.0.0.26 10.0.0.30 ];
        PE1 inet [ 172.16.0.11 10.0.0.0 10.0.0.2 ];
        PE1-VRF-A inet 192.168.1.11;
        PE2 inet [ 172.16.0.22 10.0.0.1 10.0.0.4 ];
        PE2-VRF-A inet 192.168.1.22;
        PE3 inet [ 172.16.0.33 10.0.0.25 10.0.0.31 10.0.0.32 10.0.0.35 ];
        PE3-VRF-A inet 192.168.1.33;
        PE4 inet [ 172.16.0.44 10.0.0.27 10.0.0.29 10.0.0.33 10.0.0.37 ];
        PE4-VRF-A inet 192.168.1.44;
    }
    services {
        ftp;
        ssh;
        telnet;
    }
    syslog {
        user * {
            any emergency;
        }
        file messages {
            any notice;
            authorization info;
        }
        file interactive-commands {
            interactive-commands any;
        }
        time-format year millisecond;
    }
    compress-configuration-files;
    commit synchronize;
}
chassis {
    fpc 2 {
        pic 0 {
            tunnel-services;
        }
        port-mirror-instance PM-MPC;
    }
}
interfaces {
    ge-2/0/0 {
        description Management;
        mac 00:50:56:8b:c8:2f;
        unit 0 {
            family inet {
                address 10.255.1.51/16;
            }
        }
    }
    lt-2/0/0 {
        unit 1 {
            encapsulation frame-relay;
            dlci 12;
            peer-unit 2;
            family inet {
                address 127.0.0.5/30;
            }
        }
        unit 2 {
            encapsulation frame-relay;
            dlci 12;
            peer-unit 1;
            family inet;
        }
        unit 3 {
            encapsulation frame-relay;
            dlci 34;
            peer-unit 4;
            family inet {
                address 127.0.0.9/30;
            }
        }
        unit 4 {
            encapsulation frame-relay;
            dlci 34;
            peer-unit 3;
            family inet;
        }
    }
    ge-2/0/1 {
        apply-groups GR-INTF;
        description PE1:ge-2/0/1;
        mac 00:50:56:8b:69:6a;
        unit 0 {
            family inet {
                address 10.1.1.0/31;
            }
        }
    }
    ge-2/0/2 {
        apply-groups GR-INTF;
        description PE2:GigabitEthernet0/0/0/2;
        mac 00:50:56:8b:03:76;
        unit 0 {
            family inet {
                address 10.1.2.0/31;
            }
        }
    }
    ge-2/0/3 {
        apply-groups GR-INTF;
        description Loop:ge-2/0/4;
        mac 00:50:56:8b:a5:f3;
        unit 0 {
            family inet {
                filter {
                    input FF-MIRROR;
                }
                address 1.1.1.3/24 {
                    primary;
                }
                address 10.1.1.0/31;
                address 10.1.2.0/31;
            }
        }
    }
    ge-2/0/4 {
        apply-groups GR-INTF;
        description Loop:ge-2/0/3;
        mac 00:50:56:8b:6f:69;
        unit 0 {
            family inet {
                address 1.1.1.4/24 {
                    primary;
                }
                address 10.1.1.0/31;
                address 10.1.2.0/31;
            }
        }
    }
    lo0 {
        unit 1 {
            family inet {
                address 192.168.1.1/32;
            }
        }
        unit 2 {
            family inet {
                address 192.168.1.2/32;
            }
        }
    }
}
forwarding-options {
    port-mirroring {
        instance {
            PM-MPC {
                input {
                    rate 1;
                    run-length 0;
                }
            }
            PM-ODD {
                input-parameters-instance PM-MPC;
                family inet {
                    output {
                        interface lt-2/0/0.1 {
                            next-hop 127.0.0.6;
                        }
                        no-filter-check;
                    }
                }
            }
            PM-EVEN {
                input-parameters-instance PM-MPC;
                family inet {
                    output {
                        interface lt-2/0/0.3 {
                            next-hop 127.0.0.10;
                        }
                        no-filter-check;
                    }
                }
            }
        }
    }
}
routing-options {
    forwarding-table {
        export PL-LOAD-BALANCE;
    }
}
protocols {
    lldp {
        interface all;
    }
}
policy-options {
    policy-statement PL-LOAD-BALANCE {
        then {
            load-balance per-packet;
        }
    }
}
firewall {
    family inet {
        filter FF-POLICER {
            term 1 {
                then policer RL-1M;
            }
        }
        filter FF-MIRROR {
            term 1 {
                from {
                    source-address {
                        10.1.1.0/32;
                    }
                }
                then {
                    port-mirror-instance PM-ODD;
                    accept;
                }
            }
            term 2 {
                from {
                    source-address {
                        10.1.2.0/32;
                    }
                }
                then {
                    port-mirror-instance PM-EVEN;
                    accept;
                }
            }
        }
    }
    policer RL-1M {
        if-exceeding {
            bandwidth-limit 1m;
            burst-size-limit 100k;
        }
        then discard;
    }
}
routing-instances {
    CE1 {
        instance-type virtual-router;
        interface lt-2/0/0.2;
        interface ge-2/0/1.0;
        interface lo0.1;
        routing-options {
            router-id 192.168.1.1;
        }
        protocols {
            ospf {
                apply-groups GR-OSPF;
                area 0.0.0.0 {
                    interface lo0.1;
                    interface ge-2/0/1.0;
                }
            }
        }
    }
    CE2 {
        instance-type virtual-router;
        interface lt-2/0/0.4;
        interface ge-2/0/2.0;
        interface lo0.2;
        routing-options {
            router-id 192.168.1.2;
        }
        protocols {
            ospf {
                apply-groups GR-OSPF;
                area 0.0.0.0 {
                    interface lo0.2;
                    interface ge-2/0/2.0;
                }
            }
        }
    }
    LOOP-A {
        instance-type virtual-router;
        interface ge-2/0/3.0;
        routing-options {
            static {
                route 0.0.0.0/0 next-hop 1.1.1.4;
            }
        }
    }
    LOOP-B {
        instance-type virtual-router;
        interface ge-2/0/4.0;
        routing-options {
            static {
                route 0.0.0.0/0 next-hop 1.1.1.3;
            }
        }
    }
}

Advertisements