How To Rename The Host and Change IP address
How To Rename The Host and Change IP address
Sometimes host has to be renamed or IP address has to be changed. Please follow these steps.
Change the name under
[root@xxxxxx root]# more /etc/sysconfig/network-scripts/ifcfg-vswif0
DEVICE=vswif0
MACADDR=00:50:56:4f:65:19
PORTGROUP="Service Console"
BOOTPROTO=static
BROADCAST=xx.xx.xx.255
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.0
ONBOOT=yes
[root@xxxx root]# more /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=<Full DNS Name>
GATEWAY=XX.XX.XX.XX
GATEWAYDEV=vswif0
3. [root@xxxxxx root]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
xx.xx.xx.xx %FQDN Name of the host% %NetBIOS name%
Best would be reboot the host.
About Roy
Comments