Hướng dẫn cấu hình tương tác EVPN-MPLS với Junos Fusion Enterprise

Hướng dẫn cấu hình tương tác EVPN-MPLS với Junos Fusion Enterprise

Bài viết này trình bày cách sử dụng Ethernet VPN (EVPN) để mở rộng Junos Fusion Enterprise qua mạng MPLS đến một mạng doanh nghiệp hoặc khuôn viên (campus) phân bố địa lý.

Việc tương tác EVPN-MPLS được hỗ trợ bởi Junos Fusion Enterprise — một kiến trúc dựa trên cấu trúc nhóm liên kết đa khung (MC-LAG), cung cấp khả năng dự phòng cho các switch EX9200 đóng vai trò là thiết bị tập hợp (aggregation devices).

Các thiết bị tập hợp này được kết nối đến thiết bị biên của nhà cung cấp (PE – Provider Edge) trong mạng MPLS. Thiết bị PE có thể là router dòng MX Series hoặc switch EX9200.

Bài viết này hướng dẫn cách cấu hình các thiết bị tập hợp trong Junos Fusion Enterprise và thiết bị PE trong mạng MPLS để chúng có thể hoạt động tương thích với nhau.

Yêu cầu hệ thống

Ví dụ này sử dụng các thành phần phần cứng và phần mềm sau:

  • Ba switch EX9200:
    • PE1 và PE2: hoạt động như các thiết bị tập hợp trong Junos Fusion Enterprise và là các BGP peer trong mạng overlay EVPN-MPLS.
    • PE3: hoạt động như một BGP peer EVPN trong mạng overlay EVPN-MPLS.
  • Các switch EX9200 chạy hệ điều hành Junos phiên bản 17.4R1 hoặc mới hơn.

**Lưu ý: Dù Junos Fusion Enterprise bao gồm ba thiết bị vệ tinh (satellite devices), ví dụ này chỉ tập trung vào việc cấu hình các thiết bị PE1, PE2 và PE3. Để biết thêm thông tin về cấu hình thiết bị vệ tinh, bạn có thể xem tại mục Configuring or Expanding a Junos Fusion Enterprise.

Tổng quan và mô hình kết nối

Hình 1 mô tả kiến trúc Junos Fusion Enterprise với hai thiết bị tập hợp chính là PE1 và PE2. Hai thiết bị này được kết nối với nhau thông qua liên kết giữa các chassis (ICL - Interchassis Link) và sử dụng giao thức kiểm soát liên chassis (ICCP - Inter-Chassis Control Protocol) để giao tiếp và đồng bộ lẫn nhau.

Hình 1: Tương tác EVPN-MPLS với Junos Fusion Enterprise

Junos Fusion Enterprise cũng bao gồm ba thiết bị vệ tinh (satellite devices). Thiết bị vệ tinh SD120 là một thiết bị vệ tinh độc lập, được kết nối đơn hướng (single-homed) với PE1. Thiết bị SD100 và SD108 nằm trong một cụm (cluster) có tên là Cluster_100_108. Trong cụm này, SD100 là thành viên duy nhất có kết nối với thiết bị tập hợp — cụ thể là kết nối đa hướng (multihomed) tới cả PE1 và PE2.

Mô hình trong Hình 1 cũng bao gồm PE3, nằm tại biên của mạng MPLS. Thiết bị PE3 đóng vai trò cổng kết nối (gateway) giữa mạng Junos Fusion Enterprise và một mạng doanh nghiệp hoặc khuôn viên (campus) phân bố địa lý. Các thiết bị PE1, PE2 và PE3 đều chạy giao thức EVPN, cho phép các máy chủ trong mạng Junos Fusion Enterprise giao tiếp với các máy chủ trong mạng doanh nghiệp hoặc campus thông qua mạng MPLS trung gian.

Ở góc nhìn của chức năng tương tác EVPN-MPLS, thiết bị PE3 chỉ đóng vai trò là một peer BGP EVPN, trong khi PE1 và PE2 trong kiến trúc Junos Fusion Enterprise đảm nhận hai vai trò đồng thời:

  • Là thiết bị tập hợp (aggregation devices) trong Junos Fusion Enterprise.
  • Là peer BGP EVPN trong mạng EVPN-MPLS.

Vì đảm nhiệm hai vai trò, PE1 và PE2 được cấu hình đồng thời với các đặc điểm của: Junos Fusion Enterprise, EVPN, BGP, MPLS.

Bảng 1 trình bày các thuộc tính chính của Junos Fusion Enterprise và EVPN (BGP và MPLS) được cấu hình trên PE1, PE2 và PE3.

Bảng 1: Các thuộc tính chính được cấu hình trên PE1, PE2 và PE3 cho Junos Fusion Enterprise và EVPN (BGP & MPLS)

Thuộc tínhPE1PE2PE3
Thuộc tính Junos Fusion Enterprise   
Giao diện (Interfaces)ICL: ge-1/0/3ICCP: ge-1/0/2ICL: ge-3/1/9ICCP: ge-3/1/7Không áp dụng
EVPN-MPLS   
Giao diện (Interfaces)

Kết nối tới PE3: ge-1/1/3

Kết nối tới PE2: ge-1/1/7

Kết nối tới PE3: ge-3/1/5

Kết nối tới PE1: ge-3/1/8

Kết nối tới PE1: ge-0/3/5

Kết nối tới PE2: ge-0/3/7

Địa chỉ IPĐịa chỉ BGP peer: 10.25.0.1Địa chỉ BGP peer: 10.25.0.2Địa chỉ BGP peer: 10.25.0.3
Hệ tự trị (Autonomous System - AS)100100100
Instance định tuyến của virtual switchevpn1evpn1evpn1

Lưu ý về chức năng EVPN-MPLS Interworking và cấu hình

  • Bạn phải cấu hình mã định danh đoạn Ethernet (ESI) trên các cổng mở rộng có kết nối kép (dual-homed extended ports) trong Junos Fusion Enterprise.
    → ESI cho phép EVPN nhận diện được các cổng mở rộng có kết nối kép này.
  • Loại instance định tuyến duy nhất được hỗ trợ là virtual switch instance
    → Sử dụng lệnh: set routing-instances <tên> instance-type virtual-switch
  • Junos Fusion Enterprise chỉ hỗ trợ một virtual switch instance duy nhất.
  • Trên các thiết bị tập hợp (aggregation devices) trong Junos Fusion Enterprise,
    bạn phải thêm cấu hình bgp-peer trong cấp cấu hình sau:
    [edit routing-instances <tên> protocols evpn mclag]
    → Câu lệnh này cho phép EVPN-MPLS interworking hoạt động với kiến trúc Junos Fusion Enterprise tại các thiết bị tập hợp.
  • Không hỗ trợ ARP suppression (Chức năng ức chế ARP).

Cấu hình thiết bị tập hợp (PE1 và PE2)

Để cấu hình các thiết bị tập hợp PE1 và PE2, bạn cần thực hiện các bước sau.

**Lưu ý: Phần này chỉ tập trung vào việc bật EVPN-MPLS trên PE1 và PE2. Do đó, cấu hình Junos Fusion Enterprise trên PE1 và PE2 sẽ không sử dụng tính năng đồng bộ cấu hình (configuration synchronization). Để biết thêm về tính năng này, hãy xem: Understanding Configuration Synchronization (Hiểu về Đồng bộ Cấu hình).

Cấu hình nhanh qua dòng lệnh (CLI Quick Configuration)

PE1: Cấu hình Junos Fusion Enterprise

set interfaces ge-1/1/9 cascade-port

set interfaces ge-1/1/5 cascade-port

set chassis satellite-management fpc 120 cascade-ports ge-1/1/9

set chassis satellite-management cluster Cluster_100_108 cluster-id 2

set chassis satellite-management cluster Cluster_100_108 cascade-ports ge-1/1/5

set chassis satellite-management cluster Cluster_100_108 fpc 100 alias SD100

set chassis satellite-management cluster Cluster_100_108 fpc 100 system-id 88:e0:f3:1f:3d:50

set chassis satellite-management cluster Cluster_100_108 fpc 108 alias SD108

set chassis satellite-management cluster Cluster_100_108 fpc 108 system-id 88:e0:f3:1f:c8:d1

set chassis satellite-management cluster Cluster_100_108 fpc 100 member-id 1

set chassis satellite-management cluster Cluster_100_108 fpc 108 member-id 8

set chassis satellite-management upgrade-groups upgrade_120 satellite 120

set chassis satellite-management upgrade-groups upgrade_100 satellite 100

set chassis satellite-management redundancy-groups rg1 redundancy-group-id 2

set chassis satellite-management redundancy-groups chassis-id 1

set chassis satellite-management redundancy-groups rg1 peer-chassis-id 2 inter-chassis-link ge-1/0/3

set chassis satellite-management redundancy-groups rg1 cluster Cluster_100_108

set interfaces ge-1/0/2 description iccp-link

set interfaces ge-1/0/2 unit 0 family inet address 10.20.20.1/24

set interfaces ge-1/0/3 description icl-link

set interfaces ge-1/0/3 unit 0 family ethernet-switching interface-mode trunk

set interfaces ge-1/0/3 unit 0 family ethernet-switching vlan members 100

set switch-options service-id 1

PE1: Cấu hình EVPN-MPLS

set interfaces lo0 unit 0 family inet address 10.25.0.1/32

set interfaces ge-1/1/3 unit 0 family inet address 10.0.1.1/30

set interfaces ge-1/1/3 unit 0 family mpls

set interfaces ge-1/1/7 unit 0 family inet address 10.0.3.1/30

set interfaces ge-1/1/7 unit 0 family mpls

set interfaces ge-108/0/25 unit 0 esi 00:01:02:03:04:00:01:02:04:26

set interfaces ge-108/0/25 unit 0 esi all-active

set interfaces ge-108/0/25 unit 0 family ethernet-switching vlan members v100

set interfaces ge-108/0/27 unit 0 esi 00:01:02:03:04:00:01:02:04:28

set interfaces ge-108/0/27 unit 0 esi all-active

set interfaces ge-108/0/27 unit 0 family ethernet-switching vlan members v100

set routing-options router-id 10.25.0.1

set routing-options autonomous-system 100

set protocols mpls interface lo0.0

set protocols mpls interface ge-1/1/3.0

set protocols mpls interface ge-1/1/7.0

set protocols bgp local-address 10.25.0.1

set protocols bgp peer-as 100

set protocols bgp local-as 100

set protocols bgp group evpn-mes type internal

set protocols bgp group evpn-mes family evpn signaling

 set protocols bgp group evpn-mes peer-as 100

set protocols bgp group evpn-mes neighbor 10.25.0.2

set protocols bgp group evpn-mes neighbor 10.25.0.3

set protocols ospf traffic-engineering

set protocols ospf area 0.0.0.0 interface ge-1/1/3.0

set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ospf area 0.0.0.0 interface fxp0.0 disable

set protocols ospf area 0.0.0.0 interface ge-1/1/7.0

set protocols ldp interface lo0.0

set protocols ldp interface ge-1/1/3.0

set protocols ldp interface ge-1/1/7.0

set routing-instances evpn1 instance-type virtual-switch

set routing-instances evpn1 interface ge-108/0/25.0

set routing-instances evpn1 interface ge-108/0/27.0

set routing-instances evpn1 interface ge-1/0/3.0

set routing-instances evpn1 route-distinguisher 10.25.0.1:1

set routing-instances evpn1 vrf-target target:100:1

set routing-instances evpn1 protocols evpn label-allocation per-instance

set routing-instances evpn1 protocols evpn extended-vlan-list 100

set routing-instances evpn1 protocols evpn mclag bgp-peer 10.25.0.2

set routing-instances evpn1 switch-options service-id 2

set routing-instances evpn1 vlans v100 vlan-id 100

PE2: Cấu hình Junos Fusion Enterprise

set interfaces ge-3/1/4 cascade-port

set chassis satellite-management cluster Cluster_100_108 cluster-id 2

set chassis satellite-management cluster Cluster_100_108 cascade-ports ge-3/1/4

set chassis satellite-management cluster Cluster_100_108 fpc 100 alias SD100

set chassis satellite-management cluster Cluster_100_108 fpc 100 system-id 88:e0:f3:1f:3d:50

set chassis satellite-management cluster Cluster_100_108 fpc 108 alias SD108

set chassis satellite-management cluster Cluster_100_108 fpc 108 system-id 88:e0:f3:1f:c8:d1

set chassis satellite-management cluster Cluster_100_108 fpc 100 member-id 1

set chassis satellite-management cluster Cluster_100_108 fpc 108 member-id 8

set chassis satellite-management upgrade-groups upgrade_100 satellite 100

set chassis satellite-management redundancy-groups rg1 redundancy-group-id 2

set chassis satellite-management redundancy-groups chassis-id 2

set chassis satellite-management redundancy-groups rg1 peer-chassis-id 1 inter-chassis-link ge-3/1/9

set chassis satellite-management redundancy-groups rg1 cluster Cluster_100_108

set interfaces ge-3/1/7 description iccp-link

set interfaces ge-3/1/7 unit 0 family inet address 10.20.20.2/24

set interfaces ge-3/1/9 description icl-link

set interfaces ge-3/1/9 unit 0 family ethernet-switching interface-mode trunk

set interfaces ge-3/1/9 unit 0 family ethernet-switching vlan members 100

set switch-options service-id 1

PE2: Cấu hình EVPN-MPLS

set interfaces lo0 unit 0 family inet address 10.25.0.2/32

set interfaces ge-3/1/5 unit 0 family inet address 10.0.4.2/30

set interfaces ge-3/1/5 unit 0 family mpls

set interfaces ge-3/1/8 unit 0 family inet address 10.0.3.2/30

set interfaces ge-3/1/8 unit 0 family mpls

set interfaces irb unit 0 family inet address 10.5.5.1/24 virtual-gateway-address 10.5.5.5

set interfaces ge-108/0/25 unit 0 esi 00:01:02:03:04:00:01:02:04:26

set interfaces ge-108/0/25 unit 0 esi all-active

set interfaces ge-108/0/25 unit 0 family ethernet-switching vlan members v100

set interfaces ge-108/0/27 unit 0 esi 00:01:02:03:04:00:01:02:04:28

set interfaces ge-108/0/27 unit 0 esi all-active

set interfaces ge-108/0/27 unit 0 family ethernet-switching vlan members v100

set routing-options router-id 10.25.0.2

set routing-options autonomous-system 100

set protocols mpls interface lo0.0

set protocols mpls interface ge-3/1/5.0

set protocols mpls interface ge-3/1/8.0

set protocols bgp local-address 10.25.0.2

set protocols bgp peer-as 100

set protocols bgp local-as 100

set protocols bgp group evpn-mes type internal

set protocols bgp group evpn-mes family evpn signaling

set protocols bgp group evpn-mes peer-as 100

set protocols bgp group evpn-mes neighbor 10.25.0.1

set protocols bgp group evpn-mes neighbor 10.25.0.3

set protocols ospf traffic-engineering

set protocols ospf area 0.0.0.0 interface ge-3/1/5.0

set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ospf area 0.0.0.0 interface fxp0.0 disable

set protocols ospf area 0.0.0.0 interface ge-3/1/8.0

set protocols ldp interface lo0.0

set protocols ldp interface ge-3/1/5.0

set protocols ldp interface ge-3/1/8.0

set routing-instances evpn1 instance-type virtual-switch

set routing-instances evpn1 interface ge-108/0/25.0

set routing-instances evpn1 interface ge-108/0/27.0

set routing-instances evpn1 interface ge-3/1/9.0

set routing-instances evpn1 route-distinguisher 10.25.0.2:1

set routing-instances evpn1 vrf-target target:100:1

set routing-instances evpn1 protocols evpn label-allocation per-instance

set routing-instances evpn1 protocols evpn extended-vlan-list 100

set routing-instances evpn1 protocols evpn mclag bgp-peer 10.25.0.1

set routing-instances evpn1 switch-options service-id 2

set routing-instances evpn1 vlans v100 vlan-id 100

set routing-instances evpn1 vlans v100 l3-interface irb.0

PE1: Cấu hình Junos Fusion Enterprise

Quy trình từng bước

  • Cấu hình các cổng cascade.

[edit]

user@switch# set interfaces ge-1/1/9 cascade-port

user@switch# set interfaces ge-1/1/5 cascade-port

  • Cấu hình ID khe FPC cho thiết bị vệ tinh độc lập SD120 và ánh xạ nó tới một cổng cascade.

[edit]

user@switch# set chassis satellite-management fpc 120 cascade-ports ge-1/1/9

  • Tạo một cụm thiết bị vệ tinh và gán tên cùng ID cụm cho nó.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 cluster-id 2

  • Định nghĩa các cổng cascade liên kết với cụm thiết bị vệ tinh.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 cascade-ports ge-1/1/5

user@switch# set chassis satellite-management cluster Cluster_100_108 cascade-ports ge-1/1/9

  • Cấu hình số ID khe FPC và ánh xạ nó tới địa chỉ MAC của các thiết bị vệ tinh SD100 và SD108 tương ứng.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 100 alias SD100

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 100 system-id 88:e0:f3:1f:3d:50

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 108 alias SD108

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 108 system-id 88:e0:f3:1f:c8:d1

  • Gán ID thành viên cho từng thiết bị vệ tinh trong cụm thiết bị vệ tinh.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 100 member-id 1

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 108 member-id 8

  • Tạo hai nhóm nâng cấp phần mềm cho thiết bị vệ tinh—một nhóm bao gồm thiết bị vệ tinh SD120 và nhóm còn lại bao gồm thiết bị vệ tinh SD100.

[edit]

user@switch# set chassis satellite-management upgrade-groups upgrade_120 satellite 120

user@switch# set chassis satellite-management upgrade-groups upgrade_100 satellite 100

  • Tạo và cấu hình một nhóm dự phòng, bao gồm các thiết bị tập hợp và các thiết bị vệ tinh trong cụm Cluster\_100\_108.

[edit]

user@switch# set chassis satellite-management redundancy-groups rg1 redundancy-group-id 2

user@switch# set chassis satellite-management redundancy-groups chassis-id 1

user@switch# set chassis satellite-management redundancy-groups rg1 peer-chassis-id 2 inter-chassis-link ge-1/0/3

user@switch# set chassis satellite-management redundancy-groups rg1 cluster Cluster_100_108

  • Cấu hình các liên kết ICL và ICCP.

[edit]

user@switch# set interfaces ge-1/0/2 description iccp-link

user@switch# set interfaces ge-1/0/2 unit 0 family inet address 10.20.20.1/24

user@switch# set interfaces ge-1/0/3 description icl-link

user@switch# set interfaces ge-1/0/3 unit 0 family ethernet-switching interface-mode trunk

user@switch# set interfaces ge-1/0/3 unit 0 family ethernet-switching vlan members 100

user@switch# set switch-options service-id 1

**Lưu ý: Mặc dù bước này hiển thị cấu hình của giao diện ge-1/0/2, được chỉ định là giao diện ICCP, nhưng không hiển thị cách cấu hình các thuộc tính ICCP trên giao diện ge-1/0/2. Theo mặc định, ICCP được cung cấp tự động trong Junos Fusion Enterprise sử dụng hai thiết bị tập hợp. Để biết thêm thông tin về việc cung cấp tự động ICCP, xem phần Cấu hình hoặc Mở rộng Junos Fusion Enterprise.

PE1: Cấu hình EVPN-MPLS

Quy trình từng bước

  • Cấu hình giao diện loopback và các giao diện kết nối với các thiết bị PE khác.

[edit]

user@switch# set interfaces lo0 unit 0 family inet address 10.25.0.1/32

user@switch# set interfaces ge-1/1/3 unit 0 family inet address 10.0.1.1/30

user@switch# set interfaces ge-1/1/3 unit 0 family mpls

user@switch# set interfaces ge-1/1/7 unit 0 family inet address 10.0.3.1/30

user@switch# set interfaces ge-1/1/7 unit 0 family mpls

  • Cấu hình các cổng mở rộng với EVPN multihoming ở chế độ active-active, cấu hình ESI và ánh xạ các cổng này đến VLAN v100.

[edit]

user@switch# set interfaces ge-108/0/25 unit 0 esi 00:01:02:03:04:00:01:02:04:26

user@switch# set interfaces ge-108/0/25 unit 0 esi all-active

user@switch# set interfaces ge-108/0/25 unit 0 family ethernet-switching vlan members v100

user@switch# set interfaces ge-108/0/27 unit 0 esi 00:01:02:03:04:00:01:02:04:28

user@switch# set interfaces ge-108/0/27 unit 0 esi all-active

user@switch# set interfaces ge-108/0/27 unit 0 family ethernet-switching vlan members v100

  • Gán router ID và hệ tự trị (autonomous system) mà PE1, PE2 và PE3 thuộc về.

[edit]

user@switch# set routing-options router-id 10.25.0.1

user@switch# set routing-options autonomous-system 100

  • Bật MPLS trên giao diện loopback và các giao diện ge-1/1/3.0 và ge-1/1/7.0.

[edit]

user@switch# set protocols mpls interface lo0.0

user@switch# set protocols mpls interface ge-1/1/3.0

user@switch# set protocols mpls interface ge-1/1/7.0

  • Cấu hình một overlay IBGP bao gồm PE1, PE2 và PE3.

[edit]

user@switch# set protocols bgp local-address 10.25.0.1

user@switch# set protocols bgp peer-as 100

user@switch# set protocols bgp local-as 100

user@switch# set protocols bgp group evpn-mes type internal

user@switch# set protocols bgp group evpn-mes family evpn signaling

user@switch# set protocols bgp group evpn-mes peer-as 100

user@switch# set protocols bgp group evpn-mes neighbor 10.25.0.2

user@switch# set protocols bgp group evpn-mes neighbor 10.25.0.3

  • Cấu hình OSPF làm giao thức định tuyến nội bộ cho EVPN bằng cách chỉ định ID vùng và các giao diện đã bật EVPN-MPLS.

[edit]

user@switch# set protocols ospf traffic-engineering

user@switch# set protocols ospf area 0.0.0.0 interface ge-1/1/3.0

user@switch# set protocols ospf area 0.0.0.0 interface lo0.0

user@switch# set protocols ospf area 0.0.0.0 interface fxp0.0 disable

user@switch# set protocols ospf area 0.0.0.0 interface ge-1/1/7.0

  • Cấu hình giao thức phân phối nhãn (LDP) trên giao diện loopback và các giao diện đã bật EVPN-MPLS.

[edit]

user@switch# set protocols ldp interface lo0.0

user@switch# set protocols ldp interface ge-1/1/3.0

user@switch# set protocols ldp interface ge-1/1/7.0

  • Cấu hình một instance định tuyến virtual switch cho VLAN v100 và bao gồm các giao diện cùng các thành phần liên quan đến VLAN này.

[edit]

user@switch# set routing-instances evpn1 instance-type virtual-switch

user@switch# set routing-instances evpn1 interface ge-108/0/25.0

user@switch# set routing-instances evpn1 interface ge-108/0/27.0

user@switch# set routing-instances evpn1 interface ge-1/0/3.0

user@switch# set routing-instances evpn1 route-distinguisher 10.25.0.1:1

user@switch# set routing-instances evpn1 vrf-target target:100:1

user@switch# set routing-instances evpn1 protocols evpn label-allocation per-instance

user@switch# set routing-instances evpn1 protocols evpn extended-vlan-list 100

user@switch# set routing-instances evpn1 protocols evpn mclag bgp-peer 10.25.0.2

user@switch# set routing-instances evpn1 switch-options service-id 2

user@switch# set routing-instances evpn1 vlans v100 vlan-id 100

PE2: Cấu hình Junos Fusion Enterprise

Quy trình từng bước

  • Cấu hình cổng cascade.

[edit]

user@switch# set interfaces ge-3/1/4 cascade-port

  • Tạo một cụm thiết bị vệ tinh và gán tên cùng ID cụm cho nó.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 cluster-id 2

  • Định nghĩa cổng cascade liên kết với cụm thiết bị vệ tinh.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 cascade-ports ge-3/1/4

Cấu hình số ID khe FPC và ánh xạ nó tới địa chỉ MAC của các thiết bị vệ tinh SD100 và SD108 tương ứng.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 100 alias SD100

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 100 system-id 88:e0:f3:1f:3d:50

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 108 alias SD108

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 108 system-id 88:e0:f3:1f:c8:d1

  • Gán ID thành viên cho từng thiết bị vệ tinh trong cụm thiết bị vệ tinh.

[edit]

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 100 member-id 1

user@switch# set chassis satellite-management cluster Cluster_100_108 fpc 108 member-id 8

  • Tạo một nhóm nâng cấp phần mềm cho thiết bị vệ tinh bao gồm thiết bị SD100.

[edit]

user@switch# set chassis satellite-management upgrade-groups upgrade_100 satellite 100

  • Tạo và cấu hình một nhóm dự phòng, bao gồm các thiết bị tập hợp và các thiết bị vệ tinh trong cụm Cluster\_100\_108.

[edit]

user@switch# set chassis satellite-management redundancy-groups rg1 redundancy-group-id 2

user@switch# set chassis satellite-management redundancy-groups chassis-id 2

user@switch# set chassis satellite-management redundancy-groups rg1 peer-chassis-id 1inter-chassis-link ge-3/1/9

user@switch# set chassis satellite-management redundancy-groups rg1 cluster Cluster_100_108

  • Cấu hình các liên kết ICL và ICCP.

[edit]

user@switch# set interfaces ge-3/1/7 description iccp-link

user@switch# set interfaces ge-3/1/7 unit 0 family inet address 10.20.20.2/24

user@switch# set interfaces ge-3/1/9 description icl-link

user@switch# set interfaces ge-3/1/9 unit 0 family ethernet-switching interface-mode trunk

user@switch# set interfaces ge-3/1/9 unit 0 family ethernet-switching vlan members 100

user@switch# set switch-options service-id 1

**Lưu ý: Mặc dù bước này hiển thị cấu hình của giao diện ge-3/1/7, được chỉ định là giao diện ICCP, nhưng không hiển thị cách cấu hình các thuộc tính ICCP trên giao diện ge-3/1/7. Theo mặc định, ICCP được cung cấp tự động trong Junos Fusion Enterprise sử dụng hai thiết bị tập hợp. Để biết thêm thông tin về việc cung cấp tự động ICCP, xem phần Cấu hình hoặc Mở rộng Junos Fusion Enterprise.

PE2: Cấu hình EVPN-MPLS

Quy trình từng bước

  • Cấu hình giao diện loopback, các giao diện kết nối với các thiết bị PE khác và một giao diện IRB được cấu hình làm cổng mặc định tầng 3.

[edit]

user@switch# set interfaces lo0 unit 0 family inet address 10.25.0.2/32

user@switch# set interfaces ge-3/1/5 unit 0 family inet address 10.0.4.2/30

user@switch# set interfaces ge-3/1/5 unit 0 family mpls

user@switch# set interfaces ge-3/1/8 unit 0 family inet address 10.0.3.2/30

user@switch# set interfaces ge-3/1/8 unit 0 family mpls

user@switch# set interfaces irb unit 0 family inet address 10.5.5.1/24 virtual-gateway-address 10.5.5.5

  • Cấu hình các cổng mở rộng với EVPN multihoming ở chế độ active-active, cấu hình ESI và ánh xạ các cổng này đến VLAN v100.

[edit]

user@switch# set interfaces ge-108/0/25 unit 0 esi 00:01:02:03:04:00:01:02:04:26

user@switch# set interfaces ge-108/0/25 unit 0 esi all-active

user@switch# set interfaces ge-108/0/25 unit 0 family ethernet-switching vlan members v100

user@switch# set interfaces ge-108/0/27 unit 0 esi 00:01:02:03:04:00:01:02:04:28

user@switch# set interfaces ge-108/0/27 unit 0 esi all-active

user@switch# set interfaces ge-108/0/27 unit 0 family ethernet-switching vlan members v100

  • Gán router ID và hệ tự trị (autonomous system) mà PE1, PE2 và PE3 thuộc về.

[edit]

user@switch# set routing-options router-id 10.25.0.2

user@switch# set routing-options autonomous-system 100

  • Bật MPLS trên giao diện loopback và các giao diện ge-3/1/5.0 và ge-3/1/8.0.

[edit]

user@switch# set protocols mpls interface lo0.0

user@switch# set protocols mpls interface ge-3/1/5.0

user@switch# set protocols mpls interface ge-3/1/8.0

  • Cấu hình một overlay IBGP bao gồm PE1, PE2 và PE3.

[edit]

user@switch# set protocols bgp local-address 10.25.0.2

user@switch# set protocols bgp peer-as 100

user@switch# set protocols bgp local-as 100

user@switch# set protocols bgp group evpn-mes type internal

user@switch# set protocols bgp group evpn-mes family evpn signaling

user@switch# set protocols bgp group evpn-mes peer-as 100

user@switch# set protocols bgp group evpn-mes neighbor 10.25.0.1

user@switch# set protocols bgp group evpn-mes neighbor 10.25.0.3

  • Cấu hình OSPF làm giao thức định tuyến nội bộ cho EVPN bằng cách chỉ định ID vùng và các giao diện đã bật EVPN-MPLS.

[edit]

user@switch# set protocols ospf traffic-engineering

user@switch# set protocols ospf area 0.0.0.0 interface ge-3/1/5.0

user@switch# set protocols ospf area 0.0.0.0 interface lo0.0

user@switch# set protocols ospf area 0.0.0.0 interface fxp0.0 disable

user@switch# set protocols ospf area 0.0.0.0 interface ge-3/1/8.0

  • Cấu hình LDP trên giao diện loopback và các giao diện đã bật EVPN-MPLS.

[edit]

user@switch# set protocols ldp interface lo0.0

user@switch# set protocols ldp interface ge-3/1/5.0

user@switch# set protocols ldp interface ge-3/1/8.0

  • Cấu hình một instance định tuyến virtual switch cho VLAN v100 và bao gồm các giao diện cùng các thành phần liên quan đến VLAN này.

[edit]

user@switch# set routing-instances evpn1 instance-type virtual-switch

user@switch# set routing-instances evpn1 interface ge-108/0/25.0

user@switch# set routing-instances evpn1 interface ge-108/0/27.0

user@switch# set routing-instances evpn1 interface ge-3/1/9.0

user@switch# set routing-instances evpn1 route-distinguisher 10.25.0.2:1

user@switch# set routing-instances evpn1 vrf-target target:100:1

user@switch# set routing-instances evpn1 protocols evpn label-allocation per-instance

user@switch# set routing-instances evpn1 protocols evpn extended-vlan-list 100

user@switch# set routing-instances evpn1 protocols evpn mclag bgp-peer 10.25.0.1

user@switch# set routing-instances evpn1 switch-options service-id 2

user@switch# set routing-instances evpn1 vlans v100 vlan-id 100

user@switch# set routing-instances evpn1 vlans v100 l3-interface irb.0

Cấu hình PE3

Cấu hình nhanh qua dòng lệnh

PE3: Cấu hình EVPN-MPLS

set interfaces lo0 unit 0 family inet address 10.25.0.3/32

set interfaces ge-0/3/5 unit 0 family inet address 10.0.1.2/30

set interfaces ge-0/3/5 unit 0 family mpls

set interfaces ge-0/3/7 unit 0 family inet address 10.0.4.1/30

set interfaces ge-0/3/7 unit 0 family mpls

set interfaces ge-0/0/46 unit 0 esi 00:01:02:03:04:00:01:02:04:12

set interfaces ge-0/0/46 unit 0 esi all-active

set interfaces ge-0/0/46 unit 0 family ethernet-switching vlan members 100

set routing-options router-id 10.25.0.3

set routing-options autonomous-system 100

set routing-options forwarding-table export evpn-pplb

set policy-options policy-statement evpn-pplb from protocol evpn

set policy-options policy-statement evpn-pplb then load-balance per-packet

set protocols mpls interface lo0.0

set protocols mpls interface ge-0/3/5.0

set protocols mpls interface ge-0/3/7.0

set protocols bgp local-address 10.25.0.3

set protocols bgp peer-as 100

set protocols bgp local-as 100

set protocols bgp group evpn-mes type internal

 set protocols bgp group evpn-mes family evpn signaling

set protocols bgp group evpn-mes peer-as 100

set protocols bgp group evpn-mes neighbor 10.25.0.2

set protocols bgp group evpn-mes neighbor 10.25.0.1

set protocols ospf traffic-engineering

set protocols ospf area 0.0.0.0 interface ge-0/3/5.0

set protocols ospf area 0.0.0.0 interface lo0.0

set protocols ospf area 0.0.0.0 interface fxp0.0 disable

set protocols ospf area 0.0.0.0 interface ge-0/3/7.0

set protocols ldp interface lo0.0

set protocols ldp interface ge-0/3/5.0

set protocols ldp interface ge-0/3/7.0

set routing-instances evpn1 instance-type virtual-switch

set routing-instances evpn1 interface ge-0/0/46.0

set routing-instances evpn1 route-distinguisher 10.25.0.3:1

set routing-instances evpn1 vrf-target target:100:1

set routing-instances evpn1 protocols evpn label-allocation per-instance

set routing-instances evpn1 protocols evpn extended-vlan-list 100

set routing-instances evpn1 switch-options service-id 2

set routing-instances evpn1 vlans v100 vlan-id 100

PE3: Cấu hình EVPN-MPLS

Quy trình từng bước

  • Cấu hình các giao diện nơi xảy ra tương tác EVPN-MPLS.

[edit]

user@switch# set interfaces lo0 unit 0 family inet address 10.25.0.3/32

user@switch# set interfaces ge-0/3/5 unit 0 family inet address 10.0.1.2/30

user@switch# set interfaces ge-0/3/5 unit 0 family mpls

user@switch# set interfaces ge-0/3/7 unit 0 family inet address 10.0.4.1/30

user@switch# set interfaces ge-0/3/7 unit 0 family mpls

  • Cấu hình giao diện ge-0/0/46 với EVPN multihoming ở chế độ active-active, cấu hình ESI và ánh xạ cổng này đến VLAN v100.

[edit]

user@switch# set interfaces ge-0/0/46 unit 0 esi 00:01:02:03:04:00:01:02:04:12

user@switch# set interfaces ge-0/0/46 unit 0 esi all-active

user@switch# set interfaces ge-0/0/46 unit 0 family ethernet-switching vlan members 100

  • Gán router ID và hệ tự trị (autonomous system) mà PE1, PE2 và PE3 thuộc về.

[edit]

user@switch# set routing-options router-id 10.25.0.2

user@switch# set routing-options autonomous-system 100

  • Bật tính năng cân bằng tải theo từng gói cho các tuyến EVPN khi sử dụng chế độ EVPN multihoming active-active.

[edit]

user@switch# set routing-options forwarding-table export evpn-pplb

user@switch# set policy-options policy-statement evpn-pplb from protocol evpn

user@switch# set policy-options policy-statement evpn-pplb then load-balance per-packet

  • Bật MPLS trên giao diện loopback và các giao diện ge-0/3/5.0 và ge-0/3/7.0.

[edit]

user@switch# set protocols mpls interface lo0.0

user@switch# set protocols mpls interface ge-0/3/5.0

user@switch# set protocols mpls interface ge-0/3/7.0

  • Cấu hình một overlay IBGP bao gồm PE1, PE2 và PE3.

[edit]

user@switch# set protocols bgp local-address 10.25.0.3

user@switch# set protocols bgp peer-as 100

user@switch# set protocols bgp local-as 100

user@switch# set protocols bgp group evpn-mes type internal

user@switch# set protocols bgp group evpn-mes family evpn signaling

user@switch# set protocols bgp group evpn-mes peer-as 100

user@switch# set protocols bgp group evpn-mes neighbor 10.25.0.2

user@switch# set protocols bgp group evpn-mes neighbor 10.25.0.1

  • Cấu hình OSPF làm giao thức định tuyến nội bộ cho EVPN bằng cách chỉ định ID vùng và các giao diện đã bật EVPN-MPLS.

[edit]

user@switch# set protocols ospf traffic-engineering

user@switch# set protocols ospf area 0.0.0.0 interface ge-0/3/5.0

user@switch# set protocols ospf area 0.0.0.0 interface lo0.0

user@switch# set protocols ospf area 0.0.0.0 interface fxp0.0 disable

user@switch# set protocols ospf area 0.0.0.0 interface ge-0/3/7.0

  • Cấu hình LDP trên giao diện loopback và các giao diện đã bật EVPN-MPLS.

[edit]

user@switch# set protocols ldp interface lo0.0

user@switch# set protocols ldp interface ge-0/3/5.0

user@switch# set protocols ldp interface ge-0/3/7.0

  • Cấu hình một instance định tuyến virtual switch cho VLAN v100 và bao gồm các giao diện cùng các thành phần liên quan đến VLAN này.

[edit]

user@switch# set routing-instances evpn1 instance-type virtual-switch

user@switch# set routing-instances evpn1 interface ge-0/0/46.0

user@switch# set routing-instances evpn1 route-distinguisher 10.25.0.3:1

user@switch# set routing-instances evpn1 vrf-target target:100:1

user@switch# set routing-instances evpn1 protocols evpn label-allocation per-instance

user@switch# set routing-instances evpn1 protocols evpn extended-vlan-list 100

user@switch# set routing-instances evpn1 switch-options service-id 2

user@switch# set routing-instances evpn1 vlans v100 vlan-id 100

 

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