- play_arrow Overview
- play_arrow Introduction to IS-IS
-
- play_arrow Configuring IS-IS
- play_arrow Configuring a Basic IS-IS Network
- Understanding IS-IS Configuration
- Example: Configuring IS-IS
- Understanding IS-IS Areas to Divide an Autonomous System into Smaller Groups
- Example: Configuring a Multi-Level IS-IS Topology to Control Interarea Flooding
- Understanding IS-IS Designated Routers
- Configuring Designated Router Election Priority for IS-IS
- Configuring an ISO System Identifier for the Router
- Understanding Default Routes
- How to Configure Multiple Independent IGP Instances of IS-IS
- play_arrow Configuring IS-IS Authentication and Checksums
- Configuring IS-IS Authentication
- Configuring IS-IS Authentication Without Network-Wide Deployment
- Understanding Hitless Authentication Key Rollover for IS-IS
- Example: Configuring Hitless Authentication Key Rollover for IS-IS
- Understanding Checksums on IS-IS Interfaces for Error Checking
- Example: Enabling Packet Checksums on IS-IS Interfaces for Error Checking
- play_arrow Configuring IS-IS Routing Policy and Route Redistribution
- Understanding Routing Policies
- Understanding Backup Selection Policy for IS-IS Protocol
- Example: Configuring Backup Selection Policy for IS-IS Protocol
- Configuring Backup Selection Policy for the IS-IS Protocol
- Example: Redistributing OSPF Routes into IS-IS
- Example: Configuring IS-IS Route Leaking from a Level 2 Area to a Level 1 Area
- Handling of the IS-IS Binding SID S Flag and RFC 7794 Prefix Attribute Flags
- Understanding BGP Communities, Extended Communities, and Large Communities as Routing Policy Match Conditions
- Example: Configuring a Routing Policy to Redistribute BGP Routes with a Specific Community Tag into IS-IS
- IS-IS Extensions to Support Route Tagging
- Example: Configuring a Routing Policy to Prioritize IS-IS Routes
- Configuring Overloading of Stub Networks
- play_arrow Configuring IS-IS Bidirectional Forwarding Detection
- play_arrow Configuring IS-IS Flood Groups
- play_arrow Configuring IS-IS Multitopology Routing and IPv6 Support
- IS-IS Multicast Topologies Overview
- Example: Configuring IS-IS Multicast Topology
- Understanding Dual Stacking of IPv4 and IPv6 Unicast Addresses
- Example: Configuring IS-IS Dual Stacking of IPv4 and IPv6 Unicast Addresses
- Understanding IS-IS IPv4 and IPv6 Unicast Topologies
- Example: Configuring IS-IS IPv4 and IPv6 Unicast Topologies
- play_arrow Configuring IS-IS Link and Node Link Protection
- Understanding Loop-Free Alternate Routes for IS-IS
- Example: Configuring Node-Link Protection for IS-IS Routes in a Layer 3 VPN
- Understanding Remote LFA over LDP Tunnels in IS-IS Networks
- Configuring Remote LFA Backup over LDP Tunnels in an IS-IS Network
- Example: Configuring Remote LFA over LDP Tunnels in IS-IS Networks
- Understanding Weighted ECMP Traffic Distribution on One-Hop IS-IS Neighbors
- Example: Weighted ECMP Traffic Distribution on One-Hop IS-IS Neighbors
- play_arrow Configuring IS-IS Traffic Engineering
- IS-IS Extensions to Support Traffic Engineering
- Using Labeled-Switched Paths to Augment SPF to Compute IGP Shortcuts
- Example: Enabling IS-IS Traffic Engineering Support
- Understanding Forwarding Adjacencies
- Example: Advertising Label-Switched Paths into IS-IS
- Understanding Wide IS-IS Metrics for Traffic Engineering
- Example: Enabling Wide IS-IS Metrics for Traffic Engineering
- Understanding LDP-IGP Synchronization
- Example: Configuring Synchronization Between IS-IS and LDP
- Layer 2 Mapping for IS-IS
- Example: Configuring Layer 2 Mapping for IS-IS
- Understanding Source Packet Routing in Networking (SPRING)
- Understanding Adjacency Segments, Anycast Segments, and Configurable SRGB in SPRING
- Example: Configuring SRGB in Segment Routing for IS-IS
- Example: Configuring Anycast and Prefix Segments in SPRING for IS-IS to Increase Network Speed
- Configuring Segment Routing Global Blocks Label Ranges in SPRING for IS-IS Protocol
- Configuring Anycast and Prefix segments in SPRING for IS-IS Protocol
- Flexible Algorithms in IS-IS for Segment Routing Traffic Engineering
- Configuring Flexible Algorithm for Segment Routing Traffic Engineering
- Understanding Topology-Independent Loop-Free Alternate with Segment Routing for IS-IS
- Configuring Topology-Independent Loop-Free Alternate with Segment Routing for IS-IS
- Example: Configuring Topology Independent Loop-Free Alternate with Segment Routing for IS-IS
- Static Adjacency Segment Identifier for ISIS
- Understanding Segment Routing over RSVP Forwarding Adjacency in IS-IS
- Understanding IS-IS Microloop Avoidance
- How to Enable SRv6 Network Programming in IS-IS Networks
- Example: Configuring SRv6 Network Programming in IS-IS Networks
- How to Enable Link Delay Measurement and Advertising in IS-IS
- How to Enable Strict SPF SIDs and IGP Shortcut
- play_arrow Configuring IS-IS Scaling and Throttling
- Understanding Link-State PDU Throttling for IS-IS Interfaces
- Example: Configuring the Transmission Frequency for Link-State PDUs on IS-IS Interfaces
- Understanding the Transmission Frequency for CSNPs on IS-IS Interfaces
- Example: Configuring the Transmission Frequency for CSNP Packets on IS-IS Interfaces
- Understanding IS-IS Mesh Groups
- Example: Configuring Mesh Groups of IS-IS Interfaces
- play_arrow Configuring IS-IS CLNS
- play_arrow Configuring IS-IS on Logical Systems
-
- play_arrow Configuration Statements and Operational Commands
ON THIS PAGE
Example: Tracing Global Routing Protocol Operations
This example shows how to list and view files that are created when you enable global routing trace operations.
Overview
To configure global routing protocol tracing, include
the traceoptions
statement at the [edit routing-options]
hierarchy level:
traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <disable>; }
The flags in a traceoptions flag
statement are identifiers.
When you use the set
command to configure a flag, any flags
that might already be set are not modified. In the following example,
setting the timer tracing flag has no effect on the already
configured task flag. Use the delete
command to
delete a particular flag.
[edit routing-options traceoptions]
user@host# show
flag task;
user@host# set traceoptions flag timer
user@host# show
flag task;
flag timer;
user@host# delete traceoptions flag task
user@host# show
flag timer;
This example shows how to configure and view a trace file that tracks changes in the routing table. The steps can be adapted to apply to trace operations for any Junos OS hierarchy level that supports trace operations.
To view a list of hierarchy levels that support tracing
operations, enter the help apropos traceoptions
command
in configuration mode.
Configuration
CLI Quick Configuration
To quickly configure this example, copy the
following commands, paste them into a text file, remove any line breaks,
change any details necessary to match your network configuration,
and then copy and paste the commands into the CLI at the [edit]
hierarchy level.
set routing-options traceoptions file routing-table-changes set routing-options traceoptions file size 10m set routing-options traceoptions file files 10 set routing-options traceoptions flag route set routing-options static route 1.1.1.2/32 next-hop 10.0.45.6
Configuring Trace Operations
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide.
To configure the trace operations:
Configure trace operations.
content_copy zoom_out_map[edit routing-options traceoptions] user@host# set file routing-table-changes user@host# set file size 10m user@host# set file files 10 user@host# set flag route
Configure a static route to cause a change in the routing table.
content_copy zoom_out_map[edit routing-options static] user@host# set route 1.1.1.2/32 next-hop 10.0.45.6
If you are done configuring the device, commit the configuration.
content_copy zoom_out_map[edit] user@host# commit
Viewing the Trace File
Step-by-Step Procedure
To view the trace file:
In operational mode, list the log files on the system.
content_copy zoom_out_mapuser@host> file list /var/log /var/log: ... routing-table-changes ...
View the contents of the routing-table-changes file.
content_copy zoom_out_mapuser@host> file show /var/log/routing-table-changes Dec 15 11:09:29 trace_on: Tracing to "/var/log/routing-table-changes" started Dec 15 11:09:29.496507 Dec 15 11:09:29.496507 Tracing flags enabled: route Dec 15 11:09:29.496507 Dec 15 11:09:29.533203 inet_routerid_notify: Router ID: 192.168.4.1 Dec 15 11:09:29.533334 inet_routerid_notify: No Router ID assigned Dec 15 11:09:29.533381 inet_routerid_notify: No Router ID assigned Dec 15 11:09:29.533420 inet_routerid_notify: No Router ID assigned Dec 15 11:09:29.534915 inet_routerid_notify: Router ID: 192.168.4.1 Dec 15 11:09:29.542934 inet_routerid_notify: No Router ID assigned Dec 15 11:09:29.549253 inet_routerid_notify: No Router ID assigned Dec 15 11:09:29.556878 inet_routerid_notify: No Router ID assigned Dec 15 11:09:29.582990 rt_static_reinit: examined 3 static nexthops, 0 unreferenced Dec 15 11:09:29.589920 Dec 15 11:09:29.589920 task_reconfigure reinitializing done ...
Filter the output of the log file.
content_copy zoom_out_mapuser@host> file show /var/log/routing-table-changes | match 1.1.1.2 Dec 15 11:15:30.780314 ADD 1.1.1.2/32 nhid 0 gw 10.0.45.6 Static pref 5/0 metric at-0/2/0.0 <ctive Int Ext> Dec 15 11:15:30.782276 KRT Request: send len 216 v104 seq 0 ADD route/user af 2 table 0 infot 0 addr 1.1.1.2 nhop-type unicast nhindex 663
View the tracing operations in real time by running the
monitor start
command with an optional match condition.content_copy zoom_out_mapuser@host> monitor start routing-table-changes | match 1.1.1.2 Aug 10 19:21:40.773467 BGP RECV 0.0.0.0/0 Aug 10 19:21:40.773685 bgp_rcv_nlri: 0.0.0.0/0 Aug 10 19:21:40.773778 bgp_rcv_nlri: 0.0.0.0/0 belongs to meshgroup Aug 10 19:21:40.773832 bgp_rcv_nlri: 0.0.0.0/0 qualified bnp->ribact 0x0 l2afcb 0x0
Deactivate the static route.
content_copy zoom_out_mapuser@host# deactivate routing-options static route 1.1.1.2/32 user@host# commit
content_copy zoom_out_map*** routing-table-changes *** Dec 15 11:42:59.355557 CHANGE 1.1.1.2/32 nhid 663 gw 10.0.45.6 Static pref 5/0 metric at-0/2/0.0 <Delete Int Ext> Dec 15 11:42:59.426887 KRT Request: send len 216 v104 seq 0 DELETE route/user af 2 table 0 infot 0 addr 1.1.1.2 nhop-type discard filtidx 0 Dec 15 11:42:59.427366 RELEASE 1.1.1.2/32 nhid 663 gw 10.0.45.6 Static pref 5/0 metric at-0/2/0.0 <Release Delete Int Ext>
Halt the
monitor
command by pressing Enter and typing monitor stop.content_copy zoom_out_map[Enter] user@host> monitor stop
When you are finished troubleshooting, consider deactivating trace logging to avoid any unnecessary impact to system resources.
When configuration is deactivated, it appears in the configuration with the inactive tag.
content_copy zoom_out_map[edit routing-options] user@host# deactivate traceoptions user@host# commit
content_copy zoom_out_map[edit routing-options] user@host# show inactive: traceoptions { file routing-table-changes size 10m files 10; flag route; } static { inactive: route 1.1.1.2/32 next-hop 10.0.45.6; }
To reactivate trace operations, use the activate configuration-mode statement.
content_copy zoom_out_map[edit routing-options] user@host# activate traceoptions user@host# commit
Results
From configuration mode, confirm your configuration
by entering the show routing-options
command. If the output
does not display the intended configuration, repeat the instructions
in this example to correct the configuration.
user@host# show routing-options traceoptions { file routing-table-changes size 10m files 10; flag route; } static { route 1.1.1.2/32 next-hop 10.0.45.6; }