Archive for October 2007

I think , how to find network number is very basic knowledge of computer network but I don’t remember. However, after I reviewed my notebook training , I found it again.

These are solution :

1. Convert IP Address to binary number ,

192.168.0.1 => 1100 0000 . 1010 10000 . 0000 0000 . 0000 0001

2. Convert Broadcast IP to binary number ,

255.255.255.0 => 1111 1111 . 1111 1111 . 1111 1111 . 0000 0000

3. Bring binary IP Address operate with Broadcast IP by AND operation,

1100 0000 . 1010 1000 . 0000 0000 . 0000 0001
and
1111 1111 . 1111 1111 . 1111 1111 . 0000 0000

=

1100 0000 . 1010 1000 . 0000 0000 . 0000 0000

4. Convert this result to decimal number.

192 . 168 . 0 . 0 <= This is Network number.

    ลืมครับ..เรื่อง Active & Passive Voice นี่จำได้ตอนเรียนเป็นเรื่องเป็นราวน่าจะอยู่ตอน ม.ปลาย อ.นก เป็นคนสอน คุ้นๆว่าจะเก่งด้วยตอนนั้น :P แต่แล้วพอจบออกมาก็คืน อาจารณ์หมด มาเจออีกทีก็ตอนเรียน มหาลัย โอ้ย!! ตอนนั้นก็กินบุญเก่า ครับ ติดมากลับตัวเท่าไหร่ ก็ใช้ไปเท่านั้น

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

» Read the rest of the entry..

After I upgraded my Ubuntu from version 7.04 to 7.10. I have a big problem on program vmware server program . This program returns error message after I run vmware command. This is error message :

» Read the rest of the entry..

After I started my server [FC4], I would be disable root connect to this server by ssh-client. This is solution .

1. Open file /etc/ssh/sshd_config

# vi /etc/ssh/sshd_config

2. Uncomment this line has “PermitRootLogin yes” and change yes to no

:
#LoginGraceTime 2m
PermitRootLogin no
#StrictModes yes
:

3. Restart sshd service.

# service sshd restart

4. If you don’t want to disconnect by client (because you connect by ssh-client) you can kill sshd process by use -1 option such as

# pkill -1 sshd

this option can help you keep connection between client&server because this command will be kill process -> reload new config -> start sshd process same sshd old process id.

This is solution of configure device switch 3750G for allow user connect to host by ssh-client.

1. After you connect to switch you would be create number of access list by this command.

# ip access-list extended 200

2. Configure this access-list for allow port 22 only.

# access-list 200 permit tcp host 123.456.789.012 eq 22 any
# access-list 200 deny tcp any any
# access-list 200 deny udp any any
# end

3. Map this access-list into interface that physical connect though ssh-server.

# interface giX/Y/Z
# ip access-group 200 in
# end

4. If you want to verify you access-list , you could be use this command

# show access-lists

End . :P

ตอนนี้ที่ทำงานใหม่ผม ผมก็มีโอกาสได้เรียนเรื่องเกี่ยวกับ Network เป็นเรื่องเป็นราวซ่ะที.. บอกตรงๆว่า เรียนมาได้แล้ว 3 วันปรากฏว่าผมไม่มีพื้นฐานความรู้เรื่อง Network เลย โง่จริงๆ อิๆ มาเริ่มกันที่เรื่องง่ายๆก่อนละกันครับ

ประเดิมที่่่่่เรื่องง่ายๆ ก่อนละกัน ครับ

» Read the rest of the entry..

RIP คือ Protocol gateway แบบภายในชนิดหนึ่งที่เหมาะกับองค์กรที่มี Network ขนาดเล็ก ซึ่งเป็น Routing Protocol ขนาดเล็กที่ใช้หา distance-vector ของการ routing โดยใช้ broadcast ที่เป็น User Datagram Protocol (UDP) เป็นตัวช่วยในการเก็บข้อมูลในการเปลี่ยน ข้อมูลของ Routing

** RIP นั้นจะเป็น Routing Protocol ที่ Support โดย IP Base image เท่านั้น หากเป็นตัวอื่น จะต้องมีการเรียกใช้ Stack master เพื่อใช้ในการ Run IP Service images.

ในการใช้ RIP นั้น Switch จะทำการส่ง information ที่ update ทุกๆ 30 วินาที โดยหาหาก Router ไม่มีการ Receive ข้อมูลที่ Update 180 วินาที หรือมากกว่านั้น Router ตัวนั้นจะถูก Mark ให้เป็น Router ที่ Unusable แต่ถ้าหลังจากนั้น 240 วินาที Router ตัวนั้นก็จะถูก Remove ออกจาก Routing table ทำให้กลายเป็น non-updating router

เรื่องเกิด​จาก​ ​ตอนแรกเครื่อง​ PC ​ที่บ้านผม​..​ลง​ Windows XP ​ไว้​ ​พอหลัง​จาก​นั้น​ก็​เอา​ Partition Magic ​มาพื้นที่​เพื่อที่​จะ​เตรียมการ​ใน​การ​ Install Ubuntu ​ซึ่ง​แน่นอนครับมันผ่านไป​ได้​ด้วย​ดี​..​ไม่​มีปัญหาอะ​ไร​ ​หลัง​จาก​นั้น​ ​อยู่​มาวันหนึ่ง​ ​น้องชายผมเค้าก็​เอา​..​โปรแกรมอะ​ไร​ไม่​รู้นักหนา​ ​มาลง​ ​เล่น​ Net ​ด้วย​ ​ลงนั่นลงนี่​ ​มั่วไปหมด​ ​จนสุดท้ายโดนของ​เข้า​ไป​ Boot ​เข้า​ไป​ใช้​งาน​ไม่​ได้​เลยครับพี่น้อง​..​ว่า​แล้ว​ก็​เลยตัดสินใจ​.. ​อืมม​ ​ลง​ใหม่​ดีกว่า
จ๊าก​ !!! Ubuntu ​สุด​ love ​กูหายไปไหน​..​ไหง​ไม่​มี​ให้​กู​เลือกว่ะ​เนี้ย​…​เอาหล่ะสิครับพี่น้อง ​…​รูป​..​หนัง​..​คลิบ​ ​อยู่​ใน​นั้น​หมด​ (อิๆ​ ​น้องผมมัน​ใช้​ Linux ​ไม่​เป็น​…​เป็น​การ​ Block Permission ​ภาย​ใน​ตัว) ​ทำ​ไงดีหว่า​…​เจ้กู​ ​อยู่​ไหน​..​มา​ช่วย​ผมด่วน​ ​แน่นอนครับ​ ​เจ้กู​ช่วย​เรา​ได้​เสมอ​.. ​ผม​ใช้​ Key word ​คำ​ว่า​ “How to reinstall grub boot MBR on Ubuntu” ​ซักพักก็​ไปเจอ​อยู่​ที่หนึ่ง​ ​ที่

» Read the rest of the entry..

Sometimes a buggy program will create a filename that you can’t easily type. Or maybe you just got a bit of line noise at the wrong moment. Either way, you are stuck with a file that you can’t rm.

  • The easiest way to get rid of such a file is to just use rm -i to ask for deletion of a larger set of files; for instance, if the filename was Qdzt #%@A < garbage > , you’d just do rm -i Qdzt*.
  • Try to get a wildcard pattern that will affect as few files as possible and make sure you specify -i. For instance, you do not want to do something like rm ?*”. That will delete all files in the current directory without warning.
  • Also be careful of “rm .*”, since “..” matches that wildcard expansion, and “..” just points to the directory above you. Imagine wiping out the entire filesystem. You don’t have permissions to do that, of course, but you can still mess up your own files.
  • Also make sure there are no spaces; “rm Qdz *” will remove the file “Qdz” which probably does not exist, then remove all of the files (”*”). This is why “rm -i” is such a popular command; the -i makes rm prompt you for each file it has its sights on.

» Read the rest of the entry..

Sometime , your server has little value of SWAP patition because your server has run many process. So you want to add swap patition to server immediately. You can do by follow this solution.

1. You must su to user root.

-bash-3.00$ su -
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005

» Read the rest of the entry..