How to use ip command in Linux 2022

0

This tutorial is about using the ip command in Linux. We will do our best for you to understand this guide. I hope you will like this blog How to use the ip command in Linux. If your answer is yes, please share after reading this.

Check how to use ip command in Linux

In Linux, the ip command is found in the net-tools package, which is used to perform various network administration tasks. Internet Protocol is abbreviated as IP. This command displays or modifies routing, devices, and tunnels. It’s comparable to the ifconfig command, but it’s much more robust, with a lot more features and functionality. Ifconfig is one of the deprecated Linux network tools commands that has not been updated for a long time. The ip command can be used to do a variety of things, such as assigning an address to a network interface or changing network interface settings.

Configuring and updating default and static routing, configuring IP tunnels, listing IP addresses and ownership information, changing interface state, assigning, deleting, and configuring IP addresses and routes are just some of the other things you can do. .

How to do

Options:

  • -talk to : This option is used to display all associated IP addresses on all network devices. IP adress

    This will display information for all available interfaces in our system, but if we want to see information for a particular interface, add the display options followed by the name of the particular network interface.

    Show IP address (interface)

  • -Link: Used to display link-layer information, it finds the characteristics of currently available link-layer devices. Any network device that has a driver loaded can be classified as an available device. IP link

    This binding option, when used with the -s option, is used to display statistics for different network interfaces.

    ip-s link

    And, to get information about a particular network interface, add the show option followed by the name of the particular network interface.

    Show link ip -s (interface)

  • -road: This command helps you see the route packets your network will take as shown in your routing table. The first entry is the default path. IP route
  • -add: This is used to assign an IP address to an interface. ip a development interface add (ip_address)
  • -of: This is used to remove an IP address assigned to an interface. ip a del development interface (ip_address)
  • -above: This option enables a network interface. established ip link (interface) above
  • -below: This option disables a network interface. IP trunk set (interface) down
  • -display: This command can monitor and display the status of devices, addresses and routes continuously. ip monitor
  • -to help: This command is used to help you learn more about the ip command. help ip
  • -Neighbor: This command is used to display the MAC address of devices connected to your system. Neighbor’s IP
    • STABLE: This means that the neighbor is valid, but is probably no longer available, so the kernel will try to verify it on the first transmission.
    • ACCESSIBLE: This means that the neighbor is valid and reachable.
    • DELAY: This means that a packet has been sent to the stable neighbor and the kernel is waiting for confirmation.

    Editing Address Resolution Protocol (ARP) entries:

Final words: how to use the ip command in Linux

I hope you understand this article How to use the ip command in Linux, if your answer is no, you can ask anything via the contact forum section linked to this article. And if your answer is yes, share this article with your family and friends.

Share.

Comments are closed.