Close Menu
  • Home
  • Questions
Facebook X (Twitter) Instagram
LinuxTutorials.netLinuxTutorials.net
  • Home
  • Debian
  • Ubuntu
  • CentOS
    • Commands
  • Questions
LinuxTutorials.netLinuxTutorials.net
Debian

How to Assign IP Addresses On-Fly on Debian Based Linux Distributions

December 26, 2018Updated:April 29, 2019No Comments

This article will guide you on how you can manipulate IP Addresses and routes using the Command Line on Debian-based Linux Distributions, especially on systems without and Graphical User Interface. The standard commands used to manage network configurations on almost every Linux system are: ifconfig, ip and route. While this commands are used to change network settings on-fly, with instant effect over network interfaces, their modifications are not permanent and can’t survive after a system reboot or an interface reset. In order to make the network settings permanent you must manually edit the interfaces file /etc/network/interfaces and use the static method on the interface you want to assign a static IP Address.

PART ONE – Assign IP Settings On-Fly

– List Network Interfaces

In order to temporary and instantly change network settings (IP, Netmask, Gateway) first you must issue one of the following commands to get a list of all your network interfaces:

[simterm]ifconfig -a
ip link show[/simterm]

sudo ifconfig eth0 192.168.1.50 netmask 255.255.255.0 brodcast 192.168.1.255
Share. Facebook Twitter Tumblr Email Telegram
Previous ArticleInstall Ubuntu 18.10 Server with Custom Partition Layout using LVM on UEFI Systems
Next Article How to Install CentOS 7.6 in VMware Workstation 15 Pro – LinuxTutorials

Related Posts

Debian

How to Install Discourse on Debian 9-10 and Configuration SMTP

May 12, 2020
Debian

How to Assign IP Addresses On-Fly on Debian Based Linux Distributions

May 17, 2019
Debian

Configure Permanent Static IP Address and Alias Interfaces on Debian-based Systems

May 17, 2019
Subscribe
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Ubuntu Server 24.04 Image for VirtualBox (Download & Import)

March 14, 2025

Download and Install Packet Tracer 8.2.2 on Ubuntu (Linux)

May 31, 2024

How to Install PHPMyAdmin latest version 5.2.0 on Ubuntu 22.04 (LEMP Stack)

September 13, 2022

Create New User with sudo Privileges on Ubuntu 22.04/Debian

September 12, 2022
Facebook X (Twitter) Instagram Pinterest
  • Questions
© 2025 LinuxTutorials.net

Type above and press Enter to search. Press Esc to cancel.

wpDiscuz