cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
486
Views
5
Helpful
12
Replies

Null interface drop packets

ignatvazhenin
Level 1
Level 1

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 !

12 Replies 12

Config static route to null0 with high AD.

 

Won't make any difference as most specific prefix always wins so they would still be entered in routing table. 

 

Jon

As @Jon Marshall  suggest 

Config static host route toward subinterface,

And advertise the route as static not as connect in bgp.

Jon Marshall
Hall of Fame
Hall of Fame

 

Instead of the next hop being the null interface make the next hop the outgoing interface on the router. 

 

Jon

ignatvazhenin
Level 1
Level 1

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

 

 

You don't use other interface, you use the interface that has the 1.1.1.1 IP. 

 

Jon

ignatvazhenin
Level 1
Level 1

I tried to do this, but there was configuration error

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 ?

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 )

 

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

Are this issue solved or not? Do you try @Jon Marshall  suggestion ?

ignatvazhenin
Level 1
Level 1

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

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