• Arun Kumar

Change Linux Hostname and IP Address

Sometimes you might want to change the Linux 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

hostnamectl

To change the hostname, give new hostname in the single quotes

hostnamectl set-hostname 'dev.dbagenesis.com'

Verify new hostname change

hostnamectl

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

Done!


346 views

Recent Posts

See All

Oracle 19c Installation on Linux

Oracle 19c adds more features to Oracle database and this article demonstrates Oracle 19c installation on Linux 7. We will be using Oracle Linux 7 and Oracle Database 19.3 softwares for this activity.

Basic Linux Commands

This article describes basic Linux commands that you must know as a system or database administrator. Below commands in Linux help you manage any Linux server fast and smoothly. Linux Command List Che

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