cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12593
Views
35
Helpful
3
Replies

Logging through the Management Interface

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?

1 Accepted Solution

Accepted Solutions

Marvin Rhoads
Hall of Fame
Hall of Fame

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

View solution in original post

3 Replies 3

Marvin Rhoads
Hall of Fame
Hall of Fame

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

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

Thank you Marvin.