23.4.4 広告経路フィルタリング前の確認
広告対象となる経路は,基本的にはルーティングテーブルにある優先経路です。広告経路フィルタリングの対象となる経路を確認するには,ルーティングテーブルの経路を表示してください。
IPv4のルーティングテーブルの優先経路はshow ip routeコマンドで,IPv6のルーティングテーブルの優先経路はshow ipv6 routeコマンドで表示します。
> show ip route Date 20XX/03/14 12:00:00 UTC Total: 8 routes Destination Next Hop Interface Metric Protocol Age 172.16.1/24 192.168.1.145 Eth1/7 2/0 RIP 12s 192.168.1/24 192.168.1.1 Eth1/7 0/0 Connected 2s 192.168.1.1/32 192.168.1.1 Eth1/7 0/0 Connected 1h 31s 192.168.100/24 192.168.1.145 Eth1/7 -/- BGP 11m 26s 192.168.110/24 192.168.1.145 Eth1/7 1/1 OSPF ext2 52s 192.168.200/24 192.168.1.145 Eth1/7 0/0 Static 46m 58s |
ルーティングテーブルの優先経路を特定の学習元プロトコルだけ表示するには,show ip routeコマンドまたはshow ipv6 routeコマンドでパラメータとしてプロトコルを指定してください。
> show ip route rip Date 20XX/03/14 12:00:00 UTC Total: 5 routes Destination Next Hop Interface Metric Protocol Age 172.16.1/24 192.168.1.145 Eth1/7 2/0 RIP 12s |
ルーティングテーブルの優先経路の詳細な経路属性を確認するには,show ip routeコマンドまたはshow ipv6 routeコマンドで-Fパラメータを指定してください。
> show ip route -F Date 20XX/03/14 12:00:00 UTC Total: 8 routes Destination Next Hop Interface Metric Protocol Age 172.16.1/24 192.168.1.145 Eth1/7 2/0 RIP 19s, Distance: 120/0/0, Tag: 0, AS-Path: IGP (Id 1), Communities: -, LocalPref: -,<Int Active Gateway> 192.168.1/24 192.168.1.1 Eth1/7 0/0 Connected 7s, Distance: 0/0/0, Tag: 0, AS-Path: IGP (Id 1), Communities: -, LocalPref: -, <Active Retain> 192.168.1.1/32 192.168.1.1 Eth1/7 0/0 Connected 1h 45m, Distance: 0/0/0, Tag: 0, AS-Path: IGP (Id 1), Communities: -, LocalPref: -, <NoAdvise Active Retain> 192.168.100/24 192.168.1.145 Eth1/7 -/- BGP 12m 57s, Distance: 20/0/0, Tag: 0, AS-Path: 1000 IGP (Id 3), Communities: 120:200, LocalPref: 100, <Ext Active Gateway> 192.168.110/24 192.168.1.145 Eth1/7 1/1 OSPF ext2 3m 34s, Distance: 110/1/0, Tag: 10, AS-Path: IGP (Id 1), Communities: -, LocalPref: -, <Int Ext Active Gateway> 192.168.200/24 192.168.1.145 Eth1/7 0/0 Static 1h 0m, Distance: 2/0/0, Tag: 0, AS-Path: IGP (Id 1), Communities: -, LocalPref: -, <Remote Int Active Gateway> |
BGP4およびBGP4+では,ルーティングテーブル上にあるBGP4またはBGP4+の優先ではない経路も広告対象になることがあります。優先ではない経路も含めて,ルーティングテーブル上にあるBGP4経路またはBGP4+経路を表示するには,show ip routeコマンドまたはshow ipv6 routeコマンドでall-routesパラメータを指定して,さらにパラメータとしてbgpを指定してください。
> show ip route all-routes bgp Date 20XX/03/14 12:00:00 UTC Status Codes: * valid, > active, r RIB failure Total: 12 routes Destination Next Hop Interface Metric Protocol Age *> 192.168.100/24 192.168.1.145 Eth1/7 -/- BGP 11m 26s┐ * 192.168.200/24 192.168.1.145 Eth1/7 -/- BGP 50m 14s┘<-1 |
-
経路行の先頭の「*」および「>」は次の意味を示します。
*:その経路は有効経路です。*がなければ無効経路です。
>:その経路は優先経路です。パケット転送には優先経路だけを使用します。