このモジュールでは、Routing Information Protocol(RIP)を設定およびモニタするために使用するコマンドについて説明します。
RIP の概念、設定作業、および例については、 『Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide』の「Implementing RIP on Cisco ASR 9000 Series Router 」のモジュールを参照してください。
Minor 状態では、現在アクティブな RIP VRF とインターフェイスはアクティブなままになります。 現在アクティブでない VRF とインターフェイスは、RIP プロセスが Normal 状態に遷移するまでアクティブになることができません。
Severe 状態では、RIP プロセスが別の状態に遷移するまで、いくつかの VRF とインターフェイスが強制的にダウン状態にされます。
Critical 状態では、RIP プロセスが強制的にシャットダウンされます。
Severe 状態で強制的にシャットダウンされた VRF とインターフェイスは、RIP プロセスが Minor 状態または Normal 状態に遷移しても、自動的にアクティブ化されません。 Severe 状態で VRF またはインターフェイスが強制的にダウン状態にされた場合、clear rip、clear rip interface、または clear rip out-of-memory コマンドを実行すると Forced Down 状態がクリアされ、VRF またはインターフェイスが再度アクティブ化されます。
show rip コマンドおよび show rip interface コマンドを使用すると、現在のメモリ不足状態を表示できます。
RP/0/RSP0/CPU0:router(config)# router ripRP/0/RSP0/CPU0:router(config-rip)# interface GigabitEthernet 0/1/0/0RP/0/RSP0/CPU0:router(config-rip-if)# ?
broadcast-for-v2 Specify broadcast address for RIP v2 output packet
commit Commit the configuration changes to running
describe Describe a command without taking real actions
do Run an exec command
exit Exit from this submode
metric-zero-accept Accept rip update with metric 0 to compensate a common bug
no Negate a command or set its defaults
passive-interface Suppress routing updates on this interface
poison-reverse Enable poison reverse
receive Advertisement reception
route-policy Apply route policy to routing updates
send Advertisement transmission
show Show contents of configuration
site-of-origin SOO community for prefixes learned over this interface
split-horizon Disable split horizon
RP/0/RSP0/CPU0:router(config-rip-if)# broadcast-for-v2
バージョン固有のパケットを受け付けるように Routing Information Protocol(RIP)インターフェイスを設定するには、インターフェイス コンフィギュレーション モードで receive version コマンドを使用します。 デフォルト設定に戻すには、このコマンドの no 形式を使用します。
receiveversion
{ 1 | 2 | 12 }
noreceiveversion
{ 1 | 2 | 12 }
構文の説明
1
バージョン 1 のパケット
2
バージョン 2 のパケット
12
バージョン 1 と 2 のパケット
コマンド デフォルト
バージョン 2
コマンド モード
インターフェイス コンフィギュレーション
コマンド履歴
リリース
変更箇所
リリース 3.7.2
このコマンドが追加されました。
使用上のガイドライン
このコマンドを使用するには、適切なタスク ID を含むタスク グループに関連付けられているユーザ グループに属している必要があります。 ユーザ グループの割り当てのためにコマンドを使用できない場合は、AAA 管理者に連絡してください。
receive version コマンドは、RIP のデフォルトの動作を変更するために使用します。 このコマンドは、設定中のインターフェイスだけに適用されます。
ルーティング ポリシーの詳細については、『Cisco ASR 9000 Series Aggregation Services RouterRouting Command Reference』の「Cisco ASR 9000 Series Router 」のモジュールの「Routing Policy Commands」を参照してください。
RP/0/RSP0/CPU0:router(config)# router ripRP/0/RSP0/CPU0:router(config-rip)# ?
auto-summary Enable automatic network number summarization
broadcast-for-v2 Send RIP v2 output packets to broadcast address
commit Commit the configuration changes to running
default-information Control distribution of default information
default-metric Set metric of redistributed routes
describe Describe a command without taking real actions
distance Define an administrative distance
do Run an exec command
exit Exit from this submode
interface Enter the RIP interface configuration submode
maximum-paths Maximum number of paths allowed per route
neighbor Specify a neighbor router
no Negate a command or set its defaults
nsf Enable Cisco Non Stop Forwarding
output-delay Interpacket delay for RIP updates
redistribute Redistribute information from another routing protocol
route-policy Apply route policy to routing updates
show Show contents of configuration
timers Adjust routing timers
validate-update-source Validate source address of routing updates
vrf Enter the RIP vrf configuration submode
RP/0/RSP0/CPU0:router(config-rip)#
route-policy(RIP)
Routing Information Protocol(RIP)ネイバーにアドバタイズするアップデートや、RIP ネイバーから受信するアップデートにルーティング ポリシーを適用するには、適切なコンフィギュレーション モードで route-policy コマンドを使用します。 ルーティング ポリシーのアップデートへの適用をディセーブルにするには、このコマンドの no 形式を使用します。
route-policyname
{ in | out }
noroute-policyname
{ in | out }
構文の説明
name
ルート ポリシーの名前。
in
ポリシーを着信ルートに適用します。
out
ポリシーを発信ルートに適用します。
コマンド デフォルト
ポリシーは適用されません。
コマンド モード
ルータ コンフィギュレーション
VRF コンフィギュレーション
インターフェイス コンフィギュレーション
コマンド履歴
リリース
変更箇所
リリース 3.7.2
このコマンドが追加されました。
使用上のガイドライン
このコマンドを使用するには、適切なタスク ID を含むタスク グループに関連付けられているユーザ グループに属している必要があります。 ユーザ グループの割り当てのためにコマンドを使用できない場合は、AAA 管理者に連絡してください。
RP/0/RSP0/CPU0:router(config)# router ripRP/0/RSP0/CPU0:router(config-rip)# interface GigabitEthernet 0/1/0/0RP/0/RSP0/CPU0:router(config-rip-if)# route-policy updpol-1 in
send version
バージョン固有のパケットを送信するように Routing Information Protocol(RIP)インターフェイスを設定するには、インターフェイス コンフィギュレーション モードで send version コマンドを使用します。 デフォルト設定に戻すには、このコマンドの no 形式を使用します。
sendversion
{ 1 | 2 | 12 }
nosendversion
{ 1 | 2 | 12 }
構文の説明
1
バージョン 1 のパケット
2
バージョン 2 のパケット
12
バージョン 1 とバージョン 2 のパケット
コマンド デフォルト
バージョン 2
コマンド モード
インターフェイス コンフィギュレーション
コマンド履歴
リリース
変更箇所
リリース 3.7.2
このコマンドが追加されました。
使用上のガイドライン
このコマンドを使用するには、適切なタスク ID を含むタスク グループに関連付けられているユーザ グループに属している必要があります。 ユーザ グループの割り当てのためにコマンドを使用できない場合は、AAA 管理者に連絡してください。
send version コマンドは、RIP のデフォルトの動作を変更するために使用します。 このコマンドは、設定中のインターフェイスだけに適用されます。
RIP の場合、コマンド出力には、インスタンス番号、デフォルト AS コンテキスト、ルータ ID、デフォルト ネットワーク、距離、最大パスなどが表示されます。
タスク ID
タスク ID
操作
RIP
read
例
次に、show protocols rip コマンドの出力例を示します。
RP/0/RSP0/CPU0:router# show protocols rip
Routing Protocol RIP
2 VRFs (including default) configured, 2 active
25 routes, 16 paths have been allocated
Current OOM state is "Normal"
UDP socket descriptor is 37
VRF Active If-config If-active Routes Paths Updates
default Active 3 3 11 7 30s
次の表に、この出力で表示される重要なフィールドの説明を示します。
表 2 show protocols のフィールドの説明
フィールド
説明
VRFs configured
設定されている VRF の数
VRFs active
アクティブな VRF の数
Routes
割り当てられているルートの数
Paths
割り当てられているパスの数
OOM state
RIP プロセスの現在のメモリ不足状態
UDP socket
現在の UDP ソケット記述子の値
show rip
Routing Information Protocol(RIP)の設定とステータスを表示するには、EXEC モードで show rip コマンドを使用します。
このコマンドを使用するには、適切なタスク ID を含むタスク グループに関連付けられているユーザ グループに属している必要があります。 ユーザ グループの割り当てのためにコマンドを使用できない場合は、AAA 管理者に連絡してください。
タスク ID
タスク ID
操作
rip
read
例
次に、show rip コマンドの出力例を示します。
RP/0/RSP0/CPU0:router# show rip
RIP config:
Active?: Yes
Added to socket?: Yes
Out-of-memory state: Normal
Version: 2
Default metric: Not set
Maximum paths: 4
Auto summarize?: No
Broadcast for V2?: No
Packet source validation?: Yes
NSF: Disabled
Timers: Update: 30 seconds (25 seconds until next update)
Invalid: 180 seconds
Holddown: 180 seconds
Flush: 240 seconds
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode: MD5 Key chain: <key-chain-name>
Current active send key id: <send key id>
Current active receive key id: <recv key id>
Packets received: <num-rx-packets>
Authenticated packets received: <num-auth-rx-packets>
Packets dropped due to wrong keychain config: <num-rx-wrong-auth-cfg-pkts>
Packets received without authentication data: <num-rx-auth-missing-pkt>
Packets received with invalid authentication: <num-rx-invalid-auth-pkt>
RIP インターフェイス上で設定されたキーチェーンが存在しないか、アクティブ キーがない場合:
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode: MD5 Key chain: <key-chain-name>
No active key found in keychain database.
Packets received: <num-rx-packets>
Authenticated packets received: <num-auth-rx-packets>
Packets dropped due to wrong keychain config: <num-rx-wrong-auth-cfg-pkts>
Packets received without authentication data: <num-rx-auth-missing-pkt>
Packets received with invalid authentication: <num-rx-invalid-auth-pkt>
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode: MD5 Key chain: <key-chain-name>
Key(s) not configured with MD5 cryptographic algorithm.
Packets received: <num-rx-packets>
Authenticated packets received: <num-auth-rx-packets>
Packets dropped due to wrong keychain config: <num-rx-wrong-auth-cfg-pkts>
Packets received without authentication data: <num-rx-auth-missing-pkt>
Packets received with invalid authentication: <num-rx-invalid-auth-pkt>
RIP インターフェイス上で認証キーチェーンが設定されていない場合:
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode is not set.
Packets received: <num-rx-packets>
デフォルト以外の VRF での RIP インターフェイスの認証キーチェーン設定
次に示す show ripvrfvrf-nameinterfaceinterface-path-id コマンドの出力例には、デフォルト以外の VRF での RIP インターフェイスの認証キーチェーン設定が表示されています。
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode: MD5 Key chain: <key-chain-name>
Packets received: <num-rx-packets>
Authenticated packets received: <num-auth-rx-packets>
Packets dropped due to wrong keychain config: <num-rx-wrong-auth-cfg-pkts>
Packets received without authentication data: <num-rx-auth-missing-pkt>
Packets received with invalid authentication: <num-rx-invalid-auth-pkt>
RIP インターフェイス上で設定されたキーチェーンが存在しないか、アクティブ キーがない場合:
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode: MD5 Key chain: <key-chain-name>
No active key found in keychain database.
Packets received: <num-rx-packets>
Authenticated packets received: <num-auth-rx-packets>
Packets dropped due to wrong keychain config: <num-rx-wrong-auth-cfg-pkts>
Packets received without authentication data: <num-rx-auth-missing-pkt>
Packets received with invalid authentication: <num-rx-invalid-auth-pkt>
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode: MD5 Key chain: <key-chain-name>
Key(s) not configured with MD5 cryptographic algorithm.
Packets received: <num-rx-packets>
Authenticated packets received: <num-auth-rx-packets>
Packets dropped due to wrong keychain config: <num-rx-wrong-auth-cfg-pkts>
Packets received without authentication data: <num-rx-auth-missing-pkt>
Packets received with invalid authentication: <num-rx-invalid-auth-pkt>
RIP インターフェイス上で認証キーチェーンが設定されていない場合:
GigabitEthernet0/3/0/3 (Forward Reference)
Rip enabled?: No
Out-of-memory state: Normal
Broadcast for V2: No
Accept Metric 0?: No
Send versions: 2
Receive versions: 2
Interface state: Unknown State
IP address: 0.0.0.0/0
Metric Cost: 0
Split horizon: Enabled
Poison Reverse: Disabled
Socket set options:
Joined multicast group?: No
LPTS filter set?: No
Authentication mode is not set.
Packets received: <num-rx-packets>
次の表に、この出力で表示される重要なフィールドの説明を示します。
表 6 show rip [vrf <vrf-name>] interface のフィールドの説明
Authentication mode: MD5 Key chain
MD5 認証モードはイネーブルです。
Current active send key id
アクティブ送信キー ID。
Current active receive key id
アクティブ受信キー ID。
Packets received
インターフェイスの受信パケット数。
Authenticated packets received
認証が有効な状態で受信されたパケットの数。
Packets dropped due to wrong keychain config
誤ったキーチェーン設定が原因でドロップされたパケットの数。
Packets received without authentication data
認証データなしで受信されたパケットの数。
Packets received with invalid authentication
認証が無効な状態で受信されたパケットの数。
No active key found in keychain database
IOS XR キーチェーン データベース内にアクティブ キーがありません。
Key(s) not configured with MD5 cryptographic algorithm
キーは MD5 暗号化アルゴリズムを使用するように設定されていません。
Authentication mode is not set
認証モードは設定されていません。
show rip statistics
Routing Information Protocol(RIP)トポロジ テーブルの統計エントリ情報を表示するには、EXEC モードで show rip statistics コマンドを使用します。
Routing Information Protocol(RIP)インターフェイスに対して Site of Origin(SoO)フィルタリングを設定するには、インターフェイス コンフィギュレーション モードで site-of-origin コマンドを使用します。 インターフェイス上で SoO フィルタリングをディセーブルにするには、このコマンドの no 形式を使用します。
site-of-origin
{ as-number
:
number | ip-address
:
number }
nosite-of-origin
{ as-number
:
number | ip-address
:
number }
ネットワーク番号。 2 バイトの AS 番号を使用する場合、範囲は 0 ~ 4294967295 です。 4 バイトの AS 番号を使用する場合、範囲は 0 ~ 65535 です。
ip-address
IP アドレス引数には、ドット付き 10 進数表記の、4 つの部分からなる IP アドレスを指定します。
IP アドレスとネットワーク番号はコロンで区切ります。
コマンド デフォルト
デフォルトの動作または値はありません。
コマンド モード
インターフェイス コンフィギュレーション
コマンド履歴
リリース
変更箇所
リリース 3.7.2
このコマンドが追加されました。
リリース 3.9.0
4 バイトの自律システム番号表記の asplain 形式がサポートされました。
使用上のガイドライン
このコマンドを使用するには、適切なタスク ID を含むタスク グループに関連付けられているユーザ グループに属している必要があります。 ユーザ グループの割り当てのためにコマンドを使用できない場合は、AAA 管理者に連絡してください。
バックドア リンクを使用したサイト間の MPLS VPN リンクを含む複雑なトポロジをサポートする必要がある場合、RIP プロセスは、ボーダー ゲートウェイ プロトコル(BGP)から再配布されるルートに対する SoO 属性を取得できる必要があります。
プレフィックスが再び送信元サイトにアドバタイズされないように、サイトから発信されたルートの識別に使用する SoO BGP 拡張コミュニティ属性を設定するには、site-of-origin コマンドを使用します。 SoO 拡張コミュニティは、プロバイダー エッジ(PE)ルータがルートを学習したサイトを一意に識別します。
RP/0/RSP0/CPU0:router(config)# router ripRP/0/RSP0/CPU0:router(config-rip)# vrf vpn-1RP/0/RSP0/CPU0:router(config-rip-vrf)# ?
auto-summary Enable automatic network number summarization
broadcast-for-v2 Send RIP v2 output packets to broadcast address
commit Commit the configuration changes to running
default-information Control distribution of default information
default-metric Set metric of redistributed routes
describe Describe a command without taking real actions
distance Define an administrative distance
do Run an exec command
exit Exit from this submode
interface Enter the RIP interface configuration submode
maximum-paths Maximum number of paths allowed per route
neighbor Specify a neighbor router
no Negate a command or set its defaults
nsf Enable Cisco Non Stop Forwarding
output-delay Interpacket delay for RIP updates
redistribute Redistribute information from another routing protocol
route-policy Apply route policy to routing updates
show Show contents of configuration
timers Adjust routing timers
validate-update-source Validate source address of routing updates
RP/0/RSP0/CPU0:router(config-rip-vrf)#