
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 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.
Ví dụ này sử dụng các thành phần phần cứng và phần mềm sau:
**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.
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:
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ính | PE1 | PE2 | PE3 |
---|---|---|---|
Thuộc tính Junos Fusion Enterprise | |||
Giao diện (Interfaces) | ICL: ge-1/0/3 ICCP: ge-1/0/2 | ICL: ge-3/1/9 ICCP: ge-3/1/7 | Không áp dụng |
EVPN-MPLS | |||
Giao diện (Interfaces) | Kết nối tới PE3: Kết nối tới PE2: | Kết nối tới PE3: Kết nối tới PE1: | Kết nối tới PE1: Kết nối tới PE2: |
Đị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) | 100 | 100 | 100 |
Instance định tuyến của virtual switch | evpn1 | evpn1 | evpn1 |
Lưu ý về chức năng EVPN-MPLS Interworking và cấu hình
Để 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
[edit] user@switch# set interfaces ge-1/1/9 cascade-port user@switch# set interfaces ge-1/1/5 cascade-port |
[edit] user@switch# set chassis satellite-management fpc 120 cascade-ports ge-1/1/9 |
[edit] user@switch# set chassis satellite-management cluster Cluster_100_108 cluster-id 2 |
[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 |
[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 |
[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 |
[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 |
[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 |
[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
[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 |
[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 |
[edit] user@switch# set routing-options router-id 10.25.0.1 user@switch# set routing-options autonomous-system 100 |
[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 |
[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 |
[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 |
[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 |
[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
[edit] user@switch# set interfaces ge-3/1/4 cascade-port |
[edit] user@switch# set chassis satellite-management cluster Cluster_100_108 cluster-id 2 |
[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 |
[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 |
[edit] user@switch# set chassis satellite-management upgrade-groups upgrade_100 satellite 100 |
[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 |
[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
[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 |
[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 |
[edit] user@switch# set routing-options router-id 10.25.0.2 user@switch# set routing-options autonomous-system 100 |
[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 |
[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 |
[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 |
[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 |
[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 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
[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 |
[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 |
[edit] user@switch# set routing-options router-id 10.25.0.2 user@switch# set routing-options autonomous-system 100 |
[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 |
[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 |
[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 |
[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 |
[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 |
[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