Default Routing Policy Match Actions in Junos
What happens if the incoming route does not match any of the terms in a match condition? As you might imagine, a default action is taken. Thus, it is necessary to be familiar with the default actions.
Examine this policy:
[edit policy-options]
policy-statement my-sample-policy {
term my-first-term {
from protocol bgp;
then accept;
}
}
In this example, if the route was learned via BGP, it’s accepted. However, if you assume the route is rejected if it’s not learned via BGP . . . well, you’d be wrong.
If a route doesn’t match any of the configured terms, a default action is taken. The default action depends on where the routing policy is applied and what protocol is involved in the routing information.
Each routing protocol has its own default policy, so the default action depends on which protocol (or protocols) the policy is applied to. The default action also depends on whether the policy is applied to routes being imported (brought into the routing table) or exported (advertised from the routing table). Table 14-3 summarizes the default actions tied to some routing protocols.
| Protocol |
Default Action |
| RIP |
Import: Accept all routes received on RIP-enabled interfaces.
Export: Do not export any RIP routes. |
| OSPF |
Import: Policies can’t be used for imported routes.
Export: Export all routes learned via OSPF and all direct routes
associated with the OSPF-enabled interfaces. |
| BGP |
Import: Accept all routes learned from BGP neighbors. Export:
Export all active routes learned via BGP to all BGP neighbors. |
Notice that the default action can only be accept (allow/advertise) or reject (disallow/suppress). The default action must be a terminating action to ensure that all routes reach some definitive conclusion. That is, all routes are eventually either accepted or rejected (this is a good thing).

Cloud Computing Glossary
cloud computing
A networking solution in which everything — from computing power to computing infrastructure, applications, business processes to personal collaboration — is delivered as a service wherever and whenever you need.

Cloud Computing Glossary
cloud service
The delivery of software, infrastructure, or storage that has been packaged so it can be automated and delivered to customers in a consistent and repeatable manner.

Cloud Computing Glossary
deprovision
The release of cloud services that are no longer needed.

Cloud Computing Glossary
federating
Linking distributed resources together over the cloud.

Cloud Computing Glossary
hypervisor
An operating system that acts as a traffic cop, managing the various virtualization tasks in the cloud to ensure that they make things happen in an orderly manner.

Cloud Computing Glossary
multi-tenancy
The sharing of underlying resources by multiple companies over a cloud.

Cloud Computing Glossary
network attached store
Storage that has its own network address through which it is accessed by the network's workstation users. Acronym: NAS

Cloud Computing Glossary
service level agreement
A contract that stipulates the type of service you need from providers and what type of penalties would result from an unexpected business interruption. Acronym: SLA

Cloud Computing Glossary
solution stack
An integrated set of software that provides everything a developer needs to build an application.

Cloud Computing Glossary
storage area network
A storage systems that is flexible and scalable because it's available to multiple hosts at the same time. Acronym: SAN

Cloud Computing Glossary
vertical industry groups
Workgroups comprised of members from a particular industry such as technology and retail.

Cloud Computing Glossary
virtual memory
The portion of your hard drive that Windows uses to expand the available RAM

Cloud Computing Glossary
virtualization
Using computer resources to imitate other computer resources or whole computers to maximize performance and flexibility.