- 「router bgp」コマンドを使用して、BGP ASNを構成します。 リーフスパイン ファブリック内のすべてのスパイン スイッチで同じAS番号を使用します。
- ルーターIDには、インターフェイス ループバック0で構成されているIPアドレスを指定します。
- 「bestpath as-path multipath-relax」コマンドを使用して、ECMPを有効にします。
- 「address-family ipv4 unicast」コマンドを入力します。
- 物理的に接続されたインターフェイスからIPv4ルートを再分配する「redistribute connected」コマンドを指定します。
- 複数のパスを介してネイバーにパケットを転送するために使用できるeBGPルートの最大数を設定します。
- 「address-family l2vpn evpn」コマンドを入力します。
- すべてのVNIをアドバタイズします。
- リーフ接続のピア グループを作成します。
- eBGP経由でルートを交換するようにリモート自律型システムを構成します。 「 remote-as external」コマンドは、番号なし BGPに必要です。
- BGPネイバーにキープアライブ メッセージを送信する間隔(秒単位)と、BGPピア使用不可とみなす前にキープアライブ メッセージを受信するまでの待機時間を設定します。
- BGPルート アップデートをネイバーに送信する間のルート アドバタイズメント間隔を設定します。
- BFDを有効にします。 BFDは、隣接する2個のルーター間にある通信障害を迅速に検出します。
- 「capability extended-nexthop」コマンドは、番号なしBGPに必要です。
- 「address-family ipv4 unicast」コマンドを入力し、「activate」を入力します。
- 「address-family l2vpn evpn」コマンドを入力し、「activate」を入力します。
- eBGP経由でルートを交換するようにリモート自律型システムを構成します。
- リーフ ピア グループ内のリーフ スイッチに接続されているインターフェイスを配置します。
- 「end」コマンドおよび「write memory」コマンドを使用して、設定モードを保存し終了します。
スパイン1 スパイン2 router bgp 65200
router-id 10.2.2.1
bestpath as-path multipath-relax
!
address-family ipv4 unicast
redistribute connected
maximum-paths 2
!
address-family l2vpn evpn
advertise-all-vni
!
peer-group LEAF
remote-as external
timers 3 9
advertisement-interval 5
bfd
capability extended-nexthop
!
address-family ipv4 unicast
activate
!
address-family l2vpn evpn
activate
!
neighbor interface Eth1/1
peer-group LEAF
!
neighbor interface Eth1/2
peer-group LEAF
!
neighbor interface Eth1/3
peer-group LEAF
!
neighbor interface Eth1/4
peer-group LEAF
!
neighbor interface Eth1/5
peer-group LEAF
!
neighbor interface Eth1/6
peer-group LEAF
!
neighbor interface Eth1/7
peer-group LEAF
!
neighbor interface Eth1/8
peer-group LEAF
!
end
write memoryrouter bgp 65200
router-id 10.2.2.2
bestpath as-path multipath-relax
!
address-family ipv4 unicast
redistribute connected
maximum-paths 2
!
address-family l2vpn evpn
advertise-all-vni
!
peer-group LEAF
remote-as external
timers 3 9
advertisement-interval 5
bfd
capability extended-nexthop
!
address-family ipv4 unicast
activate
!
address-family l2vpn evpn
activate
!
neighbor interface Eth1/1
peer-group LEAF
!
neighbor interface Eth1/2
peer-group LEAF
!
neighbor interface Eth1/3
peer-group LEAF
!
neighbor interface Eth1/4
peer-group LEAF
!
neighbor interface Eth1/5
peer-group LEAF
!
neighbor interface Eth1/6
peer-group LEAF
!
neighbor interface Eth1/7
peer-group LEAF
!
neighbor interface Eth1/8
peer-group LEAF
!
end
write memory