
CÔNG TY CỔ PHẦN DỊCH VỤ CÔNG NGHỆ DATECH
Danh sách nội dung [Ẩn]
Hướng dẫn cấu hình PBB với Multihomed EVPN
Ví dụ này trình bày cách tích hợp Provider Backbone Bridging (PBB) với Ethernet VPN (EVPN). Với sự tích hợp này, hoạt động của control plane trong lõi mạng sẽ được đơn giản hóa, giúp tăng tốc độ hội tụ (faster convergence) và cải thiện khả năng mở rộng (scalability) so với EVPN thông thường. Ứng dụng điển hình của mô hình PBB-EVPN bao gồm: Kết nối liên trung tâm dữ liệu (Data Center Interconnect – DCI). Các dịch vụ Ethernet dạng E-LAN cho nhà cung cấp dịch vụ (Carrier Ethernet E-LAN services)
Ví dụ này sử dụng các thành phần phần cứng và phần mềm sau:
Chuẩn bị trước khi triển khai
Trước khi cấu hình, cần thực hiện các bước sau:
Bắt đầu từ phiên bản Junos OS 17.2R1, PBB được tích hợp với EVPN nhằm giảm đáng kể quá trình học tập MAC trong control plane của mạng core. Điều này cho phép hỗ trợ một số lượng lớn dịch vụ lớp 2 (Layer 2), chẳng hạn như kết nối trung tâm dữ liệu, với thiết kế mạng đơn giản hơn.
Trong mô hình PBB-EVPN, thiết bị Backbone Core Bridge (BCB) trong lõi PBB được thay thế bằng mạng MPLS, trong khi vẫn giữ lại khả năng mở rộng dịch vụ nhờ vào thiết bị Backbone Edge Bridge (BEB). Thành phần B (hay provider routing instance) sẽ được quảng bá qua BGP bằng signaling EVPN và được đóng gói bên trong MPLS thông qua các thiết bị PE và P. Tóm lại, PBB-EVPN kết hợp khả năng mở rộng vượt trội của PBB với sự đơn giản của mạng MPLS truyền thống, giúp giảm đáng kể lượng trạng thái cần duy trì trong toàn mạng — điều mà EVPN thuần túy không làm được.
Hình 1: PBB với Multihoming EVPN ở chế độ Active/Standby
Trong Hình 1, PBB được tích hợp với EVPN, nơi các thiết bị CE được cấu hình multihomed theo chế độ Active/Standby.
Thiết bị CE1 được multihomed đến các thiết bị PE1, PE2 và PE3, trong khi thiết bị CE2 được multihomed đến các thiết bị PE3 và PE4.
Cấu hình nhanh bằng CLI (CLI Quick Configuration)
Để cấu hình nhanh ví dụ này, hãy thực hiện các bước sau: Sao chép các lệnh sau đây và dán vào một tệp văn bản. Xóa các ngắt dòng nếu cần. Chỉnh sửa thông tin phù hợp với cấu hình mạng thực tế của bạn (ví dụ: tên interface, địa chỉ IP, ASN...). Sao chép và dán toàn bộ lệnh vào CLI tại cấp độ [edit]. Sau đó, nhập lệnh commit từ chế độ cấu hình để áp dụng.
CE1
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-0/0/3 flexible-vlan-tagging set interfaces xe-0/0/3 encapsulation flexible-ethernet-services set interfaces xe-0/0/3 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 0 vlan-id 10 set interfaces xe-0/0/3 unit 1 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 1 vlan-id 20 set interfaces xe-0/0/3 unit 2 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 2 vlan-id 30 set interfaces ge-1/0/2 flexible-vlan-tagging set interfaces ge-1/0/2 encapsulation flexible-ethernet-services set interfaces ge-1/0/2 unit 1 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 1 vlan-id 20 set interfaces ge-1/0/5 flexible-vlan-tagging set interfaces ge-1/0/5 encapsulation flexible-ethernet-services set interfaces ge-1/0/5 unit 2 encapsulation vlan-bridge set interfaces ge-1/0/5 unit 2 vlan-id 30 set interfaces ge-1/0/6 gigether-options 802.3ad ae0 set interfaces ge-1/0/7 gigether-options 802.3ad ae0 set interfaces ge-1/0/8 flexible-vlan-tagging set interfaces ge-1/0/8 encapsulation flexible-ethernet-services set interfaces ge-1/0/8 unit 1 encapsulation vlan-bridge set interfaces ge-1/0/8 unit 1 vlan-id 20 set interfaces ge-1/0/9 flexible-vlan-tagging | set interfaces ge-1/0/9 encapsulation flexible-ethernet-services set interfaces ge-1/0/9 unit 2 encapsulation vlan-bridge set interfaces ge-1/0/9 unit 2 vlan-id 30 set interfaces ge-1/1/4 gigether-options 802.3ad ae0 set interfaces ge-1/1/5 gigether-options 802.3ad ae0 set interfaces ge-1/1/6 gigether-options 802.3ad ae0 set interfaces ge-1/1/9 gigether-options 802.3ad ae0 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 aggregated-ether-options minimum-links 1 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set bridge-domains bd10 domain-type bridge set bridge-domains bd10 vlan-id 10 set bridge-domains bd10 interface ae0.0 set bridge-domains bd10 interface xe-0/0/3.0 set bridge-domains bd20 domain-type bridge set bridge-domains bd20 vlan-id 20 set bridge-domains bd20 interface xe-0/0/3.1 set bridge-domains bd20 interface ge-1/0/8.1 set bridge-domains bd20 interface ge-1/0/2.1 set bridge-domains bd30 domain-type bridge set bridge-domains bd30 vlan-id 30 set bridge-domains bd30 interface xe-0/0/3.2 set bridge-domains bd30 interface ge-1/0/9.2 set bridge-domains bd30 interface ge-1/0/5.2 |
CE2
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-0/0/3 flexible-vlan-tagging set interfaces xe-0/0/3 encapsulation flexible-ethernet-services set interfaces xe-0/0/3 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 0 vlan-id 10 set interfaces xe-0/0/3 unit 0 family bridge filter output f_log set interfaces xe-0/0/3 unit 1 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 1 vlan-id 20 set interfaces xe-0/0/3 unit 2 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 2 vlan-id 30 set interfaces ge-1/0/2 flexible-vlan-tagging set interfaces ge-1/0/2 encapsulation flexible-ethernet-services set interfaces ge-1/0/2 unit 0 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 0 vlan-id 10 set interfaces ge-1/0/2 unit 1 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 1 vlan-id 20 set interfaces ge-1/0/2 unit 2 encapsulation vlan-bridge set interfaces ge-1/0/2 unit 2 vlan-id 30 set interfaces ge-1/1/4 flexible-vlan-tagging set interfaces ge-1/1/4 encapsulation flexible-ethernet-services | set interfaces ge-1/1/4 unit 0 encapsulation vlan-bridge set interfaces ge-1/1/4 unit 0 vlan-id 10 set interfaces ge-1/1/4 unit 1 encapsulation vlan-bridge set interfaces ge-1/1/4 unit 1 vlan-id 20 set interfaces ge-1/1/4 unit 2 encapsulation vlan-bridge set interfaces ge-1/1/4 unit 2 vlan-id 30 set bridge-domains bd10 domain-type bridge set bridge-domains bd10 vlan-id 10 set bridge-domains bd10 interface ge-1/1/4.0 set bridge-domains bd10 interface ge-1/0/2.0 set bridge-domains bd10 interface xe-0/0/3.0 set bridge-domains bd20 domain-type bridge set bridge-domains bd20 vlan-id 20 set bridge-domains bd20 interface ge-1/1/4.1 set bridge-domains bd20 interface ge-1/0/2.1 set bridge-domains bd20 interface xe-0/0/3.1 set bridge-domains bd30 domain-type bridge set bridge-domains bd30 vlan-id 30 set bridge-domains bd30 interface xe-0/0/3.2 set bridge-domains bd30 interface ge-1/1/4.2 set bridge-domains bd30 interface ge-1/0/2.2 |
PE1
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-1/0/1 flexible-vlan-tagging set interfaces xe-1/0/1 encapsulation flexible-ethernet-services set interfaces xe-1/0/1 unit 0 encapsulation vlan-bridge set interfaces xe-1/0/1 unit 0 vlan-id 10 set interfaces xe-1/2/3 gigether-options 802.3ad ae13 set interfaces xe-1/3/0 gigether-options 802.3ad ae13 set interfaces ge-2/0/2 gigether-options 802.3ad ae12 set interfaces ge-2/0/3 gigether-options 802.3ad ae12 set interfaces ge-2/0/6 gigether-options 802.3ad ae0 set interfaces ge-2/0/7 gigether-options 802.3ad ae0 set interfaces ge-2/0/8 flexible-vlan-tagging set interfaces ge-2/0/8 encapsulation flexible-ethernet-services set interfaces ge-2/0/8 esi 00:22:22:22:22:22:22:22:22:22 set interfaces ge-2/0/8 esi single-active set interfaces ge-2/0/8 esi source-bmac 00:22:22:22:22:22 set interfaces ge-2/0/8 unit 0 encapsulation vlan-bridge set interfaces ge-2/0/8 unit 0 vlan-id 20 set interfaces ge-2/0/9 flexible-vlan-tagging set interfaces ge-2/0/9 encapsulation flexible-ethernet-services set interfaces ge-2/0/9 esi 00:33:33:33:33:33:33:33:33:33 set interfaces ge-2/0/9 esi single-active set interfaces ge-2/0/9 esi source-bmac 00:33:33:33:33:33 set interfaces ge-2/0/9 unit 0 encapsulation vlan-bridge set interfaces ge-2/0/9 unit 0 vlan-id 30 set interfaces ge-2/1/0 gigether-options 802.3ad ae14 set interfaces ge-2/1/5 gigether-options 802.3ad ae14 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi single-active set interfaces ae0 esi source-bmac 00:11:11:11:11:11 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set interfaces ae12 flexible-vlan-tagging set interfaces ae12 encapsulation flexible-ethernet-services set interfaces ae12 aggregated-ether-options minimum-links 1 set interfaces ae12 unit 0 vlan-id 1200 set interfaces ae12 unit 0 family inet address 172.16.0.1/16 set interfaces ae12 unit 0 family iso set interfaces ae12 unit 0 family mpls set interfaces ae13 flexible-vlan-tagging set interfaces ae13 encapsulation flexible-ethernet-services set interfaces ae13 aggregated-ether-options minimum-links 1 set interfaces ae13 unit 0 vlan-tags outer 1300 set interfaces ae13 unit 0 vlan-tags inner 13 set interfaces ae13 unit 0 family inet address 172.17.0.1/16 set interfaces ae13 unit 0 family iso set interfaces ae13 unit 0 family mpls set interfaces ae14 aggregated-ether-options minimum-links 1 set interfaces ae14 unit 0 family inet address 172.18.0.1/16 set interfaces ae14 unit 0 family iso set interfaces ae14 unit 0 family mpls set interfaces cbp0 unit 0 family bridge interface-mode trunk set interfaces cbp0 unit 0 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 0 family bridge isid-list all set interfaces cbp0 unit 1 family bridge interface-mode trunk | set interfaces cbp0 unit 1 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 1 family bridge isid-list all set interfaces lo0 unit 0 family inet address 127.0.0.1/8 primary set interfaces lo0 unit 0 family iso set interfaces pip0 unit 0 family bridge interface-mode trunk set interfaces pip0 unit 0 family bridge bridge-domain-type svlan set interfaces pip0 unit 0 family bridge isid-list all-service-groups set interfaces pip0 unit 1 family bridge interface-mode trunk set interfaces pip0 unit 1 family bridge bridge-domain-type svlan set interfaces pip0 unit 1 family bridge isid-list all-service-groups set routing-options router-id 127.0.0.1 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path pe1tope2 from 127.0.0.1 set protocols mpls label-switched-path pe1tope2 to 127.0.0.2 set protocols mpls label-switched-path pe1tope2 primary direct_to_pe2 set protocols mpls label-switched-path pe1tope3 from 127.0.0.1 set protocols mpls label-switched-path pe1tope3 to 127.0.0.3 set protocols mpls label-switched-path pe1tope3 primary direct_to_pe3 set protocols mpls label-switched-path pe1tope4 from 127.0.0.1 set protocols mpls label-switched-path pe1tope4 to 127.0.0.4 set protocols mpls label-switched-path pe1tope4 primary direct_to_pe4 set protocols mpls path direct_to_pe2 100.12.1.2 strict set protocols mpls path direct_to_pe3 100.13.1.3 strict set protocols mpls path direct_to_pe4 100.14.1.4 strict set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 127.0.0.1 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 127.0.0.2 set protocols bgp group ibgp neighbor 127.0.0.3 set protocols bgp group ibgp neighbor 127.0.0.4 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set routing-instances pbbn1 instance-type virtual-switch set routing-instances pbbn1 interface cbp0.0 set routing-instances pbbn1 route-distinguisher 127.0.0.1:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id 100 set routing-instances pbbn1 bridge-domains bda isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id-scope-local set routing-instances pbn1 instance-type virtual-switch set routing-instances pbn1 interface pip0.0 set routing-instances pbn1 bridge-domains bda domain-type bridge set routing-instances pbn1 bridge-domains bda vlan-id 10 set routing-instances pbn1 bridge-domains bda interface ae0.0 set routing-instances pbn1 bridge-domains bda interface xe-1/0/1.0 set routing-instances pbn1 bridge-domains bda interface ge-2/0/9.0 set routing-instances pbn1 bridge-domains bda interface ge-2/0/8.0 set routing-instances pbn1 pbb-options peer-instance pbbn1 set routing-instances pbn1 service-groups sga service-type elan set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 |
PE2
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-0/0/3 flexible-vlan-tagging set interfaces xe-0/0/3 encapsulation flexible-ethernet-services set interfaces xe-0/0/3 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/3 unit 0 vlan-id 10 set interfaces ge-1/2/0 gigether-options 802.3ad ae12 set interfaces ge-1/2/1 gigether-options 802.3ad ae12 set interfaces ge-1/2/2 unit 0 family inet address 172.19.0.1/16 set interfaces ge-1/2/2 unit 0 family iso set interfaces ge-1/2/2 unit 0 family mpls set interfaces ge-1/3/1 unit 0 family inet address 172.20.0.1/16 set interfaces ge-1/3/1 unit 0 family iso set interfaces ge-1/3/1 unit 0 family mpls set interfaces ge-1/3/3 gigether-options 802.3ad ae0 set interfaces ge-1/3/5 flexible-vlan-tagging set interfaces ge-1/3/5 encapsulation flexible-ethernet-services set interfaces ge-1/3/5 esi 00:22:22:22:22:22:22:22:22:22 set interfaces ge-1/3/5 esi single-active set interfaces ge-1/3/5 esi source-bmac 00:22:22:22:22:23 set interfaces ge-1/3/5 unit 0 encapsulation vlan-bridge set interfaces ge-1/3/5 unit 0 vlan-id 20 set interfaces ge-1/3/6 flexible-vlan-tagging set interfaces ge-1/3/6 encapsulation flexible-ethernet-services set interfaces ge-1/3/6 esi 00:33:33:33:33:33:33:33:33:33 set interfaces ge-1/3/6 esi single-active set interfaces ge-1/3/6 esi source-bmac 00:33:33:33:33:34 set interfaces ge-1/3/6 unit 0 encapsulation vlan-bridge set interfaces ge-1/3/6 unit 0 vlan-id 30 set interfaces ge-1/3/9 gigether-options 802.3ad ae0 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi single-active set interfaces ae0 esi source-bmac 00:11:11:11:11:12 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set interfaces ae0 unit 0 family bridge filter output f_log set interfaces ae12 flexible-vlan-tagging set interfaces ae12 encapsulation flexible-ethernet-services set interfaces ae12 aggregated-ether-options minimum-links 1 set interfaces ae12 unit 0 vlan-id 1200 set interfaces ae12 unit 0 family inet address 100.12.1.2/24 set interfaces ae12 unit 0 family iso set interfaces ae12 unit 0 family mpls set interfaces cbp0 unit 0 family bridge interface-mode trunk set interfaces cbp0 unit 0 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 0 family bridge isid-list all set interfaces cbp0 unit 1 family bridge interface-mode trunk set interfaces cbp0 unit 1 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 1 family bridge isid-list all set interfaces lo0 unit 0 family inet address 127.0.0.2/8 primary set interfaces lo0 unit 0 family iso set interfaces pip0 unit 0 family bridge interface-mode trunk |
set interfaces pip0 unit 0 family bridge bridge-domain-type svlan set interfaces pip0 unit 0 family bridge isid-list all-service-groups set interfaces pip0 unit 1 family bridge interface-mode trunk set interfaces pip0 unit 1 family bridge bridge-domain-type svlan set interfaces pip0 unit 1 family bridge isid-list all-service-groups set routing-options router-id 127.0.0.2 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path pe2tope1 from 127.0.0.2 set protocols mpls label-switched-path pe2tope1 to 127.0.0.1 set protocols mpls label-switched-path pe2tope1 primary direct_to_pe1 set protocols mpls label-switched-path pe2tope3 from 127.0.0.2 set protocols mpls label-switched-path pe2tope3 to 127.0.0.3 set protocols mpls label-switched-path pe2tope3 primary direct_to_pe3 set protocols mpls label-switched-path pe2tope4 from 127.0.0.2 set protocols mpls label-switched-path pe2tope4 to 127.0.0.4 set protocols mpls label-switched-path pe2tope4 primary direct_to_pe4 set protocols mpls path direct_to_pe1 172.16.0.1 strict set protocols mpls path direct_to_pe3 100.23.1.3 strict set protocols mpls path direct_to_pe4 172.20.0.2 strict set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 127.0.0.2 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 127.0.0.1 set protocols bgp group ibgp neighbor 127.0.0.3 set protocols bgp group ibgp neighbor 127.0.0.4 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface fxp0.0 disable set protocols ospf area 0.0.0.0 interface all set routing-instances pbbn1 instance-type virtual-switch set routing-instances pbbn1 interface cbp0.0 set routing-instances pbbn1 route-distinguisher 127.0.0.2:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id 100 set routing-instances pbbn1 bridge-domains bda isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id-scope-local set routing-instances pbn1 instance-type virtual-switch set routing-instances pbn1 interface pip0.0 set routing-instances pbn1 bridge-domains bda domain-type bridge set routing-instances pbn1 bridge-domains bda vlan-id 10 set routing-instances pbn1 bridge-domains bda interface ae0.0 set routing-instances pbn1 bridge-domains bda interface xe-0/0/3.0 set routing-instances pbn1 bridge-domains bda interface ge-1/3/6.0 set routing-instances pbn1 bridge-domains bda interface ge-1/3/5.0 set routing-instances pbn1 bridge-domains bda bridge-options mac-statistics set routing-instances pbn1 pbb-options peer-instance pbbn1 set routing-instances pbn1 service-groups sga service-type elan set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 |
PE3
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-0/0/0 gigether-options 802.3ad ae13 set interfaces xe-0/0/1 flexible-vlan-tagging set interfaces xe-0/0/1 encapsulation flexible-ethernet-services set interfaces xe-0/0/1 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/1 unit 0 vlan-id 10 set interfaces xe-0/0/2 gigether-options 802.3ad ae13 set interfaces ge-1/0/4 unit 0 family inet address 100.23.1.3/24 set interfaces ge-1/0/4 unit 0 family iso set interfaces ge-1/0/4 unit 0 family mpls set interfaces ge-1/0/6 gigether-options 802.3ad ae0 set interfaces ge-1/0/7 gigether-options 802.3ad ae0 set interfaces ge-1/0/8 flexible-vlan-tagging set interfaces ge-1/0/8 encapsulation flexible-ethernet-services set interfaces ge-1/0/8 esi 00:44:44:44:44:44:44:44:44:44 set interfaces ge-1/0/8 esi single-active set interfaces ge-1/0/8 esi source-bmac 00:44:44:44:44:44 set interfaces ge-1/0/8 unit 0 encapsulation vlan-bridge set interfaces ge-1/0/8 unit 0 vlan-id 10 set interfaces ge-1/1/5 unit 0 family inet address 172.21.0.1/16 set interfaces ge-1/1/5 unit 0 family iso set interfaces ge-1/1/5 unit 0 family mpls set interfaces ae0 flexible-vlan-tagging set interfaces ae0 encapsulation flexible-ethernet-services set interfaces ae0 esi 00:11:11:11:11:11:11:11:11:11 set interfaces ae0 esi single-active set interfaces ae0 esi source-bmac 00:11:11:11:11:13 set interfaces ae0 unit 0 encapsulation vlan-bridge set interfaces ae0 unit 0 vlan-id 10 set interfaces ae13 flexible-vlan-tagging set interfaces ae13 encapsulation flexible-ethernet-services set interfaces ae13 aggregated-ether-options minimum-links 1 set interfaces ae13 unit 0 vlan-tags outer 1300 set interfaces ae13 unit 0 vlan-tags inner 13 set interfaces ae13 unit 0 family inet address 100.13.1.3/24 set interfaces ae13 unit 0 family iso set interfaces ae13 unit 0 family mpls set interfaces cbp0 unit 0 family bridge interface-mode trunk set interfaces cbp0 unit 0 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 0 family bridge isid-list all set interfaces cbp0 unit 1 family bridge interface-mode trunk set interfaces cbp0 unit 1 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 1 family bridge isid-list all set interfaces lo0 unit 0 family inet address 127.0.0.3/8 primary set interfaces lo0 unit 0 family iso set interfaces pip0 unit 0 family bridge interface-mode trunk set interfaces pip0 unit 0 family bridge bridge-domain-type svlan set interfaces pip0 unit 0 family bridge isid-list all-service-groups set interfaces pip0 unit 1 family bridge interface-mode trunk set interfaces pip0 unit 1 family bridge bridge-domain-type svlan set interfaces pip0 unit 1 family bridge isid-list all-service-groups | set routing-options router-id 127.0.0.3 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable set protocols mpls label-switched-path pe3tope1 from 127.0.0.3 set protocols mpls label-switched-path pe3tope1 to 127.0.0.1 set protocols mpls label-switched-path pe3tope1 primary direct_to_pe1 set protocols mpls label-switched-path pe3tope2 from 127.0.0.3 set protocols mpls label-switched-path pe3tope2 to 127.0.0.2 set protocols mpls label-switched-path pe3tope2 primary direct_to_pe2 set protocols mpls label-switched-path pe3tope4 from 127.0.0.3 set protocols mpls label-switched-path pe3tope4 to 127.0.0.4 set protocols mpls label-switched-path pe3tope4 primary direct_to_pe4 set protocols mpls path direct_to_pe1 172.17.0.1 strict set protocols mpls path direct_to_pe2 172.19.0.1 strict set protocols mpls path direct_to_pe4 172.21.0.2 strict set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 127.0.0.3 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 127.0.0.1 set protocols bgp group ibgp neighbor 127.0.0.2 set protocols bgp group ibgp neighbor 127.0.0.4 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set routing-instances pbbn1 instance-type virtual-switch set routing-instances pbbn1 interface cbp0.0 set routing-instances pbbn1 route-distinguisher 127.0.0.3:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn traceoptions file pbbevpn.log set routing-instances pbbn1 protocols evpn traceoptions file size 500m set routing-instances pbbn1 protocols evpn traceoptions flag all set routing-instances pbbn1 protocols evpn control-word set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id 100 set routing-instances pbbn1 bridge-domains bda isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id-scope-local set routing-instances pbn1 instance-type virtual-switch set routing-instances pbn1 interface pip0.0 set routing-instances pbn1 bridge-domains bda domain-type bridge set routing-instances pbn1 bridge-domains bda vlan-id 10 set routing-instances pbn1 bridge-domains bda interface ae0.0 set routing-instances pbn1 bridge-domains bda interface xe-0/0/1.0 set routing-instances pbn1 bridge-domains bda interface ge-1/0/8.0 set routing-instances pbn1 bridge-domains bda bridge-options mac-statistics set routing-instances pbn1 pbb-options peer-instance pbbn1 set routing-instances pbn1 service-groups sga service-type elan set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 |
PE4
set chassis aggregated-devices ethernet device-count 50 set chassis network-services enhanced-ip set interfaces xe-0/0/0 flexible-vlan-tagging set interfaces xe-0/0/0 encapsulation flexible-ethernet-services set interfaces xe-0/0/0 unit 0 encapsulation vlan-bridge set interfaces xe-0/0/0 unit 0 vlan-id 10 set interfaces ge-0/2/1 flexible-vlan-tagging set interfaces ge-0/2/1 encapsulation flexible-ethernet-services set interfaces ge-0/2/1 esi 00:44:44:44:44:44:44:44:44:44 set interfaces ge-0/2/1 esi single-active set interfaces ge-0/2/1 esi source-bmac 00:44:44:44:44:45 set interfaces ge-0/2/1 unit 0 encapsulation vlan-bridge set interfaces ge-0/2/1 unit 0 vlan-id 10 set interfaces ge-0/2/5 unit 0 family inet address 172.21.0.2/16 set interfaces ge-0/2/5 unit 0 family iso set interfaces ge-0/2/5 unit 0 family mpls set interfaces ge-0/2/9 gigether-options 802.3ad ae14 set interfaces ge-0/3/1 unit 0 family inet address 172.20.0.2/16 set interfaces ge-0/3/1 unit 0 family iso set interfaces ge-0/3/1 unit 0 family mpls set interfaces ge-0/3/3 gigether-options 802.3ad ae14 set interfaces ae14 aggregated-ether-options minimum-links 1 set interfaces ae14 unit 0 family inet address 100.14.1.4/24 set interfaces ae14 unit 0 family iso set interfaces ae14 unit 0 family mpls set interfaces cbp0 unit 0 family bridge interface-mode trunk set interfaces cbp0 unit 0 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 0 family bridge isid-list all set interfaces cbp0 unit 1 family bridge interface-mode trunk set interfaces cbp0 unit 1 family bridge bridge-domain-type bvlan set interfaces cbp0 unit 1 family bridge isid-list all set interfaces lo0 unit 0 family inet address 127.0.0.4/8 primary set interfaces pip0 unit 0 family bridge interface-mode trunk set interfaces pip0 unit 0 family bridge bridge-domain-type svlan set interfaces pip0 unit 0 family bridge isid-list all-service-groups set interfaces pip0 unit 1 family bridge interface-mode trunk set interfaces pip0 unit 1 family bridge bridge-domain-type svlan set interfaces pip0 unit 1 family bridge isid-list all-service-groups set routing-options router-id 127.0.0.4 set routing-options autonomous-system 65221 set protocols rsvp interface all set protocols rsvp interface fxp0.0 disable | set protocols mpls label-switched-path pe4tope1 from 127.0.0.4 set protocols mpls label-switched-path pe4tope1 to 127.0.0.1 set protocols mpls label-switched-path pe4tope1 primary direct_to_pe1 set protocols mpls label-switched-path pe4tope2 from 127.0.0.4 set protocols mpls label-switched-path pe4tope2 to 127.0.0.2 set protocols mpls label-switched-path pe4tope2 primary direct_to_pe2 set protocols mpls label-switched-path pe4tope3 from 127.0.0.4 set protocols mpls label-switched-path pe4tope3 to 127.0.0.3 set protocols mpls label-switched-path pe4tope3 primary direct_to_pe3 set protocols mpls path direct_to_pe1 172.18.0.1 strict set protocols mpls path direct_to_pe2 172.20.0.1 strict set protocols mpls path direct_to_pe3 172.21.0.1 strict set protocols mpls interface all set protocols mpls interface fxp0.0 disable set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 127.0.0.4 set protocols bgp group ibgp family evpn signaling set protocols bgp group ibgp neighbor 127.0.0.1 set protocols bgp group ibgp neighbor 127.0.0.2 set protocols bgp group ibgp neighbor 127.0.0.3 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface fxp0.0 disable set routing-instances pbbn1 instance-type virtual-switch set routing-instances pbbn1 interface cbp0.0 set routing-instances pbbn1 route-distinguisher 127.0.0.4:1 set routing-instances pbbn1 vrf-target target:100:1 set routing-instances pbbn1 protocols evpn pbb-evpn-core set routing-instances pbbn1 protocols evpn extended-isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id 100 set routing-instances pbbn1 bridge-domains bda isid-list 1000 set routing-instances pbbn1 bridge-domains bda vlan-id-scope-local set routing-instances pbn1 instance-type virtual-switch set routing-instances pbn1 interface pip0.0 set routing-instances pbn1 bridge-domains bda domain-type bridge set routing-instances pbn1 bridge-domains bda vlan-id 10 set routing-instances pbn1 bridge-domains bda interface xe-0/0/0.0 set routing-instances pbn1 bridge-domains bda interface ge-0/2/1.0 set routing-instances pbn1 pbb-options peer-instance pbbn1 set routing-instances pbn1 service-groups sga service-type elan set routing-instances pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 |
Quy trình từng bước (Step-by-Step Procedure)
Ví dụ sau yêu cầu bạn phải điều hướng qua nhiều cấp trong cây cấu hình của thiết bị.
Để biết thêm thông tin về cách điều hướng trong CLI, hãy tham khảo phần "Sử dụng Trình soạn thảo CLI trong Chế độ Cấu hình" (Using the CLI Editor in Configuration Mode) trong Hướng dẫn sử dụng CLI (CLI User Guide).
Để cấu hình thiết bị CE1:
[edit chassis] user@CE1# set aggregated-devices ethernet device-count 50 |
[edit chassis] user@CE1# set chassis network-services enhanced-ip |
Cấu hình các cổng giao tiếp (interfaces) trên thiết bị CE1.
[edit interfaces] user@CE1# set interfaces xe-0/0/3 flexible-vlan-tagging user@CE1# set interfaces xe-0/0/3 encapsulation flexible-ethernet-services user@CE1# set interfaces xe-0/0/3 unit 0 encapsulation vlan-bridge user@CE1# set interfaces xe-0/0/3 unit 0 vlan-id 10 user@CE1# set interfaces xe-0/0/3 unit 1 encapsulation vlan-bridge user@CE1# set interfaces xe-0/0/3 unit 1 vlan-id 20 user@CE1# set interfaces xe-0/0/3 unit 2 encapsulation vlan-bridge user@CE1# set interfaces xe-0/0/3 unit 2 vlan-id 30 user@CE1# set interfaces ge-1/0/2 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/2 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/2 unit 1 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/2 unit 1 vlan-id 20 user@CE1# set interfaces ge-1/0/5 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/5 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/5 unit 2 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/5 unit 2 vlan-id 30 user@CE1# set interfaces ge-1/0/6 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/0/7 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/0/8 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/8 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/8 unit 1 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/8 unit 1 vlan-id 20 user@CE1# set interfaces ge-1/0/9 flexible-vlan-tagging user@CE1# set interfaces ge-1/0/9 encapsulation flexible-ethernet-services user@CE1# set interfaces ge-1/0/9 unit 2 encapsulation vlan-bridge user@CE1# set interfaces ge-1/0/9 unit 2 vlan-id 30 user@CE1# set interfaces ge-1/1/4 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/1/5 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/1/6 gigether-options 802.3ad ae0 user@CE1# set interfaces ge-1/1/9 gigether-options 802.3ad ae0 |
Cấu hình nhóm Ethernet gộp (aggregated Ethernet bundle) trên thiết bị CE1.
[edit interfaces] user@CE1# set interfaces ae0 flexible-vlan-tagging user@CE1# set interfaces ae0 encapsulation flexible-ethernet-services user@CE1# set interfaces ae0 aggregated-ether-options minimum-links 1 user@CE1# set interfaces ae0 unit 0 encapsulation vlan-bridge user@CE1# set interfaces ae0 unit 0 vlan-id 10 |
[edit bridge-domains] user@CE1# set bd10 domain-type bridge user@CE1# set bd10 vlan-id 10 user@CE1# set bd10 interface ae0.0 user@CE1# set bd10 interface xe-0/0/3.0 user@CE1# set bd20 domain-type bridge user@CE1# set bd20 vlan-id 20 user@CE1# set bd20 interface xe-0/0/3.1 user@CE1# set bd20 interface ge-1/0/8.1 user@CE1# set bd20 interface ge-1/0/2.1 user@CE1# set bd30 domain-type bridge user@CE1# set bd30 vlan-id 30 user@CE1# set bd30 interface xe-0/0/3.2 user@CE1# set bd30 interface ge-1/0/9.2 user@CE1# set bd30 interface ge-1/0/5.2 |
Kết quả
Từ chế độ cấu hình, xác nhận cấu hình của bạn bằng cách nhập các lệnh: show chassis,
show interfaces,
show bridge-domains.
Nếu kết quả hiển thị không đúng với cấu hình mong muốn, hãy thực hiện lại các bước hướng dẫn trong ví dụ này để sửa cấu hình cho chính xác.
user@CE1# show chassis aggregated-devices { ethernet { device-count 50; } } network-services enhanced-ip; |
user@CE1# show bridge-domains bd10 { domain-type bridge; vlan-id 10; interface ae0.0; interface xe-0/0/3.0; } bd20 { domain-type bridge; vlan-id 20; interface xe-0/0/3.1; interface ge-1/0/8.1; interface ge-1/0/2.1; } bd30 { domain-type bridge; vlan-id 30; interface xe-0/0/3.2; interface ge-1/0/9.2; interface ge-1/0/5.2; } ge-1/0/9 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 2 { encapsulation vlan-bridge; vlan-id 30; } } | ge-1/1/4 { gigether-options { 802.3ad ae0; } } ge-1/1/5 { gigether-options { 802.3ad ae0; } } ge-1/1/6 { gigether-options { 802.3ad ae0; } } ge-1/1/9 { gigether-options { 802.3ad ae0; } } ae0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; aggregated-ether-options { minimum-links 1;} unit 0 { encapsulation vlan-bridge; vlan-id 10;} } |
Nếu bạn đã hoàn tất cấu hình thiết bị, hãy nhập lệnh commit từ chế độ cấu hình để áp dụng cấu hình.
Quy trình từng bước (Step-by-Step Procedure)
Ví dụ sau yêu cầu bạn phải điều hướng qua nhiều cấp trong cây cấu hình.
Để biết thêm thông tin về cách điều hướng CLI, hãy tham khảo phần "Sử dụng trình chỉnh sửa CLI trong chế độ cấu hình" (Using the CLI Editor in Configuration Mode) trong Hướng dẫn sử dụng CLI (CLI User Guide).
Để cấu hình thiết bị PE1:
[edit chassis] user@PE1# set aggregated-devices ethernet device-count 50 |
Thiết lập dịch vụ mạng (network services) của thiết bị PE1 sang chế độ Enhanced Internet Protocol và sử dụng các tính năng của chế độ enhanced mode.
[edit chassis] user@PE1# set network-services enhanced-ip |
Cấu hình các cổng giao tiếp hướng về CE (CE-facing interfaces) trên thiết bị PE1.
[edit interfaces] user@PE1# set ge-2/0/6 gigether-options 802.3ad ae0 user@PE1# set ge-2/0/7 gigether-options 802.3ad ae0 user@PE1# set ge-2/0/8 flexible-vlan-tagging user@PE1# set ge-2/0/8 encapsulation flexible-ethernet-services user@PE1# set ge-2/0/8 unit 0 encapsulation vlan-bridge user@PE1# set ge-2/0/8 unit 0 vlan-id 20 user@PE1# set ge-2/0/9 flexible-vlan-tagging user@PE1# set ge-2/0/9 encapsulation flexible-ethernet-services user@PE1# set ge-2/0/9 unit 0 encapsulation vlan-bridge user@PE1# set ge-2/0/9 unit 0 vlan-id 30 |
Cấu hình nhóm Ethernet gộp (aggregate Ethernet bundle) trên thiết bị PE1 dùng để kết nối với thiết bị CE1.
[edit interfaces] user@PE1# set ae0 flexible-vlan-tagging user@PE1# set ae0 encapsulation flexible-ethernet-services user@PE1# set ae0 unit 0 encapsulation vlan-bridge user@PE1# set ae0 unit 0 vlan-id 10 |
Cấu hình các tham số EVPN multihoming cho các cổng giao tiếp hướng về CE và nhóm Ethernet gộp (aggregate Ethernet bundle) kết nối đến site khách hàng được multihomed.
[edit interfaces] user@PE1# set ge-2/0/8 esi 00:22:22:22:22:22:22:22:22:22 user@PE1# set ge-2/0/8 esi single-active user@PE1# set ge-2/0/8 esi source-bmac 00:22:22:22:22:22 user@PE1# set ge-2/0/9 esi 00:33:33:33:33:33:33:33:33:33 user@PE1# set ge-2/0/9 esi single-active user@PE1# set ge-2/0/9 esi source-bmac 00:33:33:33:33:33 user@PE1# set ae0 esi 00:11:11:11:11:11:11:11:11:11 user@PE1# set ae0 esi single-active user@PE1# set ae0 esi source-bmac 00:11:11:11:11:11 |
**Lưu ý: Trong ví dụ này, EVPN multihoming hoạt động ở chế độ active/standby. Nếu muốn cấu hình EVPN multihoming ở chế độ active/active, hãy thêm câu lệnh active-active tại cấp cấu hình: [edit interfaces interface-name esi], thay vì sử dụng câu lệnh single-active.
[edit interfaces] user@PE1# set ge-2/0/2 gigether-options 802.3ad ae12 user@PE1# set ge-2/0/3 gigether-options 802.3ad ae12 user@PE1# set xe-1/2/3 gigether-options 802.3ad ae13 user@PE1# set xe-1/3/0 gigether-options 802.3ad ae13 user@PE1# set ge-2/1/0 gigether-options 802.3ad ae14 user@PE1# set ge-2/1/5 gigether-options 802.3ad ae14 |
Cấu hình nhóm Ethernet gộp (aggregate Ethernet bundle) trên thiết bị PE1 dùng để kết nối với các thiết bị PE2, PE3 và PE4.
[edit interfaces] user@PE1# set ae12 flexible-vlan-tagging user@PE1# set ae12 encapsulation flexible-ethernet-services user@PE1# set ae12 aggregated-ether-options minimum-links 1 user@PE1# set ae12 unit 0 vlan-id 1200 user@PE1# set ae12 unit 0 family inet address 172.16.0.1/16 user@PE1# set ae12 unit 0 family iso user@PE1# set ae12 unit 0 family mpls user@PE1# set ae13 flexible-vlan-tagging user@PE1# set ae13 encapsulation flexible-ethernet-services user@PE1# set ae13 aggregated-ether-options minimum-links 1 user@PE1# set ae13 unit 0 vlan-tags outer 1300 user@PE1# set ae13 unit 0 vlan-tags inner 13 user@PE1# set ae13 unit 0 family inet address 172.17.0.1/16 user@PE1# set ae13 unit 0 family iso user@PE1# set ae13 unit 0 family mpls user@PE1# set ae14 aggregated-ether-options minimum-links 1 user@PE1# set ae14 unit 0 family inet address 172.18.0.1/16 user@PE1# set ae14 unit 0 family iso user@PE1# set ae14 unit 0 family mpls |
Cấu hình cổng giao tiếp trên thiết bị PE1 dùng để kết nối với host.
[edit interfaces] user@PE1# set xe-1/0/1 flexible-vlan-tagging user@PE1# set xe-1/0/1 encapsulation flexible-ethernet-services user@PE1# set xe-1/0/1 unit 0 encapsulation vlan-bridge user@PE1# set xe-1/0/1 unit 0 vlan-id 10 |
[edit interfaces] user@PE1# set lo0 unit 0 family inet address 127.0.0.1/8 primary user@PE1# set lo0 unit 0 family iso |
Cấu hình các cổng giao tiếp Customer Backbone Port (CBP) trên thiết bị PE1.
[edit interfaces] user@PE1# set cbp0 unit 0 family bridge interface-mode trunk user@PE1# set cbp0 unit 0 family bridge bridge-domain-type bvlan user@PE1# set cbp0 unit 0 family bridge isid-list all user@PE1# set cbp0 unit 1 family bridge interface-mode trunk user@PE1# set cbp0 unit 1 family bridge bridge-domain-type bvlan user@PE1# set cbp0 unit 1 family bridge isid-list all |
Cấu hình cổng Provider Instance Port (PIP) trên thiết bị PE1.
[edit interfaces] user@PE1# set pip0 unit 0 family bridge interface-mode trunk user@PE1# set pip0 unit 0 family bridge bridge-domain-type svlan user@PE1# set pip0 unit 0 family bridge isid-list all-service-groups user@PE1# set pip0 unit 1 family bridge interface-mode trunk user@PE1# set pip0 unit 1 family bridge bridge-domain-type svlan user@PE1# set pip0 unit 1 family bridge isid-list all-service-groups |
Cấu hình router ID và số hệ tự trị (Autonomous System Number - ASN) cho thiết bị PE1.
[edit routing-options] user@PE1# set router-id 127.0.0.1 user@PE1# set autonomous-system 65221 |
Cấu hình RSVP trên tất cả các cổng giao tiếp của thiết bị PE1, ngoại trừ cổng quản lý (management interface).
[edit protocols] user@PE1# set rsvp interface all user@PE1# set rsvp interface fxp0.0 disable |
Cấu hình MPLS trên tất cả các cổng giao tiếp của thiết bị PE1, ngoại trừ cổng quản lý (management interface).
[edit protocols] user@PE1# set mpls interface all user@PE1# set mpls interface fxp0.0 disable |
Cấu hình các đường chuyển mạch nhãn (LSPs) từ thiết bị PE1 đến tất cả các thiết bị PE khác.
[edit protocols] user@PE1# set mpls label-switched-path pe1tope2 from 127.0.0.1 user@PE1# set mpls label-switched-path pe1tope2 to 127.0.0.2 user@PE1# set mpls label-switched-path pe1tope2 primary direct_to_pe2 user@PE1# set mpls label-switched-path pe1tope3 from 127.0.0.1 user@PE1# set mpls label-switched-path pe1tope3 to 127.0.0.3 user@PE1# set mpls label-switched-path pe1tope3 primary direct_to_pe3 user@PE1# set mpls label-switched-path pe1tope4 from 127.0.0.1 user@PE1# set mpls label-switched-path pe1tope4 to 127.0.0.4 user@PE1# set mpls label-switched-path pe1tope4 primary direct_to_pe4 |
Cấu hình các đường MPLS (MPLS paths) từ thiết bị PE1 đến tất cả các thiết bị PE khác.
[edit protocols] user@PE1# set mpls path direct_to_pe2 100.12.1.2 strict user@PE1# set mpls path direct_to_pe3 100.13.1.3 strict user@PE1# set mpls path direct_to_pe4 100.14.1.4 strict |
Cấu hình phiên BGP nội bộ (internal BGP session) sử dụng family EVPN từ thiết bị PE1 đến tất cả các thiết bị PE khác.
[edit protocols] user@PE1# set bgp group ibgp type internal user@PE1# set bgp group ibgp local-address 127.0.0.1 user@PE1# set bgp group ibgp family evpn signaling user@PE1# set bgp group ibgp neighbor 127.0.0.2 user@PE1# set bgp group ibgp neighbor 127.0.0.3 user@PE1# set bgp group ibgp neighbor 127.0.0.4 |
Cấu hình OSPF trên tất cả các cổng giao tiếp của thiết bị PE1, ngoại trừ cổng quản lý (management interface).
[edit protocols] user@PE1# set ospf traffic-engineering user@PE1# set ospf area 0.0.0.0 interface all user@PE1# set ospf area 0.0.0.0 interface fxp0.0 disable |
Cấu hình một instance định tuyến khách hàng (I-component) trên thiết bị PE1 với loại là virtual switch. Gán interface CBP, route-distinguisher, và giá trị VRF target cho instance định tuyến PBBN.
[edit routing-instances] user@PE1# set pbbn1 instance-type virtual-switch user@PE1# set pbbn1 interface cbp0.0 user@PE1# set pbbn1 route-distinguisher 127.0.0.1:1 user@PE1# set pbbn1 vrf-target target:100:1 |
Cấu hình tích hợp PBB-EVPN từ instance định tuyến khách hàng. Gán danh sách I-SID mở rộng (extended I-SID list) và các bridge domain vào instance định tuyến đó.
[edit routing-instances] user@PE1# set pbbn1 protocols evpn pbb-evpn-core user@PE1# set pbbn1 protocols evpn extended-isid-list 1000 user@PE1# set pbbn1 bridge-domains bda vlan-id 100 user@PE1# set pbbn1 bridge-domains bda isid-list 1000 user@PE1# set pbbn1 bridge-domains bda vlan-id-scope-local |
Cấu hình một instance định tuyến nhà cung cấp (provider routing instance) trên thiết bị PE1 với loại là virtual switch. Gán giao diện PBP (Provider Backbone Port) và các bridge domain vào instance định tuyến đó.
[edit routing-instances] user@PE1# set pbn1 instance-type virtual-switch user@PE1# set pbn1 interface pip0.0 user@PE1# set pbn1 bridge-domains bda domain-type bridge user@PE1# set pbn1 bridge-domains bda vlan-id 10 user@PE1# set pbn1 bridge-domains bda interface ae0.0 user@PE1# set pbn1 bridge-domains bda interface xe-1/0/1.0 user@PE1# set pbn1 bridge-domains bda interface ge-2/0/9.0 user@PE1# set pbn1 bridge-domains bda interface ge-2/0/8.0 |
Cấu hình instance định tuyến PBBN ngang hàng (peer PBBN routing instance) trong instance định tuyến khách hàng.
[edit routing-instances] user@PE1# set pbn1 pbb-options peer-instance pbbn1 |
Cấu hình các nhóm dịch vụ (service groups) sẽ được hỗ trợ trong instance định tuyến khách hàng.
[edit routing-instances] user@PE1# set pbn1 service-groups sga service-type elan user@PE1# set pbn1 service-groups sga pbb-service-options isid 1000 vlan-id-list 10 |
Kết quả
Từ chế độ cấu hình, xác nhận cấu hình của bạn bằng cách nhập các lệnh sau: show chassis, show interfaces, show routing-options, show protocols, show routing-instances. Nếu kết quả hiển thị không đúng với cấu hình mong muốn, hãy lặp lại các bước hướng dẫn trong ví dụ này để sửa lại cấu hình cho chính xác.
user@PE1# show chassis aggregated-devices { ethernet { device-count 50; } } network-services enhanced-ip; |
user@PE1# show routing-options router-id 127.0.0.1; autonomous-system 65221; |
Nếu bạn đã hoàn tất việc cấu hình thiết bị, hãy nhập lệnh commit
từ chế độ cấu hình.
Chúc các bạn thực hiện thành công. Hi vọng bài viết này sẽ giúp ích cho các bạn trong công việc. Nếu bạn có vấn đề gì thắc mắc đừng ngần ngại liên hệ với chúng tôi theo thông tin dưới đây để được hỗ trợ thêm.
Hẹn gặp lại các bạn trong các bài viết tiếp theo!
CÔNG TY CỔ PHẦN DỊCH VỤ CÔNG NGHỆ DATECH
• Địa chỉ: Số 23E4 KĐT Cầu Diễn, Tổ 7, Phú Diễn, Bắc Từ Liêm, Hà Nội
• Điện thoại: 02432012368
• Hotline: 098 115 6699
• Email: info@datech.vn
• Website: https://datech.vn