2014年7月12日 星期六

Linux 6.5 cluster 接 C6500 VSS 異常處理

問題狀況描述

Step1. Server1 & Server2 對外port eth0 接 Core (Cisco 6509/6504 不同台)
    服務狀態:cman / rgmanager 服務正常,但cluster service啟動失敗

Step2. Server1 & Server2 對外port eth0 對接
    服務狀態:cman / rgmanager / cluster service 啟動成功

Step3. Server1 & Server2 對外port eth0接上Dlink switch 再uplink to Core
    服務狀態:cman / rgmanager / cluster service 啟動成功

問題說明
Linux cluster 預設使用 multicast 溝通,所以switch需啟用 Multicast / IGMP

Linux cluster status 可由指令 clustat -im 確認

Cluster Status 正常




Cluster Status 異常





2.12. UDP Unicast 流量
就 RHEL 6.2 來說,叢集中的節點可以透過 UDP Unicast 傳輸機制來通訊。然而我們建議叢集的網路使用 IP multicasting。UDP unicast 是 IP multicast 無法使用時的備用方案。
您可透過設置 cluster.conf 配置檔案中的 cman transport="udpu" 參數,以將 Red Hat High-Availability 外掛配置為使用 UDP unicast。您亦可由 Conga 使用者介面的「網路配置」頁指定 Unicast,如 〈節 3.5.3, “網路配置”〉中所述。

解決方案二、Core switch Enable PIM on the Layer 3 Router/VLAN Interface 

All Catalyst platforms have the ability to dynamically learn about the mrouter port. The switches passively listen to either the Protocol Independent Multicast (PIM) hellos or the IGMP query messages that a multicast router sends out periodically.



2014年6月25日 星期三

ACS 帳號直接查詢 AD 密碼

前題:要事先完成外部資料庫查詢相關設定
例:資安考量,AD user 需定期修改密碼,
       若 AD user 改密碼,就可以用新密碼登入ACS控管設備了

Password Authentication : 選擇 Windows Database
PAP Password:不需輸入,直接查詢AD





2014年6月24日 星期二

Win8 64bit client can't install Cisco AnyConnect finish

一、安裝過程,錯誤訊息如下

\System\CurrentControlSet\Services\Eventlog\CiscoAnyConnect Secure Mobility Client\acvpndownloader




二、找到答案,再來更新

2014年6月23日 星期一

WLC Web-Auth with OpenLDAP

一、使用 LDAP Admin 確認 LDAP 運作情形
        註:LDAP 可能設限可存取IP (需開放WLC可存取認證)



二、查看 LDAP user 屬性 (各家設定不儘相同)
       objectClass :  person (其它常見:account)
       Attribute    :cn (其它常見:uid)




三、WLC LDAP Server config


設定 User Attribute / Object Type
    註:若Simple Bind 選擇 Anonymous,也可認證成功















指定 LDAP server 為Web認證主機










四、測試

認證成功,check LDAP log


2014年6月11日 星期三

Cisco Anyconnect 連線錯誤訊息處理



訊息如下:
 The VPN client was unable to modify the IP forwarding table. A VPN connection will not be established. Please restart your computer or device, then try again.

解決方法:
注意:使用 Anyconnect VPN,網路共享服務,不能開啟 !!!
執行,輸入services.msc 後,找到 Internet Connection Sharing (ICS) 選項,停用即可

2014年5月17日 星期六

IronPort WSA:GATEWAY_TIMEOUT


通知:GATEWAY_TIMEOUT

症状:From client ping 目的地 URL,由 WSA 回應
原因:Block by WSA L4TM (L4 Traffic Monitor)
處理:Bypass URL from L4TM 即可正常




2014年5月16日 星期五

IronPort 重開機要小心

指令是 reboot 不是 reload

ironport2.lab.com> reboot

Are you sure you want to reboot?
[N]>

===========================

ironport2.lab.com> reload


WARNING !!

This command will erase customer data, reporting and log files,
erase proxy cache, reset to factory configuration (shipping mode),
including network settings and IP addresses and reboot the machine.

This command does NOT extend the feature keys.
Those must be applied separately.

WARNING !!

This command is primarily intended for Cisco IronPort Field Engineers
and may delete valuable data. Administrators should normally use
'resetconfig' instead.

Are you sure you want to continue? [y|n]

2014年4月25日 星期五

IronPort CLI downgrade 指令

CLI 下指令:revert (重開機完成,大約10~15分)



2012年11月4日 星期日

Redistribution of static route in to OSPF on Nexus 7000


(1) ip access-list

將 所有 static route 由 OSPF 送出

ip access-list static-route
  20 deny ip any any

route-map TEST permit 10
  match ip address static-route

router ospf 1
  redistribute static route-map TEST


(2) ip prefix-list

只有在 prefix-list 清單,static route 才會由 OSPF 送出

ip prefix-list Client seq 10 permit 10.1.11.0/24
ip prefix-list Client seq 20 permit 10.2.12.0/24

route-map TEST permit 10
  match ip address prefix-list Client

router ospf 1
  redistribute static route-map TEST

2012年10月18日 星期四

Checkpoint 指令發憑證


Checkpoint R75.40

1. 手機憑證
cpca_client -d init_certs -i /var/tmp/user_dn_list.txt -o /var/tmp/reg_keys.txt

a:-i  輸入:user_dn_list.txt 建立 user LDAP login DN 清單
      -o 輸出:reg_keys.txt 使用者手機key檔
b:建立 vpn site 需用key及password (帳號自動帶出)
      第2次連線,選擇site,仍需password
c:每台設備,單獨用一組key

2. 建立Windows憑證
cpca_client -d create_cert -n "CN=jacky,OU=Vendor,DC=vpn,DC=com" -f jacky.p12 -w P@1qazxs -k USER -c test123

a:-n "user LDAP login DN"    -f 使用者p12憑證檔    -w 安裝密碼    -c 註解
b:安裝憑證時,用到 "安裝密碼"
c:Windows憑證 *.p12 可裝在多台,並同時登入.
d:portal 選擇 CA登入,不需使用者password

3. 撤銷憑證
cpca_client -d revoke_cert -n "CN=jacky,OU=Vendor,DC=vpn,DC=com"

a:指令會一次撤銷此user所有憑證
b:發憑證給 user,不需再 install policy,即可使用.
c:若是異動AD user設定,需要再install policy


2012年10月6日 星期六

Converte CheckPoint Secure Platform R75.40


 From VMworkstation 8 => Esxi 4.1

VMware vCenter Converter 5.0







2012年10月4日 星期四

LinkProof clear arp table


Software Version: 4.38.01

一次只能刪1筆,無法全刪.

一、指令

LP200-2#net arp

send                    Advertises all IP interfaces and virtual IPs
table                   Displays the ARP Table
timeout                 Sets the ARP Table timeout

LP200-2#net arp table
 net arp table help:
 <get>       <Interface Index> <IP Address>
 set         <Interface Index> <IP Address>                <-switch value>
 destroy/del <Interface Index> <IP Address>
 create/add  <Interface Index> <IP Address> <MAC Address>  <-switch value>
 help        <-switch>
 Switches:
        -mac  :  MAC Address            
        -t    :  Type        

二、查看 arp

LP200-2#net arp table
        Arp Table                                                                            
Interface Index     IP Address          MAC Address         Type            
                                                                             
1                   123.123.180.1        000fe21971b7        dynamic        
     
1                   123.123.180.3        0003b22d6a40        dynamic          
                                                                             
1                   123.123.180.33       000fe21a08d9        dynamic  

三、刪除單一arp

LP200-2#net arp table del 1 123.123.180.3

Deleted successfully

2011年11月3日 星期四

Cisco MDS 9124 Recovery Password

Terminal Software : SecureCRT 5.5 


重新開機

>> MDS-Bootloader-01.00.17 (May 28 2009 - 23:13:36), Build: 01.00.17

PowerPC
  CPU:    8541, Version: 1.1, (SVR:0x807a0011)
  Core:   E500, Version: 2.0, (PVR:0x80200020)
  Clocks: CPU: 999 MHz, CCB: 333 MHz,
          DDR: 166 MHz, LBC:  41 MHz
  L1:     D-cache 32 kB enabled
          I-cache 32 kB enabled
INFO: Booting off primary flash.
I2C:   ready
DRAM: Total SDRAM memory is 512 MB
20000000
INFO: SDRAM tests PASSED.
DRAM: ECC initialization in progress...Done.
done.
INFO: Board rev = 6 type = 4 index 9032
L2 cache 256KB: enabled
IDE:   Bus 0: OK
  Device 0: Model: SILICONSYSTEMS INC 256MB Firm: 841-023 Ser#: CB0531XX55920DXX
            Type: Hard Disk
            Capacity: 248.5 MB = 0.2 GB (508928 x 512)

Booting bootflash:/m9100-s2ek9-kickstart-mz.4.1.3a.bin ...
.................  (之後輸入中斷符號 : Ctrl + ] )
Automatic boot of image at addr 0x00000000 ...
Starting kernel...
 Entered kgdb_console_init:1960
INIT: version 2.85 booting
Checking all filesystems..^]... done.
/etc/rc.d/rcS.d/S30procps: line 34: log_action_begin_msg: command not found
/etc/rc.d/rcS.d/S30procps: line 36: log_action_end_msg: command not found
Setting the System Clock using the Hardware Clock as reference...System Clock s1
Loading systemStopping NFS servers: mountd nfsd.
.
INIT: Sending processes the KILL signal
Cisco Nexus Operating System (NX-OS) Software
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
switch(boot)#

switch(boot)# conf ter
Enter configuration commands, one per line.  End with CNTL/Z.
switch(boot)(config)# admin-password new_password
switch(boot)(config)# exit

switch(boot)# load bootflash:m9100-s2ek9-mz.4.1.3a.bin
Uncompressing system image: bootflash:/m9100-s2ek9-mz.4.1.3a.bin
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

CCCCCCCCCCCCCCCCCCCCCCCCCCCCC
INIT: Switching to runlevel: 3
INIT: Sending processes the TERM signal
INItch(boot)#
Starting NFS servers: nfsd mountd.

2011 Nov  2 19:05:38 MDS9124-2 %KERN-2-SYSTEM_MSG: Starting kernel... - kernel
2011 Nov  2 19:05:38 MDS9124-2 %KERN-1-SYSTEM_MSG:  Entered kgdb_console_init:1960 - kernel


User Access Verification
MDS9124-2 login:
2011 Nov  2 19:06:03 MDS9124-2 %PLATFORM-2-PS_OK: Power supply 2 ok (Serial number PAC122531XX)
2011 Nov  2 19:06:03 MDS9124-2 %PLATFORM-2-PS_FANOK: Fan in Power supply 2 ok
2011 Nov  2 19:06:03 MDS9124-2 %PLATFORM-2-FAN_OK: Fan module ok

User Access Verification
MDS9124-2 login: admin
Password:
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2009, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
MDS9124-2#

2011年10月31日 星期一

ASA 處理進出同介面的路由 intra-interface


預設:Intra-Interface Communications disabled,不允許進出同介面的路由
  
Intra-Interface Communications Enable 指令:
same-security-traffic permit intra-interface

http://www.cisco.com/en/US/products/ps6120/products_tech_note09186a0080734db7.shtml

增加以下兩行,route inside 封包,不做 NAT.

1. ACL
access-list route-inside extended permit ip 192.168.0.0 255.255.0.0 192.168.0.0 255.255.0.0

2. NAT 0 (不做 NAT)
nat (inside) 0 access-list route-inside

2011年10月26日 星期三

2011年9月21日 星期三

Cisco ACS radius proxy 設定


需求:

client 輸入 帳號@lab.com 向 ACS1 認證 (不存在此帳號),
會 proxy 到 ACS2 做認證,
並在 ACS1 / ACS2 都留下 "RADIUS Accounting" 記錄


設定:

ACS1 (add ACS server "ACS2")

ACS2 (add AAA client "ACS1") (add user account "jacky2")

ACS1 設定 Proxy Distribution Table

    Character String:@lab.com  (帳號後接字串)(Suffix)
    AAA Servers : 選兩台
    Accounting : Local/Remote




  
結果:

當帳號 jacky2@lab.com 認證成功:

Report "Passed Authentications" => "jacky2" 只會出現在 ACS2 (不帶domain)


Report "RADIUS Accounting" => "jacky2" 出現在 ACS2 (不帶domain)

同時:

Report "RADIUS Accounting" => "jacky2@lab.com" 出現在 ACS1


RadiusTest 工具:


Download the utility by clicking: RadiusTest.zip



2011年7月22日 星期五

CactiEZ 自動升級 0.8.7g

一、建立 shell file,執行

#update cacitez
mysqldump -l --add-drop-table cacti > /tmp/mysql.cacti
mysqldump -l --add-drop-table syslog > /tmp/mysql.syslog

mv /var/www/html /var/www/html.old

cd /tmp
wget http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz
tar zxvf cacti-0.8.7g.tar.gz
mv cacti-0.8.7g /var/www/html

yes|cp -r /var/www/html.old/rra /var/www/html/

yes|cp /var/www/html.old/log/* /var/www/html/log

cp /var/www/html.old/scripts/* /var/www/html/scripts --reply=no
cp -R /var/www/html.old/resource/* /var/www/html/resource/ --reply=no

sed -i 's/$database_password = "cactiuser";/$database_password = "CactiMadeEZ";/g' /var/www/html/include/config.php
sed -i 's/#$cacti_session_name = "Cacti";/$cacti_session_name = "CactiEZ";/g' /var/www/html/include/config.php

rm -f /tmp/cacti-0.8.7g.tar.gz

#plugins update
cd /tmp
wget http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7g-PA-v2.8.zip
unzip cacti-plugin-0.8.7g-PA-v2.8.zip
cd cacti-plugin-arch
yes | cp cacti-plugin-0.8.7g-PA-v2.8.diff LICENSE pa.sql README /var/www/html

yes| cp -r files-0.8.7g/ /var/www/html

cd /var/www/html
patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.8.diff

sed -i 's/"Cacti";/"CactiMadeEZ";/g' /var/www/html/include/global.php

cp -r /var/www/html.old/plugins/* /var/www/html/plugins/ --reply=no

cd /tmp
wget http://cactiusers.org/downloads/boost.tar.gz
cd /var/www/html/plugins/
tar zxvf /tmp/boost-2.4.tar.gz

cd /tmp
wget http://cactiusers.org/downloads/thold.tar.gz
cd /var/www/html/plugins/
tar zxvf /tmp/thold-0.4.3.tar.gz

cd /tmp
wget http://www.network-weathermap.com/files/php-weathermap-0.96a.zip
cd /var/www/html/plugins/
unzip -o /tmp/php-weathermap-0.96a.zip

cd /tmp
wget http://sourceforge.net/projects/cacti-reportit/files/cacti-reportit/reportit_v071/reportit_0.7.1.tar.gz/download
cd /var/www/html/plugins/
tar zxvf /tmp/reportit_0.7.1.tar.gz
rm -rf reportit
mv 0.7.1 reportit

二、編輯 /var/www/html/include/global.php

找到$config = array();在下方添加下面文字

$plugins = array();
$plugins[] = 'settings';
$plugins[] = 'boost';
$plugins[] = 'monitor';
$plugins[] = 'discovery';
$plugins[] = 'tools';
$plugins[] = 'syslog';
$plugins[] = 'mactrack';
$plugins[] = 'loginmod';
$plugins[] = 'update';
$plugins[] = 'flowview';
$plugins[] = 'hostinfo';
$plugins[] = 'errorimage';
$plugins[] = 'weathermap';
$plugins[] = 'docs';
$plugins[] = 'reportit';
//$plugins[] = 'ntop';
//$plugins[] = 'ssl';
$plugins[] = 'routerconfigs';
$plugins[] = 'wmi';
$plugins[] = 'realtime';

三、重啟服務


service httpd restart

四、更新失敗的復原方法


cd /
rm -rf /var/www/html
mv /var/www/html.old /var/www/html

mysql cacti < /tmp/mysql.cacti
mysql syslog < /tmp/mysql.syslog
service httpd restart

五、weathermap 錯誤訊息


Notice: Undefined index: action in /var/www/html/plugins/weathermap/setup.php on line 146



將146行改為以下:


if(isset( $_REQUEST["action"] ) && $_REQUEST["action"] == 'viewmapcycle') 








2011年7月16日 星期六

ACS 4.2 升級 and Patch

CiscoSecure ACS (未升級前)  Release 4.2(0) Build 124

升級順序:

1. ACS-4.2.1.15-BIN-K9.zip  (Release 4.2(1) Build 15)
   (必需由 4.2.0 升級,不能直接安裝)
   (過程:保留舊有設定,移除舊版,安裝新版)





2. Acs-4.2.1.15.4-SW.zip (Release 4.2(1) Build 15 Patch 4)
   (cmd 視窗 : y)







2011年6月4日 星期六

Acentlink Auto Routing

定義內部網段,走不同線路出去,並做備援

(PBR : Policy Based Routing) + Fail-Over backup

Algorithm : Fixed 指定線路

Destination : "WAN" (Internet any)



2011年5月30日 星期一

Fat AP WPA-PSK TKIP Config

Model Number : Cisco AIR-AP1042N-T-K9
IOS version : c1140-k9w7-mx.124-25d.JA


相關設定

dot11 ssid jacky
   authentication open
   authentication key-management wpa
   mbssid guest-mode
   wpa-psk ascii 7 12293134250AJACKY252A2D302112121405140E445D
   information-element ssidl advertisement

interface Dot11Radio0
 !
 encryption mode ciphers aes-ccm tkip 
 !
 ssid jacky