Juniper (JNCIS-SP)
  • 1) Juniper Initial Configuration
  • 2) Juniper VLANs + Inter VLAN Routing + DHCP
    • 2.1) Классическая маршрутизация между VLAN (При помощи роутера)
      • Настройка VLAN'ов на SW-MSK-ARB
      • Настройка VLAN'ов на SW-SPB-NEV
      • Настройка IP-адресации, DHCP и маршрутизации между VLAN'ами
      • Проверка конфигурации
      • Полезные ссылки
    • 2.2) Маршрутизация между VLAN на L3-коммутаторе
  • 3) LAGs + Static Routing (с резервированием) + SysLog + SSH
    • Агрегирование каналов и настройка IP-адресов
    • Статическая маршрутизация с резервированием
    • Настройка доступа к Juniper по SSH
    • SysLog Server
    • Конфигурации Устройств
    • Полезные ссылки
  • 4) Q-in-Q
    • Настройка Q-in-Q
    • Конфигурации устройств
  • 5) MC-LAG (Multi-Chassis LAG) + BFD + IRB
    • MC-LAG
    • Конфигурации устройств
    • Полезные ссылки
  • 6) STP (RSTP/VSTP/MSTP + MVRP)
    • RSTP
    • VSTP
    • MSTP
    • STP Protection
    • Конфигурации устройств
    • Полезные ссылки
  • 7) Basic Routing Concepts
    • Полезные ссылки
  • 8) OSPF
    • 4.1) Смена типов областей и Load Balancing
      • Конфигурации устройств
    • 4.2) Настройка Virtual-Link, OSPF в Broadcast-сетях (Выбор DR и BDR) и OSPF summarization
      • Выбор DR и BDR
      • Настройка Virtual-Link + Route Summarization
      • Конфигурации устройств
    • Примечание (Router-ID)
    • OSPF Database and LSA
    • Полезные ссылки
  • 9) IS-IS
    • Практическая часть
    • Конфигурации устройств
    • Полезные ссылки
  • 10) BGP
    • eBGP
    • Анонсирование первых префиксов
    • iBGP
      • BGP Confederations
      • Атрибут Next-Hop и iBGP
      • BGP Route Reflectors
    • BGP Routing Policies
    • BGP Load Balancing
    • BGP Session Attributes
    • Конфигурации устройств
    • Примечание (Router-ID)
    • Полезные ссылки:
  • 11) MPLS
    • Static LSP
    • LDP
    • RSVP
    • L2/L3 VPN
    • Конфигурации Устройств
    • Полезные ссылки
  • 12) CSPF (Dynamic TE)
    • Настройка
    • Конфигурации устройств
    • Полезные ссылки
  • 13) Tunneling Technologies (IPIP/GRE)
    • Конфигурации устройств
    • Полезные ссылки
  • 14) High Availability
    • Конфигурации устройств
    • Полезные ссылки
  • 15) IPv6
  • Полезные ссылки
Powered by GitBook
On this page
  • Главы 1-5 (Q-in-Q)
  • Customer-Edges
  • Provider-Edges
  • Глава 6 (Q-in-Q Specific C-TAG (MX))
  • Глава 7 (Q-in-Q Specific C-TAG (QFX))
  • Глава 8 (Input-VLAN-Map Push)

Was this helpful?

  1. 4) Q-in-Q

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

Главы 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;
    }
}
system {
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
    host-name MX-CE1-2;
}
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;
    }
}
system {
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
    host-name MX-CE2-1;
}
interfaces {
    ge-0/0/0 {
        unit 0 {
            family bridge {
                interface-mode access;
                vlan-id 200;
            }
        }
    }
    ge-0/0/1 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id 200;
            }                           
        }
    }
}
bridge-domains {
    v200 {
        vlan-id 200;
    }
}
system {
    host-name QFX-CE1-3;
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/1 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members 100;
                }
            }
        }
    }
    xe-0/0/2 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;  
                vlan {
                    members 110;
                }
            }
        }
    }
    xe-0/0/3 {
        unit 0 {
            family ethernet-switching {
                interface-mode trunk;
                vlan {
                    members [ 100 110 ];
                }
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }                                   
}
vlans {
    v100 {
        vlan-id 100;
    }
    v110 {
        vlan-id 110;
    }
}
system {
    host-name QFX-CE2-2;
    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 [ 200 210 ];
                }
            }
        }
    }
    xe-0/0/1 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;  
                vlan {
                    members 200;
                }
            }
        }
    }
    xe-0/0/2 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members 210;
                }
            }
        }
    }
    xe-0/0/3 {
        unit 0 {
            family ethernet-switching {
                interface-mode access;
                vlan {
                    members 210;
                }                       
            }
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }
        }
    }
}
vlans {
    v200 {
        vlan-id 200;
    }
    v210 {
        vlan-id 210;
    }
}

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;
    }
}
system {
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
    host-name MX-PE2;
}
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 access;
                vlan-id 800;
            }                           
        }
    }
    ge-0/0/2 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id 400;
            }
        }
    }
    ge-0/0/3 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list [ 400 800 ];
            }
        }
    }
}
bridge-domains {
    v400 {
        description Customer-1;
        vlan-id 400;                    
    }
    v800 {
        description Customer-2;
        vlan-id 800;
    }
}
system {
    host-name ISP1-CORE;
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            family bridge {
                interface-mode trunk;
                vlan-id-list [ 800 400 ];
                vlan-rewrite {
                    translate 410 400;
                    translate 810 800;
                }
            }
        }                               
    }
    ge-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list 400;
            }
        }
    }
    ge-0/0/3 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list 800;
            }
        }
    }
}
bridge-domains {                        
    v400 {
        description Customer-1;
        vlan-id 400;
    }
    v800 {
        description Customer-2;
        vlan-id 800;
    }
}
system {
    host-name ISP2-CORE;
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            family bridge {
                interface-mode trunk;
                vlan-id-list [ 810 410 ];
            }
        }
    }
    ge-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list 810;
            }
        }
    }
    ge-0/0/2 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list 410;
            }
        }
    }
}
bridge-domains {
    v410 {
        description Customer-1;
        vlan-id 410;
    }                                   
    v810 {
        description Customer-2;
        vlan-id 810;
    }
}
system {
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
    host-name MX-PE3;
}
interfaces {
    ge-0/0/2 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id 410;
            }
        }
    }
    ge-0/0/3 {
        unit 0 {
            family bridge {
                interface-mode access;
                vlan-id 410;
            }                           
        }
    }
}
bridge-domains {
    v410 {
        description Customer-1;
        vlan-id 410;
    }
}
system {
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
    host-name MX-PE4;
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 200;
        }
    }
    ge-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-tags outer 810 inner 200;
            input-vlan-map pop;
            output-vlan-map push;
        }
    }
}
bridge-domains {
    v810 {
        description Customer-2;
        interface ge-0/0/1.0;
        interface ge-0/0/0.0;
    }
}
system {
    host-name ISP1-CORE;
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 400 {
            encapsulation vlan-bridge;
            vlan-id 410;
            input-vlan-map {
                swap;
                vlan-id 400;
            }
            output-vlan-map swap;
        }
        unit 800 {
            encapsulation vlan-bridge;  
            vlan-id 810;
            input-vlan-map {
                swap;
                vlan-id 800;
            }
            output-vlan-map swap;
        }
    }
    ge-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 400;
        }
    }
    ge-0/0/3 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 800;
        }                               
    }
}
bridge-domains {
    v400 {
        interface ge-0/0/0.400;
        interface ge-0/0/1.0;
    }
    v800 {
        interface ge-0/0/3.0;
        interface ge-0/0/0.800;
    }
}
system {
    host-name ISP2-CORE;
    root-authentication {
        encrypted-password "$6$9HLYARCe$zxX2imOZPHG4/x.ZtRdeyQdDK6PJSNXZYRQUD0IpTZ8fV33SaIzLn8GP0by6o/pohB3vu.cxWKN8fJI3eFNQy."; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 410 {
            encapsulation vlan-bridge;
            vlan-id 410;
        }
        unit 810 {
            encapsulation vlan-bridge;
            vlan-id 810;
        }
    }
    ge-0/0/1 {
        flexible-vlan-tagging;          
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 810;
        }
    }
    ge-0/0/2 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 410;
        }
    }
}
bridge-domains {
    v410 {
        interface ge-0/0/0.410;
        interface ge-0/0/2.0;
    }
    v810 {
        interface ge-0/0/0.810;
        interface ge-0/0/1.0;           
    }
}

Глава 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;
    }
}
system {
    host-name CE2-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/2 {
        unit 0 {
            family bridge {
                interface-mode trunk;
                vlan-id-list 100;
            }
        }                               
    }
}
bridge-domains {
    100 {
        vlan-id 100;
    }
}
system {
    host-name ISP1;
    root-authentication {
        encrypted-password "$1$nvv3N0AP$Hc98hi9InXERva/3lwwZL."; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 200 {
            encapsulation vlan-bridge;
            vlan-tags outer 200 inner 100;
            input-vlan-map pop;
            output-vlan-map push;
        }
        unit 300 {
            encapsulation vlan-bridge;
            vlan-tags outer 300 inner 100;
            input-vlan-map pop;
            output-vlan-map push;
        }                               
    }
    ge-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 200 {
            encapsulation vlan-bridge;
            vlan-id 100;
        }
    }
    ge-0/0/2 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 300 {
            encapsulation vlan-bridge;
            vlan-id 100;
        }
    }
}
bridge-domains {
    Cus1 {
        interface ge-0/0/0.200;
        interface ge-0/0/1.200;
    }                                   
    Cus2 {
        interface ge-0/0/2.300;
        interface ge-0/0/0.300;
    }
}
system {
    host-name ISP2;
    root-authentication {
        encrypted-password "$1$nvv3N0AP$Hc98hi9InXERva/3lwwZL."; ## SECRET-DATA
    }
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 200 {
            encapsulation vlan-bridge;
            vlan-tags outer 200 inner 100;
            input-vlan-map pop;
            output-vlan-map push;
        }
        unit 300 {
            encapsulation vlan-bridge;
            vlan-tags outer 300 inner 100;
            input-vlan-map pop;
            output-vlan-map push;
        }                               
    }
    ge-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 200 {
            encapsulation vlan-bridge;
            vlan-id 100;
        }
    }
    ge-0/0/2 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 300 {
            encapsulation vlan-bridge;
            vlan-id 100;
        }
    }
}
bridge-domains {
    Cus1 {
        interface ge-0/0/0.200;
        interface ge-0/0/1.200;
    }                                   
    Cus2 {
        interface ge-0/0/2.300;
        interface ge-0/0/0.300;
    }
}
system {
    host-name CE1-2;
    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;
    }
}
system {
    host-name CE2-2;
    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/2 {
        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;
    }
}
system {
    host-name CE2-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/2 {
        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;
    }
}
system {
    host-name ISP1;
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 10 {
            encapsulation vlan-bridge;
            vlan-tags outer 10 inner 5;
            input-vlan-map pop;
            output-vlan-map push;
        }
        unit 20 {
            encapsulation vlan-bridge;
            vlan-tags outer 20 inner 5;
            input-vlan-map pop;
            output-vlan-map push;       
        }
    }
    xe-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 5;
        }
    }
    xe-0/0/2 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 5;
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }                           
        }
    }
}
vlans {
    Customer-1 {
        interface xe-0/0/0.10;
        interface xe-0/0/1.0;
    }
    Customer-2 {
        interface xe-0/0/0.20;
        interface xe-0/0/2.0;
    }
}
system {
    host-name ISP2;
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
}
interfaces {
    xe-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 10 {
            encapsulation vlan-bridge;
            vlan-tags outer 10 inner 5;
            input-vlan-map pop;
            output-vlan-map push;
        }
        unit 20 {
            encapsulation vlan-bridge;
            vlan-tags outer 20 inner 5;
            input-vlan-map pop;
            output-vlan-map push;       
        }
    }
    xe-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 5;
        }
    }
    xe-0/0/2 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 0 {
            encapsulation vlan-bridge;
            vlan-id 5;
        }
    }
    em1 {
        unit 0 {
            family inet {
                address 169.254.0.2/24;
            }                           
        }
    }
}
vlans {
    Customer-1 {
        interface xe-0/0/0.10;
        interface xe-0/0/1.0;
    }
    Customer-2 {
        interface xe-0/0/0.20;
        interface xe-0/0/2.0;
    }
}
system {
    host-name CE1-2;
    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;
    }
}
system {
    host-name CE2-2;
    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/2 {
        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;
    }
}
system {
    host-name Site2;
    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;
    }
}
system {
    root-authentication {
        encrypted-password "$6$dtWw6f9v$.pxa66SoxZzbpeZ5kPmMHFmE6MYb4nO9FPMPm9k5MUdf.W2qCTiWeTBU3xZ8fbJZ9mj7ZL7mF1X1CVqUl2iFx."; ## SECRET-DATA
    }
    host-name ISP1-MX;
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 100 {
            encapsulation vlan-bridge;
            vlan-id 10;
            input-vlan-map {
                push;
                vlan-id 100;
            }
            output-vlan-map pop;
        }
    }
    ge-0/0/1 {                          
        stacked-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 100 {
            encapsulation vlan-bridge;
            vlan-tags outer 100 inner 10;
        }
    }
}
bridge-domains {
    v100 {
        interface ge-0/0/1.100;
        interface ge-0/0/0.100;
    }
}
system {
    root-authentication {
        encrypted-password "$6$dAyHE/8K$QYeh51AL2vpKyjEaZf9SW11N.8urbW7FEp.NnN7zkKOMS3zOQH5FrDI799cZFhHuKbgdDXw3O0lGHpB8bNnyE1"; ## SECRET-DATA
    }
    host-name ISP2-MX;
}
interfaces {
    ge-0/0/0 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 100 {
            family bridge {
                interface-mode trunk;
                vlan-id-list 10;
            }
        }
    }
    ge-0/0/1 {
        flexible-vlan-tagging;
        encapsulation flexible-ethernet-services;
        unit 100 {                      
            encapsulation vlan-bridge;
            vlan-id 100;
            family bridge {
                interface-mode trunk;
                inner-vlan-id-list 10;
            }
        }
    }
}
bridge-domains {
    v100 {
        vlan-id 10;
    }
}
PreviousНастройка Q-in-QNext5) MC-LAG (Multi-Chassis LAG) + BFD + IRB

Last updated 4 years ago

Was this helpful?