10-30-2012 05:03 AM - edited 03-07-2019 09:45 AM
Hi,
I am trying to configure BGP for ISP connectivity, when i enter the network statement under BGP the mask part does not appear hence the network is not advertised with the mask.
See attached config;
router bgp <OUR_AS>
bgp log-neighbor-changes
neighbor 192.168.100.1 remote-as <ISP_AS>
neighbor 192.168.100.1 description ISP_BGP_PEER
neighbor 192.168.100.1 update-source FastEthernet0/0.704
!
address-family ipv4
neighbor 192.168.100.1 activate
neighbor 192.168.100.1 soft-reconfiguration inbound
neighbor 192.168.100.1 prefix-list DEFAULT in
neighbor 192.168.100.1 prefix-list OUR-PREFIX out
neighbor 192.168.100.1 route-map OUR-PREFIX-ROUTEMAP out
no auto-summary
no synchronization
network 10.0.0.0
exit-address-family
!
ip forward-protocol nd
ip route 10.0.0.0 255.255.255.0 Null0
no ip http server
no ip http secure-server
!
Craft_Saf#sh ip bgp neighbors 192.168.100.1 advertised-routes
BGP table version is 7, local router ID is 192.168.100.2
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
*> 10.0.0.0 0.0.0.0 0 32768 i
Total number of prefixes 1
You input will be highly appreciated.
Regards,
Denis
10-30-2012 05:27 AM
Do you mean not getting these options ?
(config-router-af)#network 10.0.0.0 mask ?
A.B.C.D Network mask
10-30-2012 05:57 AM
I have the options and I key in the commands but once i do show run it does not show and as you can see the network is advertised without a mask.
Thks & Regards
10-30-2012 06:08 AM
The network you are advertising via BGP, do you have this network as a valid route in your routing table? Also, are you
using the correct network mask?
10-30-2012 06:22 AM
Kindly have a look at the code snipet above i have included;
ip route 10.0.0.0 255.255.255.0 Null0
Regards,
D
10-30-2012 06:27 AM
When using address families i've always done the following.
router bgp x
neighbor x.x.x.x remote-as ASN
network y.y.y.y mask z.z.z.z
address-family ipv4
neighbor x.x.x.x activate
What happens when you go to router bgp x and type network (network) mask (mask)
10-30-2012 06:45 AM
The Router accepts the commands but once you show runn the
network y.y.y.y part appeears but the mask bit is missing.
10-31-2012 07:56 AM
Can You please show us exactly how You are doing, what mask do You configure on the network command.
The default for bgp is classfull mask, so if You configure
network 10.0.0.0 or
network 10.0.0.0 mask 255.0.0.0
the result in the config
will be network 10.0.0.0 for both the above.
If You configure
network 10.0.0.0 mask 255.255.255.0
itwill show up like that.
/Mikael
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