Конфигурации устройств

Взять конфиги клиентских MX-ов можно из предыдущей главы. Их настройки не менялись.

system {
    host-name RT.MSK.M34;
    root-authentication {
        encrypted-password "$1$yjZyno7x$gXQzjRxiaQILDLVjJ2eqz1"; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        native-vlan-id 4094;
        encapsulation flexible-ethernet-services;
        unit 0 {
            vlan-id 4094;
            family inet {
                address 10.0.0.10/31;
            }
            family iso;
            family mpls;
        }
    }
    ge-0/0/1 {
        flexible-vlan-tagging;          
        native-vlan-id 4094;
        encapsulation flexible-ethernet-services;
        unit 0 {
            vlan-id 4094;
            family inet {
                address 10.0.0.4/31;
            }
            family iso;
            family mpls;
        }
    }
    ge-0/0/2 {
        flexible-vlan-tagging;
        native-vlan-id 4094;
        encapsulation flexible-ethernet-services;
        unit 0 {
            vlan-id 4094;
            family inet {
                address 40.0.0.3/31;
            }
            family iso;
        }
        unit 500 {                      
            encapsulation vlan-ccc;
            vlan-id 500;
            family ccc;
        }
    }
    ge-0/0/3 {
        flexible-vlan-tagging;
        native-vlan-id 4094;
        encapsulation flexible-ethernet-services;
        unit 0 {
            vlan-id 4094;
            family inet {
                address 10.0.0.0/31;
            }
            family iso;
            family mpls;
        }
    }
    lo0 {
        unit 0 {
            family inet {
                address 192.168.0.1/32;
            }                           
            family iso {
                address 49.0001.1921.6800.0001.00;
            }
            family mpls;
        }
    }
}
routing-options {
    static {
        route 192.168.0.8/32 {
            static-lsp-next-hop M34-LNX;
        }
    }
    router-id 192.168.0.1;
    autonomous-system 250;
}
protocols {
    rsvp {
        interface all;
    }
    mpls {
        path-mtu {
            allow-fragmentation;        
            rsvp mtu-signaling;
        }
        admin-groups {
            GOLD 0;
            RED 1;
            GREEN 2;
            PURPLE 29;
            BLUE 30;
            WHITE 31;
        }
        label-switched-path M34-LNX {
            to 192.168.0.8;
            corouted-bidirectional;
            bandwidth 150m;
            oam {
                bfd-liveness-detection {
                    minimum-interval 1000;
                    multiplier 3;
                    failure-action teardown;
                }
            }
            ultimate-hop-popping;
        }                               
        label-switched-path M34-K12 {
            to 192.168.0.7;
            corouted-bidirectional;
            bandwidth 900m;
            oam {
                bfd-liveness-detection {
                    minimum-interval 1000;
                    multiplier 3;
                    failure-action teardown;
                }
            }
        }
        interface all;
        interface ge-0/0/0.0 {
            admin-group [ GOLD RED GREEN ];
        }
        interface ge-0/0/1.0 {
            admin-group [ BLUE PURPLE ];
        }
        interface ge-0/0/3.0 {
            admin-group [ PURPLE BLUE ];
        }
    }                                   
    bgp {
        export export-BGP;
        group eBGP {
            type external;
            neighbor 40.0.0.2 {
                peer-as 400;
            }
        }
        group iBGP {
            type internal;
            local-address 192.168.0.1;
            family inet {
                any;
            }
            family inet-vpn {
                unicast;
            }
            family l2vpn {
                auto-discovery-only;
                signaling;
            }
            export Next-Hop-Self;
            neighbor 192.168.0.4;       
            neighbor 192.168.0.5;
        }
    }
    isis {
        level 1 disable;
        interface ge-0/0/0.0 {
            point-to-point;
        }
        interface ge-0/0/1.0 {
            point-to-point;
        }
        interface ge-0/0/3.0 {
            point-to-point;
        }
        interface lo0.0;
    }
    ldp {
        interface all;
    }
    l2circuit {
        neighbor 192.168.0.8 {
            interface ge-0/0/2.500 {
                virtual-circuit-id 1488;
            }
        }
    }
}
policy-options {
    policy-statement Next-Hop-Self {
        from protocol bgp;
        then {
            next-hop self;
        }
    }
    policy-statement export-BGP {
        term Aggregate {
            from {
                protocol aggregate;
                route-filter 250.0.0.0/16 exact;
            }
            then accept;
        }
        term BGP {
            from protocol bgp;
            then accept;
        }                               
        then reject;
    }
}

Last updated