Tất cả các bài viết liên quan đến IT, Infrastructure: Sysadmin, Cloud & DevOps...chuyển qua https://infra.lecuong.info/

Archive for 09/2011

"Mẹo" tăng tốc chép dữ liệu giữa máy tính và USB


Đầu tiên bạn tải gói tin mang tên KB2581464 tại địa chỉ: http://support.microsoft.com/kb/2581464. Và tiến hành cài đặt bình thường. Sau đó khởi động lại máy tính. Bạn mở chương trình Registry bằng cách mở hộp thoại Run gõ regedit rồi bấm Enter


Tại Registry bạn tìm đến địa chỉ theo đường dẫnHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbstor.


Bạn tạo thêm giá trị VVVVPPPP.


Tại khung bên phải bạn nhấp phải và chọn New > DWORD Value và đặt tên là MaximumTransferLength.

CCNA LAB - 2.2 Virtual Trunking Protocol (VTP)



                                           Download


LAB 2-2: Virtual Trunking Protocol (VTP) 


You are the Network Administration at Ranet, and have to config to let Ranet-SW3 seperate VLAN
according to the VLAN database from Ranet-SW1 via VTP (use Console for each switch) as below:

     1. Gather information about VTP configuration in Ranet-SW1 by using "show" command in
USER mode only. (You do not have right to config anything on this switch.)


2. On switch Ranet-SW2, you have to config to let the VTP information send from Ranet-SW1
via itself to Ranet-SW3 without any change in VLAN database of Ranet-SW2


3. On switch Ranet-SW3, you have to config to receive VTP information from Ranet-SW1 and
use the received VLAN database to set members of each VLAN as:
VLAN 10: Fa0/1
VLAN 20: Fa0/2




-------------- The End --------------


Solution

CCNA LAB - 2.1 InterVLAN Routing


                                                                       Download

LAB 2-1: InterVLAN Routing 

You are the Network Administrator at Ranet, and have to config both switch "Ranet-SW" and router 
"Ranet-GW" via its console terminal as below: 


    1. Set Ranet-SW to seperate VLAN to be VLAN 10 and VLAN 20 and set its member as: 
          VLAN 10: Fa0/1, Fa0/2 
          VLAN 20: Fa0/3, Fa0/4 

    2. Enable feature "Portfast" on all access ports. 

    3. Set both Ranet-SW and Ranet-GW to route between VLAN 10 and VLAN 20: 

          - Use interface Fa0/0.1 and Fa0/0.2 on Ranet-GW as sub-interface for VLAN 10 and 
            VLAN 20 respectively.
          - Please note that all hosts in each VLAN set IP Default Gateway to be the last IP of its 
            own subnet. 

If everything is correct, All hosts will be able to connect with each other.


--------------  End -------------------

Solution

CCNA Lab -1.3 IPv6 addressing


















                                                                  Download

LAB 1-3: IPv6 Addressing 

You are the network administrator at Ranet, and 
have to config Ranet-HQ (via Console Terminal) for 
connection t use IPv6 as below: 
    1. set IPv6 address on interface Se0/0/0 to be 
       FEC0:78:0:1::2/64 
    2. set IPv6 address on interface Se0/1/0 to be 
       2001:21::2/48 
    3. Set IPv6 address on interface Fa0/0 to be the 
       gateway for Hosts in LAN as: 
          3.1 Set IPv6 Local address in EUI-64 that 
             has prefix to be FEC0:78:0:2::/64 
          3.2 Set IPv6 Global address in EUI-64 that 
             has prefix to be 2001:22::/48 

If the configuration above is done, 
    - Host1 will be able to connect with Ranet-BR. 
    - Host2 will be able to connect with ISP-Router.



Solution:

Create a bootable USB flash drive to install Windows 8

Tạo USB boot cài đặt Windows 8





















1.Yêu cầu:

# Windows 8 ISO f hoặc DVD
# USB 4GB trở lên
# 1 PC đang chạy XP, Vista, Windows 7 hoặc Windows 8.

Lưu ý:  Sao lưu dữ liệu trong USB của bạn trước khi làm nhé.

2.Các bước thực hiện:
-  Cắm USB vào máy tính
-  Nhấp chuột vào Start  -- All Programs --Accessories  -- Command Prompt
(Nếu đang dùng Windows Vista, Windows 7 thì nhấp chuột phải vào Command Prompt, sau đó chọn Run as administrator--Yes.)

- Tại cửa sổ Command Promt:

DISKPART , nhấn Enter

gõ list disk , nhấn Enter










SELECT DISK 1 để chọn USB.

Sau đó gõ lần lượt các lệnh sau:

CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=FAT32 quick       ( thêm quick phía sau cho nhanh nhé! )
















Chờ cho USB được format 100% thì gõ tiếp các lệnh sau:

ASSIGN

EXIT









Chép tất cả các files từ Windows 8 ISO  sang USB:















Xong rồi đấy! Khởi động lại máy & boot từ USb để bắt đầu cài đặt Windows 8 ^^!

CCNA Lab -1.2 IPv4 addressing




LAB 1-2: IPv4 Addressing

You are the network administrator at Ranet, and
have to config the router “Ranet-BR” via Console
Terminal as below:

1. enable interface Se0/0/0 and set IP address
/Subnet Mask that can connect with router
“Ranter-HQ” at 192.168.0.254/30

2. enable interface Se0/1/0 and set IP address
/Subnet Mask that can connect with router
“Ranter-BR1-1″ at 192.168.0.30/30

3. The Headquater has given IP address
range 192.168.0.0/27 for the network
behind our router, then you have to:

     3.1 enable interface Fa0/0 and set
     IP address/Subnet Mask to be the
     last IP of this subnet that has
     10 host as members.

    3.2 enable interface Fa0/1 and set
    IP address/Subnet Mask to be the
    last IP of this subnet that has
    5 host as members.

   3.3 Set IP address/Subnet Mark of Host1
   in each LAN to be the first IP of its
   own subnet, and set IP of gateway also
If the configuration is correct, Host1 in each subnet
must be able to ping to Ranet Server at 192.168.0.33

 ============= The End ===================

Solution:

CCNA Lab – 1.1- Basic Config

                                                  
                                                 

LAB 1-1: Basic Configuration 

You are the Network Administrator at Ranet. 
We have just installed new router to be our gateway. 
You have to do the basic configuration via Console Terminal 
(PC-PT) as below: 
   1. Set hostname to be "RanetA" 
   2. Set enable secret to be "ranetenablepass" 
   3. Set console password to be "ranetconsolepass" 
   4. Set telnet password to be "ranettelnetpass" 
   5. Set IP address of interface Fastethernet 0/0 to 
      be the first address of network 10.0.0.0/30 
   6. Set IP address of interface Fastethernet 0/1 to 
      be 192.168.0.254/26 
   7. Both interface Fastethernet 0/0 and 0/1 must 
      be enable. 

   After these configuration, you should be able to 
   1. Ping to 10.0.0.2 from Ranet A 
   2. Telnet from Ranet PC to Ranet A by using IP 
      address 192.168.0.254 and telnet password 
      as above.

=========== The End ===================


Solution:  

Năm chương ngắn về sự thay đổi

Chương 1
Tôi bước đi trên một con đường. Có một cái hố sâu ở trên vỉa hè. Tôi ngã xuống hố. Mất một lúc lâu tôi mới ra khỏi hố được. Đó là lỗi của tôi.

Chương 2
Tôi vẫn bước trên con đường đó. Tôi lại ngã xuống hố. Vẫn mất một lúc lâu tôi mới ra khỏi hố được. Đó không phải là lỗi của tôi.

Chương 3
Tôi vẫn bước trên con đường cũ. Tôi ngã xuống hố lần nữa. Điều này đang trở thành một thói quen. Đó là lỗi của tôi. Tôi ra khỏi đó ngay lập tức.

Chương 4
Tôi vẫn đi trên con đường đó và nhìn thấy cái hố sâu trên vỉa hè. Tôi bước qua nó.

Chương 5
Tôi đi trên một con đường khác.

(st)

Basic Switch Configurations Command


Basic Switch Configurations Command

In this article I will introduce the Cisco Internetwork Operating System (IOS) command line interface (CLI) for the 2960 series switch. You will need to logon to a switch and become familiar with the different levels of access on the switch. You will also become familiar with the commands available to you in each mode (user or privileged) and the switch help facility, history, and editing features.

User vs. Privileged Mode

User mode is indicated with the > next to the switch name. You can look at settings but can not make changes from user mode. In Privilege mode, indicated by the #, you can do anything. To get into privilege mode the keyword is enable.

HELP

To view all commands available from this mode type:?This will give you the list of all available commands for the switch in your current mode. You can also use the question mark after you have started typing a command. For example if you want to use a show command but you do not remember which one it is, use the ? as this will output all commands that you can use with the show command.

Configuration Mode

From privilege mode you can enter configuration mode by typing config term command you can exit configuration mode type type end or <CTL>+z

Configuration of Cisco 2960 Switch

To practically implement these command either create a simple topology on packet tracer or download this topology.
Example topology for basic switch commands
basic switch configuration

Now click on any switch and configure it as given below
To know all available command on user exec mode type ? and press enter

Switch>?
Exec commands:
    [1-99]         Session number to resume
    connect        Open a terminal connection
    disconnect     Disconnect an existing network connection
    enable         Turn on privileged commands
    exit           Exit from the EXEC
    logout         Exit from the EXEC
    ping           Send echo messages

[Output is omitted]
Three command can be used to logout from terminal use any one

Switch>enable
Switch#disable
Switch>exit

Switch con0 is now available

Press RETURN to get started.
Show version command will tell about the device platform and detected interface and ios name

Switch>enable
Switch#show version
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version
12.2(25)FX, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
ROM: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX,
RELEASE SOFTWARE (fc4)
System returned to ROM by power-on
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with
21039K bytes of memory.
24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

[Output is omitted]
show mac address command will show all detected mac address dynamically and manually

Switch#show mac-address-table

Bạn đang để "cái tôi" ở đâu?


Nếu lấy thang điểm 10 làm chuẩn, thì bạn sẽ "chấm" cho bản thân mình bao nhiêu? Số điểm mà bạn tự đánh giá sẽ nói lên phần nào về "cái tôi" của bạn.

Kiêu hãnh - tự ti - tự hào

Ai trong chúng ta cũng từng trải qua những cảm giác này. Tuy nhiên, chúng tồn tại ở các "liều lượng" khác nhau, và biểu hiện ra bên ngoài ở các mức độ không giống nhau.

Kiêu hãnh tức là bạn có những điều đáng phải tự hào. Trong một vài trường hợp, kiêu hãnh có thể là "thuốc tăng lực" cho chính bạn. Đứng trước một cuộc thi trí tuệ, nếu tỏ ra nhỏ bé, tự ti thì đúng là bạn sẽ thất bại thật. Nhưng nếu tự hào về khả năng và nỗ lực của mình, tinh thần sẽ cổ vũ cho lý trí của bạn, khiến sự chiến thắng gần kề hơn...Lòng kiêu hãnh đôi khi "tiềm ẩn" trong mỗi cá thể, nhưng nếu "kiêu hãnh" đi kèm với một chút "ảo tưởng" sẽ dần biến thành kiêu ngạo, và lộ ra ngoài...

Tự ti là luôn thấy mình thua người khác. Bạn không dám đứng nói trước đám đông vì giọng mình chưa hay, tức là bạn đã tự ti. Bạn biết trả lời câu hỏi thông minh do giáo viên đặt ra, nhưng không dám phát biểu vì sợ mình chưa chắc đúng...Tự ti luôn biểu hiện trong cuộc sống hằng ngày bằng những việc bình thường, mà đôi khi, chính bạn cũng không biết rằng mình đang "mất tự tin" nữa.

Dung hòa giữa hai điều trên là lòng tự hào. Một khi bạn hài lòng với mình về điều gì, tức là bạn đang tự hào. Bạn cho người khác xem những thành tựu của mình, tức là bạn đang biểu lộ niềm tự hào. Nhưng mặt khác, bạn "tự hào" nhiều lần quá thì cũng sẽ trở thành kiêu ngạo.

o0o

Trong một vài tình huống, đôi khi bạn - và kể cả mọi người - hay nhầm lẫn, đánh đồng giữa ba trạng thái này. Bạn cứ ngỡ rằng mình khiêm tốn, nhưng người khác lại cho rằng bạn "chảnh". Bạn chỉ tự hào một chút xíu thôi, và tiếp tục cố gắng hơn nữa, vậy mà bạn bị xem là "không khiêm tốn chút nào"...

Chúng ta không thể vừa lòng tất cả mọi người...

Đôi lúc tôi thắc mắc,