Windows Network Commands Flashcards
ARP?
Address Resolution protocol.
Displays and modifies the internet to ethernet address(MAC) translation tables used by arp.
what does “arp -s inet_addr eth_addr” does?
is used to add an entry to the ARP table
what does “arp -d inet_addr” does?
it deletes entries from the arp table.
what does “arp -a”
it displays current cache.
What is ipconfig?
command used to display IP address configuration parameters on a Windows PC.
what does “ipconfig /all” does?
give verbose information about the IP configurations.
what does “ipconfig /renew” does?
renew the DHCP lease for IP 4
what does “ipconfig /release” does?
release the lease of an IP address for IP 4
what does “ipconfig /renew6” does?
renew the DHCP lease for IP 6
what does “ipconfig /relese6” does?
release the lease of an IP address for IP 6
what does “ipconfig /flushdns” does?
purges the DNS resolver cache
what does “ipconfig /displaydns” does?
display the cache for DNS
what does “ipconfig /registerdns” does?
refresh all DHCP leases and re-registers DNS names
what does “ipconfig /setclassid” does?
modifies the dhcp clss id
What is nbtstat?
displays NetBIOS information for IP-based networks
what does “nbtstat -a” does?
allows you to see netbios based of a name
what does “nbtstat -A” does?
allows you to see netbios based of IP address
what does “nbtstat -c” does?
display the content of the netbios ache along with the IP address
what does “nbtstat -n” does?
displays the net bios names that have been registered by an application.
what does “nbtstat -r” does?
shows the statistical netbios information such as the number of netbios names resolved by boradcasting and the nubmer of netbios names resolved by the WINS server.
what does “nbtstat -R” does?
this commands purges all cache and reloads entries from PC LMHOST file.
what does “nbtstat -S” does?
this option provides a listing of the netbios session table, along with the IP addresses of the listed netbios names
what is netstat?
used to display various information about IP-based connections on a PC.
What does “netstat -a” does?
Displays all TCP & UDP connections and ports
What does “netstat -b” does?
displays the names of the programs that opened the connections.
What does “netstat -e” does?
This option shows statistical information for an interfaces IP traffic such as the number of bytes sent and received.
What does “netstat -f” does?
This option displays fully qualified domain names of destination addresses appearing in ta listing of active sessions.
What does “netstat -p” does?
displays connection based on protocol given.
What does “netstat -r” does?
displays the route table.
this is the same information from route print
What does “netstat -s” does?
Is statistical information.
nslookup
Is used to query domain name servers. it is used to resolve domain names to IP address.
ping
Used to check ip connectivity between two devices.
used ICMP which is a level 4 protocol.
What does ping -t “ does?
send pings until you hit control c
What does ping -n “ does?
the number of pings to send
What does ping -f “ does?
sets the don’t fragment bit in a packet header. If a packet tries to cross router that attempts to fragment the packet the packet is dropped and ICMP error message is returned.
What does ping -i “ does?
sets the TTL value in the packet header
What does ping -S “ does?
allows you to specify which IP to use.
route
Displays the current IP routing table. You could also add and delete from the table.
what does “route -f” does?
clears gateway entries from the routing table
what does “route -p” does
used with an app it will persist the reboot.
what are the commands for route
add
change
PRINT
DELETE
what is the formate of route command
route -f -p (command) [destination] [netmask] [gateway] [metric] [interface]
tracert
ping every router hop for the source to the destination and reports the round-trip time for each hop.
pathping
combines ping and tracers over period of time
what does “path ping -g” do?
Loose source route along host-list
what does “path ping -h” do?
maximum number of hops to search
what does “path ping -i” do?
specify the source address
what does “path ping -n” do?
do not resolve addresses to hostname
what does “path ping -p” do?
wait a period of time
what does “path ping -q” do?
number of queries per hop
what does “path ping -w” do?
wait timeout for each reply
what does “path ping -4” do?
force ipv4
what does “path ping -6” do?
force ipv6
netsh
allows you to add or modify the network configurations of a computer that is currently running.
hostname
get the current host name
getmac
get the mac address