HoganHost blog

[email protected]

How to check your server ip using SSH 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.

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

Leave a Comment

Your email address will not be published. Required fields are marked *