05-24-2022 02:49 AM
Hello,
l need to advertise by BGP two host IP addresses for example 1.1.1.33/24 and 1.1.1.34/24, they belong one subnet /24, terminating on subinterface. I need to advertise 1.1.1.33/24 to one bgp peer, 1.1.1.34/24 to another bgp peer, but in routing table i have only active route 1.1.1.0/24 terminating on subinterface. l can not use route-map to separate routes to different bgp peers, i tried to use static route with NULL interface to make routes 1.1.1.33/24 and 1.1.1.34/24 active in routing table to use route-map. Now l can use route-map to separate routes to different bgp peers but reverse traffic to 1.1.1.33/24, 1.1.1.34/24 drop ( because routes pointed to NULL interface ). How can l make IP address 1.1.1.33/24, 1.1.1.34/24 active in routing table to use route-map to different BGP peers ?
Thank you !
05-24-2022 03:25 AM
Config static route to null0 with high AD.
05-24-2022 03:34 AM
Won't make any difference as most specific prefix always wins so they would still be entered in routing table.
Jon
05-24-2022 03:44 AM
As @Jon Marshall suggest
Config static host route toward subinterface,
And advertise the route as static not as connect in bgp.
05-24-2022 03:33 AM
Instead of the next hop being the null interface make the next hop the outgoing interface on the router.
Jon
05-24-2022 04:28 AM
I need to save ip connectivity for IP address 1.1.1.33, 1.1.1.34. I mean now ip hosts 1.1.1.33, 1.1.1.34 communicate with IP remote site through gateway 1.1.1.1 terminating on subinterface ( 1.1.1.1/24 ), so if I add static route for hosts 1.1.1.33, 1.1.1.34 through other interface -> traffic from 1.1.1.33, 1.1.1.34 will forward to another next hop, different from 1.1.1.1, so ip connectivity to IP remote site will be terminated
05-24-2022 04:34 AM
You don't use other interface, you use the interface that has the 1.1.1.1 IP.
Jon
05-24-2022 04:37 AM
I tried to do this, but there was configuration error
05-24-2022 04:43 AM
please share the show ip route, show static route.
And if I right this second post for same issue which is /32 with "L" in routing table ?
05-24-2022 05:05 AM
When I apply configuration of static route 1.1.1.33/1.1.1.34 to next hop 1.1.1.1, I receive error of mismatch configuration with interface where 1.1.1.1/24 is already configured ( terminating )
05-24-2022 05:30 AM
You don't set the next hop to be 1.1.1.1, you set the next hop to be the interface that 1.1.1.1 is assigned to.
Jon
05-24-2022 06:39 AM
Are this issue solved or not? Do you try @Jon Marshall suggestion ?
05-24-2022 11:48 PM
I haven’t got option to use as next-hop interface, where assigned ip address 1.1.1.1, only IP address/hostname:
configure mode commands/options:
Hostname or A.B.C.D The address of the gateway by which the foreign network is reached
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: