cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
961
Views
0
Helpful
1
Replies

Syslog Server

jonk34567
Level 6
Level 6

What is the diffrence between " logging 10.1.1.3 "   and    "logging host 10.1.1.3 "

1 Accepted Solution

Accepted Solutions

Both commands configure the IP of the syslog-server. For the two examples there is no difference and using the first form shows later as the second in the config:

rtr(config)#do sh run | i logging
logging buffered 16000
logging source-interface Loopback0
rtr(config)#logging  10.56.30.112
rtr(config)#
rtr(config)#do sh run | i logging
logging buffered 16000
logging source-interface Loopback0
logging host 10.56.30.112

It makes a difference when your syslog-server is reachable through ipv6, then you have to use the syntax "logging host" as only there the keyword "ipv6" is available.

 

--
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.

View solution in original post

1 Reply 1

Both commands configure the IP of the syslog-server. For the two examples there is no difference and using the first form shows later as the second in the config:

rtr(config)#do sh run | i logging
logging buffered 16000
logging source-interface Loopback0
rtr(config)#logging  10.56.30.112
rtr(config)#
rtr(config)#do sh run | i logging
logging buffered 16000
logging source-interface Loopback0
logging host 10.56.30.112

It makes a difference when your syslog-server is reachable through ipv6, then you have to use the syntax "logging host" as only there the keyword "ipv6" is available.

 

--
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.