BGP-OSPF 設定例(2)とステータス確認

構成図

ISR5 (OSPF)

show ip ospf neighbor
show ip ospf interface brief
show ip ospf interface
show ip ospf database

ISR1(BGP)
show ip route bgp
show ip bgp
show ip bgp summary
show ip bgp neighbors 10.1.12.2 advertised-routes
show ip bgp neighbors 10.1.13.3 advertised-routes
show ip bgp neighbors 10.1.13.3 received-routes

 

--------ステータス表示例-------

■ISR5■

ISR5#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.1.24.2         1   FULL/DR         00:00:35    172.16.25.2     GigabitEthernet2
10.1.13.1         1   FULL/DR         00:00:31    172.16.15.1     GigabitEthernet1
ISR5#show ip ospf interface brief
Interface    PID   Area            IP Address/Mask    Cost  State Nbrs F/C
Lo1          1     0               192.168.5.5/24     1     P2P   0/0
Gi2          1     0               172.16.25.5/24     1     BDR   1/1
Gi1          1     0               172.16.15.5/24     1     BDR   1/1
ISR5#show ip ospf interface
Loopback1 is up, line protocol is up
  Internet Address 192.168.5.5/24, Interface ID 12, Area 0
  Attached via Network Statement
  Process ID 1, Router ID 192.168.5.5, Network Type POINT_TO_POINT, Cost: 1
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name
        0           1         no          no            Base
  Transmit Delay is 1 sec, State POINT_TO_POINT
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
  Supports Link-local Signaling (LLS)
  Cisco NSF helper support enabled
  IETF NSF helper support enabled
  Can be protected by per-prefix Loop-Free FastReroute
  Can be used for per-prefix Loop-Free FastReroute repair paths
  Not Protected by per-prefix TI-LFA
  Index 1/3/3, flood queue length 0
  Next 0x0(0)/0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 0
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0
  Suppress hello for 0 neighbor(s)
GigabitEthernet2 is up, line protocol is up
  Internet Address 172.16.25.5/24, Interface ID 8, Area 0
  Attached via Network Statement
  Process ID 1, Router ID 192.168.5.5, Network Type BROADCAST, Cost: 1
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name
        0           1         no          no            Base
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 10.1.24.2, Interface address 172.16.25.2
  Backup Designated router (ID) 192.168.5.5, Interface address 172.16.25.5
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:00
  Supports Link-local Signaling (LLS)
  Cisco NSF helper support enabled
  IETF NSF helper support enabled
  Can be protected by per-prefix Loop-Free FastReroute
  Can be used for per-prefix Loop-Free FastReroute repair paths
  Not Protected by per-prefix TI-LFA
  Index 1/2/2, flood queue length 0
  Next 0x0(0)/0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 10.1.24.2  (Designated Router)
  Suppress hello for 0 neighbor(s)
GigabitEthernet1 is up, line protocol is up
  Internet Address 172.16.15.5/24, Interface ID 7, Area 0
  Attached via Network Statement
  Process ID 1, Router ID 192.168.5.5, Network Type BROADCAST, Cost: 1
  Topology-MTID    Cost    Disabled    Shutdown      Topology Name
        0           1         no          no            Base
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 10.1.13.1, Interface address 172.16.15.1
  Backup Designated router (ID) 192.168.5.5, Interface address 172.16.15.5
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:03
  Supports Link-local Signaling (LLS)
  Cisco NSF helper support enabled
  IETF NSF helper support enabled
  Can be protected by per-prefix Loop-Free FastReroute
  Can be used for per-prefix Loop-Free FastReroute repair paths
  Not Protected by per-prefix TI-LFA
  Index 1/1/1, flood queue length 0
  Next 0x0(0)/0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 2
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 10.1.13.1  (Designated Router)
  Suppress hello for 0 neighbor(s)
ISR5#show ip ospf database

            OSPF Router with ID (192.168.5.5) (Process ID 1)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
10.1.13.1       10.1.13.1       554         0x80000004 0x00C899 1
10.1.24.2       10.1.24.2       546         0x80000004 0x00E055 1
192.168.5.5     192.168.5.5     536         0x80000008 0x005510 3

                Net Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum
172.16.15.1     10.1.13.1       554         0x80000001 0x002C9B
172.16.25.2     10.1.24.2       546         0x80000001 0x00CDD6

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
192.168.6.0     10.1.13.1       496         0x80000001 0x00322D 65002
ISR5#

 

■ISR-1■

ISR1#show ip route bgp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, 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
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

B     192.168.6.0/24 [20/110] via 10.1.13.3, 00:20:15
ISR1#show ip bgp
BGP table version is 3, local router ID is 10.1.13.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   192.168.5.0      172.16.15.5              2         32768 i
 *>   192.168.6.0      10.1.13.3              110    200      0 65002 i
ISR1#show ip bgp summary
BGP router identifier 10.1.13.1, local AS number 65001
BGP table version is 3, main routing table version 3
2 network entries using 496 bytes of memory
3 path entries using 408 bytes of memory
3/2 BGP path/bestpath attribute entries using 840 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1768 total bytes of memory
1 received paths for inbound soft reconfiguration
BGP activity 2/0 prefixes, 4/1 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.1.12.2       4        65001     176     173        3    0    0 00:27:16        0
10.1.13.3       4        65002     162     163        3    0    0 00:25:16        1
ISR1#show ip bgp neighbors 10.1.12.2 advertised-routes
BGP table version is 3, local router ID is 10.1.13.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   192.168.5.0      172.16.15.5              2         32768 i
 *>   192.168.6.0      10.1.13.3              110    200      0 65002 i

Total number of prefixes 2
ISR1#show ip bgp neighbors 10.1.13.3 advertised-routes
BGP table version is 3, local router ID is 10.1.13.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>   192.168.5.0      172.16.15.5              2         32768 i

Total number of prefixes 1
ISR1#show ip bgp neighbors 10.1.13.3 received-routes
BGP table version is 3, local router ID is 10.1.13.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
              t secondary path,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *    192.168.6.0      10.1.13.3              110             0 65002 i

Total number of prefixes 1
ISR1#