> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/internal-and-external-network-sec/privilege-escalation/windows/essential-commands/network-managment.md).

# Network Managment

### `ipconfig` – Display IP Configuration

Displays basic network interface information.

**Syntax:**

```cmd
ipconfig
```

**Examples:**

* Show IP address, subnet, and gateway

  ```cmd
  ipconfig
  ```
* Show detailed network configuration (MAC, DHCP, DNS, etc.)

  ```cmd
  ipconfig /all
  ```

***

### `ping` – Test Connectivity

Sends ICMP Echo Requests to test network connectivity.

**Syntax:**

```cmd
ping <target>
```

**Example:**

* Ping a specific IP address

  ```cmd
  ping 192.168.1.1
  ```

***

### `tracert` – Trace Route

Traces the route packets take to a network host.

**Syntax:**

```cmd
tracert <destination>
```

**Example:**

* Trace route to Google's DNS server

  ```cmd
  tracert 8.8.8.8
  ```

***

### `netstat` – Network Statistics

Displays active connections and listening ports.

**Syntax:**

```cmd
netstat [options]
```

**Examples:**

* Show all active connections and listening ports

  ```cmd
  netstat -a
  ```
* Show only TCP connections

  ```cmd
  netstat -a -p TCP
  ```
* Show executables associated with ports

  ```cmd
  netstat -ab
  ```
