12-09-2022 07:46 AM - last edited on 12-11-2022 02:07 AM by Translator
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
Solved! Go to Solution.
12-09-2022 08:14 AM - last edited on 12-11-2022 02:09 AM by Translator
Do yoh try
redistribute connect?
When clients connect it route is add and
redistribute connect
will advertise it automatic.
12-09-2022 07:50 AM - last edited on 12-11-2022 02:08 AM by Translator
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
12-09-2022 07:54 AM
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)
12-09-2022 08:51 AM
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
12-09-2022 08:14 AM - last edited on 12-11-2022 02:09 AM by Translator
Do yoh try
redistribute connect?
When clients connect it route is add and
redistribute connect
will advertise it automatic.
12-09-2022 08:54 AM
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!
12-09-2022 08:17 AM - last edited on 12-11-2022 02:10 AM by Translator
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,
12-09-2022 08:57 AM - last edited on 12-11-2022 02:11 AM by Translator
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!
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