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

[目次][用語][索引][前へ][次へ]


12.4.2 BGP4+プロトコル(基本:ルーティングピア)

<この項の構成>
(1) 設定内容の概要
(2) 構成図と設定条件
(3) コンフィグレーション例

(1) 設定内容の概要

AS番号200(AS200),AS番号300(AS300),AS番号400(AS400)およびAS番号500(AS500)の自律システムに接続されたAS番号100の自律システム(AS100)において,AS200およびAS300から広告された経路情報をAS内およびAS400,AS500に配布し,AS400およびAS500から広告された特定ネットワーク宛の経路情報をAS内およびAS200,AS300に配布します。また,AS内のネットワークをスタティック定義し,AS200,AS300,AS400およびAS500に広告します。

(2) 構成図と設定条件

[構成図]

図12-16 構成図

[図データ]

[設定条件]

<本装置A/Bの環境>
  1. AS200およびAS300のBGP4+スピーカと外部ピアによりピアリングします。
  2. AS内の他のBGP4+スピーカと内部ピアによりピアリングします。
  3. RIPngにより直結経路を,BGP4+によりAS200およびAS300から受信した経路をAS内に広告します。その際,AS200およびAS300からの経路はAS200を優先します。
  4. AS400およびAS500からの経路をAS200およびAS300に広告します。また,AS内のネットワークをスタティック定義し,AS200およびAS300に広告します。

<本装置C/Dの環境>
  1. AS400およびAS500のBGP4+スピーカと外部ピアによりピアリングします。
  2. AS内の他のBGP4+スピーカと内部ピアによりピアリングします。
  3. RIPngにより直結経路を,BGP4+によりAS400およびAS500から受信した特定ネットワーク宛の経路をAS内に広告します。
  4. AS200およびAS300からの経路をAS400およびAS500に広告します。また,AS内のネットワークをスタティック定義し,AS400およびAS500に広告します。

(3) コンフィグレーション例

[コマンドによる設定]

<本装置A>
 1    (config)# local-address 3ffe:501:811:ff01::1
 2    (config)# autonomoussystem 100
 3    (config)# routerid 172.16.2.1
 4    (config)# ripng yes
      [ripng]
 5    (config)# interface all
      [ripng interface all]
 6    (config)# ripin
      [ripng interface all]
 7    (config)# ripout
      [ripng interface all]
 8    (config)# exit
      [ripng]
 9    (config)# interface AtoExt
      [ripng interface AtoExt]
10    (config)# noripin
      [ripng interface AtoExt]
11    (config)# noripout
      [ripng interface AtoExt]
12    (config)# exit
      [ripng]
13    (config)# exit
14    (config)# bgp4+ yes
      [bgp4+]
15    (config)# default-localpref 300
      [bgp4+]
16    (config)# externalpeeras 200
      [bgp4+ externalpeeras 200]
17    (config)# peer fe80::200%AtoExt
      [bgp4+ externalpeeras 200 peer fe80::200%AtoExt]
18    (config)# exit
      [bgp4+ externalpeeras 200]
19    (config)# exit
      [bgp4+]
20    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
21    (config)# lcladdr 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100]
22    (config)# peer 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2]
23    (config)# exit
      [bgp4+ routingpeeras 100]
24    (config)# peer 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::3]
25    (config)# exit
      [bgp4+ routingpeeras 100]
26    (config)# peer 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::4]
27    (config)# exit
      [bgp4+ routingpeeras 100]
28    (config)# exit
      [bgp4+]
29    (config)# exit
30    (config)# export proto bgp4+ as 100
      [export proto bgp4+ as 100]
31    (config)# proto bgp4+ as 200
      [export proto bgp4+ as 100 proto bgp4+ as 200]
32    (config)# exit
      [export proto bgp4+ as 100]
33    (config)# exit
34    (config)# static
      [static]
35    (config)# 3ffe:501:811:ff01::/64 interface null
      [static]
36    (config)# exit
37    (config)# export proto bgp4+ as 200
      [export proto bgp4+ as 200]
38    (config)# proto static
      [export proto bgp4+ as 200 proto static]
39    (config)# 3ffe:501:811:ff01::/64 exact
      [export proto bgp4+ as 200 proto static]
40    (config)# exit
      [export proto bgp4+ as 200]
41    (config)# exit
42    (config)# attribute-list attribute-filter 10
      [attribute-list attribute-filter 10]
43    (config)# aspath-regexp "(^400_|^500_)"
      [attribute-list attribute-filter 10]
44    (config)# exit
45    (config)# export proto bgp4+ as 200
      [export proto bgp4+ as 200]
46    (config)# proto bgp4+ attribute-filter 10
      [export proto bgp4+ as 200 proto bgp4+ attribute-filter 10]
47    (config)# exit
      [export proto bgp4+ as 200]
48    (config)# exit

表12-50 本装置Aのコンフィグレーション解説

解説番号 解説
1 自装置アドレスを定義します。
2 自装置の属するAS番号を定義します。
3 自装置のルータIDを定義します。
4〜13 自AS内向けの各インタフェースでRIPngを定義します。
14,15 BGP4+プロトコルを動作させることを定義します。また,内部ピアへ経路を出力するときのlocalprefを300とします。
16〜19 AS200に対する外部ピアを定義します。
20,21 内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。
22〜29 本装置B,C,Dへの内部ピアを定義します。
30〜33 AS200から受信した経路をAS内の内部ピアに広告するよう定義します。
34〜36 広告用にAS内のネットワークをスタティック経路として定義します。
37〜48 生成したスタティック経路,AS400から受信した経路,AS500から受信した経路をAS200との外部ピアに広告するよう定義します。

<本装置B>
 1    (config)# local-address 3ffe:501:811:ff01::2
 2    (config)# autonomoussystem 100
 3    (config)# routerid 172.16.2.2
 4    (config)# ripng yes
      [ripng]
 5    (config)# interface all
      [ripng interface all]
 6    (config)# ripin
      [ripng interface all]
 7    (config)# ripout
      [ripng interface all]
 8    (config)# exit
      [ripng]
 9    (config)# interface BtoExt
      [ripng interface BtoExt]
10    (config)# noripin
      [ripng interface BtoExt]
11    (config)# noripout
      [ripng interface BtoExt]
12    (config)# exit
      [ripng]
13    (config)# exit
14    (config)# bgp4+ yes
      [bgp4+]
15    (config)# default-localpref 200
      [bgp4+]
16    (config)# externalpeeras 300
      [bgp4+ externalpeeras 300]
17    (config)# peer fe80::300%BtoExt
      [bgp4+ externalpeeras 300 peer fe80::300%BtoExt]
18    (config)# exit
      [bgp4+ externalpeeras 300]
19    (config)# exit
      [bgp4+]
20    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
21    (config)# lcladdr 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100]
22    (config)# peer 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1]
23    (config)# exit
      [bgp4+ routingpeeras 100]
24    (config)# peer 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::3]
25    (config)# exit
      [bgp4+ routingpeeras 100]
26    (config)# peer 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::4]
27    (config)# exit
      [bgp4+ routingpeeras 100]
28    (config)# exit
      [bgp4+]
29    (config)# exit
30    (config)# export proto bgp4+ as 100
      [export proto bgp4+ as 100]
31    (config)# proto bgp4+ as 300
      [export proto bgp4+ as 100 proto bgp4+ as 300]
32    (config)# exit
      [export proto bgp4+ as 100]
33    (config)# exit
34    (config)# static
      [static]
35    (config)# 3ffe:501:811:ff01::/64 interface null
      [static]
36    (config)# exit
37    (config)# export proto bgp4+ as 300
      [export proto bgp4+ as 300]
38    (config)# proto static
      [export proto bgp4+ as 300 proto static]
39    (config)# 3ffe:501:811:ff01::/64 exact
      [export proto bgp4+ as 300 proto static]
40    (config)# exit
      [export proto bgp4+ as 300]
41    (config)# exit
42    (config)# attribute-list attribute-filter 10
      [attribute-list attribute-filter 10]
43    (config)# aspath-regexp "(^400_|^500_)"
      [attribute-list attribute-filter 10]
44    (config)# exit
45    (config)# export proto bgp4+ as 300
      [export proto bgp4+ as 300]
46    (config)# proto bgp4+ attribute-filter 10
      [export proto bgp4+ as 300 proto bgp4+ attribute-filter 10]
47    (config)# exit
      [export proto bgp4+ as 300]
48    (config)# exit

表12-51 本装置Bのコンフィグレーション解説

解説番号 解説
1〜13 <本装置A>の解説番号1〜13に同じ
14,15 BGP4+プロトコルを動作させることを定義します。また,内部ピアへ経路を出力するときのlocalprefを200とします。
16〜19 AS300に対する外部ピアを定義します。
20,21 内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。
22〜29 本装置A,C,Dへの内部ピアを定義します。
30〜33 AS300から受信した経路をAS内の内部ピアに広告するよう定義します。
34〜36 広告用にAS内のネットワークをスタティック経路として定義します。
37〜48 生成したスタティック経路,AS400から受信した経路,AS500から受信した経路をAS300との外部ピアに広告するよう定義します。

<本装置C>
 1    (config)# local-address 3ffe:501:811:ff01::3
 2    (config)# autonomoussystem 100
 3    (config)# routerid 172.16.2.3
 4    (config)# ripng yes
      [ripng]
 5    (config)# interface all
      [ripng interface all]
 6    (config)# ripin
      [ripng interface all]
 7    (config)# ripout
      [ripng interface all]
 8    (config)# exit
      [ripng]
 9    (config)# interface CtoExt
      [ripng interface CtoExt]
10    (config)# noripin
      [ripng interface CtoExt]
11    (config)# noripout
      [ripng interface CtoExt]
12    (config)# exit
      [ripng]
13    (config)# exit
14    (config)# bgp4+ yes
      [bgp4+]
15    (config)# externalpeeras 400
      [bgp4+ externalpeeras 400]
16    (config)# peer fe80::400%CtoExt
      [bgp4+ externalpeeras 400 peer fe80::400%CtoExt]
17    (config)# exit
      [bgp4+ externalpeeras 400]
18    (config)# exit
      [bgp4+]
19    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
20    (config)# lcladdr 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100]
21    (config)# peer 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1]
22    (config)# exit
      [bgp4+ routingpeeras 100]
23    (config)# peer 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2]
24    (config)# exit
      [bgp4+ routingpeeras 100]
25    (config)# peer 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::4]
26    (config)# exit
      [bgp4+ routingpeeras 100]
27    (config)# exit
      [bgp4+]
28    (config)# exit
29    (config)# export proto bgp4+ as 100
      [export proto bgp4+ as 100]
30    (config)# proto bgp4+ as 400
      [export proto bgp4+ as 100 proto bgp4+ as 400]
31    (config)# exit
      [export proto bgp4+ as 100]
32    (config)# exit
33    (config)# static
      [static]
34    (config)# 3ffe:501:811:ff01::/64 interface null
      [static]
35    (config)# exit
36    (config)# export proto bgp4+ as 400
      [export proto bgp4+ as 400]
37    (config)# proto static
      [export proto bgp4+ as 400 proto static]
38    (config)# 3ffe:501:811:ff01::/64 exact
      [export proto bgp4+ as 400 proto static]
39    (config)# exit
      [export proto bgp4+ as 400]
40    (config)# proto bgp4+ as 100
      [export proto bgp4+ as 400 proto bgp4+ as 100]
41    (config)# exit
      [export proto bgp4+ as 400]
42    (config)# exit

表12-52 本装置Cのコンフィグレーション解説

解説番号 解説
1〜13 <本装置A>の解説番号1〜13に同じ
14 BGP4+プロトコルを動作させることを定義します
15〜18 AS400に対する外部ピアを定義します。
19,20 内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。
21〜28 本装置A,B,Dへの内部ピアを定義します。
29〜32 AS400から受信した経路をAS内の内部ピアに広告するよう定義します。
33〜35 広告用にAS内のネットワークをスタティック経路として定義します。
36〜42 生成したスタティック経路,AS200,AS300,AS500から受信した経路をAS400との外部ピアに広告するよう定義します。

<本装置D>
 1    (config)# local-address 3ffe:501:811:ff01::4
 2    (config)# autonomoussystem 100
 3    (config)# routerid 172.16.2.4
 4    (config)# ripng yes
      [ripng]
 5    (config)# interface all
      [ripng interface all]
 6    (config)# ripin
      [ripng interface all]
 7    (config)# ripout
      [ripng interface all]
 8    (config)# exit
      [ripng]
 9    (config)# interface DtoExt
      [ripng interface DtoExt]
10    (config)# noripin
      [ripng interface DtoExt]
11    (config)# noripout
      [ripng interface DtoExt]
12    (config)# exit
      [ripng]
13    (config)# exit
14    (config)# bgp4+ yes
      [bgp4+]
15    (config)# externalpeeras 500
      [bgp4+ externalpeeras 500]
16    (config)# peer fe80::500%DtoExt
      [bgp4+ externalpeeras 500 peer fe80::500%DtoExt]
17    (config)# exit
      [bgp4+ externalpeeras 500]
18    (config)# exit
      [bgp4+]
19    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
20    (config)# lcladdr 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100]
21    (config)# peer 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1]
22    (config)# exit
      [bgp4+ routingpeeras 100]
23    (config)# peer 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2]
24    (config)# exit
      [bgp4+ routingpeeras 100]
25    (config)# peer 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::3]
26    (config)# exit
      [bgp4+ routingpeeras 100]
27    (config)# exit
      [bgp4+]
28    (config)# exit
29    (config)# export proto bgp4+ as 100
      [export proto bgp4+ as 100]
30    (config)# proto bgp4+ as 500
      [export proto bgp4+ as 100 proto bgp4+ as 500]
31    (config)# exit
      [export proto bgp4+ as 100]
32    (config)# exit
33    (config)# static
      [static]
34    (config)# 3ffe:501:811:ff01::/64 interface null
      [static]
35    (config)# exit
36    (config)# export proto bgp4+ as 500
      [export proto bgp4+ as 500]
37    (config)# proto static
      [export proto bgp4+ as 500 proto static]
38    (config)# 3ffe:501:811:ff01::/64 exact
      [export proto bgp4+ as 500 proto static]
39    (config)# exit
      [export proto bgp4+ as 500]
40    (config)# proto bgp4+ as 100
      [export proto bgp4+ as 500 proto bgp4+ as 100]
41    (config)# exit
      [export proto bgp4+ as 400]
42    (config)# exit

表12-53 本装置Dのコンフィグレーション解説

解説番号 解説
1〜13 <本装置A>の解説番号1〜6に同じ
14 BGP4+プロトコルを動作させることを定義します。
15〜18 AS500に対する外部ピアを定義します。
19,20 内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。
21〜28 本装置A,B,Cへの内部ピアを定義します。
29〜32 AS500から受信した経路をAS内の内部ピアに広告するよう定義します。
33〜35 広告用にAS内のネットワークをスタティック経路として定義します。
36〜42 生成したスタティック経路,AS200,AS300,AS400から受信した経路をAS500との外部ピアに広告するよう定義します。

[コンフィグレーションの表示]

<本装置A>
local-address 3ffe:501:811:ff01::1
!
autonomoussystem 100
!
routerid 172.16.2.1
!
ripng yes
  interface all
    ripin
    ripout
  interface AtoExt
    noripin
    noripout
!
bgp4+ yes
  default-localpref 300
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::4
  externalpeeras 200
    peer fe80::200%AtoExt
!
static
  3ffe:501:811:ff01::/64 interface null
!
attribute-list attribute-filter 10
  aspath-regexp "(^400_|^500_)"
!
export proto bgp4+ as 100
  proto bgp4+ as 200
!
export proto bgp4+ as 200
  proto static
    3ffe:501:811:ff01::/64 exact
  proto bgp4+ attribute-filter 10

<本装置B>
local-address 3ffe:501:811:ff01::2
!
autonomoussystem 100
!
routerid 172.16.2.2
!
ripng yes
  interface all
    ripin
    ripout
  interface BtoExt
    noripin
    noripout
!
bgp4+ yes
  default-localpref 200
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::4
  externalpeeras 300
    peer fe80::300%BtoExt
!
static
  3ffe:501:811:ff01::/64 interface null
!
attribute-list attribute-filter 10
  aspath-regexp "(^400_|^500_)"
!
export proto bgp4+ as 100
  proto bgp4+ as 300
!
export proto bgp4+ as 300
  proto static
    3ffe:501:811:ff01::/64 exact
  proto bgp4+ attribute-filter 10

<本装置C>
local-address 3ffe:501:811:ff01::3
!
autonomoussystem 100
!
routerid 172.16.2.3
!
ripng yes
  interface all
    ripin
    ripout
  interface CtoExt
    noripin
    noripout
!
bgp4+ yes
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::4
  externalpeeras 400
    peer fe80::400%CtoExt
!
static
  3ffe:501:811:ff01::/64 interface null
!
export proto bgp4+ as 100
  proto bgp4+ as 400
!
export proto bgp4+ as 400
  proto static
    3ffe:501:811:ff01::/64 exact
  proto bgp4+ as 100

<本装置D>
local-address 3ffe:501:811:ff01::4
!
autonomoussystem 100
!
routerid 172.16.2.4
!
ripng yes
  interface all
    ripin
    ripout
  interface DtoExt
    noripin
    noripout
!
bgp4+ yes
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::4
    peer 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::3
  externalpeeras 500
   peer fe80::500%DtoExt
!
static
  3ffe:501:811:ff01::/64 interface null
!
export proto bgp4+ as 100
  proto bgp4+ as 500
!
export proto bgp4+ as 500
  proto static
    3ffe:501:811:ff01::/64 exact
  proto bgp4+ as 100

[目次][前へ][次へ]


[他社商品名称に関する表示]

Copyright (c)2005, 2011, ALAXALA Networks Corporation. All rights reserved.