Page 1 of 1

Static Route to Null

Posted: 31 May 2018 14:05
by mouthpiec
Hi,
I need to advertise a static IP through BGP, but for this to work I need to have a static route for this IP address.

Is there a way to make a route to null or blackhole?
I tried route towards 127.0.0.1 and also towards the IP interface configure on the switch but I am getting an error that I cannot route towards an interface that exists on the switch.

Any help?

Re: Static Route to Null

Posted: 01 Jun 2018 03:36
by benny
Starting AOS >= 7.3.4.236.R02 (and later) you should be able to use this command to create a black hole route:

-> ip static-route 2.2.2.2/32 interface Loopback metric 1

Re: Static Route to Null

Posted: 01 Jun 2018 07:23
by mouthpiec
thanks Benny.
Will try it out.

Re: Static Route to Null

Posted: 01 Jun 2018 11:17
by mouthpiec
worked great Benny!
thanks again