サービスプロファイルは、VLAN などのサービスのグループによって共有される一連の特性を表します。VLAN ベースのサービスで共有される特性には、レプリケーションタイプ、EVI マッピング、VNI マッピング、ルートターゲットマッピングなどがあります。
member evpn-instance および l2vpn evpn CLI は、EVPN インスタンスの共通の特性をグループ化するためのオプションの profile profile-name キーワードを提供するように拡張されています。
l2vpn evpn profile { default| profile-name}
プロファイル名とその定義を指定しない場合、デフォルトの EVPN プロファイルが作成されます。デフォルトのプロファイル値を表示するには、 show l2vpn evpn profile default コマンドを使用します。
Leaf1# show l2vpn evpn profile default detail
EVPN Profile (VLAN Based): default (auto)
evpn id base: 0
l2 vni base: 20000
Encapsulation: vxlan
Replication Type: Ingress
IP Local Learn: Not set
Flooding Suppression Address Resolution: Not set
Adv. default-gateway: Not set
Adv. Multicast: Not set
RT5 Re-originate Flag: Disabled
Local Routing: Not set
vlan(s):
101-102,111-114,131-132
Leaf1#
以下は、EVPN プロファイルを作成および使用する方法を示しています。
l2vpn evpn profile CCTV
evi-base 3
l2vni-base 30000
replication-type ingress
encapsulation vxlan
default-gateway advertise enable
multicast advertise enable
ip local-learning disable }
flooding-suppression address-resolution disable
re-originate route-type5
local-routing enable
!
vlan configuration 10-12
member evpn-instance profile CCTV
この例では、CCTV という名前のプロファイルを作成し、レプリケーションタイプ、ローカルルーティング、カプセル化、フラッディング抑制などの基本的な EVPN の特性を定義します。この CCTV プロファイルが member evpn-instance profile CCTV コマンドを介して EVPN インスタンスに適用されると、EVPN インスタンスは CCTV プロファイルのすべての定義を継承します。
次の表は、簡略化された CLI をまとめたものです。
|
置き換える CLI
|
新しい CLI
|
l2vpn evpn instance 10 vlan-based
encapsulation vxlan
l2vpn evpn instance 11 vlan-based
encapsulation vxlan
l2vpn evpn instance 12 vlan-based
encapsulation vxlan
…
vlan configuration 10
member evpn-instance 10 vni 20010
vlan configuration 11
member evpn-instance 11 vni 20011
vlan configuration 12
member evpn-instance 12 vni 20012
…
interface nve1
source-interface Loopback0
host-reachability protocol bgp
member vni 20010 ingress-replication
member vni 20011 ingress-replication
member vni 20012 ingress-replication
!
router bgp 65001
…
|
vlan configuration 10-12
member evpn-instance [profile profile-name]
!
interface nve1
source-interface Loopback0
host-reachability protocol bgp
!
router bgp 65001
|
|
|
|
|
|
|
|
|
|
|
|
|