例:IS-IS ネットワークでの SRv6 ネットワーク プログラミングの設定
この例では、IS-IS ネットワークで SRv6 ネットワーク プログラミングを設定する方法を示します。この機能は、ネットワークが主にIPv6であり、MPLSを導入していないサービスプロバイダにとって便利です。このようなネットワークは、データ送信用の IPv6 ヘッダーとヘッダー拡張にのみ依存します。SRv6 ネットワーク プログラミングでは、MPLS を導入せずにセグメント ルーティングを柔軟に活用できます。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
MPC7E、MPC8E、またはMPC9Eラインカードを搭載したMXシリーズルーター8台
Junos OS リリース 20.3R1 以降
概要
Junos OSリリース20.3R1以降、コアIPv6ネットワークでMPLSなしでSRv6を設定できるようになりました。SRv6 ネットワーク プログラミングは、ネットワーク プログラムを個々のネットワーク命令にエンコードし、IPv6 パケット ヘッダーに挿入するネットワークの機能です。ネットワーク命令を運ぶ IPv6 パケットは、パケット処理に使用できる正確な SRv6 ノードについてネットワークに明示的に通知します。ネットワーク命令は、128 ビット IPv6 アドレスで表される SRv6 セグメント識別子 (SID) です。これらの命令は、IPv6パケットヘッダーでネットワークを介して配信されます。ネットワーク命令は、アドレス指定とともに、SRv6 ネットワーク内の SRv6 対応ノードごとに特定のタスクまたは機能を定義します。この機能は、セグメントルーティング機能がまだないトランジットルーターを介してSRトラフィックを展開する必要があるネットワークに有効です。
トポロジ
図 1 では、ルーター R0 とルーター R7 は、IPv4 のみのデバイス CE1 および CE2 をサポートするイングレスおよびエグレス ルーターです。ルーター R1、R2、R3、R4、R5、および R6 は、IPv6 のみのプロバイダー コア ネットワークを構成します。すべてのルーターは同じ自律システムに属しています。IS-IS は、IPv6 コアの内部ゲートウェイ プロトコルであり、SRv6 をサポートするように構成されています。この例では、ルーターR2は、R0とR7の両方へのIBGPピアリングセッションを持つIPv6ルートリフレクタとして設定されています。この例では、他のルーターはBGPを話しません。
SRv6トンネリングをよりわかりやすく示すために、この例は純粋なIPv6プロバイダーコアに基づいています。SRv6は、IPv6とIPv4の両方が展開されているデュアルスタックコアでサポートされています。
IPv4デバイスをサポートするエッジルーターは、IPv6トンネルカプセル化を使用してIPv4トラフィックを伝送する必要があります。カプセル化トンネルは、SRv6 対応ルーターで設定された SRv6 SID から取得されます。IS-IS プロトコルは、これらの SRv6 SID を処理し、利用可能なトンネル エンドポイントのネクストホップ アドレスで inet6.3 テーブルを更新します。BGPを介してIPv4ルートが学習されると、ルーターはinet6.3テーブルを介して、関連するネクストホップの解決を試みます。一致するエントリが見つかると、BGP ルートをアドバタイズしたエンドポイントへの自動 IPv6 トンネルが作成されます。
この例では、R0 ルーターと R7 ルーターの両方が、BGP を使用して、接続された IPv4 サブネットをアドバタイズします。これにより、エッジ ルーター間に IPv6 トンネルが作成されます。トンネルは、IPv6 プロバイダー コアを介して IPv4 トラフィックを伝送するために使用されます。エグレスでは、エッジ ルーターが外側の IPv6 ヘッダーのカプセル化を解除し、IPv4 ルート ルックアップを実行してパケットを宛先に転送します。
![SRv6 Network Programming in IS-IS](/documentation/us/en/software/junos/is-is/images/g301238.png)
構成
CLIクイック構成
この例を迅速に設定するには、以下のコマンドをコピーして、テキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを 階層レベルで CLI [edit]
にコピー アンド ペーストして、設定モードからコミットを入力します。
ルーターR0
set interfaces xe-0/0/0:0 description To_R1 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:1::1/64 set interfaces xe-0/0/0:2 description To_R4 set interfaces xe-0/0/0:2 mtu 4000 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces xe-0/0/0:2 unit 0 family inet6 address 2001:db8:4::1/64 set interfaces xe-0/0/1:0 description To_CE1 set interfaces xe-0/0/1:0 unit 0 family inet address 172.16.10.2/24 set interfaces xe-0/0/1:0 unit 0 family iso set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 set interfaces lo0 unit 0 family inet6 address 2001:db8:10:255::10/128 set policy-options policy-statement pplb then load-balance per-packet set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a0::/64 set routing-options forwarding-table export pplb set routing-options router-id 172.16.255.10 set policy-options policy-statement CE1_v4 term 1 from protocol direct set policy-options policy-statement CE1_v4 term 1 from route-filter 172.16.10.0/24 exact set policy-options policy-statement CE1_v4 term 1 then next-hop 2001:db8:0:a0:d01:: set policy-options policy-statement CE1_v4 term 1 then accept set routing-options autonomous-system 65550 set protocols bgp group to-R2RRv6 type internal set protocols bgp group to-R2RRv6 export CE1_v4 set protocols bgp group to-R2RRv6 local-address 2001:db8:10:255::10 set protocols bgp group to-R2RRv6 neighbor 2001:db8:2:255::2 family inet unicast extended-nexthop set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a0:1a01:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:2.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a0:1a04:: flavor psp set protocols isis interface xe-0/0/0:2.0 node-link-protection set protocols isis interface xe-0/0/0:2.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a0:d01:: flavor usd set protocols isis level 1 disable
ルーター R1
set interfaces xe-0/0/0:0 description To_R0 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:1::2/64 set interfaces xe-0/0/0:2 description To_R2 set interfaces xe-0/0/0:2 mtu 4000 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces xe-0/0/0:2 unit 0 family inet6 address 2001:db8:12:1/64 set interfaces xe-0/0/0:3 description to-R4 set interfaces xe-0/0/0:3 mtu 4000 set interfaces xe-0/0/0:3 unit 0 family iso set interfaces xe-0/0/0:3 unit 0 family inet6 address 2001:db8:14::1/64 set interfaces xe-0/0/1:0 description to-R5 set interfaces xe-0/0/1:0 mtu 4000 set interfaces xe-0/0/1:0 unit 0 family iso set interfaces xe-0/0/1:0 unit 0 family inet6 address 2001:db8:15::1/64 set interfaces lo0 unit 0 family iso address 49.0001.0001.0101.0100 set interfaces lo0 unit 0 family inet6 address 2001:db8:1:255::1/128 set policy-options policy-statement pplb then load-balance per-packet set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a1::/64 set routing-options forwarding-table export pplb set routing-options router-id 192.168.255.1 set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a1:1a10:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:2.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a1:1a12:: flavor psp set protocols isis interface xe-0/0/0:2.0 node-link-protection set protocols isis interface xe-0/0/0:2.0 point-to-point set protocols isis interface xe-0/0/0:2.1 node-link-protection set protocols isis interface xe-0/0/0:3.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a1:1a14:: flavor psp set protocols isis interface xe-0/0/0:3.0 node-link-protection set protocols isis interface xe-0/0/0:3.0 point-to-point set protocols isis interface xe-0/0/1:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a1:1a15:: flavor psp set protocols isis interface xe-0/0/1:0.0 node-link-protection set protocols isis interface xe-0/0/1:0.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a1:d11:: flavor usd set protocols isis level 1 disable
ルーターR2
set interfaces xe-0/0/0:0 description To_R1 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:12::2/64 set interfaces xe-0/0/0:1 description To_R3 set interfaces xe-0/0/0:1 mtu 4000 set interfaces xe-0/0/0:1 unit 0 family iso set interfaces xe-0/0/0:1 unit 0 family inet6 address 2001:db8:23::1/64 set interfaces xe-0/0/0:2 description To_R4 set interfaces xe-0/0/0:2 mtu 4000 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces xe-0/0/0:2 unit 0 family inet6 address 2011:db8:24::1/64 set interfaces xe-0/0/0:3 description To_R5 set interfaces xe-0/0/0:3 mtu 4000 set interfaces xe-0/0/0:3 unit 0 family iso set interfaces xe-0/0/0:3 unit 0 family inet6 address 2001:db8:25::1/64 set interfaces xe-0/0/1:0 description To_R6 set interfaces xe-0/0/1:0 mtu 4000 set interfaces xe-0/0/1:0 unit 0 family iso set interfaces xe-0/0/1:0 unit 0 family inet6 address 2001:db8:26::1/64 set interfaces lo0 unit 0 family iso address 49.0001.0002.0202.0200 set interfaces lo0 unit 0 family inet6 address 2001:db8:2:255::2/128 set policy-options policy-statement pplb then load-balance per-packet set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a2::/64 set routing-options forwarding-table export pplb set routing-options router-id 192.168.255.2 set routing-options autonomous-system 65550 set protocols bgp group RRv6 type internal set protocols bgp group RRv6 local-address 2001:db8:2:255::2 set protocols bgp group RRv6 neighbor 2001:db8:10:255::10 family inet unicast extended-nexthop set protocols bgp group RRv6 neighbor 2001:db8:20:255::20 family inet unicast extended-nexthop set protocols bgp group RRv6 cluster 192.168.255.2 set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a2:1a21:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:1.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a2:1a23:: flavor psp set protocols isis interface xe-0/0/0:1.0 node-link-protection set protocols isis interface xe-0/0/0:1.0 point-to-point set protocols isis interface xe-0/0/0:2.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a2:1a24:: flavor psp set protocols isis interface xe-0/0/0:2.0 node-link-protection set protocols isis interface xe-0/0/0:2.0 point-to-point set protocols isis interface xe-0/0/0:3.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a2:1a25:: flavor psp set protocols isis interface xe-0/0/0:3.0 node-link-protection set protocols isis interface xe-0/0/0:3.0 point-to-point set protocols isis interface xe-0/0/1:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a2:1a26:: flavor psp set protocols isis interface xe-0/0/1:0.0 node-link-protection set protocols isis interface xe-0/0/1:0.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a2:d21:: flavor usd set protocols isis level 1 disable
ルータ R3
set interfaces xe-0/0/0:0 description To_R2 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:23::2/64 set interfaces xe-0/0/0:1 description To_R5 set interfaces xe-0/0/0:1 mtu 4000 set interfaces xe-0/0/0:1 unit 0 family iso set interfaces xe-0/0/0:1 unit 0 family inet6 address 2001:db8:35::1/64 set interfaces xe-0/0/0:2 description To_R6 set interfaces xe-0/0/0:2 mtu 4000 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces xe-0/0/0:2 unit 0 family inet6 address 36::1/64 set interfaces xe-0/0/0:3 description To_R7 set interfaces xe-0/0/0:3 mtu 4000 set interfaces xe-0/0/0:3 unit 0 family iso set interfaces xe-0/0/0:3 unit 0 family inet6 address 2001:db8:37::1/64 set interfaces lo0 unit 0 family iso address 49.0001.0003.0303.0300 set interfaces lo0 unit 0 family inet6 address 2001:db8:3:255::3/128 set policy-options policy-statement pplb then load-balance per-packet set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a3::/64 set routing-options forwarding-table export pplb set routing-options router-id 192.168.255.3 set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a3:1a32:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:1.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a3:1a35:: flavor psp set protocols isis interface xe-0/0/0:1.0 node-link-protection set protocols isis interface xe-0/0/0:1.0 point-to-point set protocols isis interface xe-0/0/0:2.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a3:1a36:: flavor psp set protocols isis interface xe-0/0/0:2.0 node-link-protection set protocols isis interface xe-0/0/0:2.0 point-to-point set protocols isis interface xe-0/0/0:3.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a3:1a37:: flavor psp set protocols isis interface xe-0/0/0:3.0 node-link-protection set protocols isis interface xe-0/0/0:3.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a3:d31:: flavor usd set protocols isis level 1 disable
ルータ R4
set interfaces xe-0/0/0:0 description To_R0 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:4::2/64 set interfaces xe-0/0/0:2 description To_R1 set interfaces xe-0/0/0:2 mtu 4000 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces xe-0/0/0:2 unit 0 family inet6 address 2001:db8:14::2/64 set interfaces xe-0/0/0:3 description To_R2 set interfaces xe-0/0/0:3 mtu 4000 set interfaces xe-0/0/0:3 unit 0 family iso set interfaces xe-0/0/0:3 unit 0 family inet6 address 2001:db8:24::2/64 set interfaces xe-0/0/1:0 description To_R5 set interfaces xe-0/0/1:0 mtu 4000 set interfaces xe-0/0/1:0 unit 0 family iso set interfaces xe-0/0/1:0 unit 0 family inet6 address 2001:db8:25::1/64 set interfaces lo0 unit 0 family iso address 49.0001.0004.0404.0400 set interfaces lo0 unit 0 family inet6 address 2001:db8:4:255::4/128 set policy-options policy-statement pplb then load-balance per-packet set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a4::/64 set routing-options forwarding-table export pplb set routing-options router-id 192.168.255.4 set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a4:1a40:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:2.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a4:1a41:: flavor psp set protocols isis interface xe-0/0/0:2.0 node-link-protection set protocols isis interface xe-0/0/0:2.0 point-to-point set protocols isis interface xe-0/0/0:3.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a4:1a42:: flavor psp set protocols isis interface xe-0/0/0:3.0 node-link-protection set protocols isis interface xe-0/0/0:3.0 point-to-point set protocols isis interface xe-0/0/1:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a4:1a45:: flavor psp set protocols isis interface xe-0/0/1:0.0 node-link-protection set protocols isis interface xe-0/0/1:0.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a4:d41:: flavor usd set protocols isis level 1 disable
1 ルータ R5 1
set interfaces xe-0/0/0:0 description To_R1 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:15::2/64 set interfaces xe-0/0/0:1 description To_R2 set interfaces xe-0/0/0:1 mtu 4000 set interfaces xe-0/0/0:1 unit 0 family iso set interfaces xe-0/0/0:1 unit 0 family inet6 address 2001:db8:25::2/64 set interfaces xe-0/0/0:2 description To_R3 set interfaces xe-0/0/0:2 mtu 4000 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces xe-0/0/0:2 unit 0 family inet6 address 2001:db8:35::2/64 set interfaces xe-0/0/0:3 description To_R4 set interfaces xe-0/0/0:3 mtu 4000 set interfaces xe-0/0/0:3 unit 0 family iso set interfaces xe-0/0/0:3 unit 0 family inet6 address 2001:db8:45::2/64 set interfaces xe-0/0/1:0 description To_R6 set interfaces xe-0/0/1:0 mtu 4000 set interfaces xe-0/0/1:0 unit 0 family iso set interfaces xe-0/0/1:0 unit 0 family inet6 address 2001:db8:56::1/64 set interfaces lo0 unit 0 family iso address 49.0001.0005.0505.0500 set interfaces lo0 unit 0 family inet6 address 2001:db8:5:255::5/128 set policy-options policy-statement pplb then load-balance per-packet set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a5::/64 set routing-options forwarding-table export pplb set routing-options router-id 192.168.255.5 set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a5:1a51:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:1.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a5:1a52:: flavor psp set protocols isis interface xe-0/0/0:1.0 node-link-protection set protocols isis interface xe-0/0/0:1.0 point-to-point set protocols isis interface xe-0/0/0:2.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a5:1a53:: flavor psp set protocols isis interface xe-0/0/0:2.0 node-link-protection set protocols isis interface xe-0/0/0:2.0 point-to-point set protocols isis interface xe-0/0/0:3.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a5:1a54:: flavor psp set protocols isis interface xe-0/0/0:3.0 node-link-protection set protocols isis interface xe-0/0/0:3.0 point-to-point set protocols isis interface xe-0/0/1:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a5:1a56:: flavor psp set protocols isis interface xe-0/0/1:0.0 node-link-protection set protocols isis interface xe-0/0/1:0.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a5:d51:: flavor usd set protocols isis level 1 disable
1 ルータ R6 1
set interfaces xe-0/0/0:0 description To_R2 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:26::2/64 set interfaces xe-0/0/0:1 description To_R3 set interfaces xe-0/0/0:1 mtu 4000 set interfaces xe-0/0/0:1 unit 0 family iso set interfaces xe-0/0/0:1 unit 0 family inet6 address 2001:db8:36::2/128 set interfaces xe-0/0/0:2 description To_R5 set interfaces xe-0/0/0:2 mtu 4000 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces xe-0/0/0:2 unit 0 family inet6 address 2001:db8:56::2/128 set interfaces xe-0/0/0:3 description To_R7 set interfaces xe-0/0/0:3 mtu 4000 set interfaces xe-0/0/0:3 unit 0 family iso set interfaces xe-0/0/0:3 unit 0 family inet6 address 2001:db8:67::1/128 set interfaces lo0 unit 0 family iso address 49.0001.0006.0606.0600 set interfaces lo0 unit 0 family inet6 address 2001:db8:6:255::6/128 set policy-options policy-statement pplb then load-balance per-packet set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a6::/64 set routing-options forwarding-table export pplb set routing-options router-id 192.168.255.6 set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a6:1a62:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:1.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a6:1a63:: flavor psp set protocols isis interface xe-0/0/0:1.0 node-link-protection set protocols isis interface xe-0/0/0:1.0 point-to-point set protocols isis interface xe-0/0/0:2.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a6:1a65:: flavor psp set protocols isis interface xe-0/0/0:2.0 node-link-protection set protocols isis interface xe-0/0/0:2.0 point-to-point set protocols isis interface xe-0/0/0:3.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a6:1a67:: flavor psp set protocols isis interface xe-0/0/0:3.0 node-link-protection set protocols isis interface xe-0/0/0:3.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a6:d61:: flavor usd set protocols isis level 1 disable
1 ルータ R7 1
set interfaces xe-0/0/0:0 description To_R3 set interfaces xe-0/0/0:0 mtu 4000 set interfaces xe-0/0/0:0 unit 0 family iso set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:37::2/64 set interfaces xe-0/0/0:1 description To_R6 set interfaces xe-0/0/0:1 mtu 4000 set interfaces xe-0/0/0:1 unit 0 family iso set interfaces xe-0/0/0:1 unit 0 family inet6 address 2001:db8:67::2/128 set interfaces xe-0/0/0:2 description To_CE2 set interfaces xe-0/0/0:2 unit 0 family inet address 172.16.20.2/24 set interfaces xe-0/0/0:2 unit 0 family iso set interfaces lo0 unit 0 family iso address 49.0001.0007.0707.0700 set interfaces lo0 unit 0 family inet6 address 2001:db8:20:255::20/32 set policy-options policy-statement pplb then load-balance per-packet set policy-options policy-statement CE2_v4 term 1 from protocol direct set policy-options policy-statement CE2_v4 term 1 from route-filter 172.16.20.0/24 exact set policy-options policy-statement CE2_v4 term 1 then next-hop 2001:db8:0:a7::d71 set policy-options policy-statement CE2_v4 term 1 then accept set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a7::/64 set routing-options forwarding-table export pplb set routing-options router-id 172.16.255.20 set routing-options autonomous-system 65550 set protocols bgp group to-R2RRv6 type internal set protocols bgp group to-R2RRv6 local-address 2001:db8:20:255::20 set protocols bgp group to-R2RRv6 neighbor 2001:db8:2:255::2 family inet unicast extended-nexthop set protocols bgp group to-R2RRv6 export CE2_v4 set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a7:1a73:: flavor psp set protocols isis interface xe-0/0/0:0.0 node-link-protection set protocols isis interface xe-0/0/0:0.0 point-to-point set protocols isis interface xe-0/0/0:1.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a7:1a76:: flavor psp set protocols isis interface xe-0/0/0:1.0 node-link-protection set protocols isis interface xe-0/0/0:1.0 point-to-point set protocols isis interface lo0.0 passive set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a7:d71:: flavor usd set protocols isis level 1 disable
ルーターR0の設定
次の例では、設定階層内のさまざまなレベルに移動する必要があります。CLI のナビゲーションについては、 CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
IPv6 コア上で IPv4 トンネルをサポートするように SRv6 ネットワーク プログラミングを構成するには、R0 ルーターで次の手順を実行します。
手順
-
IPトランスポートを有効にするようにデバイスインターフェイスを設定します。
[edit] user@R0# set interfaces xe-0/0/0:0 description To_R1_1 user@R0# set interfaces xe-0/0/0:0 vlan-tagging user@R0# set interfaces xe-0/0/0:0 unit 0 vlan-id 1 user@R0# set interfaces xe-0/0/0:0 unit 0 family inet address 10.11.1.1/24 user@R0# set interfaces xe-0/0/0:0 unit 0 family iso user@R0# set interfaces xe-0/0/0:0 unit 0 family inet6 address 2001:db8:1001::1/32 user@R0# set interfaces xe-0/0/0:2 description To_R4_1 user@R0# set interfaces xe-0/0/0:2 vlan-tagging user@R0# set interfaces xe-0/0/0:2 unit 0 vlan-id 1 user@R0# set interfaces xe-0/0/0:2 unit 0 family inet address 10.21.1.1/24 user@R0# set interfaces xe-0/0/0:2 unit 0 family iso user@R0# set interfaces xe-0/0/0:2 unit 0 family inet6 address 2001:db8:2021::1/32 user@R0# set interfaces xe-0/0/1:0 description to_RT user@R0# set interfaces xe-0/0/1:0 vlan-tagging user@R0# set interfaces xe-0/0/1:0 unit 1 vlan-id 1 user@R0# set interfaces xe-0/0/1:0 unit 1 family inet address 172.20.1.1/24 user@R0# set interfaces xe-0/0/1:0 unit 1 family iso user@R0# set interfaces xe-0/0/1:0 unit 1 family inet6 address 2001:db8::20:1:1:1/120 user@R0# set interfaces xe-0/0/1:0 unit 4 vlan-id 4 user@R0# set interfaces xe-0/0/1:0 unit 4 family inet address 172.20.2.1/24 user@R0# set interfaces xe-0/0/1:0 unit 4 family iso user@R0# set interfaces xe-0/0/1:0 unit 4 family inet6 address 2001:db8::20:2:1:1/120
-
BGPセッションのルーターIDとして使用されるIPv4およびIPv6アドレスでループバックインターフェイスを設定します。
[edit] user@R0# set interfaces lo0 unit 0 family inet address 192.168.0.10/32 user@R0# set interfaces lo0 unit 0 family iso address 49.0001.000a.0a0a.0a00 user@R0# set interfaces lo0 unit 0 family inet6 address 2001:db8::10:10:10:10/32
-
ルーター ID と自律システム(AS)番号を設定して、同じ AS に属する一連のルーティングデバイス内でルーティング情報を伝送します。
[edit] user@R0# set routing-options router-id 10.10.10.10 user@R0# set routing-options autonomous-system 65550
-
SRv6 をグローバルに有効にし、ロケーター アドレスを有効にして、ルーターの SRv6 機能を示します。SRv6 SID は、ロケーターと関数で構成される IPv6 アドレスです。ルーティング プロトコルは、ロケータ アドレスをアドバタイズします。
[edit] user@R0# set routing-options source-packet-routing srv6 locator myloc 2001:db8:0:a0::/64
-
プレフィックスセグメントのEnd-Sid機能を設定します。ネットワーク要件に応じた End-SID 関数の動作であるフレーバーを指定します。最後から 2 番目のセグメント ポップ(PSP)、アルティメット セグメント ポップ(USP)、およびアルティメット セグメント カプセル化解除(USD)は、SRv6 機能に使用できる 3 つのフレーバーです。
メモ:コミット エラーを回避するために、ロケーターと End-SID が同じサブネット内にあることを確認します。
[edit] user@R0# set protocols isis source-packet-routing srv6 locator myloc end-sid 2001:db8:0:a0:d01:: flavor usd user@R0# set protocols isis source-packet-routing srv6 locator myloc1 end-sid 2001:db8:0:a10:d01:: flavor usd user@R0# set protocols isis source-packet-routing srv6 locator myloc2 end-sid 2001:db8:0:a20:d01:: flavor usd user@R0# set protocols isis source-packet-routing srv6 locator myloc3 end-sid 2001:db8:0:a30:d01:: flavor usd user@R0# set protocols isis source-packet-routing srv6 locator myloc4 end-sid 2001:db8:0:a40:d01:: flavor usp user@R0# set protocols isis source-packet-routing srv6 locator myloc4 end-sid 2001:db8:0:a40:d01:: flavor usd user@R0# set protocols isis level 1 disable
-
隣接セグメントのポイントツーポイント(P2P)インターフェイスでEnd-X-SID機能を設定します。End-X-SID に 1 つ以上のフレーバーを指定します。
メモ:コミット・エラーを回避するために、ロケーターと End-X-SID が同じサブネット内にあることを確認してください。SRv6 をイネーブルにし、ロケーターをインターフェイスにマッピングする前にロケーター
を構成する[edit routing-options]
を設定する必要があります。srv6-adjacency-segment
たびに、手順 5 に示すように、階層下protocols isis source-packet-routing srv6 locator
に関連するロケーターも構成する必要があります。[edit] user@R0# set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc end-x-sid 2001:db8:0:a0:1a01:: flavor usd user@R0# set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc1 end-x-sid 2001:db8:0:a10:1a01:: flavor usd user@R0# set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc2 end-x-sid 2001:db8:0:a20:1a01:: flavor usd user@R0# set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc3 end-x-sid 2001:db8:0:a30:1a01:: flavor usd user@R0# set protocols isis interface xe-0/0/0:0.0 level 2 srv6-adjacency-segment protected locator myloc4 end-x-sid 2001:db8:0:a40:1a01:: flavor usd user@R0# set protocols isis interface xe-0/0/0:0.0 node-link-protection user@R0# set protocols isis interface xe-0/0/0:0.0 point-to-point
-
LANインターフェイスxe-0/0/0:2.0の隣接セグメントにSRv6オプションを設定します。ネットワーク要件に応じてフレーバーを指定します。最後から 2 番目のセグメント ポップ(PSP)、アルティメット セグメント ポップ(USP)、およびアルティメット セグメント カプセル化解除(USP)は、SRv6 隣接セグメントで使用できる 3 つのフレーバーです。
メモ:コミット エラーを回避するために、ロケーターと End-X-Sid が同じサブネット内にあることを確認します。SRv6 をイネーブルにし、ロケーターをインターフェイスにマッピングする前にロケーター
[edit routing-options]
を設定する必要があります。[edit] user@R0# set protocols isis interface xe-0/0/0:2.0 level 2 lan-neighbor 0100.0404.0404 srv6-adjacency-segment unprotected locator myloc end-x-sid 2001:db8:0:a0:1a04:: flavor usd user@R0# set protocols isis interface xe-0/0/0:2.0 level 2 lan-neighbor 0100.0404.0404 srv6-adjacency-segment unprotected locator myloc1 end-x-sid 2001:db8:0:a10:1a04:: flavor usd user@R0# set protocols isis interface xe-0/0/0:2.0 level 2 lan-neighbor 0100.0404.0404 srv6-adjacency-segment unprotected locator myloc2 end-x-sid 2001:db8:0:a20:1a04:: flavor usd user@R0# set protocols isis interface xe-0/0/0:2.0 level 2 lan-neighbor 0100.0404.0404 srv6-adjacency-segment unprotected locator myloc3 end-x-sid 2001:db8:0:a30:1a04:: flavor usd user@R0# set protocols isis interface xe-0/0/0:2.0 level 2 lan-neighbor 0100.0404.0404 srv6-adjacency-segment unprotected locator myloc4 end-x-sid 2001:db8:0:a40:1a04:: flavor usd user@R0# set protocols isis interface xe-0/0/0:2.0 node-link-protection user@R0# set protocols isis interface xe-0/0/1:0.1 user@R0# set protocols isis interface fxp0.0 disable user@R0# set protocols isis interface lo0.0 passive
-
コアに面したインターフェイスでBGPを設定し、内部ピアリングセッションを確立します。
[edit] user@R0# set protocols bgp group to-PEv6 type internal user@R0# set protocols bgp group to-PEv6 local-address abcd::10:10:10:10 user@R0# set protocols bgp group to-PEv6 neighbor abcd::2:2:2:2 family inet unicast extended-nexthop user@R0# set protocols bgp group to-PE2 type internal user@R0# set protocols bgp group to-PE2 local-address 10.10.10.10 user@R0# set protocols bgp group to-PE2 neighbor 2.2.2.2 family inet6 unicast user@R0# set protocols bgp group to-PE2 neighbor 2.2.2.2 family inet6-vpn unicast
-
パケットのロードバランシングを行うポリシーを定義します。
[edit] user@R0# set policy-options policy-statement pplb then load-balance per-packet
-
パケット単位のポリシーを適用して、トラフィックの負荷分散を有効にします。
[edit] user@R0# set routing-options forwarding-table export pplb
結果
設定モードから、 、 show protocols
、 show policy-options
、および show routing-options
のコマンドを入力してshow interfaces
設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
[edit] user@R0# show interfaces xe-0/0/0:0 { description To_R1; mtu 4000; unit 0 { family iso; family inet6 { address 2001:db8:1::1/64; } } } xe-0/0/0:2 { description To_R4; mtu 4000; unit 0 { family iso; family inet6 { address 2001:db8:4::1/64; } } } xe-0/0/1:0 { description To_CE1; unit 0 { family inet { address 172.16.10.2/24; } family iso; } } lo0 { unit 0 { family iso { address 49.0001.000a.0a0a.0a00; } family inet6 { address 2001:db8:10:255::10/128; } } }
[edit] user@R0# show protocols bgp { group to-R2RRv6 { type internal; local-address 2001:db8:10:255::10; export CE1_v4; neighbor 2001:db8:2:255::2 { family inet { unicast { extended-nexthop; } } } } } isis { interface xe-0/0/0:0.0 { level 2 { srv6-adjacency-segment { protected { locator myloc { end-x-sid 2001:db8:0:a0:1a01:: { flavor psp; } } } } } node-link-protection; point-to-point; } interface xe-0/0/0:2.0 { level 2 { srv6-adjacency-segment { protected { locator myloc { end-x-sid 2001:db8:0:a0:1a04:: { flavor psp; } } } } } node-link-protection; point-to-point; } interface lo0.0 { passive; } source-packet-routing { srv6 { locator myloc { end-sid 2001:db8:0:a0:d01:: { flavor { usd; } } } } } level 1 disable; }
[edit] user@R0# show policy-options policy-statement CE1_v4 { term 1 { from { protocol direct; route-filter 172.16.10.0/24 exact; } then { next-hop 2001:db8:0:a0:d01::; accept; } } } policy-statement pplb { then { load-balance per-packet; } }
[edit] user@R0# show routing-options source-packet-routing { srv6 { locator myloc 2001:db8:0:a0::/64; } } forwarding-table { export pplb; } router-id 172.16.255.10; autonomous-system 65550;
デバイスの設定が完了したら、設定モードから を入力します commit
。
検証
設定が正常に機能していることを確認します。
- IS-IS隣接関係とIBGPセッションの検証
- SRv6が有効になっていることを確認する
- SRv6 End-X-SIDの設定を確認する
- ロケータ ルートがインストールされていることの確認
- End-X-SIDルートがインストールされていることを確認する
- エンドSIDルートがインストールされていることを確認する
- IS-ISデータベースでのSRv6設定の確認
- SRv6トンネルを使用したCE2へのルートの確認
- CE1とCE2間のIPv4接続をテストする
IS-IS隣接関係とIBGPセッションの検証
目的
R2でのIS-IS隣接関係とIBGPセッションを検証します。R2 は 5 つの隣接関係を持ち、BGP コントロール プレーンのルーター リフレクターとしても機能するため、このタスクに選択されます。
残りの検証手順に進む前に、すべてのルーターでIS-IS隣接関係を確認することをお勧めします。SRv6の導入を成功させるには、すべてのノードで内部ゲートウェイプロトコルが動作している必要があります。
アクション
運用モードから、 show isis adjacency ルーターR2の コマンドを実行します。
user@R2> show isis adjacency Interface System L State Hold (secs) SNPA xe-0/0/0:0.0 R1 2 Up 26 xe-0/0/0:1.0 R3 2 Up 25 xe-0/0/0:2.0 R4 2 Up 25 xe-0/0/0:3.0 R5 2 Up 24 xe-0/0/1:0.0 R6 2 Up 18
運用モードから、 show bgp summary ルーターR2の コマンドを実行します。
user@R2> show bgp summary Threading mode: BGP I/O Default eBGP mode: advertise - accept, receive - accept Groups: 1 Peers: 2 Down peers: 0 Table Tot Paths Act Paths Suppressed History Damp State Pending inet.0 2 2 0 0 0 0 inet6.0 0 0 0 0 0 0 Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped... 2001:db8:10:255::10 65550 3101 3092 0 0 23:14:18 Establ inet.0: 1/1/1/0 2001:db8:20:255::20 65550 3091 3080 0 0 23:10:10 Establ inet.0: 1/1/1/0
意味
出力では、R2ルーターの予想されるIS-IS隣接カウントが確認されています。また、R2がR0ルーターとR7ルーターの両方に対してIPv6ベースのBGPセッションを確立したことも確認します。
SRv6が有効になっていることを確認する
目的
SRv6 がルーター R0 のロケーター、End-SID、およびフレーバーで有効になっていることを確認します。
アクション
運用モードから、ルーターR0で コマンドを実行します show isis overview 。
user@R0> show isis overview Instance: master Router ID: 172.16.255.10 IPv6 Router ID: 2001:db8:1::1 Hostname: R0 Sysid: 0100.0a0a.0a0a Areaid: 49.00 Adjacency holddown: enabled Maximum Areas: 3 LSP life time: 1200 Attached bit evaluation: enabled SPF delay: 200 msec, SPF holddown: 5000 msec, SPF rapid runs: 3 IPv4 is enabled, IPv6 is enabled Traffic engineering: enabled Restart: Disabled Helper mode: Enabled Layer2-map: Disabled Source Packet Routing (SPRING): Enabled Node Segments: Disabled SRv6: Enabled Locator: 2001:db8:0:a0::/64, Algorithm: 0 END-SID: 2001:db8:0:a0:d01::, Flavor: USD Post Convergence Backup: Disabled Level 1 Internal route preference: 15 External route preference: 160 Prefix export count: 0 Wide metrics are enabled, Narrow metrics are enabled Source Packet Routing is enabled Level 2 Internal route preference: 18 External route preference: 165 Prefix export count: 0 Wide metrics are enabled, Narrow metrics are enabled Source Packet Routing is enabled
意味
設定されたSRv6ロケータ SRv6: Enabled Locator: 2001:db8:0:a0::/64, Algorithm: 0
と、End-SIDとフレーバー END-SID: 2001:db8:0:a0:d01::, Flavor: USD
が出力に表示されます。
SRv6 End-X-SIDの設定を確認する
目的
End-X-SID 機能とフレーバーが R0 で設定されていることを確認します。
アクション
運用モードから、ルーターR0で コマンドを実行します show isis adjacency detail 。
user@R0> show isis adjacency detail R1 Interface: xe-0/0/0:0.0, Level: 2, State: Up, Expires in 19 secs Priority: 0, Up/Down transitions: 1, Last transition: 03:51:48 ago Circuit type: 2, Speaks: IP, IPv6 Topologies: Unicast Restart capable: Yes, Adjacency advertisement: Advertise IP addresses: 192.168.255.1 IPv6 addresses: fe80::2e6b:f5ff:fedb:e800 IPv6 Global Interface Address: 2001:db8:1::2 Level 2 SRv6 protected END-X-SID: 2001:db8:0:a0:1a01:: Flavor: PSP, Flags: B-P, Algorithm: 0 R4 Interface: xe-0/0/0:2.0, Level: 2, State: Up, Expires in 20 secs Priority: 0, Up/Down transitions: 1, Last transition: 03:48:04 ago Circuit type: 2, Speaks: IP, IPv6 Topologies: Unicast Restart capable: Yes, Adjacency advertisement: Advertise IP addresses: 192.168.255.4 IPv6 addresses: fe80::2e6b:f5ff:feb4:4000 IPv6 Global Interface Address: 2001:db8:4::2 Level 2 SRv6 protected END-X-SID: 2001:db8:0:a0:1a04:: Flavor: PSP, Flags: B-P, Algorithm: 0
意味
フィールド SRv6 protected END-X-SID: 2001:db8:0:a0:1a01::
は、 によるEnd-X-SID機能が Flavor PSP
、R1への接続に使用されるインターフェイスのルーターR0で設定されていることを示しています。異なるEnd-X-SIDを使用するR4に接続されたインターフェイスでも、同様の出力が確認されます。
ロケータ ルートがインストールされていることの確認
目的
ロケーター ルートがインストールされていることを確認します。
アクション
運用モードから、ルーターR0で コマンドを実行します show route 2001:db8:0:a0::/64 detail 。
user@R0> show route 2001:db8:0:a0::/64 detail inet6.0: 75 destinations, 75 routes (75 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2001:db8:0:a0::/64*[IS-IS/18] 3d 19:03:16, metric 0 Reject user@R0> show route 2001:db8:0:a0::/64 detail inet6.0: 45 destinations, 45 routes (45 active, 0 holddown, 0 hidden) 2001:db8:0:a0::/64 (1 entry, 1 announced) *IS-IS Preference: 18 Level: 2 Next hop type: Reject, Next hop index: 0 Address: 0xc54526c Next-hop reference count: 2 State: <Active Int OpaqueData> Local AS: 65550 Age: 22:15:32 Metric: 0 Validation State: unverified ORR Generation-ID: 0 Task: IS-IS Announcement bits (2): 0-KRT 5-Resolve tree 5 AS path: I . . .
意味
出力により、ロケータールート 2001:db8:0:a0::/64*[IS-IS/18]
がテーブルにインストールされている inet6.0
ことが確認されます。
End-X-SIDルートがインストールされていることを確認する
目的
インターフェイスで適用される設定済みのEnd-X-SIDルート情報を表示します。
アクション
運用モードから、ルーターR0で コマンドを実行します show route 2001:db8:0:a0:1a01:: 。
user@R0> show route 2001:db8:0:a0:1a01:: inet6.0: 45 destinations, 45 routes (45 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2001:db8:0:a0::1a01/128 *[IS-IS/18] 04:33:42, metric 0 > to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0
意味
出力では、End-X-SID ルート 2001:db8:0:a0::1a01/128
がルーティング テーブルにインストールされていることが確認されます inet.6.0
。
エンドSIDルートがインストールされていることを確認する
目的
SRv6ドメイン内のすべてのルーターのEnd-SIDルートが、ルーターR0のテーブルにインストールされている inet6.3
ことを確認します。
アクション
運用モードから、ルーターR0で コマンドを実行して、 show route table inet6.3 protocol isis ルーターが学習したすべてのEnd-SIDを表示します。次に、R7ルーターに関連付けられているEnd-SIDに関する詳細情報を表示します。
user@R0> show route table inet6.3 protocol isis inet6.3: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2001:db8:0:a1::d11/128 *[SRV6-ISIS/14] 04:39:22, metric 10 > to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0, SRV6-Tunnel, Dest: 2001:db8:0:a1:d11:: 2001:db8:0:a2::d21/128 *[SRV6-ISIS/14] 04:35:38, metric 20 to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0, SRV6-Tunnel, Dest: 2001:db8:0:a2:d21:: > to fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0, SRV6-Tunnel, Dest: 2001:db8:0:a2:d21:: 2001:db8:0:a3::d31/128 *[SRV6-ISIS/14] 04:35:38, metric 30 to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0, SRV6-Tunnel, Dest: 2001:db8:0:a3:d31:: > to fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0, SRV6-Tunnel, Dest: 2001:db8:0:a3:d31:: 2001:db8:0:a4::d41/128 *[SRV6-ISIS/14] 04:35:38, metric 10 > to fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0, SRV6-Tunnel, Dest: 2001:db8:0:a4:d41:: 2001:db8:0:a5::d51/128 *[SRV6-ISIS/14] 04:35:01, metric 20 to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0, SRV6-Tunnel, Dest: 2001:db8:0:a5:d51:: > to fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0, SRV6-Tunnel, Dest: 2001:db8:0:a5:d51:: 2001:db8:0:a6::d61/128 *[SRV6-ISIS/14] 04:34:32, metric 30 to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0, SRV6-Tunnel, Dest: 2001:db8:0:a6:d61:: > to fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0, SRV6-Tunnel, Dest: 2001:db8:0:a6:d61:: 2001:db8:0:a7::d71/128 *[SRV6-ISIS/14] 04:33:00, metric 40 to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0, SRV6-Tunnel, Dest: 2001:db8:0:a7:d71:: > to fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0, SRV6-Tunnel, Dest: 2001:db8:0:a7:d71:: user@R0> show route 2001:db8:0:a7::d71/128 detail inet6.3: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) 2001:db8:0:a7::d71/128 (1 entry, 1 announced) *SRV6-ISIS Preference: 14 Level: 2 Next hop type: List, Next hop index: 1048577 Address: 0xdb8deb4 Next-hop reference count: 6 Next hop: ELNH Address 0xc5462d4 weight 0x1 Next hop type: Chain, Next hop index: 582 Address: 0xc5462d4 Next-hop reference count: 1 Next hop: ELNH Address 0xc545bcc SRV6-Tunnel: Reduced-SRH Encap-mode Src: 2001:db8:1::1 Dest: 2001:db8:0:a7::d71 Segment-list[0] 2001:db8:0:a7:d71:: Next hop type: Router, Next hop index: 580 Address: 0xc545bcc Next-hop reference count: 9 Next hop: fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0 weight 0x1 Next hop: ELNH Address 0xc546338 weight 0x1, selected Next hop type: Chain, Next hop index: 583 Address: 0xc546338 Next-hop reference count: 1 Next hop: ELNH Address 0xc545f50 SRV6-Tunnel: Reduced-SRH Encap-mode Src: 2001:db8:1::1 Dest: 2001:db8:0:a7:d71:: Segment-list[0] 2001:db8:0:a7:d71:: Next hop type: Router, Next hop index: 581 Address: 0xc545f50 Next-hop reference count: 9 Next hop: fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0 weight 0x1 State: <Active NoReadvrt Int OpaqueData> Local AS: 65550 Age: 4:35:43 Metric: 40 Validation State: unverified ORR Generation-ID: 0 Task: IS-IS Announcement bits (3): 0-Resolve tree 2 1-Resolve tree 5 2-Resolve_IGP_FRR task AS path: I Session-IDs associated: Session-id: 322 Version: 0
意味
出力は、ルーターR0がトポロジー内の他のすべてのルーターからEnd-SID、つまり 2001:db8:0:a1::d11/128
と 2001:db8:0:a2::d21/128
を学習したことを確認します。エンド SID が表にインストールされている inet6.3
ことに注意してください。R7 2001:db8:0:a7:d71::
によってアドバタイズされた End-SID の詳細な出力は、ルーター R0 とルーター R7 の間に SRv6 トンネルが確立されていることを確認します。
セグメント リストには、ルーター R7 で設定された End-SID 値が入力されていることに注意してください。この例のすべての End-SID は、最終的なセグメントのカプセル化解除 (USD) フレーバーで構成されていることを思い出してください。これは、ローカルのEnd-SIDと関連するUSDフレーバーの組み合わせで、R7にIPv6トンネルのエグレスであることを通知します。受信時に、R7 は IPv4 パケットのカプセル化を解除し、IPv4 宛先アドレスに従ってルーティングします。
IS-ISデータベースでのSRv6設定の確認
目的
IS-ISデータベースを表示して、ルーターR7で設定されたEnd-SIDとフレーバーを確認します。この例では、コマンドはルーター R0 で実行されます。IS-ISデータベースはすべてのノードに複製されるため、すべてのルーターで同様の出力が期待されます。
アクション
運用モードから、ルーターR0で コマンドを実行します show isis database R7.00-00 extensive 。
user@R0> show isis database R.00-00 extensive IS-IS level 1 link-state database: IS-IS level 2 link-state database: R7.00-00 Sequence: 0x31f, Checksum: 0x2ce6, Lifetime: 904 secs IS neighbor: R3.00 Metric: 10 Two-way fragment: R3.00-00, Two-way first fragment: R3.00-00 IS neighbor: R6.00 Metric: 10 Two-way fragment: R6.00-00, Two-way first fragment: R6.00-00 V6 prefix: 2001:db8::/32 Metric: 0 Internal Up V6 prefix: 2001:db8:0:a7::/64 Metric: 0 Internal Up V6 prefix: 2001:db8:20:255::20/128 Metric: 0 Internal Up V6 prefix: 2001:db8:37::/64 Metric: 10 Internal Up V6 prefix: 2001:db8:67::2/128 Metric: 10 Internal Up Header: LSP ID: R7.00-00, Length: 445 bytes Allocated length: 746 bytes, Router ID: 172.16.255.20 Remaining lifetime: 904 secs, Level: 2, Interface: 360 Estimated free bytes: 0, Actual free bytes: 301 Aging timer expires in: 904 secs Protocols: IP, IPv6 Packet: LSP ID: R7.00-00, Length: 445 bytes, Lifetime : 1192 secs Checksum: 0x2ce6, Sequence: 0x31f, Attributes: 0x3 <L1 L2> NLPID: 0x83, Fixed length: 27 bytes, Version: 1, Sysid length: 0 bytes Packet type: 20, Packet version: 1, Max area: 0 TLVs: Area address: 49.00 (2) LSP Buffer Size: 1492 Speaks: IP Speaks: IPV6 IP router id: 172.16.255.20 IP address: 172.16.255.20 IPv6 TE Router ID: 2001:db8:20:255::20 Hostname: R7 SRv6 Locator: 2001:db8:0:a7::/64, Metric: 0, MTID: 0, Flags: 0x0, Algorithm: 0 SRv6 SID: 2001:db8:0:a7:d71::, Flavor: USD IPv6 prefix: 2001:db8:20:255::20/128 Metric 0 Up IPv6 prefix: 2001:db8::/32 Metric 0 Up IPv6 prefix: 2001:db8:0:a7::/64 Metric 0 Up IPv6 prefix: 2001:db8:37::/64 Metric 10 Up IPv6 prefix: 2001:db8:67::2/128 Metric 10 Up Router Capability: Router ID 172.16.255.20, Flags: 0x00 SPRING Algorithm - Algo: 0 SRv6 Capability - Flags: 0 Node MSD Advertisement Sub-TLV:Type: 23, Length: 10 SRv6 Maximum Segments Left MSD:Type: 41, Value: 6 SRv6 Maximum Pop MSD:Type: 42, Value: 7 SRv6 Maximum Insert MSD:Type: 43, Value: 5 SRv6 Maximum Encap MSD:Type: 44, Value: 6 SRv6 Maximum End D MSD:Type: 45, Value: 6 IPv6 TE Router Id: 2001:db8:20:255::20 IS neighbor: R6.00, Internal, Metric: default 10 IS neighbor: R3.00, Internal, Metric: default 10 Extended IS Reachability TLV, Type: 22, Length: 174 IS extended neighbor: R6.00, Metric: default 10 SubTLV len: 76 IPv6 address: 2001:db8:67::2 Neighbor's IP address: 192.168.255.6 Neighbor's IPv6 address: 2001:db8:67::1 Local interface index: 361, Remote interface index: 364 P2P SRV6 END-X-SID:2001:db8:0:a7:1a76:: , Flags:B-P, Weight:0, Algorithm:0 Flags:0xa0(B:1,S:0,P:1), Flavor: PSP IS extended neighbor: R3.00, Metric: default 10 SubTLV len: 76 IPv6 address: 2001:db8:37::2 Neighbor's IP address: 192.168.255.3 Neighbor's IPv6 address: 2001:db8:37::1 Local interface index: 360, Remote interface index: 336 P2P SRV6 END-X-SID:2001:db8:0:a7:1a73:: , Flags:B-P, Weight:0, Algorithm:0 Flags:0xa0(B:1,S:0,P:1), Flavor: PSP No queued transmissions
意味
withFlavor: USD
の存在SRv6 SID: 2001:db8:0:a7:d71::
は、SRv6がR7ルーターのSIDカプセル化解除フレーバーで有効になっていることを裏付けています。また、出力には、R7 のインターフェイスが PSP フレーバーを使用した TI-LFA 保護用に構成されていることも示されています。
SRv6トンネルを使用したCE2へのルートの確認
目的
R7 の IPv4 サブネットへのルートを表示し、ネクストホップが SRv6 トンネルを指していることを確認します。
アクション
運用モードから、ルーターR0で コマンドを実行します show route 172.16.20.0/24 。
user@R0> show route 172.16.20.0/24 inet.0: 36 destinations, 36 routes (36 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 172.16.20.0/24 *[BGP/170] 05:20:58, localpref 100, from 2001:db8:2:255::2 AS path: I, validation-state: unverified to fe80::2e6b:f5ff:fedb:e800 via xe-0/0/0:0.0, SRV6-Tunnel, Dest: 2001:db8:0:a7:d71:: > to fe80::2e6b:f5ff:feb4:4000 via xe-0/0/0:2.0, SRV6-Tunnel, Dest: 2001:db8:0:a7:d71::
意味
出力では、R0がR2へのBGPセッションを通じてサブネットへの 172.16.20.0/24
ルートを学習したことを確認しています。この例では、recallがルートリフレクタとして設定されています。ネクストホップは、R7ルーターへのSRv6トンネルがこのルートにインストールされていることを確認します。2つのネクストホップは、トポロジー例のR0ルーターとR7ルーター間で2つの等コストパスであることに合わせて利用できます。
CE1とCE2間のIPv4接続をテストする
目的
pingを生成して、IPv6プロバイダーコアを介したCEデバイス間のIPv4接続を確認します。
アクション
運用モードから、ルーターR0で コマンドを実行します ping 172.16.20.2 source 172.16.10.2 count 2 。
user@R0> ping 172.16.20.2 source 172.16.10.2 count 2 PING 172.16.20.2 (172.16.20.2): 56 data bytes 64 bytes from 172.16.20.2: icmp_seq=0 ttl=64 time=114.922 ms 64 bytes from 172.16.20.2: icmp_seq=1 ttl=64 time=89.558 ms --- 172.16.20.2 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 89.558/102.240/114.922/12.682 ms
意味
この出力では、CEデバイス・ネットワーク間でIPv4接続が機能していることを確認します。これにより、この例では、IPv6プロバイダーコアを介したSRv6トンネリングが正しく動作していることが検証されます。