02-13-2017 03:29 PM
I am trying to get a 4431 to write to a syslogger on port udp/514 via the management interface. If at all possible.
FTP for saving configs works fine.
archive
path ftp://user:password@10.212.160.37/$h/$h
write-memory
ip ftp source-interface GigabitEthernet0
ip tftp source-interface GigabitEthernet0
When I try to set the logging source-interface to the management port I get the following:
(config)#logging source-interface gi0
Interface GigabitEthernet0's vrf Mgmt-intf does not match with cfg vrf
Logging configuration:
logging userinfo
logging origin-id hostname
logging facility local5
logging source-interface Port-channel1
logging host 10.212.3.23
Management interface:
interface GigabitEthernet0
description Management
vrf forwarding Mgmt-intf
ip address 10.212.4.12 255.255.254.0
negotiation auto
end
Is there a way to do this?
Solved! Go to Solution.
02-13-2017 06:53 PM
I believe you need to specify the vrf when trying to log from an interface that is not assigned to the default vrf. Try something like:
logging source-interface gi0 vrf Mgmt-intf
Reference:
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/esm/command/esm-cr-book/esm-cr-a1.html#wp3548132647
02-13-2017 06:53 PM
I believe you need to specify the vrf when trying to log from an interface that is not assigned to the default vrf. Try something like:
logging source-interface gi0 vrf Mgmt-intf
Reference:
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/esm/command/esm-cr-book/esm-cr-a1.html#wp3548132647
02-14-2017 07:56 AM
That worked, thank you.
I also had to change
logging host 10.212.3.23
to
logging host 10.212.3.23 vrf Mgmt-intf
09-08-2019 02:56 AM
Thank you Marvin.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide