cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
823
Views
10
Helpful
7
Replies

BGP problem address family ipv4

santox
Level 1
Level 1

Hi I have a Cisco ASR1001 pppoe server with 2 BGP peering to others two routers.

In Cisco I setup bgp+adress family but when my client start pppoe sessions and router assign to them public ips, 1001 dont propagate these ips /32.

If, in

address family ipv4

I had single /32 ip instead of /24 prefix it works. (ex 100.100.100.0/21)

 

router bgp 666
bgp router-id 10.250.1.1
no bgp enforce-first-as
bgp log-neighbor-changes
neighbor 10.20.1.13 remote-as 666
neighbor 10.20.1.13 description ** IBGP TO ASR1006 VLAN6 **
neighbor 10.20.1.13 update-source TenGigabitEthernet0/0/0.6
neighbor 10.20.1.13 timers 20 60
neighbor 10.20.1.17 remote-as 666
neighbor 10.20.1.17 description ** IBGP TO ASR1006 VLAN5 **
neighbor 10.20.1.17 update-source TenGigabitEthernet0/0/0.5
neighbor 10.20.1.17 timers 20 60
!
address-family ipv4
network 10.250.1.1 mask 255.255.255.255
network 100.100.100.0 mask 255.255.248.0

-------


Can I propagate single ips only if customers go online

so when ip is directly connected to the router?

thank you and good work to all

1 Accepted Solution

Accepted Solutions

Do yoh try

redistribute connect?

When clients connect it route is add and

redistribute connect 

will advertise it automatic. 

View solution in original post

7 Replies 7

santox
Level 1
Level 1

only if I add this command

1001 propagate the customer ip

ex.

customer have assign from pool 100.100.100.1, I must add

address-family ipv4
network 100.100.100.1 mask 255.255.255.255

 

thank you

balaji.bandi
Hall of Fame
Hall of Fame

not sure i have not come across this scenario - i do not believe BGP is right choice here i guess for the netmask you looking

as per i know BGP only acccept /24 and more. (i hear some provider can accept /25 and /28 (not saw /32)

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi thanks for reply

is internal BGP not eBGP.

connection with providers is 1006 job.

1001 will use only for pppoe sessions.

thank you and good work

Do yoh try

redistribute connect?

When clients connect it route is add and

redistribute connect 

will advertise it automatic. 

hi,

thank you I dont know why I dont use this command first. Always enable in mikrotik routers..

now I add this command and I see all prefixes when pppoe client is active!

thank you and good work!

Harold Ritter
Cisco Employee
Cisco Employee

Hi @santox ,

The reason it doesn't work with the network statement for the /21 is that you need a route matching that same prefix/prefix length in the routing table. It would probably better to advertise only one block (/21) than to advertise lots of individual routes (/32). To do that you will need to configure a static route for the /21 to null0 as follow:

ip route 100.100.100.0 255.255.248.0 null0

router bgp 666

address-family ipv4 unicast

network 100.100.100.0 mask 255.255.248.0

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Hi Harold

I use command

redistribute connected

and now I have scenario I want.

If /32 is announce to 1001 meaning that client is connect to him and can go to internet via 1006 router.

If not, /24 prefix continue to routing to other network

thank you and good day!

 

Getting Started

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:

Review Cisco Networking products for a $25 gift card