05-03-2015 01:55 PM - edited 03-07-2019 11:50 PM
Hi Everyone,
I am setting up home lab for BGP.
R1 and R2 are connected via EBGP.
R1 config
interface FastEthernet1/0/14
description BGP NEI
no switchport
ip address 10.1.45.2 255.255.255.0
router bgp 6500
no synchronization
bgp log-neighbor-changes
network 50.1.1.1 mask 255.255.255.255
neighbor 10.1.45.1 remote-as 5500
no auto-summary
Loopback12 50.1.1.1 YES manual up up
when I do sh ip bgp it shows blank
R1# sh ip bgp summ
BGP router identifier 10.10.3.1, local AS number 6500
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.1.45.1 4 5500 55 52 1 0 0 00:51:13 0
R1#sh ip bgp
I can ping the nei router
ping 10.1.45.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.45.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/9 ms
Regards
MAhesh
Solved! Go to Solution.
05-03-2015 02:19 PM
Mahesh
For BGP to advertise a network that you specify with the "network ..." statement there must be an exact match in the IP routing table.
An exact match means prefix and subnet mask but your subnet mask is 255.255.255.0 whereas in your BGP configuration you have used 255.255.255.255.
They need to match.
Jon
05-03-2015 02:15 PM
Mahesh
Are you saying a "sh ip bgp" shows nothing ?
If so what is the subnet mask you configured on the loopback ?
Jon
05-03-2015 02:17 PM
Hi jon,
yes sh ip bgp is blank on both R1 and R2
R1#sh run int loopback 12
Building configuration...
Current configuration : 63 bytes
!
interface Loopback12
ip address 50.1.1.1 255.255.255.0
Regards
MAhesh
05-03-2015 02:19 PM
Mahesh
For BGP to advertise a network that you specify with the "network ..." statement there must be an exact match in the IP routing table.
An exact match means prefix and subnet mask but your subnet mask is 255.255.255.0 whereas in your BGP configuration you have used 255.255.255.255.
They need to match.
Jon
05-03-2015 02:25 PM
Thanks jon that fix the issue
(config-router)#network 50.1.1.0 mask 255.255.255.0
R1(config-router)#end
R1#sh ip bgp
BGP table version is 2, local router ID is 10.10.3.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
*> 50.1.1.0/24 0.0.0.0 0 32768 i
Best Regards
MAhesh
05-03-2015 02:17 PM
Hi Mahesh,
From R1 can you ping the loopback interface of R2 (50.1.1.x)?
Thanks,
Reza
05-03-2015 02:20 PM
Hi Reza,
Loopback is configured on R1.
BGP should advertise the Route 50.1.1.1 to R2 then only R2 can ping 50.1.1.1 right?
Regards
MAhesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide