09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Local-AS#config t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

local-AS(config)#logging 130.140.55.216<br />

local-AS(config)#logging trap informational<br />

local-AS(config)#logging source-interface E<strong>the</strong>rnet 0/0<br />

local-AS(config)#^Z<br />

local-AS#<br />

The router configuration is easy; it is <strong>the</strong> logging server that requires<br />

a little work. To start you need <strong>to</strong> run syslog. On UNIX this is<br />

accomplished by starting <strong>the</strong> syslogd daemon with specific flags:<br />

OS Daemon Logfile Root Location<br />

BSDI /sbin/syslogd -n /usr/var/log<br />

SunOS /usr/etc/syslogd -n /var/log<br />

Linux /usr/sbin/syslogd -n /var/log<br />

Solaris /usr/sbin/syslogd -n /var/log<br />

The syslog daemon gets its configuration information from<br />

/etc/syslog.conf. This file will need <strong>to</strong> be edited <strong>to</strong> reflect how you<br />

want syslog <strong>to</strong> handle your router's log messages.<br />

Syslog decides how <strong>to</strong> handle a message by looking at <strong>the</strong> incoming<br />

message's facility and severity level pair. Each message has a facility<br />

level pair associated with it. The message's value pair is defined by<br />

<strong>the</strong> program or service issuing <strong>the</strong> message, using syslog's defined<br />

facility and severity levels. The IOS uses syslog's standard severity<br />

values <strong>to</strong> classify messages and uses syslog facility local7 by default.<br />

There are 10 different syslog facility definitions:<br />

auth Authorization system<br />

cron Cron/at facility<br />

daemon System daemons<br />

kern Kernel<br />

local0–7 Local use<br />

lpr Line printer system<br />

mail Mail system<br />

news Usenet news<br />

syslog Syslog itself<br />

user User process

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!