注: シングル ラック導入で、スパインを使用しない場合、これらの手順は必要ありません。
デフォルトVRFに番号なし BGPを構成するには、次の手順を実行します。 - 「router bgp」コマンドを使用して、BGP ASNを構成します。 デフォルト以外のVRFの番号なしBGPの構成で使用したものと同じAS番号を使用します。
- ルーターIDには、インターフェイス ループバック0で構成されているIPアドレスを指定します。
- 起動時に送信する最大multi exit discriminator (MED)値を設定します。 この設定は、スイッチのフェールオーバー時間を最小限に抑えるのに役立ちます。
- 「bestpath as-path multipath-relax」コマンドを使用して、ECMPを有効にします。
- 「address-family ipv4 unicast」コマンドを入力します。
- 物理的に接続されたインターフェイスからIPv4ルートを再分配する「redistribute connected」コマンドを指定します。
- 複数のパスを介してネイバーにパケットを転送するために使用できるeBGPルートの最大数を設定します。
- 「address-family l2vpn evpn」コマンドを入力します。
- すべてのVNIをアドバタイズします。
- スイッチのプライマリーIP(ルーターID)をアドバタイズします。
- MC-LAGピア スイッチのルーターID IPアドレスを指定します。
- 重複アドレス検出を無効にします。
- スパイン接続のピア グループを作成します。
- eBGP経由でルートを交換するようにリモート自律型システムを構成します。 「 remote-as external」コマンドは、番号なし BGPに必要です。
- BGPネイバーにキープアライブ メッセージを送信する間隔(秒単位)と、BGPピアが使用不可であるとみなす前にキープアライブ メッセージを受信するまでの待機時間を設定します。
- BGPルート アップデートをネイバーに送信する間のルート アドバタイズメント間隔を設定します。
- BFDを有効にします。 BFDは、隣接する2個のルーター間にある通信障害を迅速に検出します。
- 「capability extended-nexthop」コマンドは、番号なしBGPに必要です。 これにより、 BGPが拡張されたネクスト ホップ機能をピアとネゴシエートできます。
- 「address-family ipv4 unicast」コマンドを入力し、「activate」を入力します。
- アップデートでローカルAS番号を持つルートを受け入れるように「allowas-in」を設定します。
- 「address-family l2vpn evpn」コマンドを入力し、「activate」を入力します。
- アップデートでローカルAS番号を持つルートを受け入れるように「allowas-in」を設定します。
- スパイン ピア グループ内のスパインに接続されているインターフェイスを配置します。
リーフ1A リーフ1B router bgp 65101
router-id 10.1.1.1
max-med on-startup 420
bestpath as-path multipath-relax
!
address-family ipv4 unicast
redistribute connected
maximum-paths 2
!
address-family l2vpn evpn
advertise-all-vni
advertise-pip ip 10.1.1.1 peer-ip 10.1.1.2
no dup-addr-detection
!
peer-group SPINE
remote-as external
timers 3 9
advertisement-interval 5
bfd
capability extended-nexthop
!
address-family ipv4 unicast
activate
allowas-in 2
!
address-family l2vpn evpn
activate
allowas-in 2
!
neighbor interface Eth1/53
peer-group SPINE
!
neighbor interface Eth1/54
peer-group SPINE
!
neighbor interface Eth1/55
peer-group SPINE
!
neighbor interface Eth1/56
peer-group SPINErouter bgp 65101
router-id 10.1.1.2
max-med on-startup 420
bestpath as-path multipath-relax
!
address-family ipv4 unicast
redistribute connected
maximum-paths 2
!
address-family l2vpn evpn
advertise-all-vni
advertise-pip ip 10.1.1.2 peer-ip 10.1.1.1
no dup-addr-detection
!
peer-group SPINE
remote-as external
timers 3 9
advertisement-interval 5
bfd
capability extended-nexthop
!
address-family ipv4 unicast
activate
allowas-in 2
!
address-family l2vpn evpn
activate
allowas-in 2
!
neighbor interface Eth1/53
peer-group SPINE
!
neighbor interface Eth1/54
peer-group SPINE
!
neighbor interface Eth1/55
peer-group SPINE
!
neighbor interface Eth1/56
peer-group SPINE