VRF のルートターゲットの自動生成を有効にするには、VRF コンフィギュレーション モードで次のコマンドを使用します。
vnid vnid [ evpn-instance [ vni{ vni-id | auto} core-vlan VLAN-ID]]
次の表で、コマンドシンタックスの各フィールドについて説明します。
|
vnid
|
仮想ネットワーク識別子(VNID)を指定します。
1 ~ 2147483647 の範囲の値を指定できます。
この番号は、主にルートターゲットを自動生成するために使用されます。
|
|
evpn-instance
|
(オプション)ルートターゲットの合成を自動生成する evpn-instance キーワードを指定します。
|
|
vni vni-id
|
(オプション)NVE レイヤ 3 VNI 番号を指定します。
指定できる範囲は 4096 ~ 16777215 です。
|
|
vni auto
|
(オプション)vnid 値を使用して NVE レイヤ 3 VNI 番号を自動生成します。
|
|
core-vlan vlan-id
|
(オプション)vnid および vlan-id を使用してコア VLAN 設定を自動生成します。
vlan-id の範囲は 1 ~ 4094 です。
また、NVE インターフェイスの送信元インターフェイスの IP アドレスを使用するコア SVI も自動生成されます。
|
例
VTEP(config)# router bgp 150
VTEP(config-bgp)# bgp router-id interface Loopback0
VTEP(config-bgp)# exit
VTEP(config)# vrf definition blue
VTEP(config-vrf)# vnid 123 evpn-instance vni 35000 core-vlan 345
VTEP(config-vrf)# exit
VTEP(config)# address-family ipv4
VTEP(config-af-ipv4)# exit-address-family
VTEP(config)# address-family ipv6
VTEP(config-af-ipv6)# exit-address-family
show vrf detail コマンドは、RT が自動的に割り当てられたかどうかを示すように拡張されました。
例
VTEP# show vrf detail blue
VRF blue (VRF Id = 2); default RD 192.168.1.1:1(auto); default VPNID <not set>
New CLI format, supports multiple address-families
vnid: 123 evpn-instance vni 35000 core-vlan 345
Flags: 0x180C
Interfaces:
Vl345 Lo101 Et1/1
Vl4 Vl15
Address family ipv4 unicast (Table ID = 0x2):
Flags: 0x0
Export VPN route-target communities
RT:100:123 RT:65000:123 (auto)
Import VPN route-target communities
RT:100:123 RT:65000:123 (auto)
Export VPN route-target stitching communities
RT:65000:123 (auto)
Import VPN route-target stitching communities
RT:65000:123 (auto)
No import route-map
No global export route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
Address family ipv6 unicast not active
Address family ipv4 multicast not active
Address family ipv6 multicast not active
VTEP1#
show derived-config コマンドを使用して、取得したコア VLAN、コア SVI、および NVE インターフェイスの設定を確認します。
VTEP1# show derived-config interface Vlan345
Building configuration...
Derived configuration : 66 bytes
!
interface Vlan345
vrf forwarding blue
ip unnumbered Loopback1
ipv6 unnumbered Loopback1
no autostate
end
VTEP1# show derived-config interface nve1
Building configuration...
Derived configuration : 296 bytes
!
interface nve1
source-interface Loopback1
host-reachability protocol bgp
member vni 35555 vrf black
member vni 35000 vrf blue
member vni 20011 ingress-replication
member vni 20012 ingress-replication
member vni 30000 vrf red
member vni 30002 vrf green
member vni 30004 vrf yellow
end