Routing log messages

Routing functions are likely to generate a great amount of log messages. Therefore, routing log messages may be configured very precisely.

Configuration overview

Routing log messages are configured at two levels.

First, the administrator can choose which protocol should send logs, and filter them by severity (for instance RIP can send logs with severity LOG_ERR).

Then, for each protocol, the administrator can choose extra information that should be reported, in addition to general routing log messages (for instance RIP should report all protocol events and sent or received RIP packets).

Activating routing logs

The administrator can activate logs for the FIB and the routing protocols using the following commands in the rtg or log contexts:

router{conf:myconfig-rtg}log fib SESSION [SEVERITY]
router{conf:myconfig-rtg}log rip SESSION [SEVERITY]
router{conf:myconfig-rtg}log ripng SESSION [SEVERITY]
router{conf:myconfig-rtg}log bgp SESSION [SEVERITY]
router{conf:myconfig-rtg}log ospf SESSION [SEVERITY]
router{conf:myconfig-rtg}log ospf6 SESSION [SEVERITY]
fib
Log messages related to the FIB (Forwarding Information Table)
rip
Log messages related to the RIP protocol (Routing Internet Protocol)
ripng
Log messages related to the RIPng protocol (RIP for IPv6)
bgp
Log messages related to the BPG protocol (Border Gateway Protocol)
ospf
Log messages related to the OSPF protocol (Open Shortest Path First)
ospf6
Log messages related to the OSPFv3 protocol (OSPF for IPv6)

Requesting procotols to report extra information

For each protocol, additional logs can be requested.

These logs can however alter Turbo IPsec performance if too many messages are generated.

These messages are configured in the dynamic subcontext using the following commands:

router{conf:myconfig-rtg-dynamic}log-option rip|ripng events|memory|packets
router{conf:myconfig-rtg-dynamic}log-option ospf event|ism|lsa|memory|nsm|nssa|packet|zebra
router{conf:myconfig-rtg-dynamic}log-option ospf6 abr|asbr|flooding|interface|lsa|memory|message|neighbor|route|spf|zebra
router{conf:myconfig-rtg-dynamic}log-option bgp events|filters|fsm|keepalives|updates|memory

rip|ripng

events
Reports all RIP or RIPng events
memory
Reports RIP or RIPng memory usage
packet
Reports received or sent RIP or RIPng packets

ospf

event
Reports all OSPFv2 events
ism
Reports OSPFv2 Interface State Machine
lsa
Reports OSPFv2 Link State Advertisement
memory
Reports OSPFv2 memory usages
nsm
Reports OSPFv2 Neighbor State Machine
nssa
Reports OSPFv2 nssa information
packet
Reports OSPFv2 packets
zebra
Reports OSPFv2 Zebra information

ospf6

abr
Reports OSPFv3 ABR function
asbr
Reports OSPFv3 ASBR function
flooding
Reports OSPFv3 flooding function
interface
Reports OSPFv3 Interface
lsa
Reports OSPFv3 Link State Advertisements (LSAs)
memory
Reports OSPFv3 memory usages
message
Reports OSPFv3 message
neighbor
Reports OSPFv3 Neighbor
route
Reports OSPFv3 route table calculation
spf
Reports OSPFv3 SPF Calculation
zebra
Reports OSPFv3 Zebra information

bgp

events
Reports all BGP events
filters
Reports filtering decisions (loop avoidance, filtering policies, etc. )
fsm

Reports states of the BPG Finite State Machine

keepalives
Reports received or sent BGP keepalive packets
updates
Reports received or sent BGP update packets
memory
Reports BGP memory usages

Examples

router{conf:myconfig-rtg-dynamic}log-option rip events
router{conf:myconfig-rtg-dynamic}log-option bgp fsm
router{conf:myconfig-rtg-dynamic}log-option bgp updates