How to Use “ifconfig” Command in Linux [6+ Practical Examples] | LinuxSimply

Опубликовано: 04 Октябрь 2024
на канале: LinuxSimply
415
13

💡 Elevate your Linux skills with our latest course ‘Linux Fundamentals: A Complete Guide for Beginners’. Start learning today: https://www.udemy.com/course/linux-fu...

Want to configure the necessary kernel-resident network interfaces at the system boot? Look no further! In this latest tutorial on Linux commands, I will discuss the basics of ifconfig command in Linux and explain the command with 6+ practical examples to elevate your Linux networking interface level.

The ifconfig command in Linux stands for “Interface Configuration”. Basically, it’s used to configure a network interface. In addition to other applications, you can also assign an ip addresse to an interface using this command.

💡 Key Topics Covered:
1. Understanding the syntax and options of the ifconfig command.
2. Displaying short list and information of network interfaces with the ifconfig command.
3. Assigning IP address to an interface.
4. Altering status of network interfaces using the ifconfig command.
5. Setting MTU size with the ifconfig command.
6. Enabling/disabling promiscuous mode.

Don't miss out on this tutorial as I guide you through each example step-by-step and become a pro in Linux networking today! – Subscribe to the channel and click on the notification icon so you’ll never miss a lesson! Check out the articles for more insights on the ip command in Linux.👇

📜⯆ Content Index
0:00 Introduction
0:15 What is ifconfig Command?
1:30 Example 1: Displaying Information on All Network Interfaces Available on the System
1:49 Example 2: Displaying a Short List of Active Network Interfaces
2:06 Example 3: Assigning IP Address to an Interface
2:49 Example 4: Altering Status of Network Interfaces
3:51 Example 5: Setting MTU size of an Interface
4:17Example 6: Enabling/Disabling Promiscuous Mode

Instructor Details
Shahriar Abrar Rafid

Editor Details
Sadia Rahman

📚 ⯆ Read the Full Article
The “ifconfig” Command in Linux [9+ Practical Examples]
https://linuxsimply.com/ifconfig-comm...

📝⯆ Commands Used
Example 1: Displaying Information on All Network Interfaces Available on the System
a. ifconfig -a

Example 2: Displaying a Short List of Active Network Interfaces Using the “ifconfig” Command in Linux
a. ifconfig -s

Example 3: Assigning IP Address to an Interface Using the “ifconfig” Command in Linux
a. sudo ifconfig ens33 192.168.242.240
b. ifconfig ens33

Example 4: Altering Status of Network Interfaces Using the “ifconfig” Command in Linux
Case A: Bringing an Interface Up Using the “ifconfig” Command in Linux
a. sudo ifconfig ens33 up
b. ip link show dev ens33

Case B: Bringing an Interface Down Using the “ifconfig” Command in Linux
a. sudo ifconfig ens33 down
b. ip link show dev ens33

Example 5: Setting MTU size Using the “ifconfig” Command in Linux
a. sudo ifconfig ens33 mtu 500
b. ifconfig ens33

Example 6: Enabling/Disabling Promiscuous Mode Using the “ifconfig” Command in Linux
Case A: Enabling Promiscuous Mode Using the “ifconfig” Command in Linux
a. sudo ifconfig ens33 promisc
b. Ifconfig ens33

Case B: Disabling Promiscuous Mode Using the “ifconfig” Command in Linux
a. sudo ifconfig ens33 -promisc
b. Ifconfig ens33
----------------------------------------------------------------------------------------------------------------------

👉 Follow Us
Facebook:   / softeko.linuxsimply  
Twitter:   / linuxsimply  
LinkedIn:   / linuxsimply  
Tiktok:   / linuxsimply  

#linux
#ubuntu
#linuxsimply
#linuxtutorial
#ifconfig
#command