Overview – Configuring Network Interface Card (NIC)
A Network Interface Card (NIC) is a hardware component that enables a computer to connect to a network. It serves as the interface between the computer and the network, allowing the exchange of data over wired (Ethernet) or wireless (Wi-Fi) connections. Each NIC has a unique MAC (Media Access Control) address, which is used to identify the device on the network. NICs can be integrated into the motherboard or installed as expansion cards and are essential for network communication, handling the transmission and reception of data packets between the computer and the network.

Configuring Network Interface Card (NIC) on Major platforms like, Windows, Linux and MAC
Configuring a Network Interface Card (NIC) involves setting up network parameters like IP addresses, subnet masks, and possibly DNS server addresses, along with other specific settings such as duplex and speed on different operating systems. Here’s a guide on how to configure a NIC on major platforms: Windows, macOS, and Linux.
Windows – Configuring Network Interface Card (NIC)
- Access Network Settings
- Open Control Panel > All Control Panel Items > Network and Sharing Center. Click on Change adapter settings on the left.
- Right-click the network adapter you want to configure and select Properties.
2. Configure IPv4/IPv6
- Select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and click Properties.
- Here you can choose to obtain an IP address automatically or use a static IP address. For a static setup, enter the IP address, subnet mask, and default gateway.
- For DNS, you can also choose automatic or specify preferred and alternate DNS servers manually.


3. Advanced Configuration
- Click on the Advanced button under the IPv4 or IPv6 properties. Here you can set up the IP Settings for multiple IPs, add gateways, and configure advanced DNS settings.


For adjusting the NIC speed, duplex, or other features like VLAN tagging, close out of the Internet Protocol properties and click on the Configure button in the properties of the adapter. Switch to the Advanced tab, and you will find a list of properties such as Link Speed & Duplex, Wake on LAN, and others that can be configured.


macOS – Configuring Network Interface Card (NIC)
- Access Network Preferences
- Go to System Preferences > Network. Select the network interface on the left you wish to configure.
- Configure IP Address
- Click on the Configure IPv4 dropdown. Choose “Using DHCP” for automatic IP addressing or “Manually” for static IP configuration. If configuring manually, enter the IP address, subnet mask, and router (gateway).
- DNS and Other Settings
- Click on Advanced. Here you can set DNS servers, Search Domains, and under the Hardware tab, you can typically manage the MTU and, depending on the interface, possibly the duplex mode.
Linux (Command Line) – Configuring Network Interface Card (NIC)
- Identify Network Interface
- Open a terminal. Use ip link show or ifconfig (if installed) to identify your network interfaces.
- Configure IP Address using ip command
- To set a static IP, use:
sudo ip addr add 192.168.1.100/24 dev eth0
Replace 192.168.1.100/24 with your static IP address and subnet, and eth0 with your network interface name.
root@sanchit:~# sudo ip addr add 192.168.1.100/24 dev ens23
root@sanchit:~# ip add
7: ens23: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 9a:59:fe:30:5f:ed brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 scope global ens23
valid_lft forever preferred_lft forever
inet6 fe80::9859:feff:fe30:5fed/64 scope link
valid_lft forever preferred_lft forever
- Set Up Routing and DNS
- Add a default gateway using:
sudo ip route add default via 192.168.1.1
root@sanchit:~# sudo ip route add default via 192.168.1.1
root@sanchit:~# ip route
default via 192.168.1.1 dev ens23 proto static
192.168.1.0/24 dev ens23 proto kernel scope link src 192.168.1.100
- To set DNS, edit the /etc/resolv.conf file, adding nameserver entries:
nameserver 8.8.8.8 nameserver 8.8.4.4
root@sanchit:~# cat /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
nameserver 8.8.8.8
nameserver 8.8.4.4
options edns0 trust-ad
};
- Permanent Configuration
- On systems using NetworkManager, it’s often easier to use nmtui or nmcli for network configuration.
- For systems without NetworkManager, modify the network configuration scripts located in /etc/network/interfaces (Debian/Ubuntu) or /etc/sysconfig/network-scripts/ifcfg-eth0 (CentOS/RHEL).
These instructions cover the basic setup for each major operating system. Remember that administrative privileges are required to change network settings on all platforms. Additionally, for enterprise configurations involving VLANs, advanced routing, or security configurations, further detailed settings may be necessary.
Summary
A Network Interface Card (NIC) is a hardware component that allows a computer to connect to a network, either through wired or wireless connections. It facilitates the transmission and reception of data between the computer and the network, using a unique MAC address for identification. NICs are crucial for enabling network communication.
Useful Links
https://en.wikipedia.org/wiki/Network_interface_controller
https://sanchitgurukul.com/tutorials-cat
Configuring Network Interface Card (NIC) on Windows, macOS, and Linux: Step-by-Step Guide
This article provided insights on the topic. For latest updates and detailed guides, stay connected with Sanchit Gurukul.
