Logging to Remote Server via Management VRF
#configure terminal |
Enter configure mode. |
(config)#logging level bgp 7 |
This enable debug messages for BGP module. |
(config)#logging remote server 10.16.2.1 vrf management |
Redirects the log messages to the server configured. |
(config)#debug bgp all |
This enables the debugging on BGP configurations. |
(config)#router bgp 1 |
Enabling BGP process 1. |
(config-router)#exit |
Exit router mode. |
(config)#commit |
Commit the candidate configuration to the running configuration |
(config)#exit |
Exit configure mode. |
Validation
#show logging server
Remote Servers:
10.16.2.1
severity: (debugging)
facility: local7
VRF: management
#show logging level
Facility Default Severity Current Session Severity
nsm 3 3
ripd 3 3
ospfd 3 3
ospf6d 3 3
isisd 3 3
hostpd 3 3
ldpd 2 2
rsvpd 2 2
mribd 2 2
pimd 2 2
authd 2 2
mstpd 2 2
imi 2 2
onmd 2 2
oamd 2 2
vlogd 2 2
vrrpd 2 2
ribd 2 2
bgpd 3 7
l2mribd 2 2
lagd 2 2
sflow 2 2
pservd 2 2
Logging to Remote Server via User-Defined VRF
#configure terminal |
Enter configure mode. |
(config)#ip vrf VRF1 |
Create a user-defined VRF called VRF1. |
(config)#commit |
Commit the candidate configuration to the running configuration. |
(config)#logging level bgp 7 |
Redirects the log messages to the server configured over the management VRF. |
(config)#logging remote server 1001:db8:0:1::1 7 vrf VRF1 |
Redirects the log messages to the server configured over the User defined VRF snmp-vrf. |
(config)#debug bgp all |
This enables the debugging on BGP con-figurations. |
(config)#router bgp 1 |
Enabling BGP process 1. |
(config-router)#exit |
Exit router mode. |
(config)#commit |
Commit the candidate configuration to the running configuration |
(config)#exit |
Exit configure mode. |
Validation
#show logging server
Remote Servers:
1001:db8:0:1::1
severity: Operator(debug-detailed)
facility: local7
authpriv: Enabled
VRF : VRF1