Advertising route into BGP

Hi

I need to add the public ip range 196.66.168.0/24 to my BGP config on ISP router so range 196.66.168.0/24 is accessible from internet.

Please advise what command must I add to BGP to advertise the range into BGP.
See attached current  BGP config on ISP router
ISP-BGP
ciscosuppAsked:
Who is Participating?
 
askincakirConnect With a Mentor Commented:
ok,
configure terminal
ip route 196.66.168.0 255.255.255.0 196.66.6.29

ip prefix-list MY_ROUTES seq 20 permit 196.66.168.0/24

router bgp 20190
 address-family ipv4
 network 196.66.168.0 mask 255.255.255.0
end
0
 
Craig BeckConnect With a Mentor Commented:
It looks like you just need...

router bgp 20190
 address-family ipv4
  network 196.66.168.0

Open in new window

0
 
ciscosuppAuthor Commented:
thanks i tried routes are not advertised to outside.
Must i also add a prefix list maybe
please advice
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
askincakirCommented:
Hi,
The prefix which you are trying to advertise should also be in your routing table.
Give that prefix to your directly connected interface or just simply write a static route which will appear in your routing table.
For example:
ip route 196.66.168.0 255.255.255.0 null0
0
 
ciscosuppAuthor Commented:
so when I add

ip prefix-list MY_ROUTES seq 15 permit 196.216.168.0/24

will it also work please advice
0
 
ciscosuppAuthor Commented:
hi have a static route pointing to my firewall

ip route 196.66.168.0 255.255.255.0 196.66.168.5
0
 
askincakirCommented:
No, it is totally different point. Prefix-list is used for limiting the networks which you are going to advertise.
Example:
router bgp1
network 192.168.1.0
network 192.168.2.0
exit
By default both of the routes will be advertised. But you just want to advertise only one of them. Then you need to write a prefix and just give a permit to one of routes.

ip prefix-list YOUR-ROUTES seq 10 permit 192.168.1.0/24
router bgp 1
neighbor 1.1.1.1 prefix-list out YOUR-ROUTES
exit

192.168.2.0 would not be advertised to your bgp neighbor.
0
 
ciscosuppAuthor Commented:
okay so what commands must I add now to advertise the new network.
please advice
note there is no interface in the new ip range on route its only on the firewall
0
 
askincakirCommented:
So,

to which BGP neighbor you want to advertise this ?
neighbor 196.66.7.29
neighbor 196.66.8.29
neighbor 196.66.10.29
0
 
ciscosuppAuthor Commented:
neighbor 196.66.10.29
0
 
askincakirCommented:
ok,
what is the ip address of firewall where you are going to use this subnet ?
0
 
ciscosuppAuthor Commented:
router   196.66.6.1 (the one running BGP /ISP router

Firewall 196.66.6.29
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.