วันจันทร์ที่ 17 ตุลาคม พ.ศ. 2554

การ remove connection เก่าบน windows

1) Open the “Start” menu and choose “Run…”
2) Type in “cmd” (without the quotes) and click “ok”.
3) At the cmd prompt, type in “set devmgr_show_nonpresent_devices=1″ (without the quotes) and press enter. (Note that nothing seems to happen–this is ok. We are actually setting an environment variable which is going to help us to see hidden devices)
4) On the next cmd prompt line, type in “devmgmt.msc” (without the quotes) and press enter. This will launch the Windows Device Manager Console.
5) In the Device Manager Console, from the “View” menu, select “Show Hidden Devices”

http://www.tech-recipes.com/rx/504/how-to-uninstall-hidden-devices-drivers-and-services/

วันศุกร์ที่ 27 พฤษภาคม พ.ศ. 2554

การ setup cisco switch ให้เป็น Server+Client mode

การเซ็ต VLAN , VLAN Trunking และ VTP Domain บน Cisco Catalyst 2960 (Layer2) และ 3560 (Layer3)

จุดประสงค์ต้องการเซ็ต Switch เป็น VLAN โดยใช้ 3560 เป็น Core Switch และ 2960 กระจายไปตามจุดต่างๆในเครือข่าย

สิ่งที่ต้องทำคือ

- เปิด VTP ขึ้นมา ตั้งชื่อว่า VTPNAME

- กำหนด VTP บน 3560 เป็น Server Mode

- กำหนด VTP บน 2960 เป็น Client Mode

- ใช้ VTP Version 2

- สาย LAN เชื่อมระหว่าง Switch ใช้ Port 1 โดยทำเป็น Trunking Mode 802.1q

- SW ทุกตัวตั้งค่า VLAN ดังนี้

Port 2-5 VLAN 100 , MAIN

Port 6-10 VLAN 200 , FRONT



เริ่ม

บน 3560

switch#conf t

switch(config)#hostname SW_Core

SW_Core(config)#end

SW_Core#

SW_Core#conf t

SW_Core(config)#vtp domain VTPNAME

SW_Core(config)#vtp mode server

SW_Core(config)#end



บน 2960

คำคล้ายกันแต่เปลี่ยน hostname เป็นชื่ออื่น และ vtp mode เป็น client



ตรวจสอบ VTP โดยคำสั่ง

SW_Core#sh vtp status

ดู version ว่าเป็น v 2 หรือไม่ หากไม่เซ็ตดังนี้

Console>(enable)set vtp v2 enable



เซ็ต trunking ที่ Port 1 ของทุกๆ Switch

SW_Core#conf t

SW_Core(config)#interface fastEthernet 0/1

SW_Core(config-if)#switchport trunk encapsulation dot1q

SW_Core(config-if)#switchport mode trunk

SW_Core(config-if)#end



หากต้องการดูสถานะหลัง config

#sh interfaces fa0/1 switchport



เซ็ต VLAN

Name VLAN

———————————

Switch#conf t

Switch#vlan 100

Switch#name MAIN

Switch#exit

Switch#vlan 200

Switch#name front

Switch#exit



Add port to VLAN

———————————

Switch#config terminal

Switch#interface range fa0/2-5

Switch#switchport mode access

Switch#switch access vlan 100

Switch#exit

Switch#interface range fa0/6-10

Switch#switchport mode access

Switch#switch access vlan 200

Switch#exit


SW_Core#sh vlan <== ดูสถานะของ VLAN

Credit :
http://www.wandee.org/wordpress/?cat=12

วันจันทร์ที่ 9 พฤษภาคม พ.ศ. 2554

การ update image switch cisco 2960 ผ่าน xmodem

หา image file รอไว้ก่อนแล้วเข้าไปที่ prompt
switch: copy xmodem:[name file] flash:/dir/[name file]
แล้วไปทำการ start xmodem upload ที่ menu ได้เลย

วันพฤหัสบดีที่ 9 ธันวาคม พ.ศ. 2553

การเชื่อมต่อ mysql ข้ามเครื่อง

จริงๆก็ไม่ได้ยากอะไร แต่ตอนหา solution ก็นานเหลือเกิน
แก้ file my.cnf
ใส่ # ที่ bind ip 127.0.0.1 เพื่อให้ไม่ต้อง lock เครื่องที่เข้ามา แต่ก็อันตรายเหมือนกัน
แล้วก็ grant database ให้ remote machine เข้ามาได้ เช่น user@x.x.x.x เป็นต้น
เสร็จแล้วครับ

เริ่มชีวิตใหม่

หลังจากระหกระเหินกับความผิดพลาดต่างๆในชีวิตมาครั้งแล้วครั้งเรา อยากคืนชีวิตที่ดีให้กับทุกๆคน ไม่ต้องการมีเรื่องอะไรกับใคร แต่ก็ต้องมีอันให้มีเรื่องทุกทีไป
อยากเป็นคนดีของทุกๆคน แต่ก็มีหลุดจนได้
อย่างไรก็ตาม ก็จะพยายามทำความดีต่อไป

Download เอกสารต่างๆ

  VM Ware Doc