BGP-4 設定例 1


1. BGPとRIPの組み合わせ

この例は、BGPのもっとも簡単な設定例です。 ユーザネットワークをRIPで運用しており、その経路をBGPで広告します。 一方、BGPで受信した経路をすべて取り込みます。

ネットワークの構成

              |
       +------+-------+
       |  ISP router  | AS 8000
       +------+-------+
              | 172.16.0.1
              |
              | 1.5Mbit/s 専用線
              |
              | 172.16.0.2
       +------+-------+
       |     RT1      | AS 64001
       +------+-------+
              | 192.168.0.1/16
              |
       -------+---------- 192.168.0.0/16

設定のポイント

設定例

    #
    # LANの設定
    #
    ip lan1 address 192.168.0.1/16

    #
    # WANの設定
    #
    line type pri1 leased
    pri leased channel 1/1 1 24
    pp select 1
    pp bind pri1/1
    ip pp remote address 172.16.0.1
    ip pp local address 172.16.0.2
    pp enable 1

    #
    # RIPの設定
    #
    rip use on
    ip lan1 rip send on version 2
    ip lan1 rip receive on version 2
    pp select 1
    ip pp rip send off
    ip pp rip receive off
    pp enable 1

    #
    # BGPの設定
    #
    bgp use on
    bgp autonomous-system 64001
    bgp neighbor 1 8000 172.16.0.1
    bgp router id 172.16.0.2
    bgp import filter 1 include 192.168.0.0/16
    bgp import 8000 rip filter 1
    bgp export filter 1 include all
    bgp export 8000 filter 1

設定例のトップへ