• Contact
  • About Me
  • Privacy Policy
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
No Result
View All Result
DefenceDev
No Result
View All Result
ADVERTISEMENT
Home Linux Tutorials Networking

Linux Networking: ifconfig, Managing Network Interfaces on Ubuntu

neo by neo
May 27, 2025
in Networking
0
Linux Networking: ifconfig, Managing Network Interfaces on Ubuntu

Linux Networking: ifconfig, Managing Network Interfaces on Ubuntu

0
SHARES
11
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Linux Networking: Managing Network Interfaces on Ubuntu

Linux Networking: ifconfig, Managing Network Interfaces on Ubuntu – in this guide, we’ll dive into the basics of network management in Linux using the ifconfig command. This command allows you to configure, manage, and troubleshoot network interfaces on Ubuntu systems. Whether you’re setting up a static IP address, bringing network interfaces up or down, or monitoring network settings, ifconfig is a crucial tool in your networking toolbox. You’ll learn how to use it to manage network interfaces effectively, troubleshoot network issues, and gain a deeper understanding of Ubuntu’s networking functionalities. Let’s explore how to efficiently configure and monitor your network interfaces using ifconfig!

Using the ifconfig Command

The ifconfig command is part of the net-tools package, which may not be installed by default on newer distributions because it has been deprecated in favor of the ip command from the iproute2 package.

Install net-tools package

If you need to use ifconfig, you can install it using the following command:

sudo apt install net-tools -y

Displaying Interface Information

 To display the current configuration for all active interfaces, simply run:

ifconfig

Information about a specific interface:

ifconfig eth0

Enabling / Disabling Interfaces

 To enable an interface, you can use:

# Enable interface
ifconfig eth0 up

# Disable interface
ifconfig eth0 down

Configure IP for eth0 interface

To set IP Adress to the interface you can type:

ifconfig eth0 192.168.19.40 netmask 255.255.255.0

This change is not persistent across reboots!

ADVERTISEMENT

The IP address is applied temporarily, and the configuration will reset once the server restarts.

ADVERTISEMENT

To make the change persistent across reboots, modify the network configuration files. On newer versions of Ubuntu, use Netplan to configure static IPs, while older versions rely on the /etc/network/interfaces file.

Check the foolowing link to see how to configure static IP Address with netplan.

ADVERTISEMENT

defencedev.com

About The Author

neo

See author's posts

ADVERTISEMENT
Previous Post

Linux Networking: Add VLAN on Ubuntu with netplan

Next Post

Linux Networking: Add Multiple Network Gateways (Redundancy) on Ubuntu with netplan

neo

neo

Next Post
Linux Networking: Add Multiple Network Gateways (Redundancy) on Ubuntu with netplan

Linux Networking: Add Multiple Network Gateways (Redundancy) on Ubuntu with netplan

Follow Us

  • Trending
  • Comments
  • Latest
MikroTik: Export Configuration in Text File

MikroTik: Export Configuration in Text File

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Fortinet FortiGate: Static Route Configuration via GUI and CLI

Fortinet FortiGate Upgrade Path Tool

Fortinet FortiGate Upgrade Path Tool

Immich: Installation on Ubuntu 22.04

Immich: Installation on Ubuntu 22.04

NextCloud: Port Forwarding - Essential Ports for Smooth Functionality

NextCloud: Port Forwarding – Essential Ports for Smooth Functionality and Remote Access

Organizing and Managing Photos with Immich: Features I Use

Organizing and Managing Photos with Immich: Features I Use

Install Ubuntu 22.04 on Oracle VM Virtual Box

Install Ubuntu 22.04 on Oracle VM Virtual Box

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Linux Directories: cd (Change Directory), pwd (Print Working Directory), mkdir (Make Directory)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

Install SoftEther VPN Server on Ubuntu 24.04

Install SoftEther VPN Server on Ubuntu 24.04

Recent News

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

Install SoftEther VPN Server on Ubuntu 24.04

Install SoftEther VPN Server on Ubuntu 24.04

Timeshift on Linux: How to Create and Restore System Snapshots

Timeshift on Linux: How to Create and Restore System Snapshots

ADVERTISEMENT

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Browse by Category

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos

Recent News

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Nginx Proxy Manager on Raspberry Pi 4 with Docker (Ubuntu 22.04)

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

Install Docker on Raspberry Pi 4 with Ubuntu 22.04

  • Site Map
  • Privacy Policy
  • Facebook Page
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos

© 2025 defencedev.com - All rights reserved.