11-05-2008 12:46 PM - edited 03-04-2019 12:12 AM
hi,
According to the diagram and the config, why isn't there a "network 172.16.20.0 mask 255.255.255.0" on router B? Does the "network" statement advertise only connected networks?
please check the attached files (taken from Cisco Student Guide).
11-05-2008 01:04 PM
172.16.20.0 is not owned by routerB. It belongs to A. network statement on B would advertise connected routes from B.
Thanks.
11-05-2008 01:04 PM
Hi,
it's not necessary as the 172.16.20.0/24 is received via BGP session from router A.
The "network" statement is necessary to advertise to BGP routes received from IGP, static and connected subnets.
See http://www.cisco.com/en/US/docs/ios/12_0/np1/command/reference/1rbgp.html#wp1020532
for details.
BR,
Milan
11-05-2008 10:16 PM
Hi,
The network statement does necessarily advertised connected networks, it is just to advertise the router self network into bgp.
If you wanted to advertise the connected network, just include in the router bgp config "redistribute connected"
11-06-2008 12:47 AM
Hello Wassim,
as Milan has correctly noted is RA that is advertising net 172.16.20.0/24 on its iBGP session to RB.
RB can then advertise to RC over an eBGP session the network 172.16.20.0/24 and will change the BGP next-hop attribute to ip 10.1.1.x (BGP next-hop recalculation at EBGP session).
From the point of view of RC there is no difference between the two subnets:
172.16.10.0/24
172.16.20.0/24
both comes over eBGP with AS path= 65000 i
BGP next hop= 10.1.1.x
Hope to help
Giuseppe
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: