cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7512
Views
0
Helpful
7
Replies

BGP network x.x.x.x mask command

Denis Wahome
Level 1
Level 1

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

7 Replies 7

ajay chauhan
Level 7
Level 7

Do you mean not getting these options ?

(config-router-af)#network 10.0.0.0 mask ?

  A.B.C.D  Network mask

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

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?

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

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)

The Router accepts the commands but once you show runn the

network y.y.y.y part appeears but the mask bit is missing.

mlund
Level 7
Level 7

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

Review Cisco Networking for a $25 gift card