Saturday, February 16, 2013

Perintah Dasar DOS


Getmac – Menampilkan MAC (Media Access Control) address pada semua network adapter
C:\>getmac
Physical Address Transport Name 
=========================================
 
00-2B-24-16-78-1B \Device\Tcpip_{F538F4D5-AAD4-45B6-A09F-3B9D96AE3A01}
 
00-17-7E-41-55-D5 Media disconnected
2. Hostname – Menampilkan Nama Mesin (Computer) pada Jaringan
C:\>hostname
belajarpc
3. Ipconfig – Menampilkan IP address, Subnet Mask dan Gateway pada semua network adapter yang terkoneksi melalui TCP/IP Protokol, melepaskan dan meminta IP address dari DHCP, mendaftarkan DNS ke DNS server
C:\>ipconfig
Windows IP Configuration
Ethernet adapter Wireless Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : 
IP Address. . . . . . . . . . . . : 10.28.7.14
 
Subnet Mask . . . . . . . . . . . : 255.255.255.224
 
Default Gateway . . . . . . . . . : 10.28.7.1
4. Nslookup – Menampilkan informasi yang diambil dari NIS (Network Information Service), termasuk didalamnya map entries, domain dan nama server
C:\>nslookup
Default Server: nsjkt1.telkom.net.id 
Address: 202.134.0.155
5. Net – Digunakan untuk update, memperbaiki, atau melihat informasi dalam Jaringan
C:\>net user
User accounts for \\IRONMAN
——————————————————————————- 
Administrator Guest HelpAssistant
 
Oki Helfiska SUPPORT_388945a0
 
The command completed successfully.
Informasi yang bisa dilihat : 
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START |
 STATISTICS | STOP | TIME | USE | USER | VIEW ]
6. Netstat – Menampilkan aktivitas koneksi dalam jaringan dan protokol yang digunakan beserta nomor port-nya.
C:\>netstat
Active Connections
Proto Local Address Foreign Address State 
TCP belajarpc:1812 galaxy.lunarpages.com:http CLOSE_WAIT
 
TCP belajarpc:1116 localhost:1117 ESTABLISHED
 
TCP belajarpc:1117 localhost:1116 ESTABLISHED
 
TCP belajarpc:1118 localhost:1119 ESTABLISHED
 
TCP belajarpc:1119 localhost:1118 ESTABLISHED
7. Netsh – Melihat dan merubah konfigurasi jaringan (seperti Remote Login menggunakan SSH)
C:\>netsh -r 202.134.0.155
WARNING: Could not obtain host information from machine: [202.134.0.155]. Some commands may not be available. 
The RPC server is unavailable.
[202.134.0.155] netsh>
8. Pathping – Merupakan Perintah Kombinasi antara traceroute dan ping.
C:\>pathping 10.28.7.14
Tracing route to belajarpc [10.28.7.14] 
over a maximum of 30 hops:
 
0 belajarpc [10.28.7.14]
 
1 belajarpc [10.28.7.14]
Computing statistics for 25 seconds… 
Source to Here This Node/Link
 
Hop RTT Lost/Sent = Pct Lost/Sent = Pct Address
 
0 belajarpc [10.28.7.14]
 
0/ 100 = 0% |
 
1 0ms 0/ 100 = 0% 0/ 100 = 0% belajarpc [10.28.7.14]
Trace complete.
9. Nbtstat – Menampilkan statistik protocol koneksi terakhir dari TCP/IP menggunakan NetBIOS melalui TCP/IP.
C:\>nbtstat -A 10.28.7.14
Wireless Network Connection: 
Node IpAddress: [0.0.0.0] Scope Id: []
Host not found.
Local Area Connection: 
Node IpAddress: [10.28.7.14] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status 
——————————————— 
 
BELAJARPC <00> UNIQUE Registered 
 
BELAJARPC <20> UNIQUE Registered
 
TVE <00> GROUP Registered
 
TVE <1E> GROUP Registered
 
TVE <1D> UNIQUE Registered
 
..__MSBROWSE__.<01> GROUP Registered
MAC Address = 00-2B-24-26-78-6B
10. Ping – Aplikasi yang digunakan untuk mengirimkan paket data yang berfungsi memeriksa link kualitas atau status koneksi dengan komputer lain
C:\>ping 202.134.0.155
Pinging 202.134.0.155 with 32 bytes of data:
Reply from 202.134.0.155: bytes=32 time=141ms TTL=43 
Reply from 202.134.0.155: bytes=32 time=153ms TTL=14
 
Reply from 202.134.0.155: bytes=32 time=96ms TTL=56
 
Reply from 202.134.0.155: bytes=32 time=162ms TTL=20
Ping statistics for 202.134.0.155: 
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
 
Approximate round trip times in milli-seconds:
 
Minimum = 96ms, Maximum = 162ms, Average = 138ms
11. Route – Menambah, menghapus dan merubah tabel routing komputer
C:\>route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
12. Tracert – Menampilkan banyaknya lompatan hubungan komputer kita dengan komputer tujuan, dalam arti kata berapa langkah komputer yang digunakan untuk mencapai komputer tujuan.
C:\>tracert 202.134.0.155
Tracing route to nsjkt1.telkom.net.id [202.134.0.155] 
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 10.28.7.1 
2 28 ms 28 ms 27 ms 123.98.200.89
 
3 57 ms 79 ms 63 ms 222.124.0.125
 
4 80 ms 76 ms 98 ms 222.124.0.126
 
5 68 ms 63 ms 62 ms nsjkt1.telkom.net.id [202.134.0.155]
Trace complete.

No comments:
Write comments