Computer NetworksNETWORKS

How to Use 'ip' Command in Linux [9+ Practical Examples] | LinuxSimply

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

Want to display and manipulate routing tables, network interfaces, and devices? Look no further! In this latest tutorial on Linux commands, I will discuss the basics of ip command in Linux and explain the ip command with 9+ practical examples to elevate your Linux networking level.

The ip command in Linux allows users to display as well as manipulate routing tables, network interfaces, and devices. Moreover, you can extract various network information and configure network interfaces using this command. In addition to other applications, you can also assign new ip addresses using this command.

💡 Key Topics Covered:
1. Understanding the syntax and options of the ip command.
2. Display all IP addresses with the ip command.
3. Display all network interfaces with the ip show
4. Filtering IP addresses with the ip command
5. Adding/removing ip address to/from an interface
6. Altering status of network interfaces
7. Altering routing table using the ip command

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

examples
📜⯆ Content Index
0:00 Introduction
0:17 What is ip Command?
1:17 Example 1: Displaying All IP Addresses Available on the System
1:36 Example 2: Displaying All Network Interfaces Available on the System Using the “ip” Command
1:51 Example 3: Displaying Information of a Specified Interface Using the “ip” Command in Linux
2:08 Example 4: Filtering IP Address Using the “ip” Command in Linux
2:38 Example 5: Adding IP Address to an Interface Using the “ip” Command in Linux
3:36 Example 6: Removing IP Address from an Interface Using the “ip” Command in Linux
4:26 Example 7: Altering Status of Network Interfaces Using the “ip” Command in Linux
5:38 Example 8: Displaying Routing Table Using the “ip” Command in Linux
5:58 Example 9: Altering Routing Table Using the “ip” Command in Linux

Instructor Details
Shahriar Abrar Rafid

Editor Details
Sadia Rahman

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

📝⯆ Commands Used
Example-1: Display All IP Addresses Available on the System
1. ip addr

Example 2: Display All Network Interfaces Available on the System
1. ip link show

Example-3: Display Information of a Specified Interface
1. ip link show ens33

Example-4: Filter IP Address
Case A: Display Only IPv4 Addresses
1. ip -4 addr
Case B: Display Only IPv6 Addresses
1. ip -6 addr

Example-5: Add IP Address to an Interface
1. sudo ip address add 192.168.48.200/24 dev ens33
2. ip addr

Example-6: Remove IP Address from an Interface
1. sudo ip address del 192.168.48.200/24 dev ens33
2. ip addr

Example 7: Alter Status of Network Interfaces
Case A: Bring an Interface Up
1. sudo ip link set dev ens33 up
2. ip link show dev ens33
Case B: Bring an Interface Down
1. sudo ip link set dev ens33 down
2. ip link show dev ens33

Example 8: Display Routing Table
1. ip route

Example 9: Alter Routing Table
Case A: Add New Route to the Routing Table
1. sudo ip route add 192.168.48.0/24 dev ens33
2. ip route
Case B: Delete Route from the Routing Table
1. sudo ip route del 192.168.48.0/24 dev ens33
2. ip route
—————————————————————————————–

👉 Follow Us
Facebook: https://web.facebook.com/softeko.linuxsimply/
Twitter: https://twitter.com/LinuxSimply
LinkedIn: https://www.linkedin.com/company/linuxsimply/
Tiktok: https://www.tiktok.com/@linuxsimply

#linux
#ubuntu
#linuxsimply
#linuxtutorial
#network
#command
#terminal

source

ip address

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.