I am new to this forum and this is my first question :). Using Red hat Linux.I tried to find file which stores IP address based on different helps given in this forum but did not get success. Here is the system details:
-bash-3.2$ lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final
-bash-3.2$ pwd
/etc/sysconfig
-bash-3.2$ cd ..
-bash-3.2$ vi redhat-release
CentOS release 5.5 (Final)
Where is the file located in case of Red hat system?
I'm sure I understand what your asking. Well here is guess.
Have you looked at your /etc/hosts file? lets say your servers name is loki.
For example:
username@loki> more /etc/hosts
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost loki
255.255.255.255 broadcasthost
::1 localhost loki
fe80::1%lo0 localhost
10.0.0.21 loki
10.1.0.31 loki-2
10.1.0.41 loki-sc
In this example 10.0.0.21 is the normal ip address. The loki-2 is the loki server on anther network. loki-sc is the name and IP address for the remote console of the loki server. If you use DNS then this info will be on the DNS server.