Commands Flashcards
Ipconfig
- Displays the current configuration of the installed IP stack on a networked computer using TCP/IP
- The /all switch can be used to view additional details about each adapter.
- Can be used to refresh Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings.
IPconfig /all
• Shows everything on a network such as network cards.
MAC addresses
IPconfig /?
Help screen for IPconfig
IPconfig /Release
Refreshes IP.
IPconfig /renew
Renews the IP
Flush dns
Clears DNS cache
Ping
• Verifies IP- Level connectivity to another TCP/IP device by sending Internet Control Message Protocol (ICMP) Echo Request messages.
• A number of switches can accommodate different testing scenarios.
• Can be used to test IPv4 and IPv6 connectivity.
• Used to test network connectivity.
-t
Tracert (Trace route)
• Determines the path taken to a destination by sending Internet Control Message Protocol (ICMP) Echo request messages to the destination with incrementally increasing Time to Live (TTL) field values.
• Used to “trace” a network path from sending to receiving device.
Useful if the local device is testing ok but connectivity can’t be established.
Nbtstat
• Displays NetBIOS over TCP/IP (NetBT) protocol statistics for the local and remote computers, NetBIOs name tables for both the local computers and the remote computers and the NetBIOS name cache.
• NetBIOS was developed to communicate over a network using the session layer of the OSI model.
• NetBIOS establishes logical names on the network, establishes sessions between two logical names on the network, and supports reliable data transfer between computers that have established a session.
NetBIOS over TCP/IP sends the NetBIOS protocol within TCP and UDP sessions.
PathPing
• A command-line route tracing tool that combines features of the tools Ping and TraceRt that includes additional information.
• PathPing sends packets to each router on the way to a final destination over a period of time, and then computers results based on the packets returned from each hop.
PathPing can show the degree of the packets loss at any specified router link enabling you to pinpoint links that might be causing network problems.
Nslookup
• Displays information that you may use can use diagnose Domain Name System (DNS)
The Nslookup command-line tool is available only if you have installed the TCP/IP protocol.
Netsh (Net Shell)
• A command-line scripting utility that enables you to display or modify the network configuration of a computer currently running.
• Command works on a local or remote computers
• Provides a scripting feature that allows to run a group of commands in batch mode against a specified computer.
Enables you to save a configuration script in a text file for archival purposes or help you configure other servers.
Net Start/ Stop
• Used to stop and start the network service of a machine.
Used for stopping and starting services.
Route
• Displays and modifies the entries in the local IP routing table
• The route Print command can be used to display routing table for a Windows machine
○ This command gives the same result as netstat -r, but is more commonly used
The route command can also be used to add and delete static routers.
FTP
• FTP stands for file transfer protocol. It is an application layer protocol as well as an application.
• Not a secure connection.
Port number 20 and 21