BGPセッションとルートフラップ
BGPセッションのリセットについて
特定の設定アクションやイベントにより、BGPセッションがリセット(ドロップされ、その後再確立されます)されます。
同じルーティングデバイス上でルートリフレクションとVPNの両方を設定した場合、ルートリフレクションの設定を以下に変更すると、現在のBGPセッションがリセットされます。
クラスターIDの追加—BGPセッションが、クラスターIDを追加したグループと同じ自律システム(AS)番号を共有する場合、BGPセッションが同じグループに含まれているかどうかに関係なく、すべてのBGPセッションがリセットされます。
新しいルートリフレクタの作成—AS番号を持つ内部BGP(IBGP)グループがあり、同じAS番号で新しいルートリフレクタグループを作成すると、IBGPグループと新しいルートリフレクタグループ内のすべてのBGPセッションがリセットされます。
BGPグループの名前変更など、BGPピアに影響を与える設定ステートメントを変更すると、BGPセッションがリセットされます。
[edit protocols bgp family]階層レベルで指定されたアドレスファミリーを変更すると、ルーティングデバイス上の現在のBGPセッションはすべて削除され、その後再確立されます。
例:VPN ファミリーが設定されている場合の BGP セッション フラップの防止
この例では、仮想プライベートネットワーク(VPN)ファミリーが設定されている場合に、BGPセッションがダウンして再び立ち上がる(つまりフラップする)既知の問題の回避策を示します。VPNファミリー(例: inet-vpn、 inet6-vpn、 inet-mpvn、 inet-mdt、 inet6-mpvn、 l2vpn、 iso-vpnなど)がBGPマスターインスタンスに設定されている場合、ルートリフレクタ(RR)内部BGP(IBGP)セッションまたは外部BGP(EBGP)セッションのいずれかのフラップにより、同じVPNファミリーで構成された他のBGPセッションのフラップが発生します。
要件
始める前に:
-
ルーターインターフェイスを設定します。
-
内部ゲートウェイプロトコル(IGP)を設定します。
-
BGPを設定します。
-
VPNを設定します。
概要
ルーターまたはスイッチがルートリフレクタ(RR)またはAS境界ルーター(外部BGPピア)として設定され、VPNファミリー(例えば、 family inet-vpn unicast ステートメント)が設定されている場合、RR IBGPセッションまたはEBGPセッションのいずれかのフラップによって、 family inet-vpn unicast ステートメントで設定された他のすべてのBGPセッションのフラップが発生します。この例では、このような不要なセッションフラップを防止する方法を示しています。
フラッピング動作の原因は、VPN ルート発信時の Junos OS での BGP 動作に関連しています。
BGPには、発信元VPNルートに関して以下の2つの動作モードがあります。
-
セッションにEBGPピアもRRクライアントもないためBGP VPNルートを伝送する必要がない場合、BGPはVPNルートを instance.inet.0ルーティングテーブルから他のPEルーターに直接エクスポートします。この動作は、多くのルートのコピーが 2 つ作成されないという点で効率的です(1 つは instance.inet.0 テーブルに 1 つ、もう 1 つは bgp.l3vpn.0 テーブルに)。
-
セッションにEBGPピアまたはRRクライアントがあるためBGP VPNルートを伝送する必要がある場合、BGPまずVPNルートを instance.inet.0テーブルからbgp.l3vpn.0テーブルにエクスポートします。その後、BGPは他のPEルーターにルートをエクスポートします。このシナリオでは、最適ルート選択を有効にするためにルートのコピーが 2 つ必要になります。PE ルーターは、CE デバイスから、また RR クライアントまたは EBGP ピアから同じ VPN ルートを受け取る場合があります。
instance.inet.0内のルートがセカンダリルートの場合、ルートのエクスポートは実行されません。Junos OSでは、ルートは1つのルーティングテーブルからプライマリルートとして別のルーティングテーブルにセカンダリルートとして1回だけエクスポートされます。instance.inet.0のルートはすでにセカンダリルートであるため、必要に応じてbgp.l3vpn.0テーブルに再度移動することはできません。ルートはbgp.l3vpn.0テーブルに到達しないため、アドバタイズされません。回避策の1つは、アドバタイズされるべきルートをinet.0に送信してアドバタイズされるようにすることです。
設定の変更により、BGPがルートの2つのコピーを必要とする状態からルートの2つのコピーを必要としない状態に移行した場合(またはその逆)、VPNルートが交換されるすべてのセッションがダウンし、その後復帰します。この例では family inet-vpn unicast ステートメントに焦点を当てていますが、この概念はすべてのVPNネットワーク層到達可能性情報(NLRI)ファミリーに適用されます。この問題は論理システムにも影響します。VPN NLRIファミリーに関連するマスターインスタンス内のすべてのBGPセッションは、VPN NLRIファミリーのテーブルアドバタイズメント変更を実装するために停止されます。RR を非 RR に変更するか、その逆( cluster ステートメントを追加または削除することによって)テーブルアドバタイズメントが変更されます。また、VPN NLRIファミリーのマスターインスタンスで最初のEBGPセッションを設定するか、設定からEBGPセッションを削除すると、テーブルアドバタイズメントが変更されます。
このような不要なセッション フラップを防ぐ方法は、追加の RR クライアントまたは EBGP セッションを、存在しないネイバー アドレスを持つパッシブ セッションとして設定することです。この例は EBGP のケースに焦点を当てていますが、RR のケースでも同じ回避策が機能します。
セッションがパッシブの場合、ルーティングデバイスはピアにオープンリクエストを送信しません。ルーティングデバイスをパッシブに設定すると、ルーティングデバイスはTCP接続を発信しません。しかし、ルーティングデバイスは、ピアからの接続とオープンメッセージを受信すると、別のBGPオープンメッセージで応答します。各ルーティングデバイスは、独自の機能を宣言します。
トポロジー
図1は、EBGPの場合のトポロジーを示しています。ルーターR1は、ルーターR2およびR3とのIBGPセッションと、ルーターR4とのEBGPセッションを持っています。すべてのセッションにfamily inet-vpn unicastステートメントが設定されています。R1-R4 EBGPセッションがフラップする場合、R1-R2とR1-R3 BGPセッションもフラップします。
のトポロジー
図2は、RRの場合のトポロジーを示しています。ルーター R1 は RR で、ルーター R3 はクライアントです。ルーターR1は、ルーターR2およびR3とIBGPセッションを持っています。すべてのセッションにfamily inet-vpn unicastステートメントが設定されています。R1-R3セッションがフラップする場合、R1-R2とR1-R4セッションもフラップします。
のトポロジー
設定
CLIクイックコンフィグレーション
この例をすばやく設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更してから、コマンドを [edit] 階層レベルのCLIにコピー アンド ペーストします。
set protocols bgp family inet-vpn unicast set protocols bgp family l2vpn signaling set protocols bgp group R1-R4 type external set protocols bgp group R1-R4 local-address 4.4.4.2 set protocols bgp group R1-R4 neighbor 4.4.4.1 peer-as 200 set protocols bgp group R1-R2-R3 type internal set protocols bgp group R1-R2-R3 log-updown set protocols bgp group R1-R2-R3 local-address 15.15.15.15 set protocols bgp group R1-R2-R3 neighbor 12.12.12.12 set protocols bgp group R1-R2-R3 neighbor 13.13.13.13 set protocols bgp group Fake type external set protocols bgp group Fake passive set protocols bgp group Fake neighbor 100.100.100.100 peer-as 500
手順
ステップバイステップの手順
次の例では、設定階層のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、『Junos OS CLIユーザーガイド』の「設定モードでのCLIエディターの使用」を参照してください。
EBGP シナリオを設定するには:
-
1つ以上のVPNファミリーを設定します。
[edit protocols bgp] user@R1# set family inet-vpn unicast user@R1# set family l2vpn signaling
-
EBGP セッションを設定します。
[edit protocols bgp] user@R1# set group R1-R4 type external user@R1# set group R1-R4 local-address 4.4.4.2 user@R1# set group R1-R4 neighbor 4.4.4.1 peer-as 200
-
IBGP セッションを設定します。
[edit protocols bgp] user@R1# set group R1-R2-R3 type internal user@R1# set group R1-R2-R3 local-address 15.15.15.15 user@R1# set group R1-R2-R3 neighbor 12.12.12.12 user@R1# set group R1-R2-R3 neighbor 13.13.13.13
-
(オプション)BGPピアが状態遷移を行うたびに
syslogメッセージが生成されるようにBGPを設定します。[edit protocols bgp] user@R1# set group R1-R2-R3 log-updown
log-updownステートメントを有効にすると、BGPの状態遷移がwarningレベルでログに記録されます。
手順
ステップバイステップの手順
不要なセッションフラップが発生していることを確認するには:
-
show bgp summaryコマンドを実行して、セッションが確立されたことを確認します。user@R1> show bgp summary Groups: 2 Peers: 3 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 0 0 0 0 0 0 bgp.l2vpn.0 0 0 0 0 0 0 inet.0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 4.4.4.1 200 6 5 0 0 1:08 Establ bgp.l3vpn.0: 0/0/0/0 bgp.l2vpn.0: 0/0/0/0 12.12.12.12 100 3 7 0 0 1:18 Establ bgp.l3vpn.0: 0/0/0/0 bgp.l2vpn.0: 0/0/0/0 13.13.13.13 100 3 6 0 0 1:14 Establ bgp.l3vpn.0: 0/0/0/0 bgp.l2vpn.0: 0/0/0/0
-
EBGP セッションを非アクティブにします。
user@R1# deactivate group R1-R4 user@R1# commit
Mar 10 18:27:40 R1: rpd[1464]: bgp_peer_delete:6589: NOTIFICATION sent to 4.4.4.1 (External AS 200): code 6 (Cease) subcode 3 (Peer Unconfigured), Reason: Peer Deletion Mar 10 18:27:40 R1: rpd[1464]: bgp_adv_main_update:7253: NOTIFICATION sent to 12.12.12.12 (Internal AS 100): code 6 (Cease) subcode 6 (Other Configuration Change), Reason: Configuration change - VPN table advertise Mar 10 18:27:40 R1: rpd[1464]: bgp_adv_main_update:7253: NOTIFICATION sent to 13.13.13.13 (Internal AS 100): code 6 (Cease) subcode 6 (Other Configuration Change), Reason: Configuration change - VPN table advertise
-
show bgp summaryコマンドを実行して、セッションフラップを表示します。user@R1> show bgp summary Groups: 1 Peers: 2 Down peers: 2 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 0 0 0 0 0 0 bgp.l2vpn.0 0 0 0 0 0 0 inet.0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 12.12.12.12 100 4 9 0 1 19 Active 13.13.13.13 100 4 8 0 1 19 Active
user@R1> show bgp summary Groups: 1 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 0 0 0 0 0 0 bgp.l2vpn.0 0 0 0 0 0 0 inet.0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 12.12.12.12 100 2 3 0 1 0 Establ bgp.l3vpn.0: 0/0/0/0 bgp.l2vpn.0: 0/0/0/0 13.13.13.13 100 2 3 0 1 0 Establ bgp.l3vpn.0: 0/0/0/0 bgp.l2vpn.0: 0/0/0/0
手順
ステップバイステップの手順
次の例では、設定階層のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、『Junos OS CLIユーザーガイド』の「設定モードでのCLIエディターの使用」を参照してください。
不要なBGPセッションフラップを防ぐには:
-
ピア自律システム(AS)に存在しないネイバーアドレスとの受動EBGPセッションを追加します。
[edit protocols bgp] user@R1# set group Fake type external user@R1# set group Fake passive user@R1# set neighbor 100.100.100.100 peer-as 500
-
show bgp summaryコマンドを実行して、実際のセッションが確立され、パッシブセッションがアイドル状態であることを確認します。user@R1> show bgp summary Groups: 3 Peers: 4 Down peers: 1 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 0 0 0 0 0 0 bgp.l2vpn.0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 4.4.4.1 200 9500 9439 0 0 2d 23:14:23 Establ bgp.l3vpn.0: 0/0/0/0 bgp.l2vpn.0: 0/0/0/0 12.12.12.12 100 10309 10239 0 0 3d 5:17:49 Establ bgp.l3vpn.0: 0/0/0/0 13.13.13.13 100 10306 10241 0 0 3d 5:18:25 Establ bgp.l3vpn.0: 0/0/0/0 100.100.100.100 500 0 0 0 0 2d 23:38:52 Idle
検証
設定が正常に機能していることを確認します。
EBGP セッションの停止
目的
回避策を設定した後、フラップの問題を発生させてみてください。
アクション
user@R1# deactivate group R1-R4 user@R1# commit
IBGPセッションが稼働状態であることの確認
目的
EBGP セッションが非アクティブ化された後に、IBGP セッションがフラップしないようにしてください。
アクション
user@R1> show bgp summary Groups: 2 Peers: 3 Down peers: 1 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 0 0 0 0 0 0 bgp.l2vpn.0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 12.12.12.12 100 10312 10242 0 0 3d 5:19:01 Establ bgp.l3vpn.0: 0/0/0/0 13.13.13.13 100 10309 10244 0 0 3d 5:19:37 Establ bgp.l3vpn.0: 0/0/0/0 100.100.100.100 500 0 0 0 0 2d 23:40:04 Idle
user@R1> show bgp summary Groups: 3 Peers: 4 Down peers: 1 Table Tot Paths Act Paths Suppressed History Damp State Pending bgp.l3vpn.0 0 0 0 0 0 0 bgp.l2vpn.0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 4.4.4.1 200 5 4 0 0 28 Establ bgp.l3vpn.0: 0/0/0/0 bgp.l2vpn.0: 0/0/0/0 12.12.12.12 100 10314 10244 0 0 3d 5:19:55 Establ bgp.l3vpn.0: 0/0/0/0 13.13.13.13 100 10311 10246 0 0 3d 5:20:31 Establ bgp.l3vpn.0: 0/0/0/0 100.100.100.100 500 0 0 0 0 2d 23:40:58 Idle
ダンピング パラメータの理解
BGP ルートフラッピング とは、BGPシステムがネットワーク到達可能性情報をアドバタイズするために過剰な数の更新メッセージを送信する状況を表します。BGPフ ラップダンピング は、安定したルートのルートコンバージェンス時間に悪影響を与えることなく、BGPピア間で送信される更新メッセージの数を削減することで、これらのピアの負荷を軽減する方法です。
フラップダンピングは、ルートをアクティブまたは好ましいルートとして選択対象外としてマークすることで、更新メッセージの数を削減します。このようにルートをマーキングすると、ルート情報の伝播に多少の遅延( suppression)が生じますが、結果としてネットワークの安定性が向上します。通常、フラップダンピングは外部BGP(EBGP)ルート(異なるASのルート)に適用します。また、コンフェデレーション内、コンフェデレーションメンバーAS間にフラップダンピングを適用することもできます。AS 内のルーティングの一貫性は重要であるため、内部 BGP(IBGP)ルートにはフラップダンピングを適用しないでください。(設定すると無視されます。
例外があります。Junos OSリリース12.2以降、アドレスファミリーレベルでフラップダンピングを適用できます。Junos OSリリース12.2以降のインストールでは、アドレスファミリーレベルでフラップダンピングを適用すると、IBGPとEBGPの両方で機能します。
デフォルトでは、ルートフラップダンピングは有効になっていません。ダンピングは、外部ピアとコンフェデレーション境界のピアに適用されます。
ダンピングを有効にすると、 表1にまとめられているデフォルトパラメーターが適用されます。
ダンピングパラメータ |
説明 |
デフォルト値 |
可能な値 |
|---|---|---|---|
半減期 minutes |
ディケイ半減期—ルートが安定した場合に任意の値が半減されるまでの分数。 |
15 (分) |
1 〜 45 |
max-supress(最大抑制) minutes |
ルートの最大ホールドダウン時間(分)。 |
60 (分) |
1 〜 720 |
再利用 |
再利用しきい値—抑制されたルートを再使用できる任意の値。 |
750 |
1 〜 20,000 |
抑制 |
カットオフ(抑制)しきい値—ルートを使用できない、またはアドバタイズに含めることができない任意の値。 |
3000 |
1 〜 20,000 |
デフォルトのBGPフラップダンピング値を変更するには、ダンピングパラメーターの名前付きセットを作成し、それをダンピングアクションとともにルーティングポリシーに含めることでアクションを定義します。ダンピングルーティングポリシーを機能させるには、BGPルートフラップダンピングも有効にする必要があります。
関連項目
例:BGPルートフラップダンピングパラメーターの設定
この例では、ダンピングパラメーターを設定する方法を示しています。
要件
開始する前に、ルーターインターフェイスを設定し、ルーティングプロトコルを設定します。
概要
この例では、3つのルーティングデバイスがあります。デバイスR2は、デバイスR1およびデバイスR3と外部BGP(EBGP)接続を持っています。
デバイスR1とデバイスR3には、テスト用に設定された静的ルートがいくつかあり、これらの静的ルートは、BGPを介してデバイスR2にアドバタイズされます。
デバイスR2は、以下の基準に従ってデバイスR1およびデバイスR3から受信したルートを減衰させます。
マスク長が 17 以上のすべてのプレフィックスを、マスク長が 9〜16 のルートよりも積極的に減衰させます。
マスク長が 0 から 8 までのダンピング ルートを、マスク長が 8 より大きいルートよりも小さくします。
10.128.0.0/9プレフィックスをまったく減衰させないでください。
ルーティングポリシーは、ルートがルーティングテーブルから転送テーブルにエクスポートされるときに評価されます。アクティブなルートのみがルーティングテーブルからエクスポートされます。
図3 は、サンプルネットワークを示しています。
CLIクイックコンフィグレーション は、 図3に示すすべてのデバイスの構成を示しています。
セクション #d181e79__d181e266 では、デバイスR2の手順を説明しています。
設定
手順
CLIクイックコンフィグレーション
この例を簡単に設定するには、以下のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、コマンドを [edit] 階層レベルのCLIにコピー&ペーストしてください。
デバイスR1
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.1/30 set interfaces lo0 unit 0 family inet address 192.168.0.1/32 set protocols bgp group ext type external set protocols bgp group ext export send-direct-and-static set protocols bgp group ext peer-as 200 set protocols bgp group ext neighbor 10.0.0.2 set policy-options policy-statement send-direct-and-static term 1 from protocol direct set policy-options policy-statement send-direct-and-static term 1 from protocol static set policy-options policy-statement send-direct-and-static term 1 then accept set routing-options static route 172.16.0.0/16 reject set routing-options static route 172.16.128.0/17 reject set routing-options static route 172.16.192.0/20 reject set routing-options static route 10.0.0.0/9 reject set routing-options static route 172.16.233.0/7 reject set routing-options static route 10.224.0.0/11 reject set routing-options static route 0.0.0.0/0 reject set routing-options autonomous-system 100
デバイスR2
set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.2/30 set interfaces fe-1/2/1 unit 0 family inet address 10.1.0.1/30 set interfaces lo0 unit 0 family inet address 192.168.0.2/32 set protocols bgp damping set protocols bgp group ext type external set protocols bgp group ext import damp set protocols bgp group ext export send-direct set protocols bgp group ext neighbor 10.0.0.1 peer-as 100 set protocols bgp group ext neighbor 10.1.0.2 peer-as 300 set policy-options policy-statement damp term 1 from route-filter 10.128.0.0/9 exact damping dry set policy-options policy-statement damp term 1 from route-filter 0.0.0.0/0 prefix-length-range /0-/8 damping timid set policy-options policy-statement damp term 1 from route-filter 0.0.0.0/0 prefix-length-range /17-/32 damping aggressive set policy-options policy-statement send-direct term 1 from protocol direct set policy-options policy-statement send-direct term 1 then accept set policy-options damping aggressive half-life 30 set policy-options damping aggressive suppress 2500 set policy-options damping timid half-life 5 set policy-options damping dry disable set routing-options autonomous-system 200
デバイスR3
set interfaces fe-1/2/1 unit 0 family inet address 10.1.0.2/30 set interfaces lo0 unit 0 family inet address 192.168.0.3/32 set protocols bgp group ext type external set protocols bgp group ext export send-direct-and-static set protocols bgp group ext peer-as 200 set protocols bgp group ext neighbor 10.1.0.1 set policy-options policy-statement send-direct-and-static term 1 from protocol direct set policy-options policy-statement send-direct-and-static term 1 from protocol static set policy-options policy-statement send-direct-and-static term 1 then accept set routing-options static route 10.128.0.0/9 reject set routing-options autonomous-system 300
ステップバイステップの手順
次の例では、設定階層のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、『Junos OS CLIユーザーガイド』の「設定モードでのCLIエディタの使用」を参照してください。
ダンピングパラメーターを設定するには:
インターフェイスを設定します。
[edit interfaces] user@R2# set fe-1/2/0 unit 0 family inet address 10.0.0.2/30 user@R2# set fe-1/2/1 unit 0 family inet address 10.1.0.1/30 user@R2# set lo0 unit 0 family inet address 192.168.0.2/32
BGPネイバーを設定します。
[edit protocols bgp group ext] user@R2# set type external user@R2# set neighbor 10.0.0.1 peer-as 100 user@R2# set neighbor 10.1.0.2 peer-as 300
ダンピングパラメーターグループを作成して設定します。
[edit policy-options] user@R2# set damping aggressive half-life 30 user@R2# set damping aggressive suppress 2500 user@R2# set damping timid half-life 5 user@R2# set damping dry disable
ダンピングポリシーを設定します。
[edit policy-options policy-statement damp term 1] user@R2# set from route-filter 10.128.0.0/9 exact damping dry user@R2# set from route-filter 0.0.0.0/0 prefix-length-range /0-/8 damping timid user@R2# set from route-filter 0.0.0.0/0 prefix-length-range /17-/32 damping aggressive
BGPのダンピングを有効にします。
[edit protocols bgp] user@R2# set damping
このポリシーを、BGPネイバーのインポートポリシーとして適用します。
[edit protocols bgp group ext] user@R2# set import damp
注:同じルーティングポリシーまたは異なる
importステートメントで同じを1回以上参照できます。エクスポートポリシーを設定します。
[edit policy-options policy-statement send-direct term 1] user@R2# set from protocol direct user@R2# set then accept
エクスポートポリシーを適用します。
[edit protocols bgp group ext] user@R2# set export send-direct
自律システム(AS)番号を設定します。
[edit routing-options] user@R2# set autonomous-system 200
結果
設定モードから、 show interfaces、 show protocols、 show policy-options、および show routing-options コマンドを発行して設定を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@R2# show interfaces
fe-1/2/0 {
unit 0 {
family inet {
address 10.0.0.2/30;
}
}
}
fe-1/2/1 {
unit 0 {
family inet {
address 10.1.0.1/30;
}
}
}
lo0 {
unit 0 {
family inet {
address 192.168.0.2/32;
}
}
}
user@R2# show protocols
bgp {
damping;
group ext {
type external;
import damp;
export send-direct;
neighbor 10.0.0.1 {
peer-as 100;
}
neighbor 10.1.0.2 {
peer-as 300;
}
}
}
user@R2# show policy-options
policy-statement damp {
term 1 {
from {
route-filter 10.128.0.0/9 exact damping dry;
route-filter 0.0.0.0/0 prefix-length-range /0-/8 damping timid;
route-filter 0.0.0.0/0 prefix-length-range /17-/32 damping aggressive;
}
}
}
policy-statement send-direct {
term 1 {
from protocol direct;
then accept;
}
}
damping aggressive {
half-life 30;
suppress 2500;
}
damping timid {
half-life 5;
}
damping dry {
disable;
}
user@R2# show routing-options autonomous-system 200;
デバイスの設定が完了したら、設定モードから commit を入力します。
検証
設定が正常に機能していることを確認します。
- 一部のルートがフラッピングする原因
- ルートフラップのチェック
- ルート フラップ ダンピングの検証
- 減衰ルートの詳細を表示する
- デフォルトのダンピングパラメーターが有効であることの確認
- ダンピング情報のフィルタリング
一部のルートがフラッピングする原因
目的
ルートフラップダンピングポリシーを検証するには、一部のルートをフラップする必要があります。ライブインターネットフィードがあれば、ほぼ一定数のルートフラップが存在することが保証されます。ルートをアドバタイズしているリモートシステムを制御できる場合は、アドバタイズルーターのポリシーを変更して、すべてのルートまたは特定のプレフィックスのアドバタイズと取り消しを有効にすることができます。テスト環境では、次に示すように、BGPネイバーをクリアするか、BGPネイバーのルーティングプロセスを再起動することで、ルートをフラップさせることができます。
アクション
デバイスR1とデバイスR3の動作モードから、 restart routing コマンドを入力します。
本番ネットワークでは、このコマンドは慎重に使用してください。
user@R1> restart routing R1 started, pid 10474
user@R3> restart routing R3 started, pid 10478
意味
デバイスR2では、ネイバーからのすべてのルートが取り消され、再アドバタイズされます。
ルートフラップのチェック
目的
ネイバーフラップの数を表示します。
アクション
動作モードから、 show bgp summary コマンドを入力します。
user@R2> show bgp summary
Groups: 1 Peers: 2 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
12 1 11 0 11 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.0.0.1 100 10 10 0 4 2:50 0/9/0/9 0/0/0/0
10.1.0.2 300 10 10 0 4 2:53 1/3/1/2 0/0/0/0
意味
この出力は、デバイスR2のネイバーでルーティングプロセスが4回再起動された後にキャプチャされました。
ルート フラップ ダンピングの検証
目的
ダンピングによりルートが非表示になっていることを確認します。
アクション
動作モードから、 show route damping suppressed コマンドを入力します。
user@R2> show route damping suppressed
inet.0: 15 destinations, 17 routes (6 active, 0 holddown, 11 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
10.0.0.0/9 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
10.0.0.0/30 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
10.1.0.0/30 [BGP ] 00:00:15, localpref 100
AS path: 300 I, validation-state: unverified
> to 10.1.0.2 via fe-1/2/1.0
10.224.0.0/11 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
172.16.0.0/16 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
172.16.128.0/17 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
172.16.192.0/20 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
192.168.0.1/32 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
192.168.0.3/32 [BGP ] 00:00:15, localpref 100
AS path: 300 I, validation-state: unverified
> to 10.1.0.2 via fe-1/2/1.0
172.16.233.0/7 [BGP ] 00:00:12, localpref 100
AS path: 100 I, validation-state: unverified
> to 10.0.0.1 via fe-1/2/0.0
意味
出力では、ルーティングの不安定性が多少示されています。11のルートはダンピングのために隠れています。
減衰ルートの詳細を表示する
目的
減衰ルートの詳細を表示します。
アクション
動作モードから、 show route damping suppressed 172.16.192.0/20 detail コマンドを入力します。
user@R2> show route damping suppressed 172.16.192.0/20 detail
inet.0: 15 destinations, 17 routes (6 active, 0 holddown, 11 hidden)
172.16.192.0/20 (1 entry, 0 announced)
BGP /-101
Next hop type: Router, Next hop index: 758
Address: 0x9414484
Next-hop reference count: 9
Source: 10.0.0.1
Next hop: 10.0.0.1 via fe-1/2/0.0, selected
Session Id: 0x100201
State: <Hidden Ext>
Local AS: 200 Peer AS: 100
Age: 52
Validation State: unverified
Task: BGP_100.10.0.0.1+55922
AS path: 100 I
Localpref: 100
Router ID: 192.168.0.1
Merit (last update/now): 4278/4196
damping-parameters: aggressive
Last update: 00:00:52 First update: 01:01:55
Flaps: 8
Suppressed. Reusable in: 01:14:40
Preference will be: 170
意味
この出力は、表示されたルートのマスク長が/17以上であることを示し、アグレッシブダンピングプロファイルに正しくマッピングされていることを確認します。また、ルートの現在(および最後の)性能指数値と、ルートが安定している場合にルートがアクティブになると予想されるタイミングも確認できます。
デフォルトのダンピングパラメーターが有効であることの確認
目的
/16マスクで減衰ルートを見つけることで、デフォルトパラメーターが有効であることを確認できます。
アクション
動作モードから、 show route damping suppressed detail | match 0/16 コマンドを入力します。
user@R2> show route damping suppressed detail | match 0/16 172.16.0.0/16 (1 entry, 0 announced)
user@R2> show route damping suppressed 172.16.0.0/16 detail
inet.0: 15 destinations, 17 routes (6 active, 0 holddown, 11 hidden)
172.16.0.0/16 (1 entry, 0 announced)
BGP /-101
Next hop type: Router, Next hop index: 758
Address: 0x9414484
Next-hop reference count: 9
Source: 10.0.0.1
Next hop: 10.0.0.1 via fe-1/2/0.0, selected
Session Id: 0x100201
State: <Hidden Ext>
Local AS: 200 Peer AS: 100
Age: 1:58
Validation State: unverified
Task: BGP_100.10.0.0.1+55922
AS path: 100 I
Localpref: 100
Router ID: 192.168.0.1
Merit (last update/now): 3486/3202
Default damping parameters used
Last update: 00:01:58 First update: 01:03:01
Flaps: 8
Suppressed. Reusable in: 00:31:40
Preference will be: 170
意味
/16マスクを持つルートは、カスタムダンピングルールの影響を受けません。そのため、デフォルトのダンピングルールが有効です。
繰り返しになりますが、カスタムルールは次のとおりです。
マスク長が 17 以上のすべてのプレフィックスを、マスク長が 9〜16 のルートよりも積極的に減衰させます。
マスク長が 0 から 8 までのダンピング ルートを、マスク長が 8 より大きいルートよりも小さくします。
10.128.0.0/9プレフィックスをまったく減衰させないでください。
ダンピング情報のフィルタリング
目的
OR グループ化またはカスケード配管を使用して、特定のマスク長のルートに使用するダンピングプロファイルの決定を簡素化します。
アクション
動作モードから、 show route damping suppressed コマンドを入力します。
user@R2> show route damping suppressed detail | match "0 announced | damp"
0.0.0.0/0 (1 entry, 0 announced)
damping-parameters: timid
10.0.0.0/9 (1 entry, 0 announced)
Default damping parameters used
damping-parameters: aggressive
damping-parameters: aggressive
10.224.0.0/11 (1 entry, 0 announced)
Default damping parameters used
172.16.0.0/16 (1 entry, 0 announced)
Default damping parameters used
172.16.128.0/17 (1 entry, 0 announced)
damping-parameters: aggressive
172.16.192.0/20 (1 entry, 0 announced)
damping-parameters: aggressive
192.168.0.1/32 (1 entry, 0 announced)
damping-parameters: aggressive
192.168.0.3/32 (1 entry, 0 announced)
damping-parameters: aggressive
172.16.233.0/7 (1 entry, 0 announced)
damping-parameters: timid
意味
EBGP ルートがダンピングプロファイルに正しく関連付けられていることに満足したら、 clear bgp damping 動作モードコマンドを発行して、減衰ルートのアクティブ状態を復元し、接続を通常の動作に戻すことができます。
例:MBGP MVPN アドレスファミリーに基づいた BGP ルート フラップ ダンピングの設定
この例では、ルート フラップ ダンピングを備えたマルチプロトコル BGP マルチキャスト VPN(次世代 MVPN とも呼ばれます)を設定する方法BGP説明します。
要件
この例では、Junos OSリリース12.2を使用します。MBGP MVPN の BGP ルート フラップ ダンピング サポートは、特に、一般的にアドレス ファミリー ベースで、Junos OS リリース 12.2 で導入されています。
概要
BGPルートフラップダンピングは、リンクが断続的に障害が発生した場合に、ルートの取り下げと再アドバタイズを繰り返すことによって引き起こされるルートの不安定性を軽減するのに役立ちます。
この例では、デフォルトのダンピング パラメーターを使用し、3 台のプロバイダ エッジ(PE)ルーティング デバイス、3 台のカスタマー エッジ(CE)ルーティング デバイス、1 台のプロバイダ(P)ルーティング デバイスを使用した MBGP MVPN シナリオを示しています。
トポロジー
図4 は、この例で使用されているトポロジーを示しています。
を使用したMBGP MVPN
PE デバイス R4 では、BGP ルート フラップ ダンピングがアドレス ファミリー inet-mvpn用に設定されています。 dampPolicy と呼ばれるルーティングポリシーは、 nlri-route-type 一致条件を使用して、MVPNルートタイプ3、4、および5のみを減衰させます。他のすべてのMVPNルートタイプは減衰されません。
この例では、「 CLIクイック構成 」セクションのすべてのデバイスでの完全な構成を示しています。 デバイスR4の設定 セクションでは、PEデバイスR4の設定を順を追って説明しています。
設定
CLIクイックコンフィグレーション
この例をすばやく設定するには、以下のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更してから、コマンドを [edit] 階層レベルのCLIにコピー&ペーストします。
デバイスR1
set interfaces ge-1/2/0 unit 1 family inet address 10.1.1.1/30 set interfaces ge-1/2/0 unit 1 family mpls set interfaces lo0 unit 1 family inet address 172.16.1.1/32 set protocols ospf area 0.0.0.0 interface lo0.1 passive set protocols ospf area 0.0.0.0 interface ge-1/2/0.1 set protocols pim rp static address 172.16.100.1 set protocols pim interface all set routing-options router-id 172.16.1.1
デバイスR2
set interfaces ge-1/2/0 unit 2 family inet address 10.1.1.2/30 set interfaces ge-1/2/0 unit 2 family mpls set interfaces ge-1/2/1 unit 5 family inet address 10.1.1.5/30 set interfaces ge-1/2/1 unit 5 family mpls set interfaces vt-1/2/0 unit 2 family inet set interfaces lo0 unit 2 family inet address 172.16.1.2/32 set interfaces lo0 unit 102 family inet address 172.16.100.1/32 set protocols mpls interface ge-1/2/1.5 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 172.16.1.2 set protocols bgp group ibgp family inet-vpn any set protocols bgp group ibgp family inet-mvpn signaling set protocols bgp group ibgp neighbor 172.16.1.4 set protocols bgp group ibgp neighbor 172.16.1.5 set protocols ospf area 0.0.0.0 interface lo0.2 passive set protocols ospf area 0.0.0.0 interface ge-1/2/1.5 set protocols ldp interface ge-1/2/1.5 set protocols ldp p2mp set policy-options policy-statement parent_vpn_routes from protocol bgp set policy-options policy-statement parent_vpn_routes then accept set routing-instances vpn-1 instance-type vrf set routing-instances vpn-1 interface ge-1/2/0.2 set routing-instances vpn-1 interface vt-1/2/0.2 set routing-instances vpn-1 interface lo0.102 set routing-instances vpn-1 route-distinguisher 100:100 set routing-instances vpn-1 provider-tunnel ldp-p2mp set routing-instances vpn-1 vrf-target target:1:1 set routing-instances vpn-1 protocols ospf export parent_vpn_routes set routing-instances vpn-1 protocols ospf area 0.0.0.0 interface lo0.102 passive set routing-instances vpn-1 protocols ospf area 0.0.0.0 interface ge-1/2/0.2 set routing-instances vpn-1 protocols pim rp static address 172.16.1.2 with 172.16.4.1100.1 set routing-instances vpn-1 protocols pim interface ge-1/2/0.2 mode sparse set routing-instances vpn-1 protocols mvpn set routing-options router-id 172.16.1.2 set routing-options autonomous-system 1001
デバイスR3
set interfaces ge-1/2/0 unit 6 family inet address 10.1.1.6/30 set interfaces ge-1/2/0 unit 6 family mpls set interfaces ge-1/2/1 unit 9 family inet address 10.1.1.9/30 set interfaces ge-1/2/1 unit 9 family mpls set interfaces ge-1/2/2 unit 13 family inet address 10.1.1.13/30 set interfaces ge-1/2/2 unit 13 family mpls set interfaces lo0 unit 3 family inet address 172.16.1.3/32 set protocols mpls interface ge-1/2/0.6 set protocols mpls interface ge-1/2/1.9 set protocols mpls interface ge-1/2/2.13 set protocols ospf area 0.0.0.0 interface lo0.3 passive set protocols ospf area 0.0.0.0 interface ge-1/2/0.6 set protocols ospf area 0.0.0.0 interface ge-1/2/1.9 set protocols ospf area 0.0.0.0 interface ge-1/2/2.13 set protocols ldp interface ge-1/2/0.6 set protocols ldp interface ge-1/2/1.9 set protocols ldp interface ge-1/2/2.13 set protocols ldp p2mp set routing-options router-id 172.16.1.3
デバイスR4
set interfaces ge-1/2/0 unit 10 family inet address 10.1.1.10/30 set interfaces ge-1/2/0 unit 10 family mpls set interfaces ge-1/2/1 unit 17 family inet address 10.1.1.17/30 set interfaces ge-1/2/1 unit 17 family mpls set interfaces vt-1/2/0 unit 4 family inet set interfaces lo0 unit 4 family inet address 172.16.1.4/32 set interfaces lo0 unit 104 family inet address 172.16.100.1/32 set protocols rsvp interface all aggregate set protocols mpls interface all set protocols mpls interface ge-1/2/0.10 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 172.16.1.4 set protocols bgp group ibgp family inet-vpn unicast set protocols bgp group ibgp family inet-vpn any set protocols bgp group ibgp family inet-mvpn signaling damping set protocols bgp group ibgp neighbor 172.16.1.2 import dampPolicy set protocols bgp group ibgp neighbor 172.16.1.5 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface all set protocols ospf area 0.0.0.0 interface lo0.4 passive set protocols ospf area 0.0.0.0 interface ge-1/2/0.10 set protocols ldp interface ge-1/2/0.10 set protocols ldp p2mp set policy-options policy-statement dampPolicy term term1 from family inet-mvpn set policy-options policy-statement dampPolicy term term1 from nlri-route-type 3 set policy-options policy-statement dampPolicy term term1 from nlri-route-type 4 set policy-options policy-statement dampPolicy term term1 from nlri-route-type 5 set policy-options policy-statement dampPolicy term term1 then accept set policy-options policy-statement dampPolicy then damping no-damp set policy-options policy-statement dampPolicy then accept set policy-options policy-statement parent_vpn_routes from protocol bgp set policy-options policy-statement parent_vpn_routes then accept set policy-options damping no-damp disable set routing-instances vpn-1 instance-type vrf set routing-instances vpn-1 interface vt-1/2/0.4 set routing-instances vpn-1 interface ge-1/2/1.17 set routing-instances vpn-1 interface lo0.104 set routing-instances vpn-1 route-distinguisher 100:100 set routing-instances vpn-1 vrf-target target:1:1 set routing-instances vpn-1 protocols ospf export parent_vpn_routes set routing-instances vpn-1 protocols ospf area 0.0.0.0 interface lo0.104 passive set routing-instances vpn-1 protocols ospf area 0.0.0.0 interface ge-1/2/1.17 set routing-instances vpn-1 protocols pim rp static address 172.16.100.1 set routing-instances vpn-1 protocols pim interface ge-1/2/1.17 mode sparse set routing-instances vpn-1 protocols mvpn set routing-options router-id 172.16.1.4 set routing-options autonomous-system 64501
デバイスR5
set interfaces ge-1/2/0 unit 14 family inet address 10.1.1.14/30 set interfaces ge-1/2/0 unit 14 family mpls set interfaces ge-1/2/1 unit 21 family inet address 10.1.1.21/30 set interfaces ge-1/2/1 unit 21 family mpls set interfaces vt-1/2/0 unit 5 family inet set interfaces lo0 unit 5 family inet address 172.16.1.5/32 set interfaces lo0 unit 105 family inet address 172.16.100.5/32 set protocols mpls interface ge-1/2/0.14 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 172.16.1.5 set protocols bgp group ibgp family inet-vpn any set protocols bgp group ibgp family inet-mvpn signaling set protocols bgp group ibgp neighbor 172.16.1.2 set protocols bgp group ibgp neighbor 172.16.1.4 set protocols ospf area 0.0.0.0 interface lo0.5 passive set protocols ospf area 0.0.0.0 interface ge-1/2/0.14 set protocols ldp interface ge-1/2/0.14 set protocols ldp p2mp set policy-options policy-statement parent_vpn_routes from protocol bgp set policy-options policy-statement parent_vpn_routes then accept set routing-instances vpn-1 instance-type vrf set routing-instances vpn-1 interface vt-1/2/0.5 set routing-instances vpn-1 interface ge-1/2/1.21 set routing-instances vpn-1 interface lo0.105 set routing-instances vpn-1 route-distinguisher 100:100 set routing-instances vpn-1 vrf-target target:1:1 set routing-instances vpn-1 protocols ospf export parent_vpn_routes set routing-instances vpn-1 protocols ospf area 0.0.0.0 interface lo0.105 passive set routing-instances vpn-1 protocols ospf area 0.0.0.0 interface ge-1/2/1.21 set routing-instances vpn-1 protocols pim rp static address 172.16.100.2 set routing-instances vpn-1 protocols pim interface ge-1/2/1.21 mode sparse set routing-instances vpn-1 protocols mvpn set routing-options router-id 172.16.1.5 set routing-options autonomous-system 1001
デバイスR6
set interfaces ge-1/2/0 unit 18 family inet address 10.1.1.18/30 set interfaces ge-1/2/0 unit 18 family mpls set interfaces lo0 unit 6 family inet address 172.16.1.6/32 set protocols sap listen 233.1.1.1 set protocols ospf area 0.0.0.0 interface lo0.6 passive set protocols ospf area 0.0.0.0 interface ge-1/2/0.18 set protocols pim rp static address 172.16.100.2 set protocols pim interface all set routing-options router-id 172.16.1.6
デバイスR7
set interfaces ge-1/2/0 unit 22 family inet address 10.1.1.22/30 set interfaces ge-1/2/0 unit 22 family mpls set interfaces lo0 unit 7 family inet address 172.16.1.7/32 set protocols ospf area 0.0.0.0 interface lo0.7 passive set protocols ospf area 0.0.0.0 interface ge-1/2/0.22 set protocols pim rp static address 172.16.100.2 set protocols pim interface all set routing-options router-id 172.16.1.7
デバイスR4の設定
ステップバイステップの手順
次の例では、設定階層のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、『Junos OS CLIユーザーガイド』の「設定モードでのCLIエディターの使用」を参照してください。
デバイスR4を設定するには:
インターフェイスを設定します。
[edit interfaces] user@R4# set ge-1/2/0 unit 10 family inet address 10.1.1.10/30 user@R4# set ge-1/2/0 unit 10 family mpls user@R4# set ge-1/2/1 unit 17 family inet address 10.1.1.17/30 user@R4# set ge-1/2/1 unit 17 family mpls user@R4# set vt-1/2/0 unit 4 family inet user@R4# set lo0 unit 4 family inet address 172.16.1.4/32 user@R4# set lo0 unit 104 family inet address 172.16.100.4/32
インターフェイスで MPLS とシグナリング プロトコルを設定します。
[edit protocols] user@R4# set mpls interface all user@R4# set mpls interface ge-1/2/0.10 user@R4# set rsvp interface all aggregate user@R4# set ldp interface ge-1/2/0.10 user@R4# set ldp p2mp
BGPを設定します。
BGP設定により、
inet-mvpnアドレスファミリー BGPルートフラップダンピングを有効にします。また、BGP設定は、dampPolicyと呼ばれるルーティングポリシーをルーティングテーブルにインポートします。このポリシーは、ネイバーPEデバイスR2に適用されます。[edit protocols bgp group ibgp] user@R4# set type internal user@R4# set local-address 172.16.1.4 user@R4# set family inet-vpn unicast user@R4# set family inet-vpn any user@R4# set family inet-mvpn signaling damping user@R4# set neighbor 172.16.1.2 import dampPolicy user@R4# set neighbor 172.16.1.5
内部ゲートウェイプロトコルを設定します。
[edit protocols ospf] user@R4# set traffic-engineering [edit protocols ospf area 0.0.0.0] user@R4# set interface all user@R4# set interface lo0.4 passive user@R4# set interface ge-1/2/0.10
nlri-route-type一致条件を使用して、MVPN ルート タイプ 3、4、5 のみを減衰させるダンピング ポリシーを設定します。[edit policy-options policy-statement dampPolicy term term1] user@R4# set from family inet-mvpn user@R4# set from nlri-route-type 3 user@R4# set from nlri-route-type 4 user@R4# set from nlri-route-type 5 user@R4# set then accept
dampingポリシーを設定して、ルートフラップダンピングBGP無効にします。no-dampポリシー(damping no-damp disable)は、ルーティングテーブルに存在するすべてのダンピング状態を削除します。then damping no-dampステートメントは、no-dampポリシーをアクションとして適用し、from一致条件はありません。そのため、term1に一致しないすべてのルートがこの項に一致し、その結果、他のすべてのMVPNルートタイプは減衰しません。[edit policy-options policy-statement dampPolicy] user@R4# set then damping no-damp user@R4# set then accept [edit policy-options] user@R4# set damping no-damp disable
inet-mvpnアドレスファミリー以外の他のすべてのBGPルートを受け入れるようにparent_vpn_routesを設定します。このポリシーは、ルーティングインスタンスにOSPFエクスポートポリシーとして適用されます。
[edit policy-options policy-statement parent_vpn_routes] user@R4# set from protocol bgp user@R4# set then accept
VPNルーティングおよび転送(VRF)インスタンスを設定します。
[edit routing-instances vpn-1] user@R4# set instance-type vrf user@R4# set interface vt-1/2/0.4 user@R4# set interface ge-1/2/1.17 user@R4# set interface lo0.104 user@R4# set route-distinguisher 100:100 user@R4# set vrf-target target:1:1 user@R4# set protocols ospf export parent_vpn_routes user@R4# set protocols ospf area 0.0.0.0 interface lo0.104 passive user@R4# set protocols ospf area 0.0.0.0 interface ge-1/2/1.17 user@R4# set protocols pim rp static address 172.16.100.2 user@R4# set protocols pim interface ge-1/2/1.17 mode sparse user@R4# set protocols mvpn
ルーターIDと自律システム(AS)番号を設定します。
[edit routing-options] user@R4# set router-id 172.16.1.4 user@R4# set autonomous-system 1001
デバイスの設定が完了したら、設定をコミットします。
user@R4# commit
結果
設定モードから、 show interfaces、 show protocols、 show policy-options、 show routing-instances、 show routing-options コマンドを入力して設定を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@R4# show interfaces
ge-1/2/0 {
unit 10 {
family inet {
address 10.1.1.10/30;
}
family mpls;
}
}
ge-1/2/1 {
unit 17 {
family inet {
address 10.1.1.17/30;
}
family mpls;
}
}
vt-1/2/0 {
unit 4 {
family inet;
}
}
lo0 {
unit 4 {
family inet {
address 172.16.1.4/32;
}
}
unit 104 {
family inet {
address 172.16.100.4/32;
}
}
}
user@R4# show protocols
rsvp {
interface all {
aggregate;
}
}
mpls {
interface all;
interface ge-1/2/0.10;
}
bgp {
group ibgp {
type internal;
local-address 172.16.1.4;
family inet-vpn {
unicast;
any;
}
family inet-mvpn {
signaling {
damping;
}
}
neighbor 172.16.1.2 {
import dampPolicy;
}
neighbor 172.16.1.5;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface all;
interface lo0.4 {
passive;
}
interface ge-1/2/0.10;
}
}
ldp {
interface ge-1/2/0.10;
p2mp;
}
user@R4# show policy-options
policy-statement dampPolicy {
term term1 {
from {
family inet-mvpn;
nlri-route-type [ 3 4 5 ];
}
then accept;
}
then {
damping no-damp;
accept;
}
}
policy-statement parent_vpn_routes {
from protocol bgp;
then accept;
}
damping no-damp {
disable;
}
user@R4# show routing-instances
vpn-1 {
instance-type vrf;
interface vt-1/2/0.4;
interface ge-1/2/1.17;
interface lo0.104;
route-distinguisher 100:100;
vrf-target target:1:1;
protocols {
ospf {
export parent_vpn_routes;
area 0.0.0.0 {
interface lo0.104 {
passive;
}
interface ge-1/2/1.17;
}
}
pim {
rp {
static {
address 172.16.100.2;
}
}
interface ge-1/2/1.17 {
mode sparse;
}
}
mvpn;
}
}
user@R4# show routing-optons router-id 172.16.1.4; autonomous-system 1001;
検証
設定が正常に機能していることを確認します。
ルート フラップ ダンピングが無効になっていることの検証
目的
3、4、5以外のMVPNルートタイプのダンピングを無効にする no-damp ポリシーの存在を確認します。
アクション
動作モードから、 show policy damping コマンドを入力します。
user@R4> show policy damping
Default damping information:
Halflife: 15 minutes
Reuse merit: 750 Suppress/cutoff merit: 3000
Maximum suppress time: 60 minutes
Computed values:
Merit ceiling: 12110
Maximum decay: 6193
Damping information for "no-damp":
Damping disabled
意味
出力は、デフォルトのダンピングパラメーターが有効であり、指定されたルートタイプに対して no-damp ポリシーも有効であることを示しています。
ルート フラップ ダンピングの検証
目的
BGPルートが減衰しているかどうかを確認します。
アクション
動作モードから、 show bgp summary コマンドを入力します。
user@R4> show bgp summary
Groups: 1 Peers: 2 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
bgp.l3vpn.0
6 6 0 0 0 0
bgp.l3vpn.2
0 0 0 0 0 0
bgp.mvpn.0
2 2 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
172.16.1.2 1001 3159 3155 0 0 23:43:47 Establ
bgp.l3vpn.0: 3/3/3/0
bgp.l3vpn.2: 0/0/0/0
bgp.mvpn.0: 1/1/1/0
vpn-1.inet.0: 3/3/3/0
vpn-1.mvpn.0: 1/1/1/0
172.16.1.5 1001 3157 3154 0 0 23:43:40 Establ
bgp.l3vpn.0: 3/3/3/0
bgp.l3vpn.2: 0/0/0/0
bgp.mvpn.0: 1/1/1/0
vpn-1.inet.0: 3/3/3/0
vpn-1.mvpn.0: 1/1/1/0
意味
Damp Stateフィールドは、bgp.mvpn.0ルーティングテーブル内のゼロルートが減衰したことを示しています。さらに下にある「状態」フィールドの最後の数字は、BGPピア 172.16.1.2で減衰されたルートがゼロであることを示しています。
ルートフラップを防ぐためのBGP静的ルートの理解
BGPスタティックルートは、プレフィックスがフラップしないように設定することができます。BGPスタティックルートは、手動で削除しない限りフラップしません。BGPスタティックルートがグローバルに設定されている場合、各ネイバー、グループ、またはすべてのネイバーがそれらを受信するように明示的に設定する必要があります。ピアルーターは、アドバタイズルーターがそれらのプレフィックスに対して学習した動的ルーティング情報に関係なく、これらのルーターのアドバタイズを受信します。アクティブなルートであるにもかかわらず、BGPスタティックルートが設定されていないBGPネイバーにアドバタイズされることはありません。設定で任意の数のBGPスタティックルートを指定できます。また、どの BGP 静的ルートをアドバタイズして BGP アドバタイズに含める必要があるかを指定するポリシーを定義することもできます。
BGPスタティックルートは、ルーティングテーブルに配置されます。BGPスタティックルートがアクティブなルートである場合(そのプレフィックスに他にルートがない場合)、転送テーブルに配置されます。これらのルートは、それらを受信するように設定された BGP ホストにのみアドバタイズされます。設定されたBGPスタティックルートは、BGP以外のプロトコルによってアドバタイズされません。シングルホーム顧客が1人以上のサービスプロバイダは、BGPネットワーク上にBGP静的ルートを設定して、これらの顧客に静的パスをアドバタイズすることができます。
ネイバーレベルでBGP静的ルートのアドバタイズを設定すると、内部グループが分割されます。BGPスタティックルートのアドバタイズメントは、グローバルレベルとグループレベルでのみ設定して、設定をシンプルにします。設定されたBGPスタティックルートは、アドバタイズされるVPNルートには影響しません。
BGPスタティックルートがネイバーにアドバタイズされる場合、それがプレフィックスに対してアドバタイズされる唯一のルートです。BGPスタティックルートは、BGPマルチパスまたはプロトコル非依存型マルチパスの候補ルートとは見なされません。これにより、集約されたルートや生成されたルートがルーティングテーブルに追加されることはありません。
複数のパスからアクセス可能で、すべてのパスへの唯一のアクセスポイントではないネットワークにBGPスタティックルートを設定すると、トラフィックがサイレントにドロップまたは破棄される可能性があります。マルチホームネットワークでは、BGPスタティックルートは、他のパスへの唯一のアクセスポイントであるデバイスに設定できます。デフォルトでは、内部ピアにアドバタイズされるすべてのBGP静的ルートには、マルチホームネットワークのヌルルートのリスクを軽減するために0のlocal-pref値が含まれます。BGPスタティックルートに明示的なpreference2値を設定することで、このデフォルト値を上書きできます。
関連項目
ルートフラップを防ぐためのBGP静的ルートの設定
BGPスタティックルートは、カスタマーネットワークへのルートがフラップしないように設定されています。設定されたBGPスタティックルートは、BGP以外のプロトコルによってアドバタイズされません。BGPスタティックルートはグローバルに設定されますが、各ネイバー、グループ、またはすべてのネイバーがルートを受信するように明示的に設定する必要があります。ピアルーターは、アドバタイズルーターがそれらのプレフィックスに対して学習した動的ルーティング情報に関係なく、これらのルーターのアドバタイズを受信します。設定で任意の数のBGPスタティックルートを指定できます。また、どのBGPスタティックルートをアドバタイズする必要があるかを指定するポリシーを定義することもできます。
BGPスタティックルートを設定する前に:
IGPおよびBGPプロトコルが設定され、機能していることを確認します。
設定したBGP静的ルートがカスタマールーターの背後にあることを確認します。
BGPがBGPネイバーに到達するために使用するプレフィックスには、BGPスタティックルートを使用しないでください。
BGPスタティックルートを設定するには:
関連項目
例:ルートフラップを防止するためのBGP静的ルートの設定
この例では、BGPスタティックルートを設定する方法を示します。BGPホストは、これらのBGP静的ルートを受信するように設定されたネイバーにのみアドバタイズします。BGPスタティックルートは、プレフィックスがフラップしないように設定されています。ただし、BGPスタティックルートがグローバルに設定されている場合、各ネイバー、グループ、またはすべてのネイバーがそれらを受信するように明示的に設定する必要があります。
要件
この例では、以下のハードウェアおよびソフトウェアコンポーネントを使用しています。
-
接続されたインターフェイスでBGPを有効にした7つのMXシリーズルーター
-
すべてのデバイスで実行されている Junos OS リリース 14.2 以降
概要
Junos OSリリース14.2以降、BGPネットワークでBGPスタティックルートを設定およびアドバタイズできます。BGPスタティックルートは、プレフィックスのアクティブなルートでなくても、BGPネットワーク内でアドバタイズできます。BGPスタティックルートは、手動で削除しない限りフラップしません。どのBGPスタティックルートをアドバタイズしてアドバタイズに含める必要があるかを決定するポリシーを定義できます。ピアルーターは、アドバタイズルーターによって学習された動的ルーティング情報に関係なく、これらのBGPスタティックルートのアドバタイズを受信します。
サンプルの BGP ネットワークでは、デバイス CE1、CE2、および CE3 がルーター PE1、PE2、および PE3 に直接接続されています。PE1とPE2の両方がルーターPに接続されており、ルーターPはルーターPE3に直接接続されています。EBGPは、プロバイダエッジとカスタマーエッジのルーターで設定します。IBGPは、直接接続されたプロバイダエッジルーターで設定されます。IGPプロトコルIS-ISは、すべてのプロバイダルーターで設定されています。ルーターPE1でBGPスタティックルートを設定し、CE1の背後にあるカスタマールート10.0.0.28がフラップしないようにします。プロバイダルーターPE2は、BGP静的ルートを受信するように設定されています。目的は、BGPスタティックルートをCE3には広告せず、CE2にのみアドバタイズし、設定されたBGPスタティックルートがフラップしないことを実証することです。
設定
CLIクイックコンフィグレーション
この例をすばやく設定するには、以下のコマンドをコピーしてテキストファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを [edit] 階層レベルでCLIにコピーアンドペーストして、設定モードから commit を入力します。
ルーターP
set interfaces ge-1/0/0 unit 2 description P->PE1 set interfaces ge-1/0/0 unit 2 family inet address 10.0.0.2/29 set interfaces ge-1/0/0 unit 2 family iso set interfaces ge-1/0/1 unit 5 description P->PE2 set interfaces ge-1/0/1 unit 5 family inet address 10.0.0.5/29 set interfaces ge-1/0/1 unit 5 family iso set interfaces ge-1/1/2 unit 3 description P->PE3 set interfaces ge-1/1/2 unit 3 family inet address 10.0.0.3/29 set interfaces ge-1/1/2 unit 3 family iso set interfaces lo0 unit 0 family inet address 10.255.102.146/32 primary set interfaces lo0 unit 0 family iso address 49.0001.1720.1600.1050.00 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.102.146 set protocols bgp group ibgp neighbor 10.255.102.128 description PE1 set protocols bgp group ibgp neighbor 10.255.102.178 description PE2 set protocols bgp group ibgp neighbor 10.255.102.156 description PE3 set protocols isis interface ge-1/0/0.2 set protocols isis interface ge-1/0/1.5 set protocols isis interface ge-1/1/2.3 set protocols isis interface lo0.0 passive set routing-options router-id 10.255.102.146 set routing-options autonomous-system 64496
ルーターPE1
set interfaces ge-1/0/0 unit 1 description PE1->P
set interfaces ge-1/0/0 unit 1 family inet address 10.0.0.1/29
set interfaces ge-1/0/0 unit 1 family iso
set interfaces ge-1/1/0 unit 10 description PE1->CE1
set interfaces ge-1/1/0 unit 10 family inet address 10.0.0.10/30
set interfaces lo0 unit 0 family inet address 10.255.102.128/32
set interfaces lo0 unit 0 family iso address 49.0001.1720.1600.1010.00
set protocols bgp group ebgp type external
set protocols bgp group ebgp peer-as 64497
set protocols bgp group ebgp neighbor 10.0.0.9 description CE1
set protocols bgp group ebgp neighbor 10.0.0.9 local-address 10.0.0.10
set protocols bgp group ibgp type internal
set protocols bgp group ibgp local-address 10.255.102.128
set protocols bgp group ibgp export export-self
set protocols bgp group ibgp neighbor 10.255.102.146 description P
set protocols bgp group ibgp neighbor 10.255.102.178 description PE2
set protocols bgp group ibgp neighbor 10.255.102.178 advertise-bgp-static
set protocols bgp group ibgp neighbor 10.255.102.156 description PE3
set protocols isis interface ge-1/0/0.1
set protocols isis interface lo0.0 passive
set policy-options policy-statement export-self then next-hop self
set routing-options bgp-static route 10.0.0.28/32 preference2 4294967195
set routing-options bgp-static route 10.0.0.28/32 as-path path 64497
set routing-options router-id 10.255.102.128
set routing-options autonomous-system 64496
ルーターPE2
set interfaces ge-1/0/1 unit 6 description PE2->P
set interfaces ge-1/0/1 unit 6 family inet address 10.0.0.6/29
set interfaces ge-1/0/1 unit 6 family iso
set interfaces ge-1/1/2 unit 14 description PE2->CE2
set interfaces ge-1/1/2 unit 14 family inet address 10.0.0.14/30
set interfaces lo0 unit 0 family inet address 10.255.102.178/32
set interfaces lo0 unit 0 family iso address 49.0001.1720.1600.1030.00
set protocols bgp group ebgp type external
set protocols bgp group ebgp peer-as 64498
set protocols bgp group ebgp neighbor 10.0.0.13 description CE2
set protocols bgp group ebgp neighbor 10.0.0.13 local-address 10.0.0.14
set protocols bgp group ibgp type internal
set protocols bgp group ibgp local-address 10.255.102.178
set protocols bgp group ibgp export export-self
set protocols bgp group ibgp neighbor 10.255.102.146 description P
set protocols bgp group ibgp neighbor 10.255.102.128 description PE1
set protocols bgp group ibgp neighbor 10.255.102.156 description PE3
set protocols isis interface ge-1/0/1.6
set protocols isis interface lo0.0 passive
set policy-options policy-statement export-self then next-hop self
set routing-options router-id 10.255.102.178
set routing-options autonomous-system 64496
ルーターPE3
set interfaces ge-2/0/1 unit 4 description PE3->P set interfaces ge-2/0/1 unit 4 family inet address 10.0.0.4/29 set interfaces ge-2/0/5 unit 18 description PE3->CE3 set interfaces ge-2/0/5 unit 18 family inet address 10.0.0.18/30 set interfaces lo0 unit 0 family inet address 10.255.102.156/32 set interfaces lo0 unit 0 family iso address 49.0001.1720.1600.1070.00 set protocols bgp group ebgp type external set protocols bgp group ebgp peer-as 64499 set protocols bgp group ebgp neighbor 10.0.0.17 description CE3 set protocols bgp group ebgp neighbor 10.0.0.17 local-address 10.0.0.18 set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 10.255.102.156 set protocols bgp group ibgp export export-self set protocols bgp group ibgp neighbor 10.255.102.146 description P set protocols bgp group ibgp neighbor 10.255.102.128 description PE1 set protocols bgp group ibgp neighbor 10.255.102.178 description PE2 set protocols isis interface ge-2/0/1.4 set protocols isis interface lo0.0 passive set policy-options policy-statement export-self then next-hop self set routing-options router-id 10.255.102.156 set routing-options autonomous-system 64496
ルーターCE1
set interfaces ge-2/0/8 unit 9 description CE1->PE1 set interfaces ge-2/0/8 unit 9 family inet address 10.0.0.9/30 set interfaces lo0 unit 0 family inet address 127.255.102.166/32 set interfaces lo0 unit 0 family inet address 10.0.0.28/32 set protocols bgp group ebgp type external set protocols bgp group ebgp export export-direct set protocols bgp group ebgp peer-as 64496 set protocols bgp group ebgp neighbor 10.0.0.10 description PE1 set protocols bgp group ebgp neighbor 10.0.0.10 local-address 10.0.0.9 set policy-options policy-statement export-direct from protocol direct route-filter 10.0.0.0/29 or longer set policy-options policy-statement export-direct then accept set routing-options autonomous-system 64497
ルーターCE2
set interfaces ge-2/0/0 unit 13 description CE2->PE2 set interfaces ge-2/0/0 unit 13 family inet address 10.0.0.13/30 set interfaces lo0 unit 0 family inet address 127.255.102.176/32 set protocols bgp group ebgp type external set protocols bgp export export-direct set protocols bgp group ebgp peer-as 64496 set protocols bgp group ebgp neighbor 10.0.0.14 description PE2 set protocols bgp group ebgp neighbor 10.0.0.14 local-address 10.0.0.13 set policy-options policy-statement export-direct from protocol direct route-filter 10.0.0.0/29 or longer set policy-options policy-statement export-direct then accept set routing-options router-id 127.255.102.176 set routing-options autonomous-system 64498
ルーターCE3
set interfaces ge-2/0/5 unit 17 description CE3->PE3 set interfaces ge-2/0/5 unit 17 family inet address 10.0.0.17/30 set interfaces lo0 unit 0 family inet address 127.255.102.186/32 set protocols bgp group ebgp type external set protocols bgp export export-direct set protocols bgp group ebgp peer-as 64496 set protocols bgp group ebgp neighbor 10.0.0.18 description PE3 set protocols bgp group ebgp neighbor 10.0.0.18 local-address 10.0.0.17 set policy-options policy-statement export-direct from protocol direct route-filter 10.0.0.0/29 or longer set policy-options policy-statement export-direct then accept set routing-options router-id 127.255.102.186 set routing-options autonomous-system 64499
手順
ステップバイステップの手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLIのナビゲーションについては、『CLIユーザーガイド』の「設定モードでのCLIエディターの使用」を参照してください。
ルーターPE1を設定するには:
-
インターフェイスにIPv4アドレスを設定します。
[edit interfaces] user@PE1# set ge-1/0/0 unit 1 description PE1->P user@PE1# set ge-1/0/0 unit 1 family inet address 10.0.0.1/29 user@PE1# set ge-1/1/0 unit 10 description PE1->CE1 user@PE1# set ge-1/1/0 unit 10 family inet address 10.0.0.10/30
-
学習したルートを学習および交換するために、プロバイダルーターに接続されたインターフェイスでIS-ISプロトコルを有効にします。
[edit interfaces] user@PE1# set ge-1/0/0 unit 1 family iso
-
inet と IS-IS のループバックアドレスを設定します。
[edit interfaces lo0 unit 0] user@PE1# set family inet address 10.255.102.128/32 user@PE1# set family iso address 49.0001.1720.1600.1010.00
-
IS-ISインターフェイスを設定します。
[edit protocols isis] user@PE1# set interface ge-1/0/0.1 user@PE1# set interface lo0.0 passive
-
EBGPを設定します。
[edit protocols bgp group ebgp] user@PE1# set type external user@PE1# set peer-as 64497 user@PE1# set neighbor 10.0.0.9 description CE1 user@PE1# set neighbor 10.0.0.9 local-address 10.0.0.10
-
プロバイダネットワークに接続された内部ルーターでIBGPネイバーを設定します。
[edit protocols bgp group ibgp] user@PE1# set type internal user@PE1# set local-address 10.255.102.128 user@PE1# set export export-self user@PE1# set neighbor 10.255.102.146 description P user@PE1# set neighbor 10.255.102.178 description PE2 user@PE1# set neighbor 10.255.102.156 description PE3
-
BGPスタティックルートを設定します。
[edit routing-options] user@PE1# set bgp-static route 10.0.0.28/32 preference2 4294967195 user@PE1# set bgp-static route 10.0.0.28/32 as-path path 64497
-
BGPスタティックアドバタイズメントを受信するように、BGPネイバーPE2を設定します。
[edit protocols bgp group ibgp neighbor 10.255.102.178] user@PE1# set advertise-bgp-static
-
BGPネットワークにルートをエクスポートするポリシーを定義します。
[edit policy-options policy-statement export-self] user@PE1# set then next-hop self
-
IBGPグループにポリシーを適用します。
[edit protocols bgp group ibgp] user@PE1# set export export-self
-
ルーターIDと自律システム(AS)番号を設定します。
[edit routing-options] user@PE1# set router-id 10.255.102.128 user@PE1# set autonomous-system 64496
結果
設定モードから、 show interfaces、 show policy-options、 show protocols、および show routing-options コマンドを入力して設定を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
[edit]
user@PE1> show interfaces
ge-1/0/0 {
unit 1 {
description PE1->P;
family inet {
address 10.0.0.1/29;
}
family iso;
}
ge-1/1/0 {
unit 10 {
description PE1->CE1;
family inet {
address 10.0.0.10/30;
}
}
}
}
lo0 {
unit 0{
family inet {
address 10.255.102.128/32;
}
family iso {
address 49.0001.1720.1600.1010.00;
}
}
}
[edit]
user@PE1> show protocols
bgp {
group ebgp {
type external;
peer-as 64497;
neighbor 10.0.0.9 {
description CE1;
local-address 10.0.0.10;
}
}
group ibgp {
type internal;
local-address 10.255.102.128;
export export-self;
neighbor 10.255.102.146 {
description P;
}
neighbor 10.255.102.178 {
description PE2;
advertise-bgp-static;
}
neighbor 10.255.102.156 {
description PE3;
}
}
}
isis {
interface ge-1/0/0.1;
interface lo0.0 {
passive;
}
}
[edit]
user@PE1> show routing-options
bgp-static {
route 10.0.0.28/32 {
preference2 4294967195;
as-path {
path 64497;
}
}
}
router-id 10.255.102.128;
autonomous-system 64496;
[edit]
user@PE1> show policy-options
policy-statement export-self {
then {
next-hop self;
}
}
デバイスの設定が完了したら、設定モードから commit を入力します。
[edit] user@PE1# commit
検証
設定が正常に機能していることを確認します。
BGPネイバーの検証
目的
設定されたインターフェイスで BGP が動作していること、および各ネイバーアドレスで BGP セッションがアクティブであることを確認します。
アクション
運用モードから、ルーターPE1で show bgp neighbor コマンドを実行します。
user@PE1> show bgp neighbor
Peer: 10.0.0.9+34260 AS 64497 Local: 10.0.0.10+45824 AS 64496
Description: CE1
Type: External State: Established Flags: <sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: Cease
Options: <Preference LocalAddress PeerAS Refresh>
LocalAddress: 10.0.0.10 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 127.255.102.166 Local ID: 10.255.102.128 Active Holdtime: 90
Keepalive Interval: 30 Group index: 0 Peer index: 0
BFD: disabled, down
Local Interface: ge-1/1/0.0
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Stale routes from peer are kept for: 300
Peer does not support Restarter functionality
NLRI that restart is negotiated for: inet-unicast
NLRI of received end-of-rib markers: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Peer supports 4 byte AS extension (peer-as 64497)
Peer does not support Addpath
Table inet.0 Bit: 10000
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Accepted prefixes: 1
Suppressed due to damping: 0
Advertised prefixes: 2
Last traffic (seconds): Received 14 Sent 13 Checked 4
Input messages: Total 249 Updates 2 Refreshes 0 Octets 4764
Output messages: Total 250 Updates 2 Refreshes 0 Octets 4883
Peer: 10.255.102.146+179 AS 64496 Local: 10.255.102.128+53460 AS 64496
Description: P
Type: Internal State: Established Flags: <Sync>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Export: [ export-self ]
Options: <Preference LocalAddress Refresh>
Local Address: 10.255.102.128 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 10.255.102.146 Local ID: 10.255.102.128 Active Holdtime: 90
Keepalive Interval: 30 Group index: 0 Peer index: 0
BFD: disabled, down
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Stale routes from peer are kept for: 300
Peer does not support Restarter functionality
Restart flag received from the peer: Notification
NLRI that restart is negotiated for: inet-unicast
NLRI of received end-of-rib markers: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Peer does not support LLGR Restarter functionality
Peer supports 4 byte AS extension (peer-as 64496)
Peer does not support Addpath
Table inet.0 Bit: 10001
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 0
Received prefixes: 0
Accepted prefixes: 0
Suppressed due to damping: 0
Advertised prefixes: 1
Last traffic (seconds): Received 12 Sent 1 Checked 63
Input messages: Total 246 Updates 1 Refreshes 0 Octets 4678
Output messages: Total 249 Updates 1 Refreshes 0 Octets 4834
Output Queue[0]: 0 (inet.0, inet-unicast)
Peer: 10.255.102.178+53463 AS 64496 Local: 10.255.102.128+179 AS 64496
Description: PE2 Type: Internal State: Established Flags: <Synch>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Export: [ export-self ]
Options: <Preference LocalAddress Refresh>
Options: <AdvertiseBGPStatic>
Local Address: 10.255.102.128 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 10.255.102.178 Local ID: 10.255.102.128 Active Holdtime: 90
Keepalive Interval: 30 Group index: 1 Peer index: 0
BFD: disabled, down
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Stale routes from peer are kept for: 300
Peer does not support Restarter functionality
Restart flag received from the peer: Notification
NLRI that restart is negotiated for: inet-unicast
NLRI of received end-of-rib markers: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Peer does not support LLGR Restarter functionality
Peer supports 4 byte AS extension (peer-as 64496)
Peer does not support Addpath
Table inet.0 Bit: 10002
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Accepted prefixes: 1
Suppressed due to damping: 0
Advertised prefixes: 1
Last traffic (seconds): Received 9 Sent 10 Checked 22
Input messages: Total 247 Updates 2 Refreshes 0 Octets 4777
Output messages: Total 248 Updates 1 Refreshes 0 Octets 4815
Output Queue[0]: 0 (inet.0, inet-unicast)
Peer: 10.255.102.156+179 AS 64496 Local: 10.255.102.128+53462 AS 64496
Description: PE3
Type: Internal State: Established Flags: <Synch>
Last State: OpenConfirm Last Event: RecvKeepAlive
Last Error: None
Export: [ export-self ]
Options: <Preference LocalAddress Refresh>
Local Address: 10.255.255.11 Holdtime: 90 Preference: 170
Number of flaps: 0
Peer ID: 10.255.102.156 Local ID: 10.255.102.128 Active Holdtime: 90
Keepalive Interval: 30 Group index: 0 Peer index: 1
BFD: disabled, down
NLRI for restart configured on peer: inet-unicast
NLRI advertised by peer: inet-unicast
NLRI for this session: inet-unicast
Peer supports Refresh capability (2)
Stale routes from peer are kept for: 300
Peer does not support Restarter functionality
Restart flag received from the peer: Notification
NLRI that restart is negotiated for: inet-unicast
NLRI of received end-of-rib markers: inet-unicast
NLRI of all end-of-rib markers sent: inet-unicast
Peer does not support LLGR Restarter functionality
Peer supports 4 byte AS extension (peer-as 64496)
Peer does not support Addpath
Table inet.0 Bit: 10001
RIB State: BGP restart is complete
Send state: in sync
Active prefixes: 1
Received prefixes: 1
Accepted prefixes: 1
Suppressed due to damping: 0
Advertised prefixes: 1
Last traffic (seconds): Received 21 Sent 10 Checked 10
Input messages: Total 245 Updates 2 Refreshes 0 Octets 4695
Output messages: Total 247 Updates 1 Refreshes 0 Octets 4796
Output Queue[0]: 0 (inet.0, inet-unicast)
意味
出力には、ルーターPE1のBGPネイバーと、ネイバーがBGPスタティックルートを受信するように設定されているかどうかなど、設定されたBGPオプションが表示されます。ルーターPE2は、BGPスタティックルートアドバタイズメントを受信するように設定されています。
BGPグループの検証
目的
目的の BGP グループまたはネイバーが BGP 静的ルートを受信するように設定されていることを確認します。
アクション
動作モードから、 show bgp group コマンドを実行します。
user@PE1> show bgp group Group Type: External Local AS: 64496 Name: ebgp Index: 3 Flags: <Export Eval> Holdtime: 0 Local AS: 64496 Local System AS: 64496 Total peers: 1 Established: 1 10.0.0.9+179 inet.0: 0/1/1/0 Group Type: Internal AS: 64496 Local AS: 64496 Name: ibgp Index: 0 Flags: <Export Eval> Export: [ export-self ] Options: <AdvertiseBGPStatic> Holdtime: 0 Total peers: 1 Established: 1 10.255.102.178+179 inet.0: 0/0/0/0 Group Type: Internal AS: 64496 Local AS: 64496 Name: ibgp Index: 0 Flags: <Export Eval> Export: [ export-self ] Holdtime: 0 Total peers: 2 Established: 2 10.255.102.156+179 10.255.102.146+179 inet.0: 0/3/2/0 Groups: 3 Peers: 4 External: 1 Internal: 3 Down peers: 0 Flaps: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet.0 3 3 0 0 0 0
意味
出力は、BGPスタティックアドバタイズを受信するように設定されたBGPネイバーを示しています。
ルートの検証
目的
設定したBGPスタティックルートが、設定したBGPネイバーのルーティングテーブルに保存されていることを確認します。
アクション
動作モードから、 show route protocol bgp-static コマンドを実行してルーティングテーブルを表示します。
user@PE1> show route protocol bgp-static
inet.0: 13 destinations, 14 routes (13 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.28/32 *[BGP-Static/4294967292/-101] 00:43:15
Discard
iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
inet6.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)
User@PE1> show route 10.0.0.28/32
inet.0: 13 destinations, 14 routes (13 active, 1 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.28/32 *[BGP/170] 00:00:15, localpref 100
AS path: 64497 I, validation-state: unverified
> to 10.0.0.9 via ge-2/1/8.0
[BGP-Static/4294967292/-101] 02:42:51
Discard
意味
出力は、デバイスに設定された BGP スタティック ルートを示しています。アクティブなパスはCE1から学習され、BGPスタティックルートは非アクティブです。
設定されたホストが BGP 静的ルートを受信していることの確認
目的
BGP静的ルートが、それを受信するように設定されたホストにアドバタイズされていることを確認します。
アクション
デバイスCE2およびCE3で、運用モードから show route protocol bgp コマンドを実行し、学習したルートをルーティングテーブルで表示します。
user@CE2> show route protocol bgp
inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.28/32 *[BGP/170] 01:52:10, localpref 100
AS path: 64496 64497 I, validation-state: unverified
> to 10.0.0.14 via ge-2/0/0.13
1.0.0.29/32 *[BGP/170] 01:52:06, localpref 100
AS path: 64496 64499 I, validation-state: unverified
> to 10.0.0.14 via ge-2/0/0.13
iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
inet6.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
user@CE3> show route protocol bgp
inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.0.0.28/32 *[BGP/170] 01:52:19, localpref 100
AS path: 64496 64497 I, validation-state: unverified
> to 10.0.0.18 via ge-2/0/5.17
1.0.0.29/32 *[BGP/170] 01:52:15, localpref 100
AS path: 64496 64498 I, validation-state: unverified
> to 10.0.0.18 via ge-2/0/5.17
iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
inet6.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
意味
デバイスCE2とCE3の両方に10.0.0.28/32へのルートがあります。CE2はBGP静的ルートを受信し、CE3は動的に学習されたルートを受信しましたが、違いを見分けることができません。
設定したBGP静的ルートがフラップしないことを確認
目的
ルーターPE1とデバイスCE1間のBGPピアリングセッションがダウンしても、BGPスタティックルートがフラップしないことを確認します。
アクション
ルーターPE1とデバイスCE1間のBGPピアリングセッションを無効にします。PE1 は 10.0.0.28/32 への動的に学習されたルートを持っていませんが、設定された BGP 静的ルートはあります。
[edit] user@PE1# deactivate protocols bgp group ebgp user@PE1# commit
user@PE1> show route 10.0.0.28/32
inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.28/32 *[BGP-Static/4294967292/-101] 02:46:21
Discard
user@CE2> show route protocol bgp
inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.28/32 *[BGP/170] 01:52:48, localpref 100
AS path: 64496 64497 I, validation-state: unverified
> to 10.0.0.18 via ge-2/0/5.17
1.0.0.29/32 *[BGP/170] 01:52:44, localpref 100
AS path: 64496 64499 I, validation-state: unverified
> to 10.0.0.18 via ge-2/0/5.17
iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
inet6.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
user@CE3> show route protocol bgp
inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.0.29/32 *[BGP/170] 01:52:47, localpref 100
AS path: 64496 64498 I, validation-state: unverified
> to 10.0.0.18 via ge-2/0/5.17
iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
inet6.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
意味
ルーターPE1とデバイスCE2には、設定されたBGP静的ルートがまだあります。ただし、このプレフィックスがフラップされたため、デバイスCE3には10.0.0.28/32へのルートがありません。BGPスタティックルートは、手動で削除しない限りフラップしません。
変更履歴テーブル
サポートされる機能は、使用しているプラットフォームとリリースによって決まります。 機能エクスプローラー を使用して、機能がお使いのプラットフォームでサポートされているかどうかを確認します。
