• Arun Kumar

Change Linux Hostname and IP Address

Sometimes you might want to change the hostname and IP address assigned to a Linux machine. In this article, we will be looking at Linux hostname and IP address change.

Change Linux Hostname

Check the current hostname on the server


Change the hostname. Give new hostname in the single quotes

hostnamectl set-hostname 'dev.dbagenesis.com'

Verify new hostname change


Change Linux IP Address

On a Linux minimal install, you can assign new IP address by editing /etc/sysconfig/network-scripts/ifcfg-eth3 file

vi /etc/sysconfig/network-scripts/ifcfg-eth3

--> change old ip to new ip
--> change old gateway to new gateway ip
--> save and close

Restart the network

service network restart



Recent Posts

See All

Important Linux Commands

This article describes important Linux commands that you must know as a system or database administrator. Check CPU Cores in Linux Use one of the below commands to find number of CPUs in Linux includi

Manage Linux Firewall with iptables and firewalld

In this article will be covering details regarding iptables and firewalld which helps in Linux firewall management. We will also be looking at how to enable specific ports (1521 for Oracle) inside ipt

Setup Passwordless Connectivity in Linux

Every time you ssh from one Linux server to another, you need to enter target server user's password. We can also setup password less ssh login between two Linux servers so that you don't have to ente

  • Facebook
  • Twitter
  • YouTube
  • Instagram

© 2020 by DBA Genesis