Linux ip command

If you wish to obtain information about your server’s IP on a Linux machine you can use the ip command. This is a very handy and useful command suitable for all beginner users. In this article, we will show you the basic usage of the Linux ip command.

Display all network interfaces and their assigned IP addresses

ip a

Switching between IPv4 and IPv6

ip -4 a
ip -6 a

Assign an IP address to an interface

ip a add IP dev INTERFACE
ip a add 1.1.1.1 dev eth0

Delete an IP address from an interface

ip a del IP dev INTERFACE
ip a del 1.1.1.1 dev eth0
  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...

Linux su command

The su command is most commonly used to switch to another user. You will then be able to run...

Linux wc command

If you’re interested in finding the word count or lines of a file in your Linux environment you...

Powered by WHMCompleteSolution