Support Support Downloads Knowledge Base Apex Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] Configuration Example: How to advertise only a default route to a single BGP peer



Article ID: KB27384 KB Last Updated: 08 Aug 2013Version: 1.0

This article explains how to advertise only a default route to a single Border Gateway Protocol (BGP) peer. A procedure is provided for customers who do not want to apply aggregation, as those are global commands.



set neighbor remote-as 2222 local-ip outgoing-interface ethernet0/3
set neighbor enable
set ipv4 neighbor activate
set ipv4 neighbor advertise-def-route               
# Advertise the default route.
set ipv4 neighbor route-map "filter" out             # Route map applied to the neighbor.
set ipv4 network no-check                            # Routes advertised to other peers.
set ipv4 network no-check                            # Routes advertised to other peers.
set access-list 1                                              
# ACL to block the routes for single peer.
set access-list 1 deny ip 1                          # Deny subnets to be blocked. In this case you should add all the subnets being advertised.
set access-list 1 permit ip 2
set route-map name "filter" permit 1
set match ip 1

The peer device will have only a default route now:

get vr trust-vr protocol bgp rib-in
Total ipv4 routes in rib-in: 1 (0 in flap-damping history)
>e* 100 100 0 IGP 1111
Total no. of ipv4 entries shown: 1

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search