Troubleshooting for Yamaha router ① ③ Enable debug level syslog ② Enable notice level syslog...

Post on 11-Apr-2019

233 views 0 download

transcript

Troubleshooting for Yamaha router

© Yamaha Corporation 2

How to troubleshoot

Before the trouble In the trouble

Set the syslog level Set the syslog server

Set the log outputting for each function.

Set the process to output the syslog to external-memory.

Get the syslog Get the configuration

Get all information of router

This document describes how to troubleshoot for Yamaha router. - Some points which should be considered before the trouble - What you should do when the trouble happened

© Yamaha Corporation 3

~ Before the trouble ~

© Yamaha Corporation 4

Syslog Level

Level Description Command Default

info Brief logs of router operating status are output. e.g.) When the IPsec is established 20XX/XX/XX 00:00:00: IP Tunnel[1] Up

syslog info on

notice Result of packet filtering function is output. e.g.) When the Packet is rejected by filtering 20XX/XX/XX 00:00:00: PP[1] Rejected at IN(1) ~

syslog notice off

debug More detailed information is output than info level. syslog debug off

It is not possible to know the cause of the trouble by only info level syslog. The debug level syslog should be configured to prepare the trouble. ## Since the load of processing will be high, you should not set notice level syslog usually.

© Yamaha Corporation

How to set the syslog level by console

5

syslog info <SWITCH> ・・・・・・① syslog notice <SWITCH> ・・・・・・② syslog debug <SWITCH> ・・・・・・③ syslog host <HOST> ・・・・・・④

Command

// ③

// ②

// ① ③ Enable debug level syslog

② Enable notice level syslog

① Enable info level syslog

// ④

④ Set the syslog server. Yamaha router sends the syslog to specified syslog server. The syslog is recorded also to an internal memory of router.

© Yamaha Corporation 6

How to set the syslog level by GUI (1)

Select [Advanced settings].

© Yamaha Corporation 7

Select “ syslog of product ”.

How to set the syslog level by GUI (2)

© Yamaha Corporation 8

How to set the syslog level by GUI (3)

Select the syslog level. Input the IP address of syslog server, if you want to send the syslog to the server. Click [Submit].

© Yamaha Corporation 9

Syslog settings for IPsec (1) Each function has some commands to output more detailed information. These information is output to debug level syslog.

ipsec ike keepalive log <GATEWAY_ID> <SWITCH> ・・・・・・① ipsec ike log <GATEWAY_ID> <TYPE> <TYPE> <TYPE> ・・・・・・②

Commands regarding to IPsec function:

// ②

// ①

② Enable the IKE negotiation log to output to debug level syslog. Each parameter is described on next page.

① Enable the IKE keepalive log to output to debug level syslog. When IPsec is disconnected, it is possible to know when the keepalive packets are lost.

© Yamaha Corporation 10

Syslog settings for IPsec (2) Parameter of “ipsec ike log” command:

TYPE Description

payload-info Payload information of IKE message is output to syslog. When IPsec is not established, it is possible to know which parameter should be changed, or which option is assigned from opposite.

message-info Packet dump of IKE message is output to syslog. When IPsec is not established, it is possible to know whether or not received the management packet correctly, or encrypted packet is encrypted correctly or not.

key-info Processing of key calculation of IKE message is output to syslog. This type is for developer side. No need to use this type normally.

When above types is configured, many logs are output to syslog. It is not recommended to configure these types normally, and please configure them when you have trouble in IPsec. ## “ipsec ike log” command can be configure from only console.

© Yamaha Corporation 11

Output syslog to external-memory Yamaha router supports the function to output the syslog to external-memory (USB or SD).

external-memory syslog filename <FILENAME> <option…> ・・・・・・①

Command

// ①

1. Attach the USB memory to USB port of Yamaha router. 2. Set above command. All syslog is output to USB memory. File name is yamaha.txt

Procedure

© Yamaha Corporation 12

~ In the trouble ~

© Yamaha Corporation 13

Get syslog by console

show log

Command

Output the syslog to console.

© Yamaha Corporation 14

Get configuration by console

show config <CONFIG_NUM>

Command

Output the configuration to console.

© Yamaha Corporation 15

Get all information by console

show techinfo

Command

Output all information of router to console.

© Yamaha Corporation 16

Output the info to external-memory

show log > [USB memory] show config > [USB memory] show techinfo > [USB memory]

Command

1. Attach the USB memory to USB port of Yamaha router. 2. Execute above commands. Output of each command is recorded to USB memory.

Procedure

© Yamaha Corporation 17

Get information from GUI (1)

Select [Advanced settings].

© Yamaha Corporation 18

To get configuration.

To get syslog.

To get system information.

Get information from GUI (2)

© Yamaha Corporation 19

Get information from GUI (3)

Get configuration:

© Yamaha Corporation 20

Get information from GUI (4)

Get Syslog:

© Yamaha Corporation 21

Get information from GUI (5)

Get System information: