このドキュメントでは、シスコルータでの Open Shortest Path First(OSPF)から Border Gateway Protocol(BGP)への再配布の動作について説明します。
このドキュメントを使用する前に、OSPFのルートタイプ、BGPの基本、およびルート再配布に関する知識があることが推奨されます。
本書の内容は、特定のソフトウェアやハードウェアのバージョンに限定されるものではありません。
注:このドキュメントの例では、Cisco IOSソフトウェアのコマンド構文を使用しています。
このドキュメントの情報は、特定のラボ環境にあるデバイスに基づいて作成されました。このドキュメントで使用するすべてのデバイスは、初期(デフォルト)設定の状態から起動しています。本稼働中のネットワークでは、各コマンドによって起こる可能性がある影響を十分確認してください。
このテクニカルノートでは、Cisco ルータにおける OSPF の BGP への再配布の動作を説明します。RFC 1403には、OSPFとBGP間の相互対話に関する履歴ガイダンスが記載されています。
OSPF ルートには次の数種類があります。
エリア内:マルチエリアOSPFネットワークでは、エリア内から発信されたルートは、同じエリア内のルータによってエリア内経路として認識されます。show ip routeコマンドの出力では、これらのルートにはOというフラグが付いています。
エリア間:ルートがOSPFエリア境界ルータ(ABR)を通過する場合、そのルートはOSPFエリア間ルートと呼ばれます。show ip route コマンドの出力では、これらのルートには O IA というフラグが付いています。
エリア内ルートとエリア間ルートは、どちらもOSPF内部ルートとも呼ばれます。これは、OSPFに再配布されるルートではなく、OSPFドメイン内で生成されたプレフィックスを表すためです。
外部タイプ2または外部タイプ1:OSPFに再配布されたルート(接続済み、スタティック、その他のルーティングプロトコルなど)は、外部タイプ2または外部タイプ1と呼ばれます。show ip route コマンドの出力では、これらのルートには O E1 または O E2 というフラグが付いています。
NSSA外部タイプ2またはNSSA外部タイプ1:エリアがNot-So-Stub Area(NSSA)として設定され、ルートがOSPFに再配布される場合、ルートはNSSA外部タイプ2またはNSSA外部タイプ1として認識されます。これらのルートは、show ip route コマンドの出力で O N2 または O N1 としてフラグが付けられます。
外部とNSSAタイプ2または1の違いについてはこのドキュメントで説明する範囲を超えていますのでここでは説明しません。詳細は『OSPFデザインガイド』を参照してください。
デフォルトでは、OSPF から BGP へのルートの再配布は行われません。再配布を設定する必要があります。route-mapコマンドを使用して、OSPFからBGPへの再配布の際にルートをフィルタリングします。ルートタイプを明示的に選択するには、該当するmatch internal、match external、またはmatch nssa-externalオプションを使用します。matchオプションを使用しない場合、redistribute ospfはデフォルトでOSPF内部ルートを再配布します。
このドキュメントでは、OSPFからBGPへの主要な5つの再配布ケースについて説明します。トポロジAは、最初の4つのケースに適用されます。トポロジBは、「OSPF NSSA外部ルートのBGPへの再配布」セクションで説明されているNSSA外部ルートのケースに適用されます。
BGP トポロジ A への OSPF の再配布
OSPF から BGP への再配布をキーワードなしで設定すると、デフォルトでは、OSPF のエリア内ルートとエリア間ルートだけが再配布されます。OSPFのエリア内ルートとエリア間ルートを再配布するには、router bgpでinternalキーワードをredistributeコマンドとともに使用します。
次のRouter B(RTB)の設定では、OSPF内部プレフィックス10.2.2.0/24、10.108.1.0/24、および10.108.2.0/24がBGPに再配布されます。
| RTB |
|---|
hostname RTB ! interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 |
次の場合、ルータ B が再配布するのは OSPF の内部ルートだけです。
RTB#show ip bgp
BGP table version is 12, local router ID is 10.3.3.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.2.2.0/24 0.0.0.0 0 32768 ? *> 10.108.1.0/24 10.2.2.2 3 32768 ? *> 10.108.2.0/24 10.2.2.2 2 32768 ?
RTB#
ルータ C はこれらのルートを BGP から学習します。
RTC#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
B 10.2.2.0/24 [20/0] via 10.3.3.1, 00:07:07
C 10.3.3.0/24 is directly connected, GigabitEthernet0/0
L 10.3.3.2/32 is directly connected, GigabitEthernet0/0
B 10.108.1.0/24 [20/3] via 10.3.3.1, 00:07:07
B 10.108.2.0/24 [20/2] via 10.3.3.1, 00:07:07
RTC#
RTC#show ip bgp
BGP table version is 8, local router ID is 10.3.3.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.2.2.0/24 10.3.3.1 0 0 100 ? *> 10.108.1.0/24 10.3.3.1 3 0 100 ? *> 10.108.2.0/24 10.3.3.1 2 0 100 ?
RTC#
OSPF外部ルートをBGPに再配布するには、router bgpの下でredistributeコマンドを使用してexternalキーワードを使用します。external キーワードを使用する場合、次の 3 つの選択肢があります。
外部タイプ 1 とタイプ 2 の両方を再配布します(デフォルト)
タイプ 1 を再配布します
タイプ 2 を再配布します
コンフィギュレーション モードで次のようにコマンドを入力します。
RTB(config)#router bgp 100 RTB(config-router)#redistribute ospf 1 match external
次のRouter Bの設定では、タイプ1とタイプ2の両方のルートを含むOSPF外部ルートのみが再配布されます。
| RTB |
|---|
hostname RTB ! interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 ! router ospf 1 network 10.2.2.0 0.0.0.255 area 1 ! router bgp 100 |
ルータ B は、OSPF 外部ルートのみを再配布します。
RTB#show ip bgp
BGP table version is 25, local router ID is 10.3.3.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 10.2.2.2 20 32768 ?
*> 192.168.2.0 10.2.2.2 23 32768 ?
RTB#
次の場合、ルータ C はこれら 2 つの OSPF の外部ルートに関して BGP から学習します。
RTC#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.3.3.0/24 is directly connected, GigabitEthernet0/0
L 10.3.3.2/32 is directly connected, GigabitEthernet0/0
B 192.168.1.0/24 [20/20] via 10.3.3.1, 00:02:16
B 192.168.2.0/24 [20/23] via 10.3.3.1, 00:02:16
RTC#show ip bgp
BGP table version is 21, local router ID is 10.3.3.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 10.3.3.1 20 0 100 ? *> 192.168.2.0 10.3.3.1 23 0 100 ?
RTC#
OSPF外部タイプ1ルートだけを再配布するには、ルータBのrouter bgp 100で次のコマンドを入力します。
RTB(config)#router bgp 100
RTB(config-router)#redistribute ospf 1 match external 1
上記の設定では、ルータB(RTB)のBGPテーブルは、ルータBが外部タイプ1ルートだけをBGPに再配布し、他のすべてのOSPFルートはBGPに再配布されないことを示しています。
RTB#show ip bgp
BGP table version is 28, local router ID is 10.3.3.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.2.0 10.2.2.2 23 32768 ?
RTB#
OSPF外部タイプ2ルートだけを再配布するには、ルータBのrouter bgp 100で次のコマンドを入力します。
RTB(config)#router bgp 100
RTB(config-router)#redistribute ospf 1 match external 2
この場合、OSPF内部ルートとOSPF外部タイプ1およびタイプ2ルートは、次のルータBの設定に示すように、内部および外部一致オプションを使用してBGPに再配布されます。
| RTB |
|---|
hostname RTB ! interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 ! router ospf 1 network 10.2.2.0 0.0.0.255 area 1 ! router bgp 100 |
ここでも、設定で external が external 1 external 2 に置き換えられています。どちらか特定の外部ルートを BGP に再配布する必要がない限り、通常はこのようにします。設定の変更後、Router Bは選択された内部ルートと外部ルートを再配布し、Router CはBGPを通じてそれらを学習します。
RTB#show ip bgp
BGP table version is 6, local router ID is 10.3.3.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 10.2.2.0/24 0.0.0.0 0 32768 ? *> 10.108.1.0/24 10.2.2.2 3 32768 ? *> 10.108.2.0/24 10.2.2.2 2 32768 ? *> 192.168.1.0 10.2.2.2 20 32768 ? *> 192.168.2.0 10.2.2.2 23 32768 ?
RTB# RTC#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
B 10.2.2.0/24 [20/0] via 10.3.3.1, 00:03:27
C 10.3.3.0/24 is directly connected, GigabitEthernet0/0
L 10.3.3.2/32 is directly connected, GigabitEthernet0/0
B 10.108.1.0/24 [20/3] via 10.3.3.1, 00:03:27 B 10.108.2.0/24 [20/2] via 10.3.3.1, 00:03:27 B 192.168.1.0/24 [20/20] via 10.3.3.1, 00:03:27 B 192.168.2.0/24 [20/23] via 10.3.3.1, 00:03:27
RTC#
これは、NSSA ルートのみが BGP に再配布される特殊なケースです。このケースは、「OSPF外部(タイプ1および2)ルートだけをBGPに再配布する」セクションで説明したケースと非常に似ています。唯一の違いは、OSPF が単なる外部ルートではなく NSSA 外部ルートに一致することです。次に示すルータ B のルーティング テーブルには、それらの OSPF NSSA 外部ルートが示されています。
RTB#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 10.2.2.0/24 is directly connected, GigabitEthernet0/1
L 10.2.2.3/32 is directly connected, GigabitEthernet0/1
C 10.3.3.0/24 is directly connected, GigabitEthernet0/0
L 10.3.3.1/32 is directly connected, GigabitEthernet0/0
O IA 10.108.1.0/24 [110/3] via 10.2.2.2, 00:05:00, GigabitEthernet0/1
O 10.108.2.0/24 [110/2] via 10.2.2.2, 00:05:00, GigabitEthernet0/1
O N2 192.168.1.0/24 [110/20] via 10.2.2.1, 00:10:14, GigabitEthernet0/1
O N1 192.168.2.0/24 [110/22] via 10.2.2.2, 00:03:43, GigabitEthernet0/1
RTB#
このケースで使用されているのは次のネットワーク ダイアグラムです。
BGP トポロジ B への OSPF の再配布
このネットワーク ダイアグラムには、ルータ B が OSPF N1 と N2 の両方のルートを受信することが示されています。nssa-external キーワードだけが使用されていると、デフォルトでは N1 と N2 の両方が再配布されます。この設定により、RTBはOSPF N2(192.168.1.0/24)ルートとOSPF N1(192.168.2.0/24)ルートをBGPに再配布できます。
| RTB |
|---|
hostname RTB ! interface GigabitEthernet0/0 ip address 10.3.3.1 255.255.255.0 duplex auto speed auto media-type rj45 ! interface GigabitEthernet0/1 ip address 10.2.2.3 255.255.255.0 duplex auto speed auto media-type rj45 ! router ospf 1 |
ルータ B の設定を変更すると、ルータ B は OSPF NSSA 外部ルートを再配布し、ルータ C は OSPF NSSA 外部ルートを BGP から学習します。
RTB#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 10.2.2.0/24 is directly connected, GigabitEthernet0/1
L 10.2.2.3/32 is directly connected, GigabitEthernet0/1
C 10.3.3.0/24 is directly connected, GigabitEthernet0/0
L 10.3.3.1/32 is directly connected, GigabitEthernet0/0
O IA 10.108.1.0/24 [110/3] via 10.2.2.2, 00:09:40, GigabitEthernet0/1
O 10.108.2.0/24 [110/2] via 10.2.2.2, 00:09:40, GigabitEthernet0/1
O N2 192.168.1.0/24 [110/20] via 10.2.2.1, 00:14:54, GigabitEthernet0/1
O N1 192.168.2.0/24 [110/22] via 10.2.2.2, 00:08:23, GigabitEthernet0/1
RTB#
RTB#show ip bgp
BGP table version is 17, local router ID is 10.3.3.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 10.2.2.1 20 32768 ? *> 192.168.2.0 10.2.2.2 22 32768 ?
RTB# RTC#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.3.3.0/24 is directly connected, GigabitEthernet0/0
L 10.3.3.2/32 is directly connected, GigabitEthernet0/0
B 192.168.1.0/24 [20/20] via 10.3.3.1, 00:01:29 B 192.168.2.0/24 [20/22] via 10.3.3.1, 00:01:29
RTC#
RTC#show ip bgp
BGP table version is 41, local router ID is 10.3.3.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 10.3.3.1 20 0 100 ? *> 192.168.2.0 10.3.3.1 22 0 100 ?
RTC#
OSPF 外部ルートの場合と同様に、OSPF N1 ルートのみを再配布するには、ルータ B の router BGP 100 の下に次のコマンドを入力します。
RTB(config)#router bgp 100
RTB(config-router)#redistribute ospf 1 match nssa-external 1
!--- This redistributes only OSPF NSSA-external Type-1 routes into BGP.
OSPF N2ルートだけを再配布するには、ルータBのrouter bgp 100で次のコマンドを入力します。
RTB(config)#router bgp 100
RTB(config-router)#redistribute ospf 1 match nssa-external 2
!--- This redistributes only OSPF NSSA-external Type-2 routes into BGP.
設定を連続して変更すると、設定が変化することを理解することが重要です。match オプションを指定した新しいコマンドを使用すると、以前のコマンドには上書きされませんが、追加されます。次に、設定コマンドの順序が再配布に与える影響例を示します。
R4#configure terminal R4(config)#router bgp 100 R4(config-router)#redistribute ospf 1 match internal R4(config-router)#^Z !--- Initially, you redistribute internal OSPF routes into BGP 100. R4#show run | include redistribute ospf redistribute ospf 1 match internal R4#configure terminal R4(config)#router bgp 100 R4(config-router)#redistribute ospf 1 match external R4(config-router)#^Z !--- With this second command, you tell BGP to also redistribute external OSPF routes. R4#show run | include redistribute ospf redistribute ospf 1 match internal external 1 external 2 R4# R4#configure terminal R4(config)#router bgp 100 R4(config-router)#no redistribute ospf 1 match external 2 R4(config-router)#^Z !--- With this no command, you only disable the redistribution of external type 2 into BGP.
!--- All other types of routes previously configured remain. R4#show run | include redistribute ospf redistribute ospf 1 match internal external 1 !--- As you can see, internal and external type 1 remain. R4#configure terminal R4(config)#router bgp 100 R4(config-router)#no redistribute ospf 1 match internal external 1 R4(config-router)#^Z !--- This no command removes all explicit match options but does not disable redistribution
!--- The remaining redistribute ospf 1 command uses the default behavior and redistributes
!--- internal routes only. R4#show run | include redistribute ospf redistribute ospf 1 R4#configure terminal R4(config)#router bgp 100 R4(config-router)#no redistribute ospf 1 !--- Use no redistribute ospfcommand to disable OSPF-to-BGP redistribution completely. R4(config-router)# ^Z R4#show run | include redistribute ospf R4#
ルート再配布は、あるプロトコルを介して学習したルートを別のルーティングプロトコルに伝搬します。BGPがIGPに再配布されると、デフォルトではeBGPを通じて学習されたルートだけが再配布されます。ルーティングループの発生を防ぐために、ルータ上で認識されているiBGPを通じて学習されたルートは、IGPには挿入されません。
デフォルトでは、IGP への iBGP の再配布は無効です。IGPへのiBGPルートの再配布を有効にするには、bgp redistribute-internal コマンドを実行します。ルートマップを使用して IGP に特定のルートを再配布するときは、注意が必要です。
OSPF に iBGP ルートを再配布する設定例を以下に示します。
Router(config)#router bgp 65345 Router(config-router)#bgp redistribute-internal ! Router(config)#router ospf 100 Router(config-router)#redistribute bgp 65345 subnets
注意:iBGPを通じて学習されたルートをIGPに再配布すると、自律システム内でルーティングループが発生する可能性があります。明示的に承認されたプレフィックスだけをルートマップで再配布します。
OSPFを通じて学習されたデフォルトルートをBGPに再配布するには、ルートマップで0.0.0.0/0のみを許可し、ルートマップをOSPF再配布に適用して、default-information originateでデフォルトルートの再配布を有効にします。
! route-map map_default_only permit 10 match ip address acl_default_only ! ip access-list standard acl_default_only permit 0.0.0.0 ! router bgp 64601 redistribute ospf 1 route-map map_default_only default-information originate !
!--- Distributes the default route in bgp
network 0.0.0.0コマンドは別の発信方式であり、ルーティングテーブルに正確なデフォルトルートを必要とします。
! router bgp 64601 network 0.0.0.0 !
設定後、show ip bgp 0.0.0.0を使用してデフォルトルートを確認し、show ip bgp neighbors <neighbor-address> advertised-routesを使用してアドバタイズメントを確認します。
注:BGPは通常、セッションをリセットせずに新しいルートをアドバタイズします。即時かつ中断のないアップデート交換を要求するには、clear ip bgp * softコマンドを実行します。このコマンドは、BGPセッションの確立を維持します。
| 改定 | 発行日 | コメント |
|---|---|---|
3.0 |
08-Sep-2026
|
再認定 – 更新されたSEOとフォーマット |
2.0 |
22-Apr-2025
|
タイトル、ヘッダー、およびフォーマット。 |
1.0 |
11-Oct-2001
|
初版 |