BGP lab PT1

BGP is great; there is so much to learn. I have read the two books i mentioned in my last blog and i am now reading the CCIE Routing and Switching Exam Certification Guide by Wendell Odom, Rus Healy, and Denise Donohue. It has some great labs in it. This is the first lab i set up to get me used to all the basic BGP syntax and setting up both iBGP & eBGP neighbours. This lab has three routers in it from my home lab, two of my 2610XM’s & a 2501. Router one and two have a iBGP peering relationship, while three has a eBGP peering relationship with router two. The idea was to get the loopback networks of router three into router ones BGP table.

*note on routers two and three i used EIGRP as the IGP.

I set this up with the following commands.

ROUTER_1#sh run | be bgp
router bgp 605
no synchronization
bgp log-neighbor-changes
neighbor 172.16.12.2 remote-as 605
no auto-summary

ROUTER_2#sh run | be bgp
router bgp 605
no synchronization
bgp log-neighbor-changes
neighbor 3.3.3.3 remote-as 777
neighbor 3.3.3.3 ebgp-multihop 2
neighbor 3.3.3.3 update-source Loopback0
neighbor 172.16.12.1 remote-as 605
neighbor 172.16.12.1 next-hop-self
no auto-summary

ROUTER_THREE#sh run | be bgp
router bgp 777
no synchronization
bgp log-neighbor-changes
network 10.0.0.0
network 171.171.0.0
network 192.192.192.0
neighbor 2.2.2.2 remote-as 605
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
no auto-summary

To comfirm this was working i ran a few show commands on router one (i have started using alias command as of late as well just so don’t have to type so much!)

ROUTER_1#sbs
BGP router identifier 1.1.1.1, local AS number 605
BGP table version is 10, main routing table version 10
3 network entries using 351 bytes of memory
3 path entries using 156 bytes of memory
2/1 BGP path/bestpath attribute entries using 248 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 779 total bytes of memory
BGP activity 6/3 prefixes, 6/3 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.16.12.2 4 605 22 18 10 0 0 00:15:55 3
ROUTER_1#


ROUTER_1#sib
BGP table version is 10, local router ID is 1.1.1.1
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
*>i10.0.0.0 172.16.12.2 0 100 0 777 i
*>i171.171.0.0 172.16.12.2 0 100 0 777 i
*>i192.192.192.0 172.16.12.2 0 100 0 777 i
ROUTER_1#


ROUTER_1#sirb
B 192.192.192.0/24 [200/0] via 172.16.12.2, 00:05:59
B 171.171.0.0/16 [200/0] via 172.16.12.2, 00:05:59
B 10.0.0.0/8 [200/0] via 172.16.12.2, 00:05:59
ROUTER_1#

ROUTER_1#sir
Codes: 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

Gateway of last resort is not set

B 192.192.192.0/24 [200/0] via 172.16.12.2, 00:06:21
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
B 171.171.0.0/16 [200/0] via 172.16.12.2, 00:06:21
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.12.0 is directly connected, FastEthernet0/0
B 10.0.0.0/8 [200/0] via 172.16.12.2, 00:06:21
ROUTER_1#

There is still tons of work to do!! 🙂

BE.

Advertisements

~ by bigevil on May 1, 2010.

 
%d bloggers like this: