§‖ Date ::..
§‖ BLog Info ::..
§‖ New BLog ::..
§‖ Comment ::..
§‖ Message ::..
§‖ User Login ::..
§‖ Search ::..
§‖ Links ::..

 
CCNP :BGP的IGP邻居   张超


                                                                                             


 

 

 

 

 


R1


interface Loopback0
 ip address 1.1.1.1 255.255.255.255

interface Serial2/1
 ip address 12.0.0.1 255.255.255.0
 serial restart-delay 0

router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0

router bgp 100
 bgp log-neighbor-changes
 network 1.1.1.1 mask 255.255.255.255
 neighbor 3.3.3.3 remote-as 100
 neighbor 3.3.3.3 update-source Loopback0

line con 0
 exec-timeout 0 0
 logging synchronous
 stopbits 1
line aux 0
 stopbits 1
line vty 5 15


R1#show ip bgp summary
BGP router identifier 1.1.1.1, local AS number 100
BGP table version is 3, main routing table version 3
2 network entries and 2 paths using 266 bytes of memory
2 BGP path attribute entries using 120 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 activity 2/8 prefixes, 2/0 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
3.3.3.3         4   100      83      83        3    0    0 01:18:59        1
R1#show ip bgp neighbors
BGP neighbor is 3.3.3.3,  remote AS 100, internal link
  BGP version 4, remote router ID 3.3.3.3
  BGP state = Established, up for 01:19:33
  Last read 00:00:33, hold time is 180, keepalive interval is 60 seconds
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Address family IPv4 Unicast: advertised and received
  Received 84 messages, 0 notifications, 0 in queue
  Sent 84 messages, 0 notifications, 0 in queue
  Route refresh request: received 0, sent 0
  Default minimum time between advertisement runs is 5 seconds

 For address family: IPv4 Unicast
  BGP table version 3, neighbor version 3
  Index 1, Offset 0, Mask 0x2
  1 accepted prefixes consume 36 bytes
  Prefix advertised 1, suppressed 0, withdrawn 0
  Number of NLRIs in the update sent: max 1, min 0

  Connections established 1; dropped 0
  Last reset never
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Local host: 1.1.1.1, Local port: 179
Foreign host: 3.3.3.3, Foreign port: 11000

Enqueued packets for retransmit: 0, input: 0  mis-ordered: 0 (0 bytes)

Event Timers (current time is 0x90EFAC):
Timer          Starts    Wakeups            Next
Retrans            89          4             0x0
TimeWait            0          0             0x0
AckHold            84         30             0x0
SendWnd             0          0             0x0
KeepAlive           0          0             0x0
GiveUp              0          0             0x0
PmtuAger            0          0             0x0
DeadWait            0          0             0x0

iss: 1796109428  snduna: 1796111088  sndnxt: 1796111088     sndwnd:  16365
irs: 4266653661  rcvnxt: 4266655321  rcvwnd:      16365  delrcvwnd:     19

SRTT: 337 ms, RTTO: 538 ms, RTV: 201 ms, KRTT: 0 ms
minRTT: 12 ms, maxRTT: 604 ms, ACK hold: 200 ms
Flags: passive open, nagle, gen tcbs
         
Datagrams (max data segment is 536 bytes):
Rcvd: 164 (out of order: 0), with data: 84, total data bytes: 1659
Sent: 127 (retransmit: 4), with data: 84, total data bytes: 1659
R1#show ip bgp
BGP table version is 3, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 1.1.1.1/32       0.0.0.0                  0         32768 i
*>i3.3.3.3/32       3.3.3.3                  0    100      0 i                               

R1#show ip rou
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 12.0.0.2, 00:45:27, Serial2/1
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/129] via 12.0.0.2, 00:45:27, Serial2/1
     23.0.0.0/24 is subnetted, 1 subnets
O       23.0.0.0 [110/128] via 12.0.0.2, 00:45:27, Serial2/1
     12.0.0.0/24 is subnetted, 1 subnets
C       12.0.0.0 is directly connected, Serial2/1     

 

R2

 

interface Loopback0
 ip address 2.2.2.2 255.255.255.0

interface Serial2/1
 ip address 12.0.0.2 255.255.255.0
 serial restart-delay 0

interface Serial2/2
 ip address 23.0.0.1 255.255.255.0
 serial restart-delay 0

router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0


line con 0
 exec-timeout 0 0
 logging synchronous
 stopbits 1
line aux 0
 stopbits 1
line vty 5 15

R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 12.0.0.1, 00:50:15, Serial2/1
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 23.0.0.2, 00:50:15, Serial2/2
     23.0.0.0/24 is subnetted, 1 subnets
C       23.0.0.0 is directly connected, Serial2/2
     12.0.0.0/24 is subnetted, 1 subnets
C       12.0.0.0 is directly connected, Serial2/1

 

 

R3
interface Loopback0
 ip address 3.3.3.3 255.255.255.255


interface Serial2/1
 ip address 23.0.0.2 255.255.255.0
 serial restart-delay 0

router ospf 1
 log-adjacency-changes
 network 0.0.0.0 255.255.255.255 area 0

router bgp 100
 bgp log-neighbor-changes
 network 3.3.3.3 mask 255.255.255.255
 neighbor 1.1.1.1 remote-as 100
 neighbor 1.1.1.1 update-source Loopback0


line con 0
 exec-timeout 0 0
 logging synchronous
 stopbits 1
line aux 0
 stopbits 1
line vty 5 15


R3# show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       i - IS-IS, 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

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/129] via 23.0.0.1, 00:46:28, Serial2/1
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 23.0.0.1, 00:46:28, Serial2/1
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     23.0.0.0/24 is subnetted, 1 subnets
C       23.0.0.0 is directly connected, Serial2/1
     12.0.0.0/24 is subnetted, 1 subnets
O       12.0.0.0 [110/128] via 23.0.0.1, 00:46:28, Serial2/1

 

R3#show ip bgp summary
BGP router identifier 3.3.3.3, local AS number 100
BGP table version is 3, main routing table version 3
2 network entries and 2 paths using 266 bytes of memory
2 BGP path attribute entries using 120 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 activity 2/4 prefixes, 2/0 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1         4   100      87      87        3    0    0 01:22:49        1


R3#show ip bgp neighbors
BGP neighbor is 1.1.1.1,  remote AS 100, internal link
  BGP version 4, remote router ID 1.1.1.1
  BGP state = Established, up for 01:23:17
  Last read 00:00:16, hold time is 180, keepalive interval is 60 seconds
  Neighbor capabilities:
    Route refresh: advertised and received(new)
    Address family IPv4 Unicast: advertised and received
  Received 88 messages, 0 notifications, 0 in queue
  Sent 88 messages, 0 notifications, 0 in queue
  Route refresh request: received 0, sent 0
  Default minimum time between advertisement runs is 5 seconds

 For address family: IPv4 Unicast
  BGP table version 3, neighbor version 3
  Index 1, Offset 0, Mask 0x2
  1 accepted prefixes consume 36 bytes
  Prefix advertised 1, suppressed 0, withdrawn 0
  Number of NLRIs in the update sent: max 1, min 0

  Connections established 1; dropped 0
  Last reset never
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Local host: 3.3.3.3, Local port: 11000
Foreign host: 1.1.1.1, Foreign port: 179

Enqueued packets for retransmit: 0, input: 0  mis-ordered: 0 (0 bytes)

Event Timers (current time is 0x94408C):
Timer          Starts    Wakeups            Next
Retrans            98          9             0x0
TimeWait            0          0             0x0
AckHold            88         66             0x0
SendWnd             0          0             0x0
KeepAlive           0          0             0x0
GiveUp              0          0             0x0
PmtuAger            0          0             0x0
DeadWait            0          0             0x0

iss: 4266653661  snduna: 4266655397  sndnxt: 4266655397     sndwnd:  16289
irs: 1796109428  rcvnxt: 1796111164  rcvwnd:      16289  delrcvwnd:     95

SRTT: 301 ms, RTTO: 311 ms, RTV: 10 ms, KRTT: 0 ms
minRTT: 4 ms, maxRTT: 464 ms, ACK hold: 200 ms
Flags: higher precedence, nagle

Datagrams (max data segment is 536 bytes):
Rcvd: 136 (out of order: 0), with data: 88, total data bytes: 1735
Sent: 164 (retransmit: 9), with data: 88, total data bytes: 1735


R3#show ip bgp
BGP table version is 3, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i1.1.1.1/32       1.1.1.1                  0    100      0 i
*> 3.3.3.3/32       0.0.0.0                  0         32768 i

 

beiluo by 2008-7-5 11:54:41
阅读全文 | 回复(0) | 引用通告 | 编辑

 

发表评论:

    昵称:
    密码:
    主页:
    标题:


Powered by Oblog.