•
Use to enable the BGP speaker to advertise inactive routes—best routes in the IP
forwarding table that are not being used to forward traffic. This feature is disabled by
default.
•
Issuing this command does not affect the BGP rules for best route selection, or how
BGP populates the IP forwarding table.
•
Example
host1(config-router)#
bgp advertise-inactive
•
The new value is applied to all routes that are subsequently placed in the IP routing
table.
To apply the new value to routes that are already present in the IP routing table, you
must use the
clear ip bgp *
command (this command will bounce the BGP sessions).
•
Use the
no
version to prevent the advertising of received BGP routes unless one or both
of the following are true:
•
The received route is in the BGP forwarding table and is being used to forward traffic
(the route is active).
•
Synchronization is enabled.
•
See bgp advertise-inactive.
Verifying an AS Path
You can use the
bgp enforce-first-as
command to cause BGP to compare the first AS
in the AS-path of a received route with the configured remote AS number of that EBGP
peer. If the check fails, BGP returns a notification message to the peer.
bgp enforce-first-as
•
Use to cause BGP to determine whether the first AS in the AS path of a route received
from an EBGP peer matches the remote AS number of that peer.
•
If the AS does not match, BGP sends a notification to the peer with the error code “
update message error” and error subcode “ malformed as-path.”
•
This feature is disabled by default.
•
Example
host1(config-router)#
bgp enforce-first-as
•
Causes BGP to check the AS path of all routes received after you issue the command.
To apply the new behavior to routes that are already present in the BGP routing table,
you must use the
clear ip bgp
command to perform a soft clear or hard clear of the
current BGP session.
•
Use the
no
version to prevent the AS comparison from taking place.
•
See bgp enforce-first-as.
Copyright © 2010, Juniper Networks, Inc.
62
JunosE 11.2.x BGP and MPLS Configuration Guide
Summary of Contents for JUNOSE 11.2.X BGP AND MPLS
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 38: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 192: ...Copyright 2010 Juniper Networks Inc 156 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 242: ...Copyright 2010 Juniper Networks Inc 206 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 244: ...Copyright 2010 Juniper Networks Inc 208 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 310: ...Copyright 2010 Juniper Networks Inc 274 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 356: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 418: ...Copyright 2010 Juniper Networks Inc 382 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 488 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 544: ...Copyright 2010 Juniper Networks Inc 508 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 608: ...Copyright 2010 Juniper Networks Inc 572 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 672: ...Copyright 2010 Juniper Networks Inc 636 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 674: ...Copyright 2010 Juniper Networks Inc 638 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 716: ...Copyright 2010 Juniper Networks Inc 680 JunosE 11 2 x BGP and MPLS Configuration Guide...
Page 717: ...PART 6 Index Index on page 683 681 Copyright 2010 Juniper Networks Inc...
Page 718: ...Copyright 2010 Juniper Networks Inc 682 JunosE 11 2 x BGP and MPLS Configuration Guide...