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

Главы 1-5 (Q-in-Q)

Customer-Edges

system {
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
    host-name MX-CE1-1;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list [ 100 110 ];
            }
        }
    }
    ge-0/0/1 {
        unit 0 {
            family bridge {
                interface-mode access;
                vlan-id 100;
            }                           
        }
    }
    ge-0/0/2 {
        unit 0 {
            family bridge {
                interface-mode access;
                vlan-id 110;
            }
        }
    }
}
bridge-domains {
    v100 {
        vlan-id 100;
    }
    v110 {
        vlan-id 110;
    }
}

Provider-Edges

system {
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
    host-name MX-PE1;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family bridge {
                interface-mode access;
                vlan-id 400;
            }
        }
    }
    ge-0/0/1 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id 400;
            }                           
        }
    }
    ge-0/0/2 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id 400;
            }
        }
    }
}
bridge-domains {
    v400 {
        description Customer-1;
        vlan-id 400;
    }
    v800 {
        description Customer-2;
        vlan-id 800;
    }
}

Глава 6 (Q-in-Q Specific C-TAG (MX))

system {
    host-name CE1-1;
    root-authentication {
        encrypted-password "$1$nvv3N0AP$Hc98hi9InXERva/3lwwZL."; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family bridge {
                interface-mode access;
                vlan-id 100;
            }
        }
    }
    ge-0/0/1 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list 100;
            }
        }                               
    }
}
bridge-domains {
    100 {
        vlan-id 100;
    }
}

Глава 7 (Q-in-Q Specific C-TAG (QFX))

system {
    host-name CE1-1;
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/0 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members 5;
                }
            }
        }
    }
    xe-0/0/1 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;   
                vlan {
                    members 5;
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}
vlans {
    v5 {
        vlan-id 5;
    }
}

Глава 8 (Input-VLAN-Map Push)

system {
    host-name Site1;
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/0 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members [ 10 20 ];
                }
            }
        }
    }
    xe-0/0/1 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;  
                vlan {
                    members 10;
                }
            }
        }
    }
    xe-0/0/2 {
        unit 0 {
            family ethernet-switching {
                vlan {
                    members 20;
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}                                       
vlans {
    v10 {
        vlan-id 10;
    }
    v20 {
        vlan-id 20;
    }
}

Last updated