BGPの構築

ネットワーク図

※AS番号にはプライベートAS番号(64512〜65534)を使う

BGPの設定

R1# conf t
R1(config)# router bgp 65001
R1(config-router)# neighbor 172.20.13.3 remote-as 65003
R1(config-router)# redistribute ospf(OSPFの情報を再配布


R3# conf t
R3(config)# router bgp 65003
R3(config-router)# neighbor 172.20.13.1 remote-as 65001
R3(config-router)# redistribute rip(RIPの情報を再配布
R3(config-router)# redistribute connected(connectedも再配布 ※必要であれば

  • BGPテーブル

R1# sh ip bgp

BGP table version is 0, local router ID is 172.20.13.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 172.20.13.0/24   172.20.13.3              1      0  65003 ?
*> 172.20.35.0/24   172.20.13.3              1      0  65003 ?
*> 172.20.56.0/24   172.20.13.3              2      0  65003 ?
*> 172.20.57.0/24   172.20.13.3              2      0  65003 ?
*> 172.20.58.0/24   172.20.13.3              2      0  65003 ?

Total number of prefixes 5

BGPの情報をOSPFやRIPに再配布することもできるけど
そんなことするよりデフォルトルートで済ましてみた