Configuring Bgp Routing Policy; Figure 20: Advertising A Default Route When Another Route Is Present - Juniper JUNOSE SOFTWARE FOR E SERIES 11.0.X - BGP AND MPLS CONFIGURATION GUIDE 2009-12-30 Configuration Manual

Software for e series routing platforms bgp and mpls configuration guide
Table of Contents

Advertisement

JUNOSe 11.0.x BGP and MPLS Configuration Guide

Figure 20: Advertising a Default Route When Another Route is Present

The following commands configure router R2:

Configuring BGP Routing Policy

Routing policy determines how the router handles the routes it receives from and
sends to BGP peers or other routing protocols. In many cases, routing policy consists
of filtering routes, accepting certain routes, accepting and modifying other routes,
and rejecting some routes. You can think of routing policy as a way to control the
flow of routes into and out of the router.
You can use one or more of the following mechanisms to configure routing policy:
70
Configuring BGP Routing Policy
host1(config)#ip prefix-list default permit 0.0.0.0/0
host1(config)#route-map default permit 10
host1(config-route-map)#match ip address prefix-list default
host1(config-route-map)#exit
host1(config)#ip prefix-list test-default permit 172.55.0.0/16
host1(config)#route-map test permit 10
host1(config-route-map)#match ip address prefix-list test-default
host1(config-route-map)#exit
host1(config)#route-map outbound deny 10
host1(config-route-map)#match ip address prefix-list test-default
host1(config-route-map)#exit
host1(config)#route-map outbound permit 20
host1(config-route-map)#exit
host1(config)#router bgp 200
host1(config-router)#neighbor 10.12.12.2 remote-as 300
host1(config-router)#network 172.55.55.0/24
host1(config-router)#aggregate-address 172.55.0.0/16 summary-only
host1(config-router)#neighbor 10.12.12.2 advertise-map default exist-map test
host1(config-router)#neighbor 10.12.12.2 default-originate
host1(config-router)#neighbor 10.12.12.2 route-map outbound out
host1(config-router)#exit
Access lists
Community lists
Prefix lists

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose

Table of Contents