Mailing List Archive

BGP Command translations from IOS to JUNOS
Hello

For BGP, is there any feature on JunOS which is the same as Cisco:

show ip bgp neighbors x.x.x.x advertised-routes (Display the routes advertised to a BGP neighbor)
show ip bgp neighbors x.x.x.x received-routes (Display the received routes from neighbor)
show ip bgp neighbors x.x.x.x routes (Display routes learned from neighbor)

many thanks for reply,
Tom
BGP Command translations from IOS to JUNOS [ In reply to ]
On Tue, 11 Feb 2003, Tomasz Matusiewicz wrote:

> For BGP, is there any feature on JunOS which is the same as Cisco:
>
> show ip bgp neighbors x.x.x.x advertised-routes (Display the routes advertised to a BGP neighbor)

show route advertising-protocol bgp <neighbor>

> show ip bgp neighbors x.x.x.x received-routes (Display the received routes from neighbor)

show route receive-protocol bgp <peer>

You can download the rest of the JunOS documentation from:

http://www.juniper.net/techpubs/software/

HTH,

Rich
BGP Command translations from IOS to JUNOS [ In reply to ]
There is a very important difference with the show ip bgp neighbors x.x.x.x
received-routes Cisco command and the show route receive-protocol bgp
<peer>.

The juniper command shows prefixes after any incoming filter. The Cisco
command shows prefixes received regardless of any filters. Using hidden or
inactive still does not produce the desired result. As far as my testing
shows,

show ip bgp neighbors x.x.x.x routes = show route receive-protocol bgp
<peer>

I would love to hear if Juniper does have a command that will display
prefixes received BEFORE any inbound filters are applied.

-Dan

-----Original Message-----

From: variable@ednet.co.uk [mailto:variable@ednet.co.uk]

Sent: Thursday, February 13, 2003 8:05 AM

To: juniper-nsp@puck.nether.net

Subject: Re: [j-nsp] BGP Command translations from IOS to JUNOS



On Tue, 11 Feb 2003, Tomasz Matusiewicz wrote:

> For BGP, is there any feature on JunOS which is the same as Cisco:

>

> show ip bgp neighbors x.x.x.x advertised-routes (Display the routes
advertised to a BGP neighbor)

show route advertising-protocol bgp <neighbor>

> show ip bgp neighbors x.x.x.x received-routes (Display the received routes
from neighbor)

show route receive-protocol bgp <peer>

You can download the rest of the JunOS documentation from:

http://www.juniper.net/techpubs/software/

HTH,

Rich

_______________________________________________

juniper-nsp mailing list juniper-nsp@puck.nether.net

http://puck.nether.net/mailman/listinfo/juniper-nsp
BGP Command translations from IOS to JUNOS [ In reply to ]
Try:

show route receive-protocol bgp <peer> all
...
which shows "All entries including hidden entries"

Also, in my experience "show route receive-protocol bgp <peer>" with or
without the "all" keyword WILL show received prefixes prior to attribute
manipulation (community add/deletes, etc.) by inbound policies.

Regards,
Dave


Dan Brzoska wrote:
>
> There is a very important difference with the show ip bgp neighbors x.x.x.x
> received-routes Cisco command and the show route receive-protocol bgp
> <peer>.
>
> The juniper command shows prefixes after any incoming filter. The Cisco
> command shows prefixes received regardless of any filters. Using hidden or
> inactive still does not produce the desired result. As far as my testing
> shows,
>
> show ip bgp neighbors x.x.x.x routes = show route receive-protocol bgp
> <peer>
>
> I would love to hear if Juniper does have a command that will display
> prefixes received BEFORE any inbound filters are applied.
>
> -Dan
>
> -----Original Message-----
>
> From: variable@ednet.co.uk [mailto:variable@ednet.co.uk]
>
> Sent: Thursday, February 13, 2003 8:05 AM
>
> To: juniper-nsp@puck.nether.net
>
> Subject: Re: [j-nsp] BGP Command translations from IOS to JUNOS
>
> On Tue, 11 Feb 2003, Tomasz Matusiewicz wrote:
>
> > For BGP, is there any feature on JunOS which is the same as Cisco:
>
> >
>
> > show ip bgp neighbors x.x.x.x advertised-routes (Display the routes
> advertised to a BGP neighbor)
>
> show route advertising-protocol bgp <neighbor>
>
> > show ip bgp neighbors x.x.x.x received-routes (Display the received routes
> from neighbor)
>
> show route receive-protocol bgp <peer>
>
> You can download the rest of the JunOS documentation from:
>
> http://www.juniper.net/techpubs/software/
>
> HTH,
>
> Rich
>
> _______________________________________________
>
> juniper-nsp mailing list juniper-nsp@puck.nether.net
>
> http://puck.nether.net/mailman/listinfo/juniper-nsp
>
> _______________________________________________
> juniper-nsp mailing list juniper-nsp@puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp
BGP Command translations from IOS to JUNOS [ In reply to ]
I'm pretty sure that by default neither Juniper or Cisco provide
the information received from a peer before the Input Policy Engine
is applied and it's stored in the Adj-RIB-In. Else there'd be no
need for things like BGP Route Refresh :-)

However, if you really needed it on a normal basis enabling inbound
soft reconfiguration for the concerned peer(s) should give you access to
the "unaltered" data, but may use quite a bit of memory to store the it.

-danny


> There is a very important difference with the show ip bgp neighbors x.x.x.x
> received-routes Cisco command and the show route receive-protocol bgp
> <peer>.
>
> The juniper command shows prefixes after any incoming filter. The Cisco
> command shows prefixes received regardless of any filters. Using hidden or
> inactive still does not produce the desired result. As far as my testing
> shows,
>
> show ip bgp neighbors x.x.x.x routes = show route receive-protocol bgp
> <peer>
>
> I would love to hear if Juniper does have a command that will display
> prefixes received BEFORE any inbound filters are applied.
BGP Command translations from IOS to JUNOS [ In reply to ]
The Juniper command shows the routes being received BEFORE any policy is
applied. If yoy want to see the routes afterwards use next-hop or some other
attribute unique to the neighbor to filter output from the routing table.

Similarly the show route advertising protocol bgp x.x.x.x command will show
what you are sending to the peer AFTER you have applied your outbound
policy.

Dave H.

-----Original Message-----
From: juniper-nsp-bounces@puck.nether.net
[mailto:juniper-nsp-bounces@puck.nether.net]On Behalf Of Dan Brzoska
Sent: 13 February 2003 19:16
To: variable@ednet.co.uk; juniper-nsp@puck.nether.net
Subject: Re: [j-nsp] BGP Command translations from IOS to JUNOS


There is a very important difference with the show ip bgp neighbors x.x.x.x
received-routes Cisco command and the show route receive-protocol bgp
<peer>.

The juniper command shows prefixes after any incoming filter. The Cisco
command shows prefixes received regardless of any filters. Using hidden or
inactive still does not produce the desired result. As far as my testing
shows,

show ip bgp neighbors x.x.x.x routes = show route receive-protocol bgp
<peer>

I would love to hear if Juniper does have a command that will display
prefixes received BEFORE any inbound filters are applied.

-Dan

-----Original Message-----

From: variable@ednet.co.uk [mailto:variable@ednet.co.uk]

Sent: Thursday, February 13, 2003 8:05 AM

To: juniper-nsp@puck.nether.net

Subject: Re: [j-nsp] BGP Command translations from IOS to JUNOS



On Tue, 11 Feb 2003, Tomasz Matusiewicz wrote:

> For BGP, is there any feature on JunOS which is the same as Cisco:

>

> show ip bgp neighbors x.x.x.x advertised-routes (Display the routes
advertised to a BGP neighbor)

show route advertising-protocol bgp <neighbor>

> show ip bgp neighbors x.x.x.x received-routes (Display the received routes
from neighbor)

show route receive-protocol bgp <peer>

You can download the rest of the JunOS documentation from:

http://www.juniper.net/techpubs/software/

HTH,

Rich

_______________________________________________

juniper-nsp mailing list juniper-nsp@puck.nether.net

http://puck.nether.net/mailman/listinfo/juniper-nsp

_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
http://puck.nether.net/mailman/listinfo/juniper-nsp
BGP Command translations from IOS to JUNOS [ In reply to ]
See:
http://www.juniper.net/techpubs/software/junos/junos56/swcmdref56/html/l
ayer3-vpn18.html

Syntax
show route receive-protocol protocol neighbor-address <detail |
extensive | terse>

Description
Display the routing information as it was received through a particular
neighbor of a particular dynamic routing protocol. This information
includes the routes that the local router advertised to the neighbor.
The information displayed reflects the routes before they are filtered
by that protocol's import routing policy statements and is placed into
the routing table.

-- steve


-----Original Message-----
From: juniper-nsp-bounces@puck.nether.net
[mailto:juniper-nsp-bounces@puck.nether.net] On Behalf Of Danny
McPherson
Sent: Tuesday, February 18, 2003 2:54 PM
To: juniper-nsp@puck.nether.net
Subject: Re: [j-nsp] BGP Command translations from IOS to JUNOS


I'm pretty sure that by default neither Juniper or Cisco provide
the information received from a peer before the Input Policy Engine
is applied and it's stored in the Adj-RIB-In. Else there'd be no
need for things like BGP Route Refresh :-)

However, if you really needed it on a normal basis enabling inbound
soft reconfiguration for the concerned peer(s) should give you access to

the "unaltered" data, but may use quite a bit of memory to store the it.

-danny


> There is a very important difference with the show ip bgp neighbors
x.x.x.x
> received-routes Cisco command and the show route receive-protocol bgp
> <peer>.
>
> The juniper command shows prefixes after any incoming filter. The
Cisco
> command shows prefixes received regardless of any filters. Using
hidden or
> inactive still does not produce the desired result. As far as my
testing
> shows,
>
> show ip bgp neighbors x.x.x.x routes = show route receive-protocol bgp
> <peer>
>
> I would love to hear if Juniper does have a command that will display
> prefixes received BEFORE any inbound filters are applied.

_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
http://puck.nether.net/mailman/listinfo/juniper-nsp
BGP Command translations from IOS to JUNOS [ In reply to ]
On Tue, Feb 18, 2003 at 01:53:37PM -0700, Danny McPherson wrote:
|
| I'm pretty sure that by default neither Juniper or Cisco provide
| the information received from a peer before the Input Policy Engine
| is applied and it's stored in the Adj-RIB-In. Else there'd be no
| need for things like BGP Route Refresh :-)
|
| However, if you really needed it on a normal basis enabling inbound
| soft reconfiguration for the concerned peer(s) should give you access to
| the "unaltered" data, but may use quite a bit of memory to store the it.

yes and no;

per default JUNOS _does_ store the inbound RIB for SAFI 1,2,4 routes;
however, what you see using the "show route receive protocol bgp x.y.z" command
does not entirely show _all_ the prefixes coming in - i.e. prefixes
with e.g. a malformed AS path don't show up here;
likewise the "show route advertising protocol bgp x.y.z" does not show;

you how the update leaves the router - things like prepending of the own
AS number are missing here;

for SAFI 128 routes there is no inbound RIB except you turn on the keep-all knob;
which is a nice thing as it gives you a lot more better visibility to
troubleshoot VPN problems; of course this is at the expense of some memory -
but hey we have lots of them ;-)

/hannes
BGP Command translations from IOS to JUNOS [ In reply to ]
You might want to look at Joseph's presentation on NANOG27.
There will be PDF presentation, and you will get some useful usage of each
commands from JUNOS.

http://www.nanog.org/mtg-0302/joe.html

Hyun


Tomasz Matusiewicz wrote:
>
> Hello
>
> For BGP, is there any feature on JunOS which is the same as Cisco:
>
> show ip bgp neighbors x.x.x.x advertised-routes (Display the routes advertised to a BGP neighbor)
> show ip bgp neighbors x.x.x.x received-routes (Display the received routes from neighbor)
> show ip bgp neighbors x.x.x.x routes (Display routes learned from neighbor)
>
> many thanks for reply,
> Tom
> _______________________________________________
> juniper-nsp mailing list juniper-nsp@puck.nether.net
> http://puck.nether.net/mailman/listinfo/juniper-nsp

--
* This does not represent Norlight Telecommunications, and
does only represent my humble opinion.

----------
Hyunseog Ryu mailto:r.hyunseog@ieee.org
Senior Network Engineer/Applications Engineering
Norlight Telecommunications, Inc.
Living in Earth, and dreaming in the moon world.
----------
BGP Command translations from IOS to JUNOS [ In reply to ]
hannes@juniper.net (Hannes Gredler) writes:

>
> for SAFI 128 routes there is no inbound RIB except you turn on the keep-all knob;
> which is a nice thing as it gives you a lot more better visibility to
> troubleshoot VPN problems; of course this is at the expense of some memory -
> but hey we have lots of them ;-)

A small correction...
For SAFI 128 there is a RIB-IN just as there is for other
SAFIs... however, in the default configuration, any received route
that does not maych a route-target that is locally configured (for a
router acting as a PE) is discarded.

But 'show route received-protocol bgp' will still display the
attributes of a route before import policy is applied.

Pedro.