• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
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:

ADVERTISEMENT
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.

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.

ADVERTISEMENT

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

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

Related Posts

Linux Networking: Display Open Ports and Listening Services
Networking

Linux Networking: Display Open Ports and Listening Services

netstat example on Ubuntu
Networking

Linux Networking: netstat (Network Statistics) Examples on Linux

Linux Networking: route, Mastering Routing in Ubuntu
Networking

Linux Networking: route, Mastering Routing in Ubuntu

Linux Networking: ping, Troubleshooting Network Connectivity
Networking

Linux Networking: ping, Troubleshooting Network Connectivity

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

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

Linux Networking: Add VLAN on Ubuntu with netplan
Networking

Linux Networking: Add VLAN on Ubuntu with netplan

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

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

Recommended

Linux Files Operation: mv, rm, cp (Rename, Remove and Copy Files and Directories)

Linux Files Operation: mv, rm, cp (Rename, Remove and Copy Files and Directories)

Fortinet FortiGate: Equal Cost Multipath Routing (ECMP) Configuration

Fortinet FortiGate: Equal Cost Multipath Routing (ECMP) Configuration

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting

Raspberry Pi Monitoring with Monit: Docker, Temperature, Network & More

Raspberry Pi Monitoring with Monit: Docker, Temperature & More

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

Recent News

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications

FortiGate DDoS Protection: Configure DoS Policies to Secure Self-Hosted Applications

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting

Fortinet FortiGate Site-to-Site IPsec VPN Troubleshooting

  • 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.