oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Discussions about using Linux guests in VirtualBox.
Post Reply
ronish
Posts: 41
Joined: 3. Jul 2018, 17:02

oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by ronish »

linux 7.6 guest caNNot access network beyond 127.0.0.1

Network interface1 NAT
interface2 ... Bridged network

With Redhat Linux 7.6 guest im FINE using the same settings

Network interface1 NAT
interface2 ... Bridged network

Where to go????
ronish
Posts: 41
Joined: 3. Jul 2018, 17:02

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by ronish »

left out:

Host is Windows10
Vbox 6.0.2
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by andyp73 »

This sounds as though it is a network configuration issue with the Oracle Linux guest rather than a VirtualBox issue per se. To even begin to give an advice we are going to need to see the output from
ipconfig /all
(run on the Windows host) and...
ifconfig -a
(run on both Linux guests)

When you post the results, make sure you enclose them in code tags to make them easier to read.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
ronish
Posts: 41
Joined: 3. Jul 2018, 17:02

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by ronish »

sorry for delay ... finally golt guest additions to work to let me cut and paste

windows 10 host

Code: Select all

Microsoft Windows [Version 10.0.17134.523]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : DESKTOP-23IQKHM
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : fios-router.home

Ethernet adapter Ethernet:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : fios-router.home
   Description . . . . . . . . . . . : Intel(R) Ethernet Connection I218-LM
   Physical Address. . . . . . . . . : 34-E6-D7-13-7B-69
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter VirtualBox Host-Only Network #2:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #2
   Physical Address. . . . . . . . . : 0A-00-27-00-00-0C
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::dc08:4629:8994:a8c%12(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 235536423
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-D9-1F-E1-34-E6-D7-13-7B-69
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 80-19-34-D2-38-6E
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 4:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter #2
   Physical Address. . . . . . . . . : 82-19-34-D2-38-6D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : fios-router.home
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 7260
   Physical Address. . . . . . . . . : 80-19-34-D2-38-6D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::35b0:74c7:965d:81b%15(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.198(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Monday, February 11, 2019 8:53:33 AM
   Lease Expires . . . . . . . . . . : Tuesday, February 12, 2019 8:28:46 AM
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 58726708
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1F-D9-1F-E1-34-E6-D7-13-7B-69
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled
   Connection-specific DNS Suffix Search List :
                                       fios-router.home

Ethernet adapter Bluetooth Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
   Physical Address. . . . . . . . . : 80-19-34-D2-38-71
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
Redhat 7.6 GUEST

Code: Select all

[hr@localhost ~]$ ifconfig -a
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 08:00:27:44:43:1e  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:1e:57:17  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0-nic: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 52:54:00:1e:57:17  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[hr@localhost ~]$
Last edited by socratis on 12. Feb 2019, 04:02, edited 2 times in total.
Reason: Enclosed the information in [code] tag for better readability
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by socratis »

You don't seem to be getting an IP in the guest. Have you configured your guest to get an IP automatically?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
ronish
Posts: 41
Joined: 3. Jul 2018, 17:02

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by ronish »

How do you configured your guest Red Hat Linux 7 running on host Windows 10 to get an IP automatically?

Have specified NAT for networking.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by socratis »

Personally, I have no clue how you configure RHEL7 for DHCP IP address. You got to look at the documentation of RHEL7 for that. Unless another user has an idea...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
ronish
Posts: 41
Joined: 3. Jul 2018, 17:02

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by ronish »

At a different place which requires a Proxy Server to go outside, I was able to go outside.

If im located where no proxy is required and my only access to the outside is through a router, I fail.

At a loss.

Code: Select all

ifconfig -a
racle/cdb1] (/home/oracle) 
> ifconfig -a
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 08:00:27:1e:64:94  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.238.35.165  netmask 255.255.255.0  broadcast 10.238.35.255
        inet6 fe80::aac1:3a46:4a5f:9d73  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:6a:81:f1  txqueuelen 1000  (Ethernet)
        RX packets 1382  bytes 119104 (116.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 198  bytes 19005 (18.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:9f:77:b0  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0-nic: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 52:54:00:9f:77:b0  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[oracle/cdb1] (/home/oracle) 
>
Last edited by socratis on 12. Feb 2019, 19:00, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
ronish
Posts: 41
Joined: 3. Jul 2018, 17:02

Re: oracle linux 7.6 guest caNNot access network beyond 127.0.0.1

Post by ronish »

how you configure RHEL7 for DHCP IP address

Code: Select all

# ip addr show
2: enp0s3:  mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:15:38:b7 brd ff:ff:ff:ff:ff:ff
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fe15:38b7/64 scope link 
       valid_lft forever preferred_lft forever
Once we have located a name of the network interface in question open a corresponding configuration file. So as an example, for network interface epn0s3 vi will edit a /etc/sysconfig/network-scripts/ifcfg-enp0s3

Code: Select all

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s3
UUID=24fc25fd-f4d5-4bca-baf8-7e827fa13211
DEVICE=enp0s3
ONBOOT=yes
reboot ...

IT WORKS!
~
~
Last edited by socratis on 17. Feb 2019, 21:38, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
Post Reply