IP ROUTE CS - BGP

download IP ROUTE CS - BGP

of 44

Transcript of IP ROUTE CS - BGP

  • 8/7/2019 IP ROUTE CS - BGP

    1/44

    IP ROUTE Case Study - BGP

    Instructor: Krzysztof KaczorAuthor: Piotr Mossakowski

    Szczecin, www.uczelnia.it

    http://www.uczelnia.it/http://www.uczelnia.it/http://www.uczelnia.it/
  • 8/7/2019 IP ROUTE CS - BGP

    2/44

    2

    Contents:1) Topology ........................... ........................... ........................... ........................... ........................... ....................... 3

    2) Configuration R1 ........................ ........................... ........................... ........................... ........................... .............. 3

    3) Configuration R2 ........................ ........................... ........................... ........................... ........................... ............ 15

    4) Configuration R3 ........................ ........................... ........................... ........................... ........................... ............ 24

    5) Configuration R4 ........................ ........................... ........................... ........................... ........................... ............ 35

  • 8/7/2019 IP ROUTE CS - BGP

    3/44

    3

    1) Topology

    Figure 1 - Topology BGP Case Study

    2) Configuration R1

    R1#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - 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 - ODRP - periodic downloaded static route

  • 8/7/2019 IP ROUTE CS - BGP

    4/44

    4

    Gateway of last resort is not set

    192.168.14.0/30 is subnetted, 1 subnetsC 192.168.14.0 is directly connected, FastEthernet1/0

    172.16.0.0/20 is subnetted, 1 subnetsB 172.16.0.0 [20/0] via 192.168.14.2, 00:01:38

    10.0.0.0/8 is variably subnetted, 7 subnets, 3 masksD 10.3.3.0/24 [90/20640000] via 10.1.103.3, 00:31:32, Serial0/1D 10.2.2.0/24 [90/20640000] via 10.1.102.2, 00:31:32, Serial0/0C 10.1.1.0/24 is directly connected, Loopback1D 10.20.0.0/22 [90/20640000] via 10.1.102.2, 00:31:32, Serial0/0C 10.1.103.0/29 is directly connected, Serial0/1C 10.1.102.0/29 is directly connected, Serial0/0D 10.1.203.0/29 [90/21024000] via 10.1.102.2, 00:31:32, Serial0/0

    [90/21024000] via 10.1.103.3, 00:31:32, Serial0/1192.168.34.0/30 is subnetted, 1 subnets

    D 192.168.34.0 [90/21024000] via 10.1.103.3, 00:31:32, Serial0/1

    R1#show ip interface brief Interface IP-Address OK? Method Status ProtocolSerial0/0 10.1.102.1 YES NVRAM up upSerial0/1 10.1.103.1 YES NVRAM up upSerial0/2 unassigned YES NVRAM administratively down downSerial0/3 unassigned YES NVRAM administratively down downFastEthernet1/0 192.168.14.1 YES NVRAM up upVirtual-Access1 unassigned YES unset up upLoopback1 10.1.1.1 YES NVRAM up up

    R1#show ip protocols

    Routing Protocol is "eigrp 65001"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hopcount 100EIGRP maximum metric variance 1Redistributing: eigrp 65001EIGRP NSF-aware route hold timer is 240sAutomatic network summarization is not in effect

    Maximum path: 4Routing for Networks:

    10.1.1.0/2410.1.102.0/2910.1.103.0/29192.16.14.0/30192.168.14.0/30

    Passive Interface(s):FastEthernet1/0

  • 8/7/2019 IP ROUTE CS - BGP

    5/44

    5

    Loopback1Routing Information Sources:Gateway Distance Last UpdateGateway Distance Last Update10.1.103.3 90 00:02:3510.1.102.2 90 00:02:36

    Distance: internal 90 external 170

    Routing Protocol is "bgp 65001"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setIGP synchronization is disabledAutomatic route summarization is disabledNeighbor(s):Address FiltIn FiltOut DistIn DistOut Weight RouteMap10.2.2.210.3.3.3192.168.14.2 out4allnetworks

    Maximum path: 1Routing Information Sources:Gateway Distance Last Update10.2.2.2 200 00:01:4510.3.3.3 200 00:01:51192.168.14.2 20 00:01:57

    Distance: external 20 internal 200 local 200

    R1#sh ip bgp neighborsBGP neighbor is 10.2.2.2, remote AS 65001, internal linkBGP version 4, remote router ID 10.20.3.1

    BGP state = Established, up for 00:03:14Last read 00:00:14, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 2 2Notifications: 0 0

    Updates: 4 4Keepalives: 37 37Route Refresh: 0 0Total: 43 43

    Default minimum time between advertisement runs is 5 seconds

    For address family: IPv4 UnicastBGP table version 9, neighbor version 9Index 1, Offset 0, Mask 0x2

  • 8/7/2019 IP ROUTE CS - BGP

    6/44

    6

    Sent RcvdPrefix activity: ---- ----Prefixes Current: 2 2 (Consumes 96 bytes)Prefixes Total: 2 2Implicit Withdraw: 0 0Explicit Withdraw: 0 0Used as bestpath: n/a 2Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------Bestpath from this peer: 2 n/aBestpath from iBGP peer: 1 n/aTotal: 3 0

    Number of NLRIs in the update sent: max 1, min 0

    Connections established 2; dropped 1Last reset 00:03:41, due to User reset

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 10.1.1.1, Local port: 11002Foreign host: 10.2.2.2, Foreign port: 179

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

    Event Timers (current time is 0x1E75B0):Timer Starts Wakeups NextRetrans 9 0 0x0TimeWait 0 0 0x0AckHold 6 4 0x0

    SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 448428985 snduna: 448429259 sndnxt: 448429259 sndwnd: 16111irs: 3640627385 rcvnxt: 3640627655 rcvwnd: 16115 delrcvwnd: 269

    SRTT: 210 ms, RTTO: 904 ms, RTV: 694 ms, KRTT: 0 msminRTT: 16 ms, maxRTT: 300 ms, ACK hold: 200 ms

    Flags: higher precedence, nagle, md5

    Datagrams (max data segment is 516 bytes):Rcvd: 10 (out of order: 0), with data: 6, total data bytes: 269Sent: 14 (retransmit: 0, fastretransmit: 0), with data: 8, total data bytes: 273

    BGP neighbor is 10.3.3.3, remote AS 65001, internal linkBGP version 4, remote router ID 10.3.3.3BGP state = Established, up for 00:03:14

  • 8/7/2019 IP ROUTE CS - BGP

    7/44

    7

    Last read 00:00:13, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 3 3Notifications: 0 0Updates: 6 5Keepalives: 40 40Route Refresh: 0 0Total: 49 48

    Default minimum time between advertisement runs is 5 seconds

    For address family: IPv4 UnicastBGP table version 9, neighbor version 9

    Index 2, Offset 0, Mask 0x4Sent RcvdPrefix activity: ---- ----Prefixes Current: 2 1 (Consumes 48 bytes)Prefixes Total: 2 2Implicit Withdraw: 0 0Explicit Withdraw: 0 1Used as bestpath: n/a 1Used as multipath: n/a 0

    Outbound Inbound

    Local Policy Denied Prefixes: -------- -------Bestpath from this peer: 1 n/aBestpath from iBGP peer: 2 n/aTotal: 3 0

    Number of NLRIs in the update sent: max 1, min 0

    Connections established 3; dropped 2Last reset 00:03:42, due to User reset

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 10.1.1.1, Local port: 11003Foreign host: 10.3.3.3, Foreign port: 179

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

    Event Timers (current time is 0x1E788C):Timer Starts Wakeups NextRetrans 9 0 0x0TimeWait 0 0 0x0AckHold 7 1 0x0SendWnd 0 0 0x0

  • 8/7/2019 IP ROUTE CS - BGP

    8/44

    8

    KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 1806525725 snduna: 1806525999 sndnxt: 1806525999 sndwnd: 16111irs: 771655261 rcvnxt: 771655562 rcvwnd: 16084 delrcvwnd: 300

    SRTT: 210 ms, RTTO: 904 ms, RTV: 694 ms, KRTT: 0 msminRTT: 28 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: higher precedence, nagle, md5

    Datagrams (max data segment is 516 bytes):Rcvd: 13 (out of order: 0), with data: 7, total data bytes: 300Sent: 11 (retransmit: 0, fastretransmit: 0), with data: 8, total data bytes: 273

    BGP neighbor is 192.168.14.2, remote AS 65002, external linkBGP version 4, remote router ID 172.16.12.1

    BGP state = Established, up for 00:03:07Last read 00:00:07, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 2 2Notifications: 0 0

    Updates: 8 4Keepalives: 37 37Route Refresh: 0 0Total: 47 43

    Default minimum time between advertisement runs is 30 seconds

    For address family: IPv4 UnicastBGP table version 9, neighbor version 9Index 3, Offset 0, Mask 0x8Inbound path policy configuredOutbound path policy configured

    Route map for incoming advertisements is out4allnetworksRoute map for outgoing advertisements is med_65002

    Sent RcvdPrefix activity: ---- ----Prefixes Current: 4 1 (Consumes 48 bytes)Prefixes Total: 4 1Implicit Withdraw: 0 0Explicit Withdraw: 0 0Used as bestpath: n/a 1

  • 8/7/2019 IP ROUTE CS - BGP

    9/44

    9

    Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------

    AS_PATH loop: n/a 3Bestpath from this peer: 1 n/aTotal: 1 3

    Number of NLRIs in the update sent: max 2, min 0

    Connections established 2; dropped 1Last reset 00:03:43, due to User reset

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 192.168.14.1, Local port: 11004Foreign host: 192.168.14.2, Foreign port: 179

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

    Event Timers (current time is 0x1E7B40):

    Timer Starts Wakeups NextRetrans 9 0 0x0TimeWait 0 0 0x0AckHold 7 4 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 3563897439 snduna: 3563897759 sndnxt: 3563897759 sndwnd: 16065

    irs: 794788675 rcvnxt: 794788977 rcvwnd: 16083 delrcvwnd: 301

    SRTT: 210 ms, RTTO: 904 ms, RTV: 694 ms, KRTT: 0 msminRTT: 20 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: higher precedence, nagle, md5

    Datagrams (max data segment is 1440 bytes):Rcvd: 10 (out of order: 0), with data: 7, total data bytes: 301Sent: 14 (retransmit: 0, fastretransmit: 0), with data: 8, total data bytes: 319

    R1# sh ip bgp summary

    BGP router identifier 10.1.1.1, local AS number 65001BGP table version is 9, main routing table version 95 network entries using 505 bytes of memory5 path entries using 240 bytes of memory5 BGP path attribute entries using 300 bytes of memory1 BGP AS-PATH entries using 24 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 1069 total bytes of memory

  • 8/7/2019 IP ROUTE CS - BGP

    10/44

    10

    BGP activity 11/6 prefixes, 12/7 paths, scan interval 60 secs

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd10.2.2.2 4 65001 44 44 9 0 0 00:04:19 210.3.3.3 4 65001 49 50 9 0 0 00:04:17 1192.168.14.2 4 65002 44 48 9 0 0 00:04:09 1

    R1#sh ip bgpBGP table version is 12, local router ID is 10.1.1.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

    r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

    Network Next Hop Metric LocPrf Weight Path*> 10.1.1.0/24 0.0.0.0 0 32768 ir>i10.2.2.0/24 10.2.2.2 0 100 0 ir>i10.3.3.0/24 10.3.3.3 0 100 0 ir>i10.20.0.0/22 10.2.2.2 128256 100 0 i

    *> 172.16.0.0/20 192.168.14.2 0 200 0 65002 i

    R1#sh runBuilding configuration...

    Current configuration : 2348 bytes!version 12.2service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption

    !hostname R1!logging queue-limit 100!username mossapio privilege 15 secret 5 $1$F70d$7jswMoThmMPYvVEFC/BQy1ip subnet-zero!!no ip domain lookupip domain name cisco.com

    !!!!!!!!!

  • 8/7/2019 IP ROUTE CS - BGP

    11/44

    11

    !!!!no voice hpi capture bufferno voice hpi capture destination!!mta receive maximum-recipients 0!!!!interface Loopback1ip address 10.1.1.1 255.255.255.0!interface Serial0/0description R1->R2

    bandwidth 128ip address 10.1.102.1 255.255.255.248serial restart_delay 0clockrate 128000!interface Serial0/1description R1->R3bandwidth 128ip address 10.1.103.1 255.255.255.248serial restart_delay 0clockrate 128000

    !interface Serial0/2no ip addressshutdownserial restart_delay 0!interface Serial0/3no ip addressshutdownserial restart_delay 0!

    interface FastEthernet1/0description R1->R4ip address 192.168.14.1 255.255.255.252duplex autospeed auto!router eigrp 65001passive-interface FastEthernet1/0passive-interface Loopback1

  • 8/7/2019 IP ROUTE CS - BGP

    12/44

    12

    network 10.1.1.0 0.0.0.255network 10.1.102.0 0.0.0.7network 10.1.103.0 0.0.0.7network 192.16.14.0 0.0.0.3network 192.168.14.0 0.0.0.3no auto-summary!router bgp 65001no synchronizationbgp log-neighbor-changesnetwork 10.1.1.0 mask 255.255.255.0neighbor 10.2.2.2 remote-as 65001neighbor 10.2.2.2 update-source Loopback1neighbor 10.2.2.2 password cisconeighbor 10.3.3.3 remote-as 65001neighbor 10.3.3.3 update-source Loopback1neighbor 10.3.3.3 password cisconeighbor 192.168.14.2 remote-as 65002

    neighbor 192.168.14.2 route-map out4allnetworks inneighbor 192.168.14.2 route-map med_65002 outneighbor 192.168.14.2 password ciscono auto-summary!no ip http serverip http secure-serverip classless!!!

    access-list 10 permit 172.16.0.0 0.0.15.255!route-map med_65002 permit 10set metric 0!route-map out4allnetworks permit 10match ip address 10set local-preference 200!route-map out4allnetworks permit 20!

    call rsvp-sync!!mgcp profile default!!!dial-peer cor custom!

  • 8/7/2019 IP ROUTE CS - BGP

    13/44

    13

    !!!!line con 0exec-timeout 0 0logging synchronousline aux 0line vty 0 4exec-timeout 15 0loginlength 0transport input sshline vty 5 15exec-timeout 15 0loginlength 0transport input ssh

    !!end

    R1#tclshR1(tcl)#foreach address {

    +>(tcl)#10.2.2.2+>(tcl)#10.20.1.1+>(tcl)#10.20.2.1+>(tcl)#10.20.3.1

    +>(tcl)#10.3.3.3+>(tcl)#172.16.0.1+>(tcl)#172.16.4.1+>(tcl)#172.16.8.1+>(tcl)#172.16.12.1+>(tcl)#+>(tcl)#} { ping $address source 10.1.1.1 }

    Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.2.2.2, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1

    !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/17/24 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.20.1.1, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/40 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.20.2.1, timeout is 2 seconds:

  • 8/7/2019 IP ROUTE CS - BGP

    14/44

    14

    Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/15/28 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.20.3.1, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/17/36 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.3.3.3, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/15/32 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.0.1, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/48 ms

    Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.4.1, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/32/48 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.8.1, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/27/44 msType escape sequence to abort.

    Sending 5, 100-byte ICMP Echos to 172.16.12.1, timeout is 2 seconds:Packet sent with a source address of 10.1.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/29/60 ms

    R1#tracerouteProtocol [ip]:Target IP address: 172.16.4.1Source address: 10.1.1.1

    Tracing the route to 172.16.4.1

    1 192.168.14.2 36 msec

    R1(config)#int fastEthernet 1/0R1(config-if)#shutR1(config-if)#*Mar 1 00:39:44.927: %BGP-5-ADJCHANGE: neighbor 192.168.14.2 Down Interface flap*Mar 1 00:39:46.911: %LINK-5-CHANGED: Interface FastEthernet1/0, changed state to administratively down*Mar 1 00:39:47.911: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to down

  • 8/7/2019 IP ROUTE CS - BGP

    15/44

    15

    R4#*Mar 1 00:42:11.223: %BGP-5-ADJCHANGE: neighbor 192.168.14.1 Down BGP Notification sentR4#*Mar 1 00:42:11.223: %BGP-3-NOTIFICATION: sent to neighbor 192.168.14.1 4/0 (hold time expired) 0 bytes

    R1#tracerouteProtocol [ip]:Target IP address: 172.16.12.1Source address: 10.1.1.1Tracing the route to 172.16.12.1

    1 10.1.103.3 36 msec2 192.168.34.2 68 msec

    3) Configuration R2R2#show ip interface brief Interface IP-Address OK? Method Status ProtocolSerial0/0 10.1.102.2 YES NVRAM up upSerial0/1 10.1.203.2 YES NVRAM up upSerial0/2 unassigned YES NVRAM administratively down downSerial0/3 unassigned YES NVRAM administratively down downVirtual-Access1 unassigned YES unset up upLoopback2 10.2.2.2 YES NVRAM up upLoopback200 10.20.0.1 YES NVRAM up upLoopback201 10.20.1.1 YES NVRAM up upLoopback202 10.20.2.1 YES NVRAM up upLoopback203 10.20.3.1 YES NVRAM up up

    R2#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - 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 - ODRP - periodic downloaded static route

    Gateway of last resort is not set

    192.168.14.0/30 is subnetted, 1 subnetsD 192.168.14.0 [90/20514560] via 10.1.102.1, 00:06:02, Serial0/0

    172.16.0.0/20 is subnetted, 1 subnetsB 172.16.0.0 [200/0] via 192.168.14.2, 00:05:19

    10.0.0.0/8 is variably subnetted, 11 subnets, 3 masksD 10.3.3.0/24 [90/20640000] via 10.1.203.3, 00:06:02, Serial0/1C 10.2.2.0/24 is directly connected, Loopback2D 10.1.1.0/24 [90/20640000] via 10.1.102.1, 00:06:02, Serial0/0

  • 8/7/2019 IP ROUTE CS - BGP

    16/44

    16

    C 10.20.2.0/24 is directly connected, Loopback202C 10.20.3.0/24 is directly connected, Loopback203C 10.20.0.0/24 is directly connected, Loopback200D 10.20.0.0/22 is a summary, 00:06:03, Null0C 10.20.1.0/24 is directly connected, Loopback201D 10.1.103.0/29 [90/21024000] via 10.1.203.3, 00:06:03, Serial0/1

    [90/21024000] via 10.1.102.1, 00:06:03, Serial0/0C 10.1.102.0/29 is directly connected, Serial0/0C 10.1.203.0/29 is directly connected, Serial0/1

    192.168.34.0/30 is subnetted, 1 subnetsD 192.168.34.0 [90/21024000] via 10.1.203.3, 00:06:03, Serial0/1

    R2#show ip protocolsRouting Protocol is "eigrp 65001"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setDefault networks flagged in outgoing updatesDefault networks accepted from incoming updates

    EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hopcount 100EIGRP maximum metric variance 1Redistributing: eigrp 65001EIGRP NSF-aware route hold timer is 240sAutomatic network summarization is not in effectAddress Summarization:10.20.0.0/22 for Serial0/0, Serial0/1Summarizing with metric 128256

    Maximum path: 4Routing for Networks:

    10.1.102.0/2910.1.203.0/2910.2.2.0/2410.20.0.0/22

    Passive Interface(s):Loopback2Loopback200

    Passive Interface(s):Loopback201Loopback202Loopback203

    Routing Information Sources:Gateway Distance Last Update(this router) 90 00:06:2910.1.102.1 90 00:06:2810.1.203.3 90 00:06:28

    Distance: internal 90 external 170

    Routing Protocol is "bgp 65001"Outgoing update filter list for all interfaces is not set

  • 8/7/2019 IP ROUTE CS - BGP

    17/44

    17

    Incoming update filter list for all interfaces is not setIGP synchronization is disabledAutomatic route summarization is disabledNeighbor(s):Address FiltIn FiltOut DistIn DistOut Weight RouteMap10.1.1.110.3.3.3

    Maximum path: 1Routing Information Sources:Gateway Distance Last Update10.3.3.3 200 00:05:44Gateway Distance Last Update10.1.1.1 200 00:05:41

    Distance: external 20 internal 200 local 200

    R2#sh ip bgp neighborsBGP neighbor is 10.1.1.1, remote AS 65001, internal linkBGP version 4, remote router ID 10.1.1.1

    BGP state = Established, up for 00:18:40Last read 00:00:40, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 2 2Notifications: 0 0

    Updates: 4 6Keepalives: 52 52Route Refresh: 0 0Total: 58 60

    Default minimum time between advertisement runs is 5 seconds

    For address family: IPv4 UnicastBGP table version 20, neighbor version 20Index 1, Offset 0, Mask 0x2

    Sent RcvdPrefix activity: ---- ----

    Prefixes Current: 2 2 (Consumes 96 bytes)Prefixes Total: 2 3Implicit Withdraw: 0 0Explicit Withdraw: 0 1Used as bestpath: n/a 2Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------

  • 8/7/2019 IP ROUTE CS - BGP

    18/44

    18

    Bestpath from this peer: 3 n/aBestpath from iBGP peer: 3 n/aTotal: 6 0

    Number of NLRIs in the update sent: max 1, min 0

    Connections established 2; dropped 1Last reset 00:19:06, due to Peer closed the session

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 10.2.2.2, Local port: 179Foreign host: 10.1.1.1, Foreign port: 11002

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

    Event Timers (current time is 0x2C93CC):Timer Starts Wakeups NextRetrans 22 0 0x0TimeWait 0 0 0x0AckHold 25 18 0x0

    SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 3640627385 snduna: 3640627940 sndnxt: 3640627940 sndwnd: 16346irs: 448428985 rcvnxt: 448429630 rcvwnd: 16268 delrcvwnd: 116

    SRTT: 284 ms, RTTO: 413 ms, RTV: 129 ms, KRTT: 0 msminRTT: 16 ms, maxRTT: 300 ms, ACK hold: 200 ms

    Flags: passive open, nagle, gen tcbs, md5

    Datagrams (max data segment is 516 bytes):Rcvd: 33 (out of order: 0), with data: 25, total data bytes: 644Sent: 41 (retransmit: 0, fastretransmit: 0), with data: 21, total data bytes: 554

    BGP neighbor is 10.3.3.3, remote AS 65001, internal linkBGP version 4, remote router ID 10.3.3.3BGP state = Established, up for 00:26:34Last read 00:00:34, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:

    Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 2 2Notifications: 0 0Updates: 4 6

  • 8/7/2019 IP ROUTE CS - BGP

    19/44

    19

    Keepalives: 53 53Route Refresh: 0 0Total: 59 61

    Default minimum time between advertisement runs is 5 seconds

    For address family: IPv4 UnicastBGP table version 20, neighbor version 20Index 2, Offset 0, Mask 0x4

    Sent RcvdPrefix activity: ---- ----Prefixes Current: 2 1 (Consumes 48 bytes)Prefixes Total: 2 3Implicit Withdraw: 0 0Explicit Withdraw: 0 2Used as bestpath: n/a 1Used as multipath: n/a 0

    Outbound Inbound

    Local Policy Denied Prefixes: -------- -------Bestpath from this peer: 3 n/aBestpath from iBGP peer: 5 n/aTotal: 8 0

    Number of NLRIs in the update sent: max 1, min 0

    Connections established 2; dropped 1Last reset 00:26:59, due to Peer closed the session

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 10.2.2.2, Local port: 179Foreign host: 10.3.3.3, Foreign port: 11003

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

    Event Timers (current time is 0x2C96C4):Timer Starts Wakeups NextRetrans 30 0 0x0TimeWait 0 0 0x0AckHold 35 29 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0

    PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 3033571669 snduna: 3033572376 sndnxt: 3033572376 sndwnd: 16194irs: 1891300035 rcvnxt: 1891300859 rcvwnd: 16089 delrcvwnd: 295

    SRTT: 294 ms, RTTO: 339 ms, RTV: 45 ms, KRTT: 0 msminRTT: 4 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: passive open, nagle, gen tcbs, md5

  • 8/7/2019 IP ROUTE CS - BGP

    20/44

    20

    Datagrams (max data segment is 516 bytes):Rcvd: 42 (out of order: 0), with data: 35, total data bytes: 823Sent: 60 (retransmit: 0, fastretransmit: 0), with data: 29, total data bytes: 706

    R2#show ip bgpBGP table version is 9, local router ID is 10.20.3.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

    r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

    Network Next Hop Metric LocPrf Weight Pathr>i10.1.1.0/24 10.1.1.1 0 100 0 i*> 10.2.2.0/24 0.0.0.0 0 32768 ir>i10.3.3.0/24 10.3.3.3 0 100 0 i*> 10.20.0.0/22 0.0.0.0 128256 32768 i*>i172.16.0.0/20 192.168.14.2 0 200 0 65002 i

    R2#sh runBuilding configuration...

    Current configuration : 2298 bytes!version 12.2service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2

    !logging queue-limit 100!username mossapio privilege 15 secret 5 $1$RbHI$dLlsl1ZAgpELJqu8SwGi80ip subnet-zero!!no ip domain lookupip domain name cisco.com!!

    !!!!!!!!!

  • 8/7/2019 IP ROUTE CS - BGP

    21/44

    21

    !!no voice hpi capture bufferno voice hpi capture destination!!mta receive maximum-recipients 0!!!!interface Loopback2ip address 10.2.2.2 255.255.255.0!interface Loopback200ip address 10.20.0.1 255.255.255.0!interface Loopback201

    ip address 10.20.1.1 255.255.255.0!interface Loopback202ip address 10.20.2.1 255.255.255.0!interface Loopback203ip address 10.20.3.1 255.255.255.0!interface Serial0/0description R2->R1bandwidth 128

    ip address 10.1.102.2 255.255.255.248ip summary-address eigrp 65001 10.20.0.0 255.255.252.0 5serial restart_delay 0clockrate 128000!interface Serial0/1description R2->R3bandwidth 128ip address 10.1.203.2 255.255.255.248ip summary-address eigrp 65001 10.20.0.0 255.255.252.0 5serial restart_delay 0

    clockrate 128000!interface Serial0/2no ip addressshutdownserial restart_delay 0!interface Serial0/3no ip address

  • 8/7/2019 IP ROUTE CS - BGP

    22/44

    22

    shutdownserial restart_delay 0!router eigrp 65001passive-interface Loopback2passive-interface Loopback200passive-interface Loopback201passive-interface Loopback202passive-interface Loopback203network 10.1.102.0 0.0.0.7network 10.1.203.0 0.0.0.7network 10.2.2.0 0.0.0.255network 10.20.0.0 0.0.3.255no auto-summary!router bgp 65001no synchronizationbgp log-neighbor-changes

    network 10.2.2.0 mask 255.255.255.0network 10.20.0.0 mask 255.255.252.0neighbor 10.1.1.1 remote-as 65001neighbor 10.1.1.1 update-source Loopback2neighbor 10.1.1.1 password cisconeighbor 10.3.3.3 remote-as 65001neighbor 10.3.3.3 update-source Loopback2neighbor 10.3.3.3 password ciscono auto-summary!no ip http server

    ip http secure-serverip classless!!!!call rsvp-sync!!mgcp profile default!

    !!dial-peer cor custom!!!!!line con 0

  • 8/7/2019 IP ROUTE CS - BGP

    23/44

  • 8/7/2019 IP ROUTE CS - BGP

    24/44

    24

    Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.8.1, timeout is 2 seconds:Packet sent with a source address of 10.20.0.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/51/92 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.12.1, timeout is 2 seconds:Packet sent with a source address of 10.20.0.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/80/116 ms

    R2#tracerouteProtocol [ip]:Target IP address: 172.16.12.1Source address: 10.20.0.1Tracing the route to 172.16.12.1

    1 10.1.102.1 20 msec

    2 192.168.14.2 60 msec

    R1(config)#int fastEthernet 1/0R1(config-if)#shut*Mar 1 00:51:38.307: %BGP-5-ADJCHANGE: neighbor 192.168.14.2 Down Interface flap*Mar 1 00:51:40.291: %LINK-5-CHANGED: Interface FastEthernet1/0, changed state to administratively down*Mar 1 00:51:41.291: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to downR4#*Mar 1 00:54:09.227: %BGP-5-ADJCHANGE: neighbor 192.168.14.1 Down BGP Notification sentR4#*Mar 1 00:54:09.227: %BGP-3-NOTIFICATION: sent to neighbor 192.168.14.1 4/0 (hold time expired) 0 bytes

    R2#tracerouteProtocol [ip]:Target IP address: 172.16.12.1Source address: 10.20.3.1Tracing the route to 172.16.12.1

    1 10.1.203.3 44 msec2 192.168.34.2 56 msec

    4) Configuration R3R3#show ip interface brief Interface IP-Address OK? Method Status ProtocolSerial0/0 10.1.103.3 YES NVRAM up upSerial0/1 10.1.203.3 YES NVRAM up upSerial0/2 192.168.34.1 YES NVRAM up upSerial0/3 unassigned YES NVRAM administratively down downVirtual-Access1 unassigned YES unset up upLoopback3 10.3.3.3 YES NVRAM up up

  • 8/7/2019 IP ROUTE CS - BGP

    25/44

  • 8/7/2019 IP ROUTE CS - BGP

    26/44

    26

    Gateway Distance Last Update10.1.103.1 90 00:08:5110.1.203.2 90 00:08:51

    Distance: internal 90 external 170

    Routing Protocol is "bgp 65001"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setIGP synchronization is disabledAutomatic route summarization is disabledNeighbor(s):Address FiltIn FiltOut DistIn DistOut Weight RouteMap10.1.1.110.2.2.2192.168.34.2

    Maximum path: 1Routing Information Sources:Gateway Distance Last Update

    10.2.2.2 200 00:08:0310.1.1.1 200 00:08:02192.168.34.2 20 00:08:13

    Distance: external 20 internal 200 local 200

    R3#sh ip bgp neiBGP neighbor is 10.1.1.1, remote AS 65001, internal linkBGP version 4, remote router ID 10.1.1.1BGP state = Established, up for 00:28:17Last read 00:00:17, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:

    Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 3 3Notifications: 0 0Updates: 9 10Keepalives: 65 65Route Refresh: 0 0

    Total: 77 78Default minimum time between advertisement runs is 5 seconds

    For address family: IPv4 UnicastBGP table version 18, neighbor version 18Index 1, Offset 0, Mask 0x2

    Sent RcvdPrefix activity: ---- ----Prefixes Current: 1 2 (Consumes 96 bytes)

  • 8/7/2019 IP ROUTE CS - BGP

    27/44

    27

    Prefixes Total: 4 4Implicit Withdraw: 0 0Explicit Withdraw: 3 2Used as bestpath: n/a 2Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------Bestpath from this peer: 4 n/aBestpath from iBGP peer: 2 n/aTotal: 6 0

    Number of NLRIs in the update sent: max 1, min 0

    Connections established 3; dropped 2Last reset 00:28:45, due to Peer closed the session

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 10.3.3.3, Local port: 179Foreign host: 10.1.1.1, Foreign port: 11003

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

    Event Timers (current time is 0x356804):Timer Starts Wakeups NextRetrans 37 0 0x0TimeWait 0 0 0x0AckHold 37 6 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0

    PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 771655261 snduna: 771656209 sndnxt: 771656209 sndwnd: 15967irs: 1806525725 rcvnxt: 1806526646 rcvwnd: 15992 delrcvwnd: 392

    SRTT: 298 ms, RTTO: 315 ms, RTV: 17 ms, KRTT: 0 msminRTT: 16 ms, maxRTT: 316 ms, ACK hold: 200 msFlags: passive open, nagle, gen tcbs, md5

    Datagrams (max data segment is 516 bytes):

    Rcvd: 68 (out of order: 0), with data: 37, total data bytes: 920Sent: 44 (retransmit: 0, fastretransmit: 0), with data: 36, total data bytes: 947

    BGP neighbor is 10.2.2.2, remote AS 65001, internal linkBGP version 4, remote router ID 10.20.3.1BGP state = Established, up for 00:36:13Last read 00:00:13, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)

  • 8/7/2019 IP ROUTE CS - BGP

    28/44

    28

    Address family IPv4 Unicast: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 2 2Notifications: 0 0Updates: 8 4Keepalives: 63 63Route Refresh: 0 0Total: 73 69

    Default minimum time between advertisement runs is 5 seconds

    For address family: IPv4 UnicastBGP table version 18, neighbor version 18Index 2, Offset 0, Mask 0x4

    Sent RcvdPrefix activity: ---- ----

    Prefixes Current: 1 2 (Consumes 96 bytes)Prefixes Total: 4 2Implicit Withdraw: 0 0Explicit Withdraw: 3 0Used as bestpath: n/a 2Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------Bestpath from this peer: 2 n/aBestpath from iBGP peer: 6 n/a

    Total: 8 0Number of NLRIs in the update sent: max 1, min 0

    Connections established 2; dropped 1Last reset 00:36:40, due to User reset

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 10.3.3.3, Local port: 11003Foreign host: 10.2.2.2, Foreign port: 179

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

    Event Timers (current time is 0x356BF8):Timer Starts Wakeups NextRetrans 49 1 0x0TimeWait 0 0 0x0AckHold 39 4 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0

  • 8/7/2019 IP ROUTE CS - BGP

    29/44

    29

    DeadWait 0 0 0x0

    iss: 1891300035 snduna: 1891301135 sndnxt: 1891301135 sndwnd: 16346irs: 3033571669 rcvnxt: 3033572566 rcvwnd: 16004 delrcvwnd: 380

    SRTT: 300 ms, RTTO: 307 ms, RTV: 7 ms, KRTT: 0 msminRTT: 12 ms, maxRTT: 304 ms, ACK hold: 200 msFlags: higher precedence, nagle, md5

    Datagrams (max data segment is 516 bytes):Rcvd: 82 (out of order: 0), with data: 39, total data bytes: 896Sent: 54 (retransmit: 1, fastretransmit: 0), with data: 47, total data bytes: 1099

    BGP neighbor is 192.168.34.2, remote AS 65002, external linkBGP version 4, remote router ID 172.16.12.1BGP state = Established, up for 00:36:01Last read 00:00:00, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:

    Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and receivedMessage statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 2 2Notifications: 0 0Updates: 16 16Keepalives: 62 62Route Refresh: 0 0

    Total: 80 80Default minimum time between advertisement runs is 30 seconds

    For address family: IPv4 UnicastBGP table version 18, neighbor version 18Index 3, Offset 0, Mask 0x8Outbound path policy configuredRoute map for outgoing advertisements is med_65002

    Sent RcvdPrefix activity: ---- ----Prefixes Current: 5 1 (Consumes 48 bytes)

    Prefixes Total: 9 1Implicit Withdraw: 0 0Explicit Withdraw: 4 0Used as bestpath: n/a 0Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------

    AS_PATH loop: n/a 16

  • 8/7/2019 IP ROUTE CS - BGP

    30/44

    30

    Bestpath from this peer: 3 n/aTotal: 3 16

    Number of NLRIs in the update sent: max 2, min 0

    Connections established 2; dropped 1Last reset 00:36:42, due to User reset

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 192.168.34.1, Local port: 11004Foreign host: 192.168.34.2, Foreign port: 179

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

    Event Timers (current time is 0x357278):Timer Starts Wakeups NextRetrans 48 0 0x0TimeWait 0 0 0x0AckHold 48 16 0x0SendWnd 0 0 0x0

    KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 2564409837 snduna: 2564411137 sndnxt: 2564411137 sndwnd: 15085irs: 4036617143 rcvnxt: 4036618507 rcvwnd: 15021 delrcvwnd: 1363

    SRTT: 300 ms, RTTO: 307 ms, RTV: 7 ms, KRTT: 0 msminRTT: 12 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: higher precedence, nagle, md5

    Datagrams (max data segment is 1440 bytes):Rcvd: 86 (out of order: 0), with data: 48, total data bytes: 1363Sent: 65 (retransmit: 0, fastretransmit: 0), with data: 47, total data bytes: 1299

    R3#sh ip bgp summaryBGP router identifier 10.3.3.3, local AS number 65001BGP table version is 18, main routing table version 185 network entries using 505 bytes of memory6 path entries using 288 bytes of memory5 BGP path attribute entries using 300 bytes of memory1 BGP AS-PATH entries using 24 bytes of memory

    0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 1117 total bytes of memoryBGP activity 11/6 prefixes, 16/10 paths, scan interval 60 secs

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd10.1.1.1 4 65001 84 83 18 0 0 00:34:48 210.2.2.2 4 65001 75 79 18 0 0 00:42:43 2192.168.34.2 4 65002 86 86 18 0 0 00:42:28 1

  • 8/7/2019 IP ROUTE CS - BGP

    31/44

    31

    R3#sh ip bgpBGP table version is 18, local router ID is 10.3.3.3Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

    r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

    Network Next Hop Metric LocPrf Weight Pathr>i10.1.1.0/24 10.1.1.1 0 100 0 ir>i10.2.2.0/24 10.2.2.2 0 100 0 i*> 10.3.3.0/24 0.0.0.0 0 32768 ir>i10.20.0.0/22 10.2.2.2 128256 100 0 i*>i172.16.0.0/20 192.168.14.2 0 200 0 65002 i* 192.168.34.2 0 0 65002 i

    R3#sh runBuilding configuration...

    Current configuration : 2051 bytes!version 12.2service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R3!logging queue-limit 100!

    username mossapio privilege 15 secret 5 $1$tFU4$Np.tmbJmvdPYOJA6gDmL40ip subnet-zero!!no ip domain lookupip domain name cisco.com!!!!!

    !!!!!!!!no voice hpi capture buffer

  • 8/7/2019 IP ROUTE CS - BGP

    32/44

    32

    no voice hpi capture destination!!mta receive maximum-recipients 0!!!!interface Loopback3ip address 10.3.3.3 255.255.255.0!interface Serial0/0description R3->R1bandwidth 128ip address 10.1.103.3 255.255.255.248serial restart_delay 0clockrate 128000!

    interface Serial0/1description R3->R2bandwidth 128ip address 10.1.203.3 255.255.255.248serial restart_delay 0clockrate 128000!interface Serial0/2description R3->R4bandwidth 128ip address 192.168.34.1 255.255.255.252

    serial restart_delay 0clockrate 128000!interface Serial0/3no ip addressshutdownserial restart_delay 0!router eigrp 65001passive-interface Serial0/2passive-interface Loopback3

    network 10.1.103.0 0.0.0.7network 10.1.203.0 0.0.0.7network 10.3.3.0 0.0.0.255network 192.168.34.0 0.0.0.3no auto-summary!router bgp 65001no synchronizationbgp log-neighbor-changes

  • 8/7/2019 IP ROUTE CS - BGP

    33/44

    33

    network 10.3.3.0 mask 255.255.255.0neighbor 10.1.1.1 remote-as 65001neighbor 10.1.1.1 update-source Loopback3neighbor 10.1.1.1 password cisconeighbor 10.2.2.2 remote-as 65001neighbor 10.2.2.2 update-source Loopback3neighbor 10.2.2.2 password cisconeighbor 192.168.34.2 remote-as 65002neighbor 192.168.34.2 route-map med_65002 outneighbor 192.168.34.2 password ciscono auto-summary!no ip http serverip http secure-serverip classless!!!

    !route-map med_65002 permit 10set metric 100!call rsvp-sync!!mgcp profile default!!!

    dial-peer cor custom!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0line vty 0 4

    exec-timeout 15 0loginlength 0transport input sshline vty 5 15exec-timeout 15 0loginlength 0transport input ssh

  • 8/7/2019 IP ROUTE CS - BGP

    34/44

  • 8/7/2019 IP ROUTE CS - BGP

    35/44

    35

    Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.4.1, timeout is 2 seconds:Packet sent with a source address of 10.3.3.3!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/35/72 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.8.1, timeout is 2 seconds:Packet sent with a source address of 10.3.3.3!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/48/88 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.12.1, timeout is 2 seconds:Packet sent with a source address of 10.3.3.3!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/30/40 ms

    R3#tracerouteProtocol [ip]:

    Target IP address: 172.16.8.1Source address: 10.3.3.3Tracing the route to 172.16.8.1

    1 10.1.103.1 48 msec2 192.168.14.2 76 msec

    5) Configuration R4R4#sh ip int brInterface IP-Address OK? Method Status ProtocolSerial0/0 192.168.34.2 YES NVRAM up upSerial0/1 unassigned YES NVRAM administratively down downSerial0/2 unassigned YES NVRAM administratively down downSerial0/3 unassigned YES NVRAM administratively down downFastEthernet1/0 192.168.14.2 YES NVRAM up upVirtual-Access1 unassigned YES unset up upLoopback0 172.16.0.1 YES NVRAM up upLoopback4 172.16.4.1 YES NVRAM up upLoopback8 172.16.8.1 YES NVRAM up upLoopback12 172.16.12.1 YES NVRAM up up

    R4#sh ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - 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 - ODRP - periodic downloaded static route

  • 8/7/2019 IP ROUTE CS - BGP

    36/44

    36

    Gateway of last resort is not set

    192.168.14.0/30 is subnetted, 1 subnetsC 192.168.14.0 is directly connected, FastEthernet1/0

    172.16.0.0/16 is variably subnetted, 5 subnets, 2 masksC 172.16.12.0/22 is directly connected, Loopback12C 172.16.8.0/22 is directly connected, Loopback8C 172.16.4.0/22 is directly connected, Loopback4C 172.16.0.0/22 is directly connected, Loopback0S 172.16.0.0/20 is directly connected, Null0

    10.0.0.0/8 is variably subnetted, 4 subnets, 2 masksB 10.3.3.0/24 [20/0] via 192.168.14.1, 00:04:00B 10.2.2.0/24 [20/0] via 192.168.14.1, 00:04:00B 10.1.1.0/24 [20/0] via 192.168.14.1, 00:04:00B 10.20.0.0/22 [20/0] via 192.168.14.1, 00:04:00

    192.168.34.0/30 is subnetted, 1 subnetsC 192.168.34.0 is directly connected, Serial0/0

    R4#show ip protocolsRouting Protocol is "eigrp 65002"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hopcount 100EIGRP maximum metric variance 1Redistributing: eigrp 65002EIGRP NSF-aware route hold timer is 240s

    Automatic network summarization is not in effectMaximum path: 4Routing for Networks:

    172.16.0.0/20192.168.14.0/30192.168.34.0/30

    Passive Interface(s):Serial0/0FastEthernet1/0Loopback0Loopback4

    Loopback8Loopback12

    Routing Information Sources:Gateway Distance Last Update

    Distance: internal 90 external 170

    Routing Protocol is "bgp 65002"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not set

  • 8/7/2019 IP ROUTE CS - BGP

    37/44

    37

    IGP synchronization is disabledAutomatic route summarization is disabledNeighbor(s):Address FiltIn FiltOut DistIn DistOut Weight RouteMap192.168.14.1192.168.34.1

    Maximum path: 1Routing Information Sources:Gateway Distance Last Update192.168.34.1 20 00:10:04192.168.14.1 20 00:09:55

    Distance: external 20 internal 200 local 200

    R4#sh ip bgp neiBGP neighbor is 192.168.14.1, remote AS 65001, external linkBGP version 4, remote router ID 10.1.1.1BGP state = Established, up for 00:04:25Last read 00:00:25, hold time is 180, keepalive interval is 60 seconds

    Neighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 4 4Notifications: 2 0Updates: 10 18Keepalives: 64 58

    Route Refresh: 0 0Total: 80 80

    Default minimum time between advertisement runs is 30 seconds

    For address family: IPv4 UnicastBGP table version 35, neighbor version 35Index 1, Offset 0, Mask 0x2

    Sent RcvdPrefix activity: ---- ----Prefixes Current: 1 4 (Consumes 192 bytes)Prefixes Total: 5 4

    Implicit Withdraw: 0 0Explicit Withdraw: 4 0Used as bestpath: n/a 4Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------

    AS_PATH loop: n/a 1Bestpath from this peer: 4 n/a

  • 8/7/2019 IP ROUTE CS - BGP

    38/44

    38

    Total: 4 1Number of NLRIs in the update sent: max 4, min 0

    Connections established 4; dropped 3Last reset 00:07:14, due to BGP Notification sent, hold time expired

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 192.168.14.2, Local port: 179Foreign host: 192.168.14.1, Foreign port: 11006

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

    Event Timers (current time is 0x383790):Timer Starts Wakeups NextRetrans 9 0 0x0TimeWait 0 0 0x0AckHold 9 6 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0

    GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 896737763 snduna: 896738092 sndnxt: 896738092 sndwnd: 16056irs: 934548238 rcvnxt: 934548658 rcvwnd: 15965 delrcvwnd: 419

    SRTT: 210 ms, RTTO: 904 ms, RTV: 694 ms, KRTT: 0 msminRTT: 16 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: passive open, nagle, gen tcbs, md5

    Datagrams (max data segment is 1440 bytes):Rcvd: 11 (out of order: 0), with data: 9, total data bytes: 419Sent: 15 (retransmit: 0, fastretransmit: 0), with data: 8, total data bytes: 328

    BGP neighbor is 192.168.34.1, remote AS 65001, external linkBGP version 4, remote router ID 10.3.3.3BGP state = Established, up for 00:39:02Last read 00:00:02, hold time is 180, keepalive interval is 60 secondsNeighbor capabilities:Route refresh: advertised and received(old & new)Address family IPv4 Unicast: advertised and received

    Message statistics:InQ depth is 0OutQ depth is 0

    Sent RcvdOpens: 2 2Notifications: 0 0Updates: 16 16Keepalives: 65 65Route Refresh: 0 0

  • 8/7/2019 IP ROUTE CS - BGP

    39/44

    39

    Total: 83 83Default minimum time between advertisement runs is 30 seconds

    For address family: IPv4 UnicastBGP table version 35, neighbor version 35Index 2, Offset 0, Mask 0x4

    Sent RcvdPrefix activity: ---- ----Prefixes Current: 5 4 (Consumes 192 bytes)Prefixes Total: 17 5Implicit Withdraw: 0 0Explicit Withdraw: 12 1Used as bestpath: n/a 0Used as multipath: n/a 0

    Outbound InboundLocal Policy Denied Prefixes: -------- -------

    AS_PATH loop: n/a 4

    Bestpath from this peer: 12 n/aTotal: 12 4Number of NLRIs in the update sent: max 4, min 0

    Connections established 2; dropped 1Last reset 00:39:42, due to Peer closed the session

    Connection state is ESTAB, I/O status: 1, unread input bytes: 0Local host: 192.168.34.2, Local port: 179Foreign host: 192.168.34.1, Foreign port: 11004

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

    Event Timers (current time is 0x383988):Timer Starts Wakeups NextRetrans 52 0 0x0TimeWait 0 0 0x0AckHold 50 40 0x0SendWnd 0 0 0x0KeepAlive 0 0 0x0GiveUp 0 0 0x0PmtuAger 0 0 0x0DeadWait 0 0 0x0

    iss: 4036617143 snduna: 4036618564 sndnxt: 4036618564 sndwnd: 14964irs: 2564409837 rcvnxt: 2564411194 rcvwnd: 15028 delrcvwnd: 1356

    SRTT: 300 ms, RTTO: 303 ms, RTV: 3 ms, KRTT: 0 msminRTT: 4 ms, maxRTT: 300 ms, ACK hold: 200 msFlags: passive open, nagle, gen tcbs, md5

    Datagrams (max data segment is 1440 bytes):

  • 8/7/2019 IP ROUTE CS - BGP

    40/44

    40

    Rcvd: 68 (out of order: 0), with data: 50, total data bytes: 1356Sent: 92 (retransmit: 0, fastretransmit: 0), with data: 51, total data bytes: 1420

    R4# sh ip bgp summaryBGP router identifier 172.16.12.1, local AS number 65002BGP table version is 35, main routing table version 355 network entries using 505 bytes of memory9 path entries using 432 bytes of memory3 BGP path attribute entries using 180 bytes of memory1 BGP AS-PATH entries using 24 bytes of memory0 BGP route-map cache entries using 0 bytes of memory0 BGP filter-list cache entries using 0 bytes of memoryBGP using 1141 total bytes of memoryBGP activity 6/1 prefixes, 27/18 paths, scan interval 60 secs

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd192.168.14.1 4 65001 81 81 35 0 0 00:05:14 4192.168.34.1 4 65001 83 83 35 0 0 00:39:50 4

    R4#sh ip bgpBGP table version is 35, local router ID is 172.16.12.1Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

    r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete

    Network Next Hop Metric LocPrf Weight Path*> 10.1.1.0/24 192.168.14.1 0 0 65001 i* 192.168.34.1 100 0 65001 i*> 10.2.2.0/24 192.168.14.1 0 0 65001 i

    * 192.168.34.1 100 0 65001 i*> 10.3.3.0/24 192.168.14.1 0 0 65001 i* 192.168.34.1 100 0 65001 i*> 10.20.0.0/22 192.168.14.1 0 0 65001 i* 192.168.34.1 100 0 65001 i*> 172.16.0.0/20 0.0.0.0 0 32768 i

    R4#sh runBuilding configuration...

    Current configuration : 2112 bytes

    !version 12.2service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R4!logging queue-limit 100

  • 8/7/2019 IP ROUTE CS - BGP

    41/44

    41

    !username mossapio privilege 15 secret 5 $1$iQif$CL3jCsyS5JFtcp8rTRlva/ip subnet-zero!!no ip domain lookupip domain name cisco.com!!!!!!!!!!!

    !!no voice hpi capture bufferno voice hpi capture destination!!mta receive maximum-recipients 0!!!!

    interface Loopback0ip address 172.16.0.1 255.255.252.0!interface Loopback4ip address 172.16.4.1 255.255.252.0!interface Loopback8ip address 172.16.8.1 255.255.252.0!interface Loopback12ip address 172.16.12.1 255.255.252.0

    !interface Serial0/0description R4->R3bandwidth 128ip address 192.168.34.2 255.255.255.252serial restart_delay 0clockrate 128000!interface Serial0/1

  • 8/7/2019 IP ROUTE CS - BGP

    42/44

    42

    no ip addressshutdownserial restart_delay 0!interface Serial0/2no ip addressshutdownserial restart_delay 0!interface Serial0/3no ip addressshutdownserial restart_delay 0!interface FastEthernet1/0description R4->R1ip address 192.168.14.2 255.255.255.252duplex auto

    speed auto!router eigrp 65002passive-interface Serial0/0passive-interface FastEthernet1/0passive-interface Loopback0passive-interface Loopback4passive-interface Loopback8passive-interface Loopback12network 172.16.0.0 0.0.15.255network 192.168.14.0 0.0.0.3

    network 192.168.34.0 0.0.0.3no auto-summary!router bgp 65002no synchronizationbgp log-neighbor-changesnetwork 172.16.0.0 mask 255.255.240.0neighbor 192.168.14.1 remote-as 65001neighbor 192.168.14.1 password cisconeighbor 192.168.34.1 remote-as 65001neighbor 192.168.34.1 password cisco

    no auto-summary!no ip http serverip http secure-serverip classlessip route 172.16.0.0 255.255.240.0 Null0!!!

  • 8/7/2019 IP ROUTE CS - BGP

    43/44

    43

    !call rsvp-sync!!mgcp profile default!!!dial-peer cor custom!!!!!line con 0exec-timeout 0 0logging synchronousline aux 0

    line vty 0 4exec-timeout 15 0loginlength 0transport input sshline vty 5 15exec-timeout 15 0loginlength 0transport input ssh!

    !end

    R4# tclshR4(tcl)#foreach address {

    +>(tcl)#10.2.2.2+>(tcl)#10.20.1.1+>(tcl)#10.20.2.1+>(tcl)#10.20.3.1+>(tcl)#10.3.3.3

    +>(tcl)#10.1.1.1+>(tcl)#+>(tcl)#} { ping $address source 172.16.12.1 }

    Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.2.2.2, timeout is 2 seconds:Packet sent with a source address of 172.16.12.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/60/104 ms

  • 8/7/2019 IP ROUTE CS - BGP

    44/44

    Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.20.1.1, timeout is 2 seconds:Packet sent with a source address of 172.16.12.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/38/88 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.20.2.1, timeout is 2 seconds:Packet sent with a source address of 172.16.12.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 36/52/64 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.20.3.1, timeout is 2 seconds:Packet sent with a source address of 172.16.12.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/58/76 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.3.3.3, timeout is 2 seconds:Packet sent with a source address of 172.16.12.1

    !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/36/64 msType escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:Packet sent with a source address of 172.16.12.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/18/32 ms

    R4#tracerouteProtocol [ip]:Target IP address: 10.20.2.1

    Source address: 172.16.0.1Tracing the route to 10.20.2.1

    1 192.168.14.1 32 msec2 10.1.102.2 64 msec

    R4#tracerouteProtocol [ip]:Target IP address: 10.3.3.3Source address: 172.16.8.1Tracing the route to 10.3.3.3

    1 192.168.14.1 12 msec2 10.1.103.3 88 msec