6 Replies Latest reply: May 23, 2011 10:58 AM by Hussein Sawwan-Oracle RSS

    setting hostname,domainname and static IP address

    RushiShah
      Hi,

      I have an issue regarding hostname and domainname on Oracle Linux 5.4.

      I followed the steps given on this link for Oracle Linux 5.4 installation.

      http://www.oracle-base.com/articles/linux/OracleEnterpriseLinux5Installation.php

      As per the snapshots and guidelines given on this link,I should have been asked to configure network interface.
      But It didn't show me the screens shown in steps 16,17 and 18 where I could have entered hostname,domainname,IP etc.

      And when I checked after installation,it showed me

      hostname
      localhost.localdomain

      and

      domainname
      (none)

      That's because it took DHCP network configuration automatically(Correct me if i am wrong!!).
      Although I am going to turn it's currnet DHCP assigneed IP into static IP.

      Now,as I am going to have to install Oracle E-Business suite on this platform,I must have hostname,domainname and IP set properly.

      Please guide me how I can set these three things(hostname,domainname and IP) permenantly.
      Also should I turn its current DHCP IP into static IP before changing hostname and domainname or after it?

      Thanks,
      Rushi

      Edited by: Rushi Shah on May 21, 2011 7:43 PM
        • 1. Re: setting hostname,domainname and static IP address
          User13551818-Oracle
          login as root

          and enter setup >> select eth0 >> enter i/p and dns details and save and exit and then restart network


          steps
          ====

          1) setp
          2) enter i/p and dns details
          3)save & exit
          4)service network restart



          2)settipng up hostname & ipconfig

          steps
          -----

          1) vi /etc/hosts


          add entry


          ipaddreddss hostname.domain name hostname


          save & exit

          ex:

          192.168.0.12 apps.oracle.com apps



          2) service network restart

          3) chk hostname -i (ip address)

          hostname -a (hostname)

          hostname -d (domain)


          crosscheck all the values & if its ok..


          Thanks
          reddy
          http://11iapps.wordpress.com

          Edited by: user13551818 on May 21, 2011 8:03 PM

          Edited by: user13551818 on May 21, 2011 8:04 PM
          • 2. Re: setting hostname,domainname and static IP address
            Hussein Sawwan-Oracle
            That's because it took DHCP network configuration automatically(Correct me if i am wrong!!).
            Correct.
            Please guide me how I can set these three things(hostname,domainname and IP) permenantly.
            Please check the steps above, it should be helpful.
            Also should I turn its current DHCP IP into static IP before changing hostname and domainname or after it?
            It does not matter, just make sure you have configured static IP Address and you have proper entry in the hosts file.

            Thanks,
            Hussein
            • 3. Re: setting hostname,domainname and static IP address
              RushiShah
              Like I mentioned in my first post of this thread,the screens where I would have entered these details did not appear.

              So,will making changes to /etc/hosts and /etc/sysconfig/network files only be equivalent to supplying hostname,domainname and IP information during installation?(I am a bit too concerned about this thing because I don't want it to create any issues during or after Oracle EBS 12.1.1 installation)

              Thanks,
              Rushi
              • 4. Re: setting hostname,domainname and static IP address
                Hussein Sawwan-Oracle
                So,will making changes to /etc/hosts and /etc/sysconfig/network files only be equivalent to supplying hostname,domainname and IP information during installation?
                You will have to set up a static IP Address as mentioned above (Setup > eth0 > edit an enter the IP Address).

                Thanks,
                Hussein
                • 5. Re: setting hostname,domainname and static IP address
                  RushiShah
                  Do I need to make changes to /etc/sysconfig/network-scripts/ifcfg-eth0 file?
                  Currently it is showing

                  BOOTPROTO=dhcp
                  ONBOOT=yes

                  Thanks,
                  Rushi
                  • 6. Re: setting hostname,domainname and static IP address
                    Hussein Sawwan-Oracle
                    Rushi Shah wrote:
                    Do I need to make changes to /etc/sysconfig/network-scripts/ifcfg-eth0 file?
                    Currently it is showing

                    BOOTPROTO=dhcp
                    ONBOOT=yes
                    If you change it from the front end, then it is not required. However, please see the values in (Figure 3-1) in this link for the values you should have -- http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch03_:_Linux_Networking

                    Thanks,
                    Hussein