デフォルト以外(テナント)VRFの番号なしBGPを構成するには、次の手順を実行します。
- ルーターのAS番号を指定し、「
router bgp
AS_number
vrf
vrf_name
」コマンドを実行してVRFテナントのBGP設定モードに入ります。 - ルーターIDには、インターフェイス ループバック0で構成されているIPアドレスを指定します。
- 「address-family ipv4 unicast」コマンドを入力します。
- 物理的に接続されたインターフェイスからIPv4ルートを再分配する「redistribute connected」コマンドを指定します。
- 複数のパスを介してネイバーにパケットを転送するために使用できるeBGPルートの最大数を設定します。
- 「address-family l2vpn evpn」コマンドを入力します。
- IPv4ルートをアドバタイズします。
- 重複アドレス検出を有効にします。 注: 外部ネットワークへの接続を行うには、次の手順に従います。このガイドで使用されている構成例では、アップリンクは番号なし BGPでL3です。
- 外部スイッチ接続用のピア グループを作成します。 この例では、 LEGACYという名前が付けられています。
- eBGP経由でルートを交換するようにリモート自律型システムを構成します。 「 remote-as external」コマンドは、番号なし BGPに必要です。
- BGPネイバーにキープアライブ メッセージを送信する間隔(秒単位)と、BGPピアが使用不可であるとみなす前にキープアライブ メッセージを受信するまでの待機時間を設定します。
- BGPルート アップデートをネイバーに送信する間のルート アドバタイズメント間隔を設定します。
- 双方向転送検出(BFD)を有効にします。 BFDは、隣接する2個のルーター間にある通信障害を迅速に検出します。
- 「capability extended-nexthop」コマンドは、番号なしBGPに必要です。 これにより、 BGPが拡張されたネクスト ホップ機能をピアとネゴシエートできます。
- 「address-family ipv4 unicast」コマンドを入力し、それから「activate」を入力します。
- ピア グループ内の外部スイッチに接続されているインターフェイスを配置します。
リーフ1A リーフ1B router bgp 65101 vrf VrfTenant1
router-id 10.1.1.1
!
address-family ipv4 unicast
redistribute connected
maximum-paths 2
!
address-family l2vpn evpn
advertise ipv4 unicast
dup-addr-detection
peer-group LEGACY
remote-as external
timers 3 9
advertisement-interval 5
bfd
capability extended-nexthop
!
address-family ipv4 unicast
activate
!
neighbor interface Eth1/47
peer-group LEGACY
!
neighbor interface Eth1/48
peer-group LEGACYrouter bgp 65101 vrf VrfTenant1
router-id 10.1.1.2
!
address-family ipv4 unicast
redistribute connected
maximum-paths 2
!
address-family l2vpn evpn
advertise ipv4 unicast
dup-addr-detection
peer-group LEGACY
remote-as external
timers 3 9
advertisement-interval 5
bfd
capability extended-nexthop
!
address-family ipv4 unicast
activate
!
neighbor interface Eth1/47
peer-group LEGACY
!
neighbor interface Eth1/48
peer-group LEGACY
- eBGP経由でルートを交換するようにリモート自律型システムを構成します。