[Contents] [Prev] [Next] [Index] [Report an Error]

Examples: Tracing BGP Protocol Traffic

Trace only unusual or abnormal operations to routing-log, and trace detailed information about all BGP messages to bgp-log:

[edit]
routing-options {
traceoptions {
file routing-log;
}
autonomous-system 23;
}
protocols {
bgp {
group 23 {
type external;
peer-as 56;
traceoptions {
file bgp-log size 10k files 5;
flag packets detail;
}
0.0.0.0/0;
}
}
}

Trace only update messages received from the configured peer:

[edit]
routing-options {
autonomous-system 23;
router-id 10.0.0.1;
}
protocols {
bgp {
group 23 {
type external;
peer-as 56;
neighbor boojum.snark.net {
traceoptions {
file bgp-log size 10k files 2;
flag update detail;
}
}
}
}
}

Trace only messages that pass the policy based on prefix match:

[edit]
protocols {
bgp {
traceoptions {
file bgp-tr size 5m files 10;
flag route filter policy couple-route match-on prefix;
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]