星期五, 8月 28, 2015

RouterOS的校時設定

※在寫這篇文章前,原本使用中的RouterOS的NTP Client校時是正常的,但是不知從何時開始校時一直無法成功,也找不到原因,直到看到這篇討論(http://forum.mikrotik.com/viewtopic.php?t=61226)作者說只要安裝的packages就無法校時成功,才讓我想到試著將packages的ntp模組停用,接著出現了SNTP Client,校時正確,再將SNTP Client 停用,然後再將ntp 模組啟用(重開機)後,竟然NTP Client就可以校時了,所以下次如果遇到NTP Client無法校時,記得將模組停用,重開機,先試SNTP Client是否校時正常,或者再將SNTP Client停用後,再啟用ntp 模組,重開機,試試看NTP Client是否正常。以下說明如果使用SNTP Client或NTP Client校時。

一、啟用SNTP Client
RouterOS若沒有安裝packages時則校時是由SNTP Client設定,若我們已安裝了packages則可先停用ntp packages,再重新啟動RouterOS









二、使用NTP Client
若啟用packages中的ntp 模組後,重新啟動RouterOS


在System->NTP Client中,設定Primary NTP Server,按Enable再按Apply後,觀察視窗下方是否有出現synchronized字樣,若有出現,代表校時成功,若只有出現Started字樣,代表校時不成功( 相關校時狀態參數可參考https://www.mikrotik.com/testdocs/ros/2.9/system/ntp.php)。

星期四, 2月 26, 2015

ACFS14.04版安裝後一些問題的修正

一、登入後su切換會出現

no talloc stackframe at ../source3/param/loadparm.c:4864, leaking memory


根據

  1. http://ubuntuforums.org/showthread.php?t=2214042
  2. https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1257186
  3. https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1274680
  4. http://learninginfree.blogspot.tw/2014/05/ubuntu-sudo-talloc-stackframe-at.html


有二種方式可以解決:


  1. 執行sudo apt-get remove libpam-smbpass   移除libpam-smbpass這個套件,這個套件是用於同步系統使用帳密到samba資料庫
  2. 執行sudo pam-auth-update將SMB password synchronization註解掉不要執行

二、mysql的問題
無法將mysql的服務停止,或是使用mysqladmin 無法連線mysql,會出現
rror: 'Can't connect to local MySQL server through socket '/va                                                 r/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mys                                                 qld/mysqld.sock' exists!

根據
http://askubuntu.com/questions/455029/mysql-server-start-failed
修正如下:
sudo service mysql stop
sudo rm /var/lib/mysql/ib_logfile0
sudo rm /var/lib/mysql/ib_logfile1

編輯
 /etc/mysql/my.cnf
將record_buffer=64M 註解掉 (ACFS 14.04找不到)

最後
sudo service mysql restart

問題就解決了

三、關機時會出現如下的畫面,然後系統就當掉無法重開機或關機

rmmod; ERROR: Module mei_me is not currently loaded
rmmod:ERROR: Module mei is not currently loaded
根據:

  1. http://askubuntu.com/questions/419853/mei-me-unexpected-reset
  2. https://software.intel.com/en-us/forums/topic/509689
  3. http://linuxxcommand.blogspot.tw/2014/07/fix-annoying-messages-meime.html#.VO6_gvmUd8E


這好像是網卡的趨動問題
修改 /etc/modprobe.d/blacklist.conf
加上
# Intel VPRO remote access technology driver
blacklist mei_me

問題即可解決





星期一, 1月 26, 2015

3com SMC的switch 校時設定

3com 4210 交換器的ntp server 校時設定

<4210>system view
[4210]ntp-service unicast-server "NTP SERVER的IP"
[4210]quit
<4210>clock timezone t8 add 08:00:00 (註:t8可自訂名稱,例如taiwan,taipei等)
<4210>display clock
12:12:03 t8 Mon 01/26/2015
Time Zone : t8 add 08:00:00
<4210>display ntp-service status
 Clock status: synchronized
 Clock stratum: 12
 Reference clock ID: NTP SERVER的IP
 Nominal frequency: 100.0000 Hz
 Actual frequency: 99.9999 Hz
 Clock precision: 2^18
 Clock offset: 0.0000 ms
 Root delay: 16.06 ms
 Root dispersion: 563.47 ms
 Peer dispersion: 11.43 ms
 Reference time: 04:12:10.612 UTC Jan 26 2015(D8703D1A.9CB8E086)
<4210>

SMC 8126L2交換器校時設定
***************************************************************


Vty-0#configure
Vty-0(config)#sntp server 172.20.1.242
Vty-0(config)#clock timezone taiwan hours 8 minute 0 after-UTC (註:taiwan這個名稱可以自訂)
Vty-0(config)#exit
Vty-0#show sntp
Current Time:  Jul  7 21:51:35 2015
Poll Interval: 16
Current  Mode: unicast
SNTP Status:   Enabled
SNTP Server:    172.20.1.242 0.0.0.0 0.0.0.0
                                                 Current Server: 172.20.1.242
Vty-0#

















星期六, 1月 24, 2015

Zyxel NWA3160N command manage

Default name admin
password 1234

Managing the NWA3000-N Series AP: Console Port  SETTING VALUE
Speed 115200 bps
Data Bits 8
Parity None
Stop Bit 1
Flow Control Off

Router> configure terminal
Router(config)#show running-config (秀出設定內容)
Router(config)# show capwap_wtp ap discovery-type (秀出控制器的發現型式)
Discovery type : Broadcast
Router(config)# capwap ap vlan ip address 192.168.1.37 255.255.255.0(設定client Ap的Ip)
Router(config)# capwap ap vlan ip gateway 192.168.1.32(設定client Ap的gateway)
outer(config)# capwap ap ac-ip 192.168.1.1 192.168.1.2(設定控制器的IP,若IP只有1個,則後面要加遮罩,例255.255.255.0)
Router(config)# show capwap ap discovery-type
Discovery type : Static AC IP
Router(config)# show capwap ap ac-ip
AC IP: 192.168.1.1 192.168.1.2
Router(config)# exit
Router# show capwap ap info (秀出是是否有找到控制器)
SM-State RUN(8)
msg-buf-usage 0/10 (Usage/Max)
capwap-version 10118
Radio Number 1/4 (Usage/Max)
BSS Number 8/8 (Usage/Max)
IANA ID 037a
Description AP-0013499999FF

Router# write(寫入設定檔)
Router# show version(秀出firemware的版本)

星期五, 1月 09, 2015

ISG50的內部分機號碼如何和NGN網路電話號碼做對映


一、CONFIGURATIO->PBX->OutboundLine Management->Outbound Trunk Group>【Trusted Peer Settings】內的自訂的TANET選擇,點選【Auto Attendant】



二、增加DDI/DID Mapping Summary的對映號碼(註:Direct Inward Dialing (DID) or Direct Dial-in (DDI) )如果已達上限無法加入,就要使用command



三、但是32組號碼後,已不能利用web方式增加,這時就要利用指令方式(command mode)



四、以telnet進入ISG-50的console端中,

#enable

#configure terminal

#pbx outbound-trust-peer TANet

#ddi-mapping 907004999_999

#write


這邊是以907004999對應到分機999為示範