Utility |
Function |
CONFIG |
Novell -
IP Stack configuration viewing. |
IFCONFIG |
Unix - IP
Stack configuration viewing. |
WINIPFCG |
WIN95/98
- IP Stack configuration viewing. |
IPCONFIG |
NT/2000 -
IP Stack configuration viewing. |
PING |
End to
End connectivity test; uses ICMP echo packets. |
TRACERT |
Used to
find bottlenecks based on the number of hops. |
NETSTAT |
Used to
see listening ports |
NBTSTAT |
Reports
statistics and connections for NetBIOS over TCP/IP. |
ARP |
Used to
view current ARP Cache. |
NSLOOKUP |
Queries a
name server and finds out which name resolves to which IP address. |
Switches to use with common TCP/IP utilities:
ARP
Used to gather hardware addresses of local hosts and the default
gateway, you can view the ARP cache and check for invalid or duplicate entries.
- Command Syntax
- arp -a [inet_addr] [-N [if_addr]]
- arp -d inet_addr [if_addr]
- arp -s inet_addr ether_addr [if_addr]
- Command Switches
- -a or -g: displays the current contents of the arp
cache.
- –d: deletes the entry specified by inet_addr.
- –s: adds a static entry to the cache, mapping an IP address
to a physical address.
- –N: displays the arp entries for the specified physical
address.
- inet_addr: IP address, written in dotted decimal format.
- if_addr: IP address of the NIC whose cache should be modified,
if no IP address, the first NIC is used
- ether_addr: the physical address in hex separated by hyphens
Telnet
This is a terminal emulation program that will allow you to run
interactive commands on the telnet server. Until a connection is established, no
data will pass and if the connection should break telnet will inform you. Good
for testing login configuration parameters to a remote host.
NBTSTAT
Reports statistics and connections for NetBIOS over TCP/IP. Used
for DNS and WINS name resolution, local cache lookup, and referral to LMHOSTS
and HOSTS files. Troubleshoots name-to-address mappings.
- Command Syntax
- Nbtstat [-a remotename] [ -A IPaddress] [-c]
[-n] [-R] [-r] [-S] [-s] [interval]
- Command Switches
- -a remotename: lists the remote computer's name table by the
remote computer's name.
- -A IP address: lists the remote computer's name table by the
remote computer's IP address.
- –c: lists the contents of the name cache, mapping each IP
address to a name.
- –n: lists local NetBIOS names.
- –R: if LMHOSTS lookup is enabled, then it will purge the name
cache and reload it from the LMHOSTS file.
- –r: lists name-resolution statistics for Windows networking.
- -S - displays workstation and server sessions, listing hosts by
IP address.
- –s: displays workstation and server sessions, attempting to
list hosts by name.
- interval: the number of seconds between refreshes of
statistics.
Tracert
Used to determine the route a packet took to reach its
destination.
- Command Syntax
- Tracert [-d] [-h maximum_hops] [-j host-list]
[-w timeout] target_name
- Command Switches
- –d: specifies that IP addresses should not be resolved to
host name.
- -h maximum_hops - can only search up to the specified number of
hops.
- -j host-list: specifies the loose source route.
- -w timeout: waits the number of
milliseconds specified by timeout for each reply.