Saturday, February 18, 2012

TCP/IP Command မ်ား။

Networking အပိုင္းကိုေလ ့လာေနသူမ်ားအတြက္ အသံုးဝင္မည္ ့ Command မ်ားကို ေဖာ္ၿပေပးသြားပါမယ္။

ipconfig

မိမိ Network Adapter ရဲ ့IP Address ,Subnet Mask , Default Gateway ,DNS စသည္တို ့ကိုေဖာ္ၿပေပးပါတယ္။
ႈipconfig တြင္ေနာက္ထပ္ တြဲရိုက္ႏိုင္ေသာ Command မ်ားကို သိလိုပါက ipconfig /? ဟုရိုက္ႏိုင္ပါတယ္။

USAGE:
ipconfig [/? | /all | /renew [adapter] | /release
[adapter] |/flushdns | /displaydns |
/registerdns |/showclassid adapter |
/setclassid adapter [classid] ]


ping

ping သည္ destination နဲ ့ Host အၾကားၿပန္လည္ဆက္သြယ္မွဳရွိမရွိ သိရန္အသံုးၿပဳႏိုင္ပါတယ္။

ping 192.168.0.5 (or) ping www.google.com စသည္ၿဖင္ ့

C:\>ping 192.168.0.5
Pinging 192.168.0.5 with 32 bytes of data:
Reply from 192.168.0.5: bytes=32 time<1ms TTL=128 Reply from 192.168.0.5: bytes=32 time<1ms TTL=128 Reply from 192.168.0.5: bytes=32 time<1ms TTL=128 Reply from 192.168.0.5: bytes=32 time<1ms TTL=128 Ping statistics for 192.168.0.5: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms ေနာက္ထပ္ အသံုးၿပဳႏိုင္ေသာ ping command မ်ားမွာ .... ( cmd >>>> ping -? ဟုရိုက္ရပါမယ္။ )

Usage: ping [-t][-a][-n count][-l size][-f][-i TTL][-v TOS][-r
count][-s count][[-j host-list]|[-k host-list]][-w
timeout] target_name
Options:
-t Ping the specified host until stopped.To see
statistics and continue - type Control-Break;
type Control-C.
-a Resolve addresses to hostnames.
-n count Number of echo requests to send.
-l size Send buffer size.
-f Set Don't Fragment flag in packet.
-i TTL Time To Live.
-v TOS Type Of Service.
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.
-w timeout Timeout in milliseconds to wait for each
reply.

ping 127.0.0.1 ဟု ရိုက္ပါက မိမိ Local Network Adapter ကိုေကာင္းမေကာင္း ၿပန္စစ္ႏိုင္ပါတယ္။[/col

netstat

netstat သည္ မိမိစက္နဲ ့လာေရာက္ခ်ိတ္ဆက္ေနေသာ Connection မ်ားရဲ ့ IP Address (local) ႏွင့္ Foreign Address ႏွင့္ Port မ်ားကိုပါေဖာ္ၿပေပးပါတယ္။
netstat -a စသည္ၿဖင္ ့ရိုက္ႏိုင္ပါတယ္...ေနာက္ထပ္ Command မ်ားမွာ ...

• -a
• -e
• -r
• -s
• -n
• -p

netstat -e သည္ မိမိ Network Adapter သည္ data package ဘယ္ေလာက္ transfer လုပ္ၿပီး ဘယ္ေလာက္ received ၇ွိသည္ပါေဖာ္ၿပေပးသည္။
က်န္ Command မ်ားကိုလည္း မိမိ ဘာသာေလ ့လိုက္ရင္ netstat သည္ဘယ္ေလာက္ အေရးပါတဲ ့ Command ၿဖစ္တယ္ ဆိုတာသိပါလိမ့္ မယ္။

tracert

tracert သည္ Internet သို ့TCP/IP package ဘယ္ေလာက္ ထုတ္လြင့္ေနတာကိုၾကည့္ႏိုင္ပါတယ္...
tracert www.google.com ဟုရိုက္လိုက္တာနဲ ့ မိမိ ISP ရဲ ့ DNS ,IP ရယ္ Google ရဲ ့DNS , IP ရယ္ data package speed ကိုပါ ၁ ခါတည္းသိႏိုင္ပါတယ္။

arp

arp သည္လည္းေတာ္ေတာ္ အေရးပါတဲ့ command ဘဲၿဖစ္ပါတယ္...မိမိ စက္န ဲ့ Connect ၿဖစ္ေနတဲ ့ စက္ေတြရဲ ့ IP အၿပင္ MAC Address မ်ားကိုပါ ေဖာ္ၿပေပးႏိုင္ပါတယ္။
arp ႏွင္ ့ေအာက္ပါ command မ်ားကို တြဲရိုက္ၿခင္းၿဖင္ ့ arp ရဲ ့အသံုးဝင္ပံုကို သိႏိုင္မွာၿဖစ္ပါတယ္။

Displays and modifies the IP-to-Physical address translation
tables used by
address resolution protocol (ARP).
ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]
-a Displays current ARP entries by
interrogating the current protocol data.
If inet_addr is specified, the IP and
Physical addresses for only the specified
computer are displayed. If more than one
network interface uses ARP, entries for
each ARP table are displayed.
-g Same as -a.
inet_addr Specifies an internet address.
-N if_addr Displays the ARP entries for the network
interface specified by if_addr.
-d Deletes the host specified by inet_addr.
inet_addr may be wildcarded with * to
delete all hosts.
-s Adds the host and associates the Internet
address inet_addr with the Physical address
eth_addr. The Physical address is given as
6 hexadecimal bytes separated by hyphens.
The entry is permanent.
eth_addr Specifies a physical address.
if_addr If present, this specifies the Internet
address of the interface whose address
translation table should be modified. If
not present, the first applicable interface
will be used.
Example:
> arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a
static entry.
> arp -a .... Displays the arp table.

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Laundry Detergent Coupons