はじめに
このドキュメントでは "fabric forwarding anycast-gateway-mac" コマンドについて解説します。
コマンド解説
本コマンドを用いることで、分散ゲートウェイの仮想 MAC アドレスを設定できます。
これにより、複数のVTEPでゲートウェイの仮想 MAC アドレスを同じものにすることができます。
本コマンドはグローバル コンフィギュレーション モードで以下の形式で使用する仮想 MAC アドレスを指定あるいは無効化します。
fabric forwarding anycast-gateway-mac [mac-address]
no fabric forwarding anycast-gateway-mac [mac-address]
その 仮想 MAC アドレスを有効化したい Interface のインターフェイス コンフィギュレーション モードで下記コマンドを実行することで、有効化あるいは無効化します。
fabric forwarding mode anycast-gateway
no fabric forwarding mode anycast-gateway
注意点としては、1つの VTEP で設定できる仮想 MAC アドレスは1つのみです。
また、本コマンドの使用前には下記のように "nv overlay evpn" コマンドでEVPN コントロール プレーンを VXLAN 用に有効化する必要があります。
switch(config)# nv overlay evpn
設定手順
実際にスイッチで本コマンドを有効にします。
すると、MAC アドレステーブルに指定した MAC アドレスが追加されていることが分かります。
switch(config)# show mac address-table
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link,
(T) - True, (F) - False, C - ControlPlane MAC, ~ - vsan
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
G - ac7a.565a.f587 static - F F sup-eth1(R)
switch(config)# nv overlay evpn
switch(config)# fabric forwarding anycast-gateway-mac 2020.0000.00aa
switch(config)# interface vlan 100
switch(config-if)# ip address 192.168.100.254/24
switch(config-if)# fabric forwarding mode anycast-gateway
switch(config-if)# exit
switch(config)# show mac address-table
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link,
(T) - True, (F) - False, C - ControlPlane MAC, ~ - vsan
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
G - 2020.0000.00aa static - F F sup-eth1(R)
G - ac7a.565a.f587 static - F F sup-eth1(R)
switch(config)#
関連コンテンツ
Nexus スイッチ (NX-OS) : 設定例
Cisco Nexus シリーズ : VXLAN EVPN 基本設定
Cisco Nexus シリーズ : VXLAN EVPN L3VNI 基本設定
Cisco Nexus シリーズ : VXLAN EVPN Multi-homing (vPC) Part.1/2
Cisco Nexus シリーズ : VXLAN EVPN Multi-homing (vPC) Part.2/2
参考情報
Configuration Guide : Configuring VXLAN BGP EVPN