5 Replies Latest reply on Jan 7, 2018 1:26 PM by Jhil

    Network Issue and NOT appeared on Oracle Linux 6.9 in Virtual Box

    Jhil

      Dear Linux Admins

       

      I am going to configure 12c R1 RAC on Oracle LINUX 6.9

      I am using Oracle's Virtual Box

       

      I have configured 3 network adapters

       

      1)  eth0  => Public

      2)  eth1  => Private

      3) eth2  => Internet connectivity

       

      But the problem is , eth1 and eth2 are not  detected

       

       

       

      # ifconfig -a

      eth0      Link encap:Ethernet  HWaddr 08:00:27:D7:48:C4 

                BROADCAST MULTICAST  MTU:1500  Metric:1

                RX packets:0 errors:0 dropped:0 overruns:0 frame:0

                TX packets:36 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:0 (0.0 b)  TX bytes:5004 (4.8 KiB)

       

       

      eth1      Link encap:Ethernet  HWaddr 08:00:27:A4:CB:CD 

                BROADCAST MULTICAST  MTU:1500  Metric:1

                RX packets:0 errors:0 dropped:0 overruns:0 frame:0

                TX packets:101 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:0 (0.0 b)  TX bytes:30366 (29.6 KiB)

       

       

      eth2      Link encap:Ethernet  HWaddr 08:00:27:06:45:33 

                BROADCAST MULTICAST  MTU:1500  Metric:1

                RX packets:11718 errors:0 dropped:0 overruns:0 frame:0

                TX packets:7960 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:1000

                RX bytes:16595496 (15.8 MiB)  TX bytes:479748 (468.5 KiB)

       

       

      lo        Link encap:Local Loopback 

                inet addr:127.0.0.1  Mask:255.0.0.0

                inet6 addr: ::1/128 Scope:Host

                UP LOOPBACK RUNNING  MTU:65536  Metric:1

                RX packets:36 errors:0 dropped:0 overruns:0 frame:0

                TX packets:36 errors:0 dropped:0 overruns:0 carrier:0

                collisions:0 txqueuelen:0

                RX bytes:2464 (2.4 KiB)  TX bytes:2464 (2.4 KiB)

       

      >>

       

      # cd /etc/sysconfig/network-scripts/

      [root@rac1 network-scripts]# ls -l ifcfg*

      -rw-r--r--. 3 root root 215 Jan  6 04:28 ifcfg-

      -rw-r--r--. 3 root root 215 Jan  6 04:45 ifcfg-eth0

      -rw-r--r--. 1 root root 254 Jan 18  2017 ifcfg-lo

       

       

      >>

       

      Above output shows eth1 and eth2 are missing.

       

      Untitled.png

       

       

      # service network restart

      fgrep: ifcfg-ifcfg-: No such file or directory

      fgrep: ifcfg-ifcfg-: No such file or directory

      Shutting down interface eth0:  Device state: 3 (disconnected)

                                                                 [  OK  ]

      /etc/init.d/network: line 234: ./ifcfg-ifcfg-: No such file or directory

      Shutting down loopback interface:                          [  OK  ]

      Bringing up loopback interface:                            [  OK  ]

      Bringing up interface eth0:  Active connection state: activated

      Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/29

                                                                 [  OK  ]

      fgrep: ifcfg-ifcfg-: No such file or directory

      fgrep: ifcfg-ifcfg-: No such file or directory

      fgrep: ifcfg-ifcfg-: No such file or directory

      egrep: ifcfg-ifcfg-: No such file or directory

      Bringing up interface ifcfg-:  Device does not seem to be present, delaying initialization.

                                                                 [FAILED]

      [root@rac1 Desktop]#

        • 1. Re: Network Issue and NOT appeared on Oracle Linux 6.9 in Virtual Box
          Dude!

          I can only guess you probably didn't configure the interfaces in the first place and then re-created the interfaces in the VM setting with a new MAC address and thereby invalidated the existing devices.

           

          I suggest to delete the following file, which the OS will re-create automatically after the next system restart:

           

          # rm -f /etc/udev/rules.d/70-persistent-net.rules

          # shutdown -r now

           

          You will then of course have re-configure the TCP/IP settings for each interface.

           

          # system-config-network

          • 2. Re: Network Issue and NOT appeared on Oracle Linux 6.9 in Virtual Box
            Jhil

            Hi Dude

             

            MY Linux machine IP is NOT able to ping with Host machine.

            I tried a lot still problems are there

             

            C:\Users>ipconfig
            
            Windows IP Configuration
            
            Ethernet adapter Ethernet:
            
               Media State . . . . . . . . . . . : Media disconnected
               Connection-specific DNS Suffix  . : domain.name
            
            Ethernet adapter VirtualBox Host-Only Network #2:
            
               Connection-specific DNS Suffix  . :
               Link-local IPv6 Address . . . . . : fe80::2c7f:49ec:7b1a:b8bc%21
               IPv4 Address. . . . . . . . . . . : 192.168.56.1
               Subnet Mask . . . . . . . . . . . : 255.255.255.0
               Default Gateway . . . . . . . . . :
            
            Wireless LAN adapter Local Area Connection* 2:
            
               Media State . . . . . . . . . . . : Media disconnected
               Connection-specific DNS Suffix  . :
            
            Ethernet adapter Ethernet 2:
            
               Connection-specific DNS Suffix  . :
               Link-local IPv6 Address . . . . . : fe80::7966:677f:79d8:69f1%11
               IPv4 Address. . . . . . . . . . . : 192.168.159.1
               Subnet Mask . . . . . . . . . . . : 255.255.255.0
               Default Gateway . . . . . . . . . :
            
            Ethernet adapter Ethernet 3:
            
               Connection-specific DNS Suffix  . :
               Link-local IPv6 Address . . . . . : fe80::147f:bad3:b004:318a%17
               IPv4 Address. . . . . . . . . . . : 192.168.212.1
               Subnet Mask . . . . . . . . . . . : 255.255.255.0
               Default Gateway . . . . . . . . . :
            
            Wireless LAN adapter Wi-Fi:
            
               Connection-specific DNS Suffix  . :
               IPv6 Address. . . . . . . . . . . : 2405:204:7149:7460:f583:c3b2:c7b6:dada
               Temporary IPv6 Address. . . . . . : 2405:204:7149:7460:a93f:bebe:87ea:86b0
               Link-local IPv6 Address . . . . . : fe80::f583:c3b2:c7b6:dada%14
               IPv4 Address. . . . . . . . . . . : 192.168.43.81
               Subnet Mask . . . . . . . . . . . : 255.255.255.0
               Default Gateway . . . . . . . . . : fe80::cd9f:afab:7291:76c6%14
                                                   192.168.43.1
            

             

            >> Trying to ping from HOST machine

             

            C:\Users>ping 192.168.56.10
            
            Pinging 192.168.56.10 with 32 bytes of data:
            Request timed out.
            

             

             

            ****************************************************************************************************************

             

            I could NOT access my virtual box from my host  through putty.

            I configured different series IP for Public IP  on Linux machine  but nothing is workable.

             

            e.g :

             

            192.168.56.10

            192.168.212.5

            192.168.159.5

            192.168.43.10

             

            >>

             

            # ifconfig -a
            eth0      Link encap:Ethernet  HWaddr 08:00:27:1C:D2:81 
                      inet addr:192.168.56.10  Bcast:192.168.56.255  Mask:255.255.255.0
                      inet6 addr: fe80::a00:27ff:fe1c:d281/64 Scope:Link
                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                      TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
                      collisions:0 txqueuelen:1000
                      RX bytes:0 (0.0 b)  TX bytes:1548 (1.5 KiB)
            
            
            eth1      Link encap:Ethernet  HWaddr 08:00:27:B3:5A:EB 
                      inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
                      inet6 addr: fe80::a00:27ff:feb3:5aeb/64 Scope:Link
                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
                      TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
                      collisions:0 txqueuelen:1000
                      RX bytes:0 (0.0 b)  TX bytes:1548 (1.5 KiB)
            
            
            eth2      Link encap:Ethernet  HWaddr 08:00:27:66:EB:F0 
                      inet addr:10.0.4.15  Bcast:10.0.4.255  Mask:255.255.255.0
                      inet6 addr: fe80::a00:27ff:fe66:ebf0/64 Scope:Link
                      UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                      RX packets:74 errors:0 dropped:0 overruns:0 frame:0
                      TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
                      collisions:0 txqueuelen:1000
                      RX bytes:10529 (10.2 KiB)  TX bytes:9789 (9.5 KiB)
            
            
            lo        Link encap:Local Loopback 
                      inet addr:127.0.0.1  Mask:255.0.0.0
                      inet6 addr: ::1/128 Scope:Host
                      UP LOOPBACK RUNNING  MTU:65536  Metric:1
                      RX packets:1396 errors:0 dropped:0 overruns:0 frame:0
                      TX packets:1396 errors:0 dropped:0 overruns:0 carrier:0
                      collisions:0 txqueuelen:0
                      RX bytes:109616 (107.0 KiB)  TX bytes:109616 (107.0 KiB)
            
            

             

            >>

             

            FYI : Please help me to set  exact series of IP for my linux machine, so that  i need to access my virtual box through putty, toad, xming and etc ...

            Thanks

            • 3. Re: Network Issue and NOT appeared on Oracle Linux 6.9 in Virtual Box
              Dude!

              Does the initial problem still exist or did removing the mentioned file solve the problem? I guess it did, otherwise you wouldn't be seeing the Ethernet devices inside your Linux guest system.

               

              The other problem is about TCP/P and VM adapter configuration, which is a different topic. However, if you check the IP addresses of your virtual network interfaces on the Windows side you can see that none of these IP addresses are in the same network as the TCP/IP addresses inside the virtual machine. You must also use the right VM network adapter type to allow communication between the host and the virtual machine. The concept is similar to VMware, which you should know already. I suggest you review the following:

               

              Check https://www.virtualbox.org/manual/ch06.html

              1 person found this helpful
              • 4. Re: Network Issue and NOT appeared on Oracle Linux 6.9 in Virtual Box
                Jhil

                Yes Dude,

                 

                The problem resolved.

                 

                You must also use the right VM network adapter type to allow communication between the host and the virtual machine. The concept is similar to VMware, which you should know already.

                 

                 

                I gone through some blogspots , 12c  RAC Installation in Virtual Box

                They are choosing 'INTERNAL NETWORK'   for public and private ips.

                In vmware , i choose always 'host-only' option.

                 

                What changes i made,

                 

                Once i  made changes in Virtual box ,  i can able to access my linux machine from host machine

                Simply i changed  adapter 1 and 2  to   'HOST-ONLY'   from Internal Network Option.

                 

                 

                Capture.PNG

                 

                Capture.PNG

                Thanks

                 

                 

                 

                 

                 

                 

                 

                • 5. Re: Network Issue and NOT appeared on Oracle Linux 6.9 in Virtual Box
                  Jhil

                  Hi Dude,

                   

                  I am using Virtual box 

                  I am getting problems to create shared storage setup.

                  I could not share disks betwwen 2 machines.

                  I think it has some bugs ....

                   

                  VirtualBox Graphical User Interface

                  Version 5.2.4 r119785 (Qt5.6.2)

                  Copyright © 2017 Oracle Corporation and/or its affiliates. All rights reserved.

                   

                  Could you please suggest me exact virtual box version , which would support to configure 11g and 12c RAC  on Oracle Linux 6.X  ?

                   

                  REF_LINK  >> To setup shared storage

                   

                  https://en.wikibooks.org/wiki/RAC_Attack_-_Oracle_Cluster_Database_at_Home/RAC_Attack_12c/Create_Virtualbox_Shared_Stora…