Hiển thị các bài đăng có nhãn cmd. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn cmd. Hiển thị tất cả bài đăng

20 thg 4, 2008

Cấu hình địa chỉ mạng IP bằng câu lệnh MS-DOS

Thông thường để cấu hình và đặt địa chỉ IP cho các máy trong mạng bạn chỉ cần cấu hình trong Network Connections và thiết lập địa chỉ IP trong giao thức TCP/IP bằng giao diện Windows. Nay chúng tôi giới thiệu thêm một phương pháp cấu hình địa chỉ IP sử dụng câu lệnh Command line đôi khi cách này sẽ được dùng trong các trường hợp cần thiết
Để cấu hình địa chỉ IP, DNS, WIN bằng command line. Các bạn thực hiện các bước sau:
Vào của sổ command prompt ( Run--> gõ cmd đối với Windows 2000,Xp,2003 hoặc gõ command đối với Windwos 98, Me) gõ lệnh:


netsh
interface IP

<--Set IP Address-- >
set address name= ``Local Area Connection`` source=dhcp
set address local static
vidu:
set address name= ``Local Area Connection`` source=dhcp
set address local static 192.168.1.2 255.255.255.0

<--Set Preferred DNS Server -- >
set dns name= ``Local Area Connection`` source=dhcp
set DNS Local Area Connection`` static

vidu:
set dns name= ``Local Area Connection`` source=dhcp
set DNS ``Local Area Connection`` static 192.168.1.1

<--Set WINS address-- >

set wins name= ``Local Area Connection`` source=dhcp
set wins Local Area Connection`` static

vidu:
set wins name= ``Local Area Connection`` source=dhcp
set wins ``Local Area Connection`` static 192.168.1.1

<--De thoat khoi chuong trinh--- >

Exit

Ngoài các cấu hình cơ bản trên bạn có thể tham khảo thêm các tính năng sau (Bằng tiếng Anh)

Commands inherited from the netsh context:
.. - Goes up one context level.
abort - Discards changes made while in offline mode.
add - Adds a configuration entry to a list of entries.
alias - Adds an alias.
bridge - Changes to the `netsh bridge' context.
bye - Exits the program.
commit - Commits changes made while in offline mode.
delete - Deletes a configuration entry from a list of entries.
diag - Changes to the `netsh diag' context.
exit - Exits the program.
interface - Changes to the `netsh interface' context.
offline - Sets the current mode to offline.
online - Sets the current mode to online.
popd - Pops a context from the stack.
pushd - Pushes current context on stack.
quit - Exits the program.
ras - Changes to the `netsh ras' context.
routing - Changes to the `netsh routing' context.
set - Updates configuration settings.
show - Displays information.
unalias - Deletes an alias.
wins - Changes to the `netsh wins' context.

Commands inherited from the netsh interface context:
add - Adds a configuration entry to a table.
delete - Deletes a configuration entry from a table.
ip - Changes to the `netsh interface ip' context.
reset - Resets information.
set - Sets configuration information.
show - Displays information.

Commands in this context:
? - Displays a list of commands.
add - Adds a configuration entry to a table.
delete - Deletes a configuration entry from a table.
dump - Displays a configuration script.
help - Displays a list of commands.
reset - Resets TCP/IP and related components to a clean state.
set - Sets configuration information.
show - Displays information.


Khi bạn gặp các câu lệnh khó mà cần thiết sự trợ giúp vui lòng gõ dấu hỏi (?) hoặc gõ (?/) các câu lệnh cần thiết sẽ được hiện nên và bạn có thể làm theo các trợ giúp đó

http://www.sanitc.com/itc/NewDetail.asp?ID=52&IDL=97&IDD=1166

23 thg 3, 2008

Tìm địa chỉ IP của trang web

Đơn giản nhất bạn dùng lệnh NSLOOKUP của Windows:
(1) Vào Command Prompt
(2) > NSLOOKUP
(3) > gõ địa chỉ website cần xem IP, VD:
> www.yahoo.com
(4) > Exit để thoát ra.

Ngoài ra còn rất nhiều chương trình khác để tìm IP của website.

Lưu ý là có thể có nhiều website chia sẻ chung 1 địa chỉ IP và cũng có thể một website có nhiều IP (Yahoo.com chẳng hạn).

++++++++++

Ban phai dung tien ich nslookup. Ban co the download
tu:
http://www.freedownloadscenter.com/Network_and_Internet/

Network_Information_Tools/Resolve.html
hoac: http://www.trumphurst.com/nslookup.phtml
Dieu quan trong la ban phai cau hinh dung dia chi cua DNS server.
Chuc ban thanh cong.

Vnerdr@yahoo.com

http://vnexpress.net/Vietnam/Vi-tinh/Kinh-nghiem/2003/02/3B9C4C01/