! hostname R5 ! interface Loopback1 ip address 55.55.55.5 255.255.255.0 ! interface Serial2/2 ip address 145.10.10.5 255.255.255.0 serial restart-delay 0 ! router bgp 500 no synchronization bgp log-neighbor-changes network 55.55.55.0 mask 255.255.255.0 neighbor 145.10.10.4 remote-as 234 no auto-summary !
调试
进行调试
R2#show ip bgp BGP table version is 2, local router ID is 123.10.10.2 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path *> 11.11.11.0/24 112.10.10.1 0 0 100 i * i55.55.55.0/24 134.10.10.4 0 100 0 500 i
R3#show ip bgp BGP table version is 7, local router ID is 134.10.10.3 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path *>i11.11.11.0/24 123.10.10.2 0 100 0 100 i *>i55.55.55.0/24 134.10.10.4 0 100 0 500 i
R4#show ip bgp BGP table version is 2, local router ID is 135.10.10.4 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path * i11.11.11.0/24 123.10.10.2 0 100 0 100 i *> 55.55.55.0/24 145.10.10.5 0 0 500 i