4 Replies Latest reply: Apr 8, 2013 6:59 AM by Billy~Verreynne RSS

    system config network error while parsing /etc/hosts

    Endeca
      I am configuring RAC on Oracle Linux,i have configured /etc/hosts on both nodes,when ever i opened network, its displaying error message.


      system config network error while parsing /etc/hosts
      wrong ip on line 25
      wrong ip on line 26
      wrong ip on line 27

      here is my host entries.

      node1
      ====
      [root@racnode1 ~]# cat /etc/hosts
      # Do not remove the following line, or various programs
      # that require network functionality will fail.
      127.0.0.1 localhost.localdomain localhost
      #::1 localhost6.localdomain6 localhost

      #####Public#####
      192.168.1.101 racnode1.reg.com racnode1
      192.168.1.102 racnode2.reg.com racnode2
      192.168.1.103 racnode3.reg.com racnode3
      192.168.1.104 racnode4.reg.com racnode4
      ####Private######
      10.10.1.1 racnode1-priv.reg.com racnode1-priv
      10.10.1.2 racnode2-priv.reg.com racnode2-priv
      10.10.1.3 racnode3-priv.reg.com racnode3-priv
      10.10.1.4 racnode4-priv.reg.com racnode4-priv
      #####Virtual#####
      192.168.1.201 racnode1-vip.reg.com racnode1-vip
      192.168.1.202 racnode2-vip.reg.com racnode2-vip
      192.168.1.203 racnode3-vip.reg.com racnode3-vip
      192.168.1.204 racnode4-vip.reg.com racnode4-vip
      #SCAN
      #192.168.1.301 racdb-scan.reg.com racdb-scan
      #SCAN
      192.168.1.301 racnode1-scan.reg.com racnode1-scan
      192.168.1.302 racnode2-scan.reg.com racnode2-scan
      192.168.1.303 racnode3-scan.reg.com racnode3-scan
      [root@racnode1 ~]# hostname
      racnode1.reg.com
      [root@racnode1 ~]#


      node2 host entries
      ===========

      [root@racnode2 ~]# cat /etc/hosts
      # Do not remove the following line, or various programs
      # that require network functionality will fail.
      127.0.0.1 localhost.localdomain localhost
      #::1 localhost6.localdomain6 localhost

      #####Public#####
      192.168.1.101 racnode1.reg.com racnode1
      192.168.1.102 racnode2.reg.com racnode2
      192.168.1.103 racnode3.reg.com racnode3
      192.168.1.104 racnode4.reg.com racnode4
      ####Private######
      10.10.1.1 racnode1-priv.reg.com racnode1-priv
      10.10.1.2 racnode2-priv.reg.com racnode2-priv
      10.10.1.3 racnode3-priv.reg.com racnode3-priv
      10.10.1.4 racnode4-priv.reg.com racnode4-priv
      #####Virtual#####
      192.168.1.201 racnode1-vip.reg.com racnode1-vip
      192.168.1.202 racnode2-vip.reg.com racnode2-vip
      192.168.1.203 racnode3-vip.reg.com racnode3-vip
      192.168.1.204 racnode4-vip.reg.com racnode4-vip
      #SCAN
      #192.168.1.301 racdb-scan.reg.com racdb-scan
      #SCAN

      192.168.1.301 racnode1-scan.reg.com racnode1-scan
      192.168.1.302 racnode2-scan.reg.com racnode2-scan
      192.168.1.303 racnode3-scan.reg.com racnode3-scan
      [root@racnode2 ~]#


      i am not able to ping racnode1-priv or racnode2-priv.

      from node1:
      ========
      [root@racnode1 ~]# ping racnode2-priv
      PING racnode2-priv.reg.com (10.10.1.2) 56(84) bytes of data.
      From racnode1-priv.reg.com (10.10.1.1) icmp_seq=2 Destination Host Unreachable
      From racnode1-priv.reg.com (10.10.1.1) icmp_seq=3 Destination Host Unreachable
      From racnode1-priv.reg.com (10.10.1.1) icmp_seq=4 Destination Host Unreachable
      5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4002ms
      , pipe 3
      [root@racnode1 ~]#

      from node2:
      =======
      [root@racnode2 ~]# ping racnode1-priv
      PING racnode1-priv.reg.com (10.10.1.1) 56(84) bytes of data.
      From racnode2-priv.reg.com (10.10.1.2) icmp_seq=2 Destination Host Unreachable
      From racnode2-priv.reg.com (10.10.1.2) icmp_seq=3 Destination Host Unreachable
      From racnode2-priv.reg.com (10.10.1.2) icmp_seq=4 Destination Host Unreachable
      --- racnode1-priv.reg.com ping statistics ---
      4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
      , pipe 3
      [root@racnode2 ~]#

      any idea where configuration went wrong.

      Thanks
        • 1. Re: system config network error while parsing /etc/hosts
          Dude!
          You may have a combination of problems.

          Did you edit the hosts file under Linux? I suggest to check if you have non-printable characters:

          cat -vet /etc/hosts

          Hosts does nothing else than to translate IP to name or vise versa. If the TCP/IP addresses are correct, then your problem is due to routing or lack of physical connection.

          How are racnode1-priv and racnode2-priv connected with each other?
          • 2. Re: system config network error while parsing /etc/hosts
            Endeca
            here is output, i can see lot of additional characters.

            [root@racnode1 ~]# cat -vet /etc/hosts
            # Do not remove the following line, or various programs$
            # that require network functionality will fail.$
            127.0.0.1 localhost.localdomain localhost$
            #::1^I^Ilocalhost6.localdomain6 localhost$
            $
            #####Public#####$
            192.168.1.101 racnode1.reg.com racnode1$
            192.168.1.102 racnode2.reg.com racnode2$
            192.168.1.103 racnode3.reg.com racnode3$
            192.168.1.104 racnode4.reg.com racnode4$
            ####Private######$
            10.10.1.1 racnode1-priv.reg.com racnode1-priv$
            10.10.1.2 racnode2-priv.reg.com racnode2-priv$
            10.10.1.3 racnode3-priv.reg.com racnode3-priv$
            10.10.1.4 racnode4-priv.reg.com racnode4-priv$
            #####Virtual#####$
            192.168.1.201 racnode1-vip.reg.com racnode1-vip$
            192.168.1.202 racnode2-vip.reg.com racnode2-vip$
            192.168.1.203 racnode3-vip.reg.com racnode3-vip$
            192.168.1.204 racnode4-vip.reg.com racnode4-vip$
            #SCAN$
            #192.168.1.301 racdb-scan.reg.com racdb-scan$
            #SCAN$
            192.168.1.301^Iracnode1-scan.reg.com^Iracnode1-scan$
            192.168.1.302^Iracnode2-scan.reg.com^Iracnode2-scan$
            192.168.1.303^Iracnode3-scan.reg.com^Iracnode3-scan$
            [root@racnode1 ~]#

            from node2:
            ========
            [root@racnode2 ~]# cat -vet /etc/hosts
            # Do not remove the following line, or various programs$
            # that require network functionality will fail.$
            127.0.0.1 localhost.localdomain localhost$
            #::1^I^Ilocalhost6.localdomain6 localhost$
            $
            #####Public#####$
            192.168.1.101 racnode1.reg.com racnode1$
            192.168.1.102 racnode2.reg.com racnode2$
            192.168.1.103 racnode3.reg.com racnode3$
            192.168.1.104 racnode4.reg.com racnode4$
            ####Private######$
            10.10.1.1 racnode1-priv.reg.com racnode1-priv$
            10.10.1.2 racnode2-priv.reg.com racnode2-priv$
            10.10.1.3 racnode3-priv.reg.com racnode3-priv$
            10.10.1.4 racnode4-priv.reg.com racnode4-priv$
            #####Virtual#####$
            192.168.1.201 racnode1-vip.reg.com racnode1-vip$
            192.168.1.202 racnode2-vip.reg.com racnode2-vip$
            192.168.1.203 racnode3-vip.reg.com racnode3-vip$
            192.168.1.204 racnode4-vip.reg.com racnode4-vip$
            #SCAN$
            #192.168.1.301 racdb-scan.reg.com racdb-scan$
            #SCAN$
            $
            192.168.1.301^Iracnode1-scan.reg.com^Iracnode1-scan$
            192.168.1.302^Iracnode2-scan.reg.com^Iracnode2-scan$
            192.168.1.303^Iracnode3-scan.reg.com^Iracnode3-scan$

            Edited by: Endeca on Apr 7, 2013 10:13 AM
            • 3. Re: system config network error while parsing /etc/hosts
              Dude!
              192.168.1.301
              You cannot use any value for your host TCP/IP address that is 255 or higher.
              • 4. Re: system config network error while parsing /etc/hosts
                Billy~Verreynne
                To add to the explanation given - 4 bytes are used to storage the 4 digits of an IPv4 address. A byte can have 256 values. Numerically the value range is 0 ($00h) to 255 ($ffh).

                The value 302 needs 2 bytes to represent in memory - and is thus not a valid digit to use for an IPv4 address.

                IPv4 addresses are also not all equal. E.g. addresses using all zeros, or a trailing zero, is a special address. Likewise there are private address ranges (not to be found on the Internet) that should be used for local network addresses. IPv4 addresses are also defined as different classes (Class A, B and C). Etc.

                Be careful in simple typing any digits you like as an IPv4 address. It is tad more complex than selecting and using random numbers to make an address.