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 นี่จำได้ตอนเรียนเป็นเรื่องเป็นราวน่าจะอยู่ตอน ม.ปลาย อ.นก เป็นคนสอน คุ้นๆว่าจะเก่งด้วยตอนนั้น
แต่แล้วพอจบออกมาก็คืน อาจารณ์หมด มาเจออีกทีก็ตอนเรียน มหาลัย โอ้ย!! ตอนนั้นก็กินบุญเก่า ครับ ติดมากลับตัวเท่าไหร่ ก็ใช้ไปเท่านั้น
แต่มาวันนี้ได้ใช้เยอะ ขี้นก็เลยต้องกลับมาทบทวน.. คนที่ office เก่งๆ กันหลายคน อายเค้า..
ว่าแล้วก็มาเริ่มกันเลยดีกว่าครับ คงจะออกมาเป็นแนวๆ ที่ผมเข้าใจมากกว่าเนาะ
Read more »
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 more »
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.
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
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
End .
ตอนนี้ที่ทำงานใหม่ผม ผมก็มีโอกาสได้เรียนเรื่องเกี่ยวกับ Network เป็นเรื่องเป็นราวซ่ะที.. บอกตรงๆว่า เรียนมาได้แล้ว 3 วันปรากฏว่าผมไม่มีพื้นฐานความรู้เรื่อง Network เลย โง่จริงๆ อิๆ มาเริ่มกันที่เรื่องง่ายๆก่อนละกันครับ
ประเดิมที่่่่่เรื่องง่ายๆ ก่อนละกัน ครับ
Read more »
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 more »
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 more »
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 more »