Changing Hostname Temporarly
Example: hostname newhostname.comChanging Hostname Permanently
Edit the file /etc/HOSTNAME and change the value in it, Save and exitTo avoid dns errors edit the file /etc/hosts and create a line as below
192.168.1.50 newhostname alias
Change ip with your server ip and newhostname and alias with anything you have setup
Changing/Setting main ip
Edit the file /etc/rc.d/rc.inet1.conf and change the value of IPADDR and NETMASKExample rc.inet1.conf file:
# Config information for eth0:
IPADDR[0]="33.74.27.5"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Default gateway IP address:
GATEWAY="33.74.27.1"
Adding more IPs
Execute below commands and Add them in /etc/rc.d/rc.local/sbin/ifconfig eth0:1 33.74.27.5
/sbin/ifconfig eth0:2 33.74.27.6
/sbin/ifconfig eth0:3 33.74.27.7