Protocol Independent Routing focuses on general routing concepts and techniques that do not depend on specific routing protocols like OSPF or BGP. These tools and methods are universally applicable and form the foundation of routing.
What is Static Routing?
Key Components:
Advantages:
Disadvantages:
0.0.0.0/8: Reserved for default routing.127.0.0.0/8: Reserved for loopback addresses.169.254.0.0/16: Reserved for link-local addresses.10.0.0.0/8, 192.168.0.0/16, and 172.16.0.0/12.In Junos, a static route can specify a next-hop IP address that is not directly connected to the local router. In this case, the system performs a recursive lookup to find how to reach that next-hop IP address using existing routes in the routing table.
This behavior is frequently tested in JN0-351 exams because it differs from platforms that require direct adjacency.
Junos supports recursive next-hop resolution for static routes.
set routing-options static route 192.0.2.0/24 next-hop 10.1.1.1
If 10.1.1.1 is not directly reachable, Junos looks up how to reach 10.1.1.1 in the routing table, and chains the resolution accordingly.
A question may describe a static route with an unreachable next-hop. You should recognize that Junos will recursively resolve it if another route exists for the next-hop IP.
"Martian addresses" refer to IP addresses that are invalid or reserved in most real-world scenarios (e.g., 0.0.0.0/8, 127.0.0.0/8, or private subnets in a public context).
Juniper provides both built-in filtering and manual configuration to block such routes.
set routing-options martians 10.0.0.0/8 discard
set routing-options martians 169.254.0.0/16 discard
You can also enable logging:
set routing-options martians 127.0.0.0/8 discard log
Martian filters not only protect local systems but can also be applied to prevent route learning via routing protocols.
You may encounter questions like:
“What will happen if a route to 127.0.0.1/8 is received from a peer?”
Correct answer: It will be dropped due to martian filtering.
Routing instances in Junos allow for logical separation of routing tables and forwarding behavior.
| Type | Description |
|---|---|
virtual-router |
Separate RIB/FIB; commonly used for multi-tenant routing |
vrf |
Similar to virtual-router, used in MPLS VPN environments |
forwarding |
No independent RIB; used for Filter-Based Forwarding |
non-forwarding |
Used for special cases like RIB groups, not for actual traffic |
set routing-instances VR-A instance-type virtual-router
set routing-instances VR-A interface ge-0/0/1.0
You may be asked:
“Which instance type supports a separate forwarding table?”
Correct answer: virtual-router or vrf.
In Junos, route filters are not configured directly under protocols, but rather defined inside policy-options and applied to protocols using import or export statements.
policy-options {
policy-statement BLOCK_PRIVATE {
term deny-private {
from {
route-filter 10.0.0.0/8 exact;
}
then reject;
}
then accept;
}
}
set protocols bgp group CUST-A export BLOCK_PRIVATE
The exam may test your ability to read a policy structure and determine what action is taken on a specific route. Focus on the structure: from, then, and term ordering.
Filter-Based Forwarding (FBF) is not a single command, but a combination of several Junos features:
A firewall filter defines what traffic is selected.
A routing instance or next-hop defines where to forward the matching traffic.
In Junos, Filter-Based Forwarding requires applying a firewall filter to an interface and associating it with a routing instance or next-hop.
set routing-instances CORP-A instance-type forwarding
set routing-instances CORP-A routing-options static route 0.0.0.0/0 next-hop 192.0.2.1
firewall {
family inet {
filter FBF-IN {
term SELECT {
from {
source-address {
192.168.10.0/24;
}
}
then {
routing-instance CORP-A;
}
}
term DEFAULT {
then accept;
}
}
}
}
set interfaces ge-0/0/0 unit 0 family inet filter input FBF-IN
Questions may include config snippets and ask:
“Which mechanism is used to override normal destination-based routing?”
Correct answer: Filter-Based Forwarding using firewall filters and routing instances.
| Topic | Exam Insight |
|---|---|
| Recursive Lookup | Junos resolves static route next-hops recursively |
| Martian Filtering | Can discard or log reserved/unroutable addresses in both control and data |
| Routing Instance Types | virtual-router and vrf have RIBs; forwarding is for FBF |
| Route Filters | Implemented via policy-options, not directly under protocols |
| Filter-Based Forwarding | Combines firewall filters with routing instances or next-hop redirection |
What is route preference in JunOS routing decisions?
Route preference determines which route source is preferred when multiple routes exist.
JunOS assigns a preference value to different routing protocols. The lowest preference value wins.
For example:
Direct route: 0
Static route: 5
OSPF: 10
BGP: 170
If multiple routes exist to the same destination, the router selects the one with the lowest preference before considering protocol-specific metrics. This behavior differs from some vendors that use administrative distance terminology.
Demand Score: 85
Exam Relevance Score: 92
Why might a static route not be used when an OSPF route exists?
Because the static route has a higher preference value.
Even though static routes are usually preferred, administrators may configure a custom preference value. If the static route preference is higher than the OSPF route preference, OSPF becomes the selected path.
Troubleshooting route selection involves checking:
Route preference
Routing table entries
Route policies
Demand Score: 80
Exam Relevance Score: 90
What is Equal-Cost Multipath (ECMP)?
ECMP allows a router to use multiple equal-cost routes simultaneously.
If multiple routes to the same destination have the same preference and metric, JunOS can install multiple next hops in the routing table. Traffic is then load-balanced across those paths.
This improves bandwidth utilization and redundancy. ECMP is commonly used in data center or enterprise networks where multiple parallel links exist between routers.
Demand Score: 79
Exam Relevance Score: 88
What is the difference between the routing table and forwarding table?
The routing table contains learned routes, while the forwarding table contains optimized entries used for packet forwarding.
The Routing Information Base (RIB) stores all routes learned from protocols, static configuration, and direct connections.
The Forwarding Information Base (FIB) contains the best routes selected from the RIB. These entries are programmed into the forwarding hardware so packets can be forwarded quickly.
Understanding this distinction helps troubleshoot why a route appears in the routing table but not in the forwarding table.
Demand Score: 78
Exam Relevance Score: 87