コンフィグレーションガイド Vol.3


27.2.3 BGP4+ピアの設定

[コマンドによる設定]

  1. (config)# router bgp 65531

    ルーティングプロトコルにBGP/BGP4+を適用します。パラメータに自ルータが所属するAS番号(65531)を指定します。

  2. (config-router)# bgp router-id 192.168.1.100

    自ルータ識別子(192.168.1.100)を設定します。

  3. (config-router)# neighbor 3ffe:172:16:2::2 remote-as 65532

    外部ピア(相手側アドレス:3ffe:172:16:2::2,AS番号:65532)を設定します。

  4. (config-router)# neighbor 3ffe:10:2:2::2 remote-as 65533

    外部ピア(相手側アドレス:3ffe:10:2:2::2,AS番号:65533)を設定します。

  5. (config-router)# neighbor 3ffe:10:2:2::2 ebgp-multihop

    ピアリングに使用するピアアドレスにピアと直接接続されたインタフェースのインタフェースアドレスを使用しないことを設定します。

  6. (config-router)# neighbor 3ffe:10:2:2::2 update-source loopback 0

    ピアリングに使用する自側アドレスに装置アドレスを指定します。

  7. (config-router)# neighbor 3ffe:192:168:2::2 remote-as 65531

    内部ピア(相手側アドレス:3ffe:192.168:2::2)を設定します。

  8. (config-router)# neighbor 3ffe:10:1:2::2 remote-as 65531

    内部ピア(相手側アドレス:3ffe:10:1:2::2)を設定します。

  9. (config-router)# neighbor 3ffe:10:1:2::2 update-source loopback 0

    ピアリングに使用する自アドレスに装置アドレスを指定します。

  10. (config-router)# address-family ipv6

    config-router-af(ipv6)モードへ移行します。

  11. (config-router-af)# neighbor 3ffe:172:16:2::2 activate

    外部ピア(相手側アドレス:3ffe:172:16:2::2)のIPv6アドレスファミリを有効にします。

  12. (config-router-af)# neighbor 3ffe:10:2:2::2 activate

    外部ピア(相手側アドレス:3ffe:10:2:2::2)のIPv6アドレスファミリを有効にします。

  13. (config-router-af)# neighbor 3ffe:192:168:2::2 activate

    内部ピア(相手側アドレス:3ffe:192.168:2::2)のIPv6アドレスファミリを有効にします。

  14. (config-router-af)# neighbor 3ffe:10:1:2::2 activate

    内部ピア(相手側アドレス:3ffe:10:1:2::2)のIPv6アドレスファミリを有効にします。