IP address is used for communication between computers in the network. It has to be unique within the network and is assigned to each network interface in a computer that participates in a network.

You can get the IP address and other network information such as default gateway, subnet mask, DHCP and DNS information, and if the network interface is physically connected to the switch from the command prompt.

Steps to get IP address and other network information on Windows 11:

  1. Launch command prompt from the search bar.
  2. Run ipconfig command to show basic network information of your system.

    C:\Users\mohds>ipconfig  Windows IP Configuration   Ethernet adapter Ethernet0:     Connection-specific DNS Suffix  . : localdomain    Link-local IPv6 Address . . . . . : fe80::ecb4:300c:413d:fbe4%7    IPv4 Address. . . . . . . . . . . : 192.168.111.189    Subnet Mask . . . . . . . . . . . : 255.255.255.0    Default Gateway . . . . . . . . . : 192.168.111.2  Ethernet adapter Bluetooth Network Connection:     Media State . . . . . . . . . . . : Media disconnected    Connection-specific DNS Suffix  . :

  3. Run ipconfig command with /all switch to show detailed network information of your system.

    C:\Users\mohds>ipconfig /all  Windows IP Configuration     Host Name . . . . . . . . . . . . : host    Primary Dns Suffix  . . . . . . . :    Node Type . . . . . . . . . . . . : Hybrid    IP Routing Enabled. . . . . . . . : No    WINS Proxy Enabled. . . . . . . . : No    DNS Suffix Search List. . . . . . : localdomain  Ethernet adapter Ethernet0:     Connection-specific DNS Suffix  . : localdomain    Description . . . . . . . . . . . : Intel(R) 82574L Gigabit Network Connection    Physical Address. . . . . . . . . : 00-0C-29-BB-AE-1D    DHCP Enabled. . . . . . . . . . . : Yes    Autoconfiguration Enabled . . . . : Yes    Link-local IPv6 Address . . . . . : fe80::ecb4:300c:413d:fbe4%7(Preferred)    IPv4 Address. . . . . . . . . . . : 192.168.111.189(Preferred)    Subnet Mask . . . . . . . . . . . : 255.255.255.0    Lease Obtained. . . . . . . . . . : Wednesday, October 20, 2021 5:08:58 PM    Lease Expires . . . . . . . . . . : Wednesday, October 20, 2021 5:38:58 PM    Default Gateway . . . . . . . . . : 192.168.111.2    DHCP Server . . . . . . . . . . . : 192.168.111.254    DHCPv6 IAID . . . . . . . . . . . : 100666409    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-29-02-67-F0-00-0C-29-BB-AE-1D    DNS Servers . . . . . . . . . . . : 192.168.111.2    Primary WINS Server . . . . . . . : 192.168.111.2    NetBIOS over Tcpip. . . . . . . . : Enabled  Ethernet adapter Bluetooth Network Connection:     Media State . . . . . . . . . . . : Media disconnected    Connection-specific DNS Suffix  . :    Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)    Physical Address. . . . . . . . . : F8-FF-C2-51-B8-74    DHCP Enabled. . . . . . . . . . . : Yes    Autoconfiguration Enabled . . . . : Yes