Support Support Downloads Knowledge Base Case Manager My Juniper 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

0

0

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

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.

Symptoms:

Cause:

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

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* 0.0.0.0/0 172.16.1.1 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