Top 20 IP Address Interview Questions and Answers

Updated 1 Aug 2025

Q. What are IP address classes?

Ans.

IP address classes are a way of categorizing IP addresses based on their first octet.

  • There are five classes: A, B, C, D, and E.

  • Class A addresses start with a number between 1 and 126.

  • Class B addresses start with a number between 128 and 191.

  • Class C a...read more

Asked in Motadata

2d ago

Q. How do you check the IP address in Linux?

Ans.

To check IP in Linux, use the command 'ifconfig' or 'ip addr show'

  • Open the terminal and type 'ifconfig' or 'ip addr show'

  • Look for the IP address under the network interface section

  • Alternatively, use the command 'hostname -I' to display the IP address...read more

Asked in LTIMindtree

3d ago

Q. What is an IP address and a MAC address?

Ans.

An IP address identifies a device on a network, while a MAC address is a unique identifier for network interfaces.

  • IP Address: A numerical label assigned to each device connected to a computer network.

  • Example of IP Address: 192.168.1.1 (IPv4) or 2001:...read more

2d ago

Q. What is an IP address, and how is it defined by IP version?

Ans.

IP stands for Internet Protocol. It is a set of rules that governs the format of data sent over the internet.

  • IP is a unique address assigned to each device connected to a network.

  • There are two versions of IP - IPv4 and IPv6.

  • IPv4 uses a 32-bit address...read more

Are these interview questions helpful?

Asked in Singsys Pte

3d ago

Q. What are the ranges and classes of IP addresses?

Ans.

IP addresses are divided into classes A, B, C, D, and E. Each class has a range of IP addresses.

  • Class A: 1.0.0.0 to 126.0.0.0

  • Class B: 128.0.0.0 to 191.255.0.0

  • Class C: 192.0.0.0 to 223.255.255.0

  • Class D: 224.0.0.0 to 239.255.255.255

  • Class E: 240.0.0.0 t...read more

Asked in Phenom

1d ago

Q. Given a string, print all valid IP addresses that can be formed from it.

Ans.

Print all valid IP Addresses from a given input of strings.

  • Split the input string into 4 parts and check if each part is a valid IP address component

  • Use regular expressions to validate each component

  • Use nested loops to generate all possible combinati...read more

Share interview questions and help millions of jobseekers 🌟
man with laptop

Asked in HARMAN

2d ago

Q. How do you check the IP address of a Windows machine?

Ans.

To check the IP of a Windows machine, you can use the command prompt or the network and sharing center.

  • Open Command Prompt and type 'ipconfig' to view the IP address of the machine.

  • Alternatively, go to Control Panel > Network and Sharing Center > Cha...read more

5d ago

Q. Tell me about IP addresses and their classification.

Ans.

IP addresses are unique numerical labels assigned to devices connected to a network, classified into different classes based on their range and purpose.

  • IP addresses are divided into classes based on the range of numbers they fall into, with Class A, ...read more

Asked in Bandhan Bank

5d ago

Q. How do you configure an IP address on a PC and change the hostname?

Ans.

To provide IP address on PC and change hostname, go to network settings and configure TCP/IP settings. To change hostname, go to system properties.

  • Open Control Panel and click on Network and Sharing Center

  • Click on Change adapter settings

  • Right-click o...read more

Asked in Dell

6d ago

Q. How do you check IP address and subnet mask?

Ans.

To check IP and subnet mask, use the ipconfig command on Windows or ifconfig command on Linux/Unix.

  • Open Command Prompt or Terminal

  • Type 'ipconfig' on Windows or 'ifconfig' on Linux/Unix

  • Look for 'IPv4 Address' and 'Subnet Mask' in the output

  • IPv4 Addres...read more

3d ago

Q. What is the difference between an IP address and a port number?

Ans.

IP address is a unique identifier for a device on a network, while a port number is used to identify specific processes or services on that device.

  • IP address is like a street address, while port number is like an apartment number

  • IP address is used fo...read more

4d ago

Q. What is the IP address range of class C?

Ans.

Class C IP address range is from 192.0.0.0 to 223.255.255.255.

  • Class C IP addresses start with 192.x.x.x to 223.x.x.x

  • The subnet mask for Class C is 255.255.255.0

  • Example: 192.168.1.1, 203.45.67.89

Q. What is the network ID for IP PHONE_NUMBER.0.23?

Ans.

The network id for ip 192.168.0.23 is 192.168.0.0.

  • Identify the subnet mask for the network

  • Perform a bitwise AND operation between the IP address and subnet mask

  • The result is the network id

Asked in FireCompass

1d ago

Q. How would you find the origin IP of a website?

Ans.

To find the origin IP of a website, you can use tools like ping, nslookup, or online IP lookup services.

  • Use the 'ping' command in the command prompt or terminal to get the IP address of the website.

  • Use 'nslookup' command to query DNS servers for the ...read more

3d ago

Q. mapping of ip with DNS

Ans.

Mapping of IP with DNS involves associating domain names with IP addresses for easier access on the internet.

  • DNS (Domain Name System) is a system that translates domain names to IP addresses.

  • IP addresses are unique identifiers assigned to devices con...read more

5d ago

Q. What steps do you take when an IP address is incorrect or there is no network connectivity?

Ans.

This issue could be caused by various factors such as incorrect IP configuration, network cable issues, or network adapter problems.

  • Check the IP configuration settings on the device

  • Ensure that the network cable is properly connected and not damaged

  • Ve...read more

6d ago

Q. IP and their types

Ans.

IP stands for Internet Protocol and refers to a set of rules governing the format of data packets sent over the internet.

  • IP is a fundamental protocol in the internet protocol suite.

  • There are two versions of IP: IPv4 and IPv6.

  • IPv4 addresses are 32-bit...read more

1d ago

Q. management ip and its purpose

Ans.

Management IP is used to remotely manage and monitor network devices.

  • Management IP is a unique IP address assigned to a network device for administrative purposes.

  • It allows system administrators to remotely access and configure the device.

  • Management ...read more

Asked in HCLTech

3d ago

Q. How many IP address classes are there?

Ans.

There are 5 classes of IP addresses: Class A, Class B, Class C, Class D, and Class E.

  • Class A: 1.0.0.0 to 126.0.0.0

  • Class B: 128.0.0.0 to 191.255.0.0

  • Class C: 192.0.0.0 to 223.255.255.0

  • Class D: 224.0.0.0 to 239.255.255.255

  • Class E: 240.0.0.0 to 255.255.2...read more

2d ago

Q. What is the difference between an IP and MAC address?

Ans.

IP address is used to identify a device on a network, while MAC address is a unique identifier assigned to network interfaces for communications at the data link layer.

  • IP address is a logical address assigned to a device to identify it on a network

  • MA...read more

Asked in Microland

2d ago

Q. What is an IP address, and what are the different versions?

Ans.

IP stands for Internet Protocol. It is a unique numerical address assigned to each device connected to a computer network.

  • IP is used to identify and locate devices on a network.

  • There are two versions of IP: IPv4 and IPv6.

  • IPv4 uses a 32-bit address an...read more

Asked in Tejas Networks and 2 others

2d ago

Q. What is an IP address and what are its classes?

Ans.

IP Address is a unique numerical label assigned to each device connected to a computer network.

  • IP Address stands for Internet Protocol Address.

  • There are five classes of IP Addresses: A, B, C, D, and E.

  • Each class has a different range of possible IP A...read more

Asked in Wipro

6d ago

Q. MAC, IP address difference

Ans.

MAC address is a hardware address assigned to network devices, while IP address is a logical address used for communication.

  • MAC address is a unique identifier assigned to network interfaces for communication at the data link layer.

  • IP address is a log...read more

Q. Explain IP Addresses and their classes.

Ans.

IP Address is a unique numerical label assigned to each device connected to a computer network.

  • IP Address is divided into classes: A, B, C, D, and E.

  • Class A addresses are used for large networks, with the first bit always set to 0.

  • Class B addresses a...read more

Asked in Alankit

5d ago

Q. Different classes about IP address

Ans.

Different classes of IP addresses

  • IP addresses are divided into classes based on their first octet

  • Class A addresses have a first octet range of 1-126

  • Class B addresses have a first octet range of 128-191

  • Class C addresses have a first octet range of 192...read more

Q. What are the different types of IP addresses, their classes, and their ranges?

Ans.

There are 3 types of IP addresses: IPv4, IPv6, and MAC. IPv4 has 4 classes: A, B, C, and D.

  • IPv4: 4 classes - A (1.0.0.0 to 126.0.0.0), B (128.0.0.0 to 191.255.0.0), C (192.0.1.0 to 223.255.255.0), D (224.0.0.0 to 239.255.255.255)

  • IPv6: 8 groups of 4 h...read more

Interview Experiences of Popular Companies

Wipro Logo
3.7
 • 6.2k Interviews
Cognizant Logo
3.7
 • 6k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
Tech Mahindra Logo
3.5
 • 4.2k Interviews
HCLTech Logo
3.5
 • 4.2k Interviews
IBM Logo
3.9
 • 2.5k Interviews
DXC Technology Logo
3.6
 • 846 Interviews
Movate Logo
3.2
 • 273 Interviews
CMS IT Services Logo
3.1
 • 146 Interviews
View all
Interview Tips & Stories
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
IP Address Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 Lakh+

Reviews

10L+

Interviews

4 Crore+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits