redistribute

モード
BGPモード
カテゴリー
IP / 経路制御(BGP)

構文

コマンド構文

(config-router)# [no] redistribute {connected|static|rip|ospf} [route-map NAME]

コマンド説明

指定した種類の非BGP経路をBGP経路表に追加する。これは、非BGP経路をBGPで再通知するための設定。
no形式でオプションを指定しなかった場合は、指定した種類の非BGP経路をBGP経路表から削除する。
no形式でオプションを指定した場合は、該当オプションをオフにする。

パラメーター

connected
インターフェース経路(直結経路)
static
スタティック経路(ip routeコマンドで登録した経路)
rip
RIP経路。RIPインターフェースの直結経路は含まれないので注意
ospf
OSPF経路。OSPFインターフェースの直結経路は含まれないので注意
route-map NAME
ルートマップ名。特定の非BGP経路だけを再通知したい場、あるいは再通知したくない場合、また、再通知する経路の属性を任意に設定したい場合などに指定する

使用例

awplus(config)# do show ip bgp

awplus(config)# do show ip route
Codes: C - connected, S - static, R - RIP, B - BGP
       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
       * - candidate default

C       10.10.10.0/24 is directly connected, vlan1000
C       172.16.10.0/24 is directly connected, vlan10
C       172.16.20.0/24 is directly connected, vlan20
C       172.16.30.0/24 is directly connected, vlan30
C       172.16.40.0/24 is directly connected, vlan40
C       172.16.50.0/24 is directly connected, vlan50
C       172.16.60.0/24 is directly connected, vlan60
C       172.16.70.0/24 is directly connected, vlan70
C       172.16.80.0/24 is directly connected, vlan80
C       172.16.90.0/24 is directly connected, vlan90

awplus(config)# router bgp 65010
awplus(config-router)# redistribute connected
awplus(config-router)# do show ip bgp
BGP table version is 48, local router ID is 10.10.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 10.10.10.0/24    0.0.0.0                            32768 ?
*> 172.16.10.0/24   0.0.0.0                            32768 ?
*> 172.16.20.0/24   0.0.0.0                            32768 ?
*> 172.16.30.0/24   0.0.0.0                            32768 ?
*> 172.16.40.0/24   0.0.0.0                            32768 ?
*> 172.16.50.0/24   0.0.0.0                            32768 ?
*> 172.16.60.0/24   0.0.0.0                            32768 ?
*> 172.16.70.0/24   0.0.0.0                            32768 ?
*> 172.16.80.0/24   0.0.0.0                            32768 ?
*> 172.16.90.0/24   0.0.0.0                            32768 ?

Total number of prefixes 10
Total number of routes 10 (feature license allows maximum of 1000000)

コマンドツリー

関連コマンド