×

This article covers the different ways of assigning a static IP on your Debian 11 system which could either be via GUI or the terminal. In fact, DHCP or Dynamic Host Control Protocol dynamically assigns an IP address to an interface. It requires a DHCP server running in the network. In the static IP assignment, we manually assign the IP address, routing gateway, and DNS resolvers. Static IP assignment gives to more control on assigning an IP address and setting the DNS resolvers.



This article covers the different ways you can easily find out the interface link speed of any specific interface in Linux Mint 20. IP command is similar to ifconfig, which is used for assigning Static IP Address, Route & Default Gateway, and so on.

Also the ethtool command is used to query or control network driver and hardware settings:

# ethtool eth0



This article covers how to assign multiple IP addresses to a single interface in Mint OS. By following our guide carefully, you can either assign the IP address temporarily or permanently to your network interface.

NIC stands for network interface controller or network interface (controller) card. WNIC is wireless network interface controller or wireless network interface (controller) card. IP Addresses belong to network interfaces, not to the computer itself.


To Restart network service using command:

# systemctl restart network

To Verify the new IP address using command:

# ip addr


How configure multiple IP address in CentOS ?

Now, in order to add additional IP addresses you'll need to edit the configuration file (from hereon called “config file”) for this specific interface. On CentOS 7, the interface config files are located in /etc/sysconfig/network-scripts/ and they are all prefixed with ifcfg-.


How remove secondary IP address Linux?

To add or remove additional IP adresses and keep the configuration persistent, we need to Edit the corresponding /etc/sysconfig/network-scripts/ifcfg-eth[x] configuration file and add/remove as many additional IPADDR[n] and PREFIX[n] entries as additional IP addresses are required.


To configure a static IP address on CentOS  / RHEL :

1. Create a file named /etc/sysconfig/network-scripts/ifcfg-eth0 as follows:

DEVICE=eth0.

BOOTPROTO=none.

ONBOOT=yes.

PREFIX=24.

IPADDR=your_ip_address

2. Restart network service: systemctl restart network.


How do I login as a different user in Linux?

To change to a different user and create a session as if the other user had logged in from a command prompt, type "su -" followed by a space and the target user's username. Type the target user's password when prompted.


What is Nmcli in Linux?

nmcli is a command-line tool which is used for controlling NetworkManager. nmcli commnad can also be used to display network device status, create, edit, activate/deactivate, and delete network connections. Typical Uses: Scripts: Instead of manually managing the network connections it utilize NetworkMaager via nmcli.


Difference between the output of ifconfig and ipconfig:

Functionality: The ipconfig command displays all the currently connected network interfaces whether they are active or not. 

On the other hand, the ifconfig command displays only the enabled network interfaces that are connected to the system.



This article will guide you on the how to set up a static IP configuration in #Debian 10. Using either the command line or #GUI method, you can easily configure the static IP address on your system.

The ifconfig utility is used to change the IP address of a network interface.

To change your #IP address on #Linux, use the “ifconfig” command followed by the name of your network interface and the new IP address to be changed on your computer. 

To assign the subnet #mask, you can either add a “netmask” clause followed by the subnet mask or use the CIDR notation directly.

To Configure static IP address on Ubuntu 16.04 LTS Server:

1. Edit the /network/interfaces file. sudo nano /etc/network/interfaces.

2. Restart the networking service (or reboot) Once you are confident the change has been made, and if you don't want to reboot you can just restart the networking service.

To Display Available Network Interfaces in Linux:

i. ip #command – It is used to show or manipulate routing, devices, policy routing and tunnels.

ii. #netstat command – It is used to display network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.

iii. #ifconfig command – It is used to display or configure a network interface.



Here, you will learn how to install and configure a DNS Server on CentOS 8 machine.



This article will guide you on how to configure a Static IP address on CentOS 8.




More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com