Routing Table

Routing Table

Quiz Page

Test your understanding of key concepts with a short quiz. A quick way to check what you know before moving on.

Lab Page

Hands-on practice exercises to reinforce what you’ve learned. Work through real scenarios in a guided environment.

Notes

Junos uses various different routing table for different purposes:

  • inet.0 – IPv4
  • inet6.0 – IPv6
  • inet.1 – Multicast forwarding cache
  • inet.2 – Multicast RPF
  • inet.3 – IPv4 MPLS

Routes in the routing table that are marked as active are the ones that are installed into the forwarding table.

If there are two or more equal-cost routes, Junos will select one to install in the forwarding table. There is no ECMP by default, but this can be changed with a policy.

The forwarding table contains both layer-3 information and layer-2 information (MAC addresses).

Static routes can be configured with next-hop resolution. This means that the next-hop does not need to be directly connected to the device.

When this is used, the routing table is consulted to find the real next-hop that’s needed to reach this next-hop.

If we want to create a black-hole route, we can create a static route with the ‘discard’ or ‘reject’ next-hop. This is similar to using the ‘null0’ destination on a Cisco router.

uRPF (Unicast Reverse Path Forwarding) checks if a packet is valid before it will accept it. It does this by comparing the source IP to the routing table.

In loose mode, the source IP must have a valid route in the routing table. If it doesn’t, it is dropped.

In strict mode, the route must exist, but in addition the packet must have been received on the correct next-hop interface (according to the routing table). If not, it’s dropped.

Loose mode is used when asymmetric routing is a concern, such as at the edge of the network. Strict mode is used in the core, where there are deterministic symmetric routes.

Command Summary

CommandModeDescription
show routeOperationalShow the routing table
show route terseOperationalShow a summary of the routing table
show route forwarding-tableOperationalShow the forwarding table
set routing-options static route DEST next-hop < ip | interface>ConfigurationCreate a static route
show route hiddenOperationalShow hidden routes
deactivate routing-options static routeConfigurationDeactivate a static route
activate routing-options static routeConfigurationActivate a static route
set routing-options static … resolveConfigurationConfigure next-hop resolution

Additional References

Understanding Junos OS Routing Tables

Understanding Unicast RPF (Routers)

 

 

Leave a Reply