Saturday 15 December 2007

a simple IBGP and EBGP network

Objective This post demonstrates how to configure a simple IBGP and EBGP network.

Download Equipment list, configuration files and network topology. ccnp-c8t1.zip

Setup
After successfully loading config files into your equipment we need to verify installation.

First let's make sure all our interfaces are up on each router that we would expect with "sho ip interface brief".

P1R1#sh ip int br
Interface IP-Address OK? Method Status Protocol
Ethernet0 10.1.1.1 YES manual up up
Loopback0 10.200.200.11 YES manual up up
Serial0 unassigned YES manual up up
Serial0.1 172.31.1.1 YES manual up up
Serial0.2 172.31.11.1 YES manual up up
Serial1 10.1.0.1 YES manual up up

Next we wil ping through to the backbone routers to see that the Frame Switch is operational.
P1R1#ping 172.31.1.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.31.1.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/45/88 ms

BGP Configuration
Here we set up our pod as AS65001 with IBGP and EBGP sessions on both edge routers.

P1R1#conf t
P1R1(config)#router bgp 65001
P1R1(config-router)#neighbor 172.31.1.3 remote-as 64998
P1R1(config-router)#neighbor 172.31.11.4 remote-as 64999
P1R1(config-router)#neighbor 10.1.0.2 remote-as 65001
P1R1(config-router)#end

Following this we mannualy set up which networks BGP will advertise, again on the routers we configured as AS65001.
P1R1(config)#router bgp 65001
P1R1(config-router)#net 10.1.0.0 mask 255.255.255.0
P1R1(config-router)#net 10.1.1.0 mask 255.255.255.0
P1R1(config-router)#net 10.1.2.0 mask 255.255.255.0
P1R1(config-router)#net 10.1.3.0 mask 255.255.255.0
P1R1(config-router)#end
P1R1#

You will see notifications on the console as the sessions are established. You can verify you have the 3 expected bgp sessions with the "show ip bgp summary" command.

P1R1#sh ip bgp summ
BGP router identifier 10.200.200.11, local AS number 65001
BGP table version is 10, main routing table version 10
8 network entries using 776 bytes of memory
20 path entries using 720 bytes of memory
13 BGP path attribute entries using 780 bytes of memory
6 BGP AS-PATH entries using 144 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 2420 total bytes of memory
BGP activity 8/0 prefixes, 20/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.0.2 4 65001 25 25 10 0 0 00:15:31 7
172.31.1.3 4 64998 27 26 10 0 0 00:18:55 4
172.31.11.4 4 64999 27 27 10 0 0 00:18:42 4

State/PfxRcd shows how many prefixes have been received from which peer

RIPv2 & IBGP
RIPv2 is running between PxR1 and PxR2, because the network statement for RIPv2 includes the entire 10.0.0.0 network. For this exercise, you only want to run IBGP between PxR1 and PxR2. We will need to configure int s0/1 on both edge routers as passive interfaces to suppress RIPv2 between the 2 edge routers.

P1R1(config)#router rip
P1R1(config-router)#passive-interface s0/1

Verify these commands with "show ip protocols". You will now see interfaces serial0/1 under the "Passive Interfaces" header.
Passive Interface(s):
Serial0/1

From the edge routers we have full connectivity with the 10.254.0.0 prefix however because we are not redistributing BGP into RIPv2, the internal routers do not know any routes outside their pod.
Use the "default-information originate" command on the edge routers to generate a default route to the internal routers.
P1R1(config)#router rip
P1R1(config-router)#default-information originate

Verify this with "show ip route" on the internal routers.You will see a new default route generated via RIPv2.
P1R3#sh 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, 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

Gateway of last resort is 10.1.1.1 to network 0.0.0.0

10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
R 10.200.200.11/32 [120/1] via 10.1.1.1, 00:00:22, Ethernet0
R 10.200.200.14/32 [120/1] via 10.1.3.4, 00:00:03, Serial0
C 10.200.200.13/32 is directly connected, Loopback0
C 10.1.3.0/24 is directly connected, Serial0
R 10.1.2.0/24 [120/1] via 10.1.3.4, 00:00:03, Serial0
C 10.1.1.0/24 is directly connected, Ethernet0
R 10.1.0.0/24 [120/1] via 10.1.1.1, 00:00:22, Ethernet0
R* 0.0.0.0/0 [120/1] via 10.1.1.1, 00:00:23, Ethernet0

and finally a ping to verify connectivity.
P1R3#ping 10.254.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.254.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/35/36 ms
P1R3#



this post is based on an exercise from the book
CCNP Self Study:
Building Scalable Cisco Internetworks (BSCI)
Second Edition

No comments: