SSH ip command

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

cPanel Hosting from WebhostFace

Display all network interfaces and their assigned IP addresses with SSH

ip a

Switching between IPv4 and IPv6 using SSH

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 with SSH ip command

ip a del IP dev INTERFACE
ip a del 1.1.1.1 dev eth0

Master the basic SSH commands with examples on a Private Dedicated Server or an SSD VPS machine. Get an SSH Shared Hosting account with 40% OFF the regular price now!