Unable to Reach internet from Linux Guest
Posted: 3. Feb 2016, 22:36
Hello, sorry as this problem may have been listed on these forum for umpteen times but despite doing everything in my power am unable to resolve the issue :(
I've the latest version of Virtual Box 5.01.14 and have a VM with OEL6u4 installed happily running. I need to download some packages from public yum thus this tyrst with trying to get internet on the VM.
Now this is not the first time am using VBox, in the past this has been easy as cutting a cake but this time around am not getting why its not working.
1. DHCP is configured and my VM is getting the IP
[root@labpc1 ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:0f:2c:fe brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth4
inet6 fe80::a00:27ff:fe0f:2cfe/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:06:cc:e8 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.1/24 brd 192.168.100.255 scope global eth1
inet6 fe80::a00:27ff:fe06:cce8/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:f7:79:30 brd ff:ff:ff:ff:ff:ff
inet 192.168.25.10/24 brd 192.168.25.255 scope global eth2
inet6 fe80::a00:27ff:fef7:7930/64 scope link
valid_lft forever preferred_lft forever
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:b0:f7:1e brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global eth3
inet6 fe80::a00:27ff:feb0:f71e/64 scope link
valid_lft forever preferred_lft forever
eth4 is the DHCP leased IP, however when i check the resolv.conf
[root@labpc1 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search domain.name
nameserver 192.168.1.1
Now i am aware 192.168.1.1 is my routes IP address and it shoudl relay any DNS requests into the real DNS servers but its simply not working
[root@labpc1 ~]# ping google.com
ping: unknown host google.com
But if i use 8.8.8.8 it responds hinting internt is there iits just the name resolution taht's not workking
[root@labpc1 ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=97.2 ms
^C
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 931ms
rtt min/avg/max/mdev = 97.248/97.248/97.248/0.000 ms
Now i've used all the skills i had but it simply refuses it work, i am sure its something very subtle and may be very silly but at the point in time its like climbing a mountain and can use extra pair of legs.. any guidance appreciated and please let me know if anthing is reuqired from this end to debug.
Amit
I've the latest version of Virtual Box 5.01.14 and have a VM with OEL6u4 installed happily running. I need to download some packages from public yum thus this tyrst with trying to get internet on the VM.
Now this is not the first time am using VBox, in the past this has been easy as cutting a cake but this time around am not getting why its not working.
1. DHCP is configured and my VM is getting the IP
[root@labpc1 ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:0f:2c:fe brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth4
inet6 fe80::a00:27ff:fe0f:2cfe/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:06:cc:e8 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.1/24 brd 192.168.100.255 scope global eth1
inet6 fe80::a00:27ff:fe06:cce8/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:f7:79:30 brd ff:ff:ff:ff:ff:ff
inet 192.168.25.10/24 brd 192.168.25.255 scope global eth2
inet6 fe80::a00:27ff:fef7:7930/64 scope link
valid_lft forever preferred_lft forever
5: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:b0:f7:1e brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global eth3
inet6 fe80::a00:27ff:feb0:f71e/64 scope link
valid_lft forever preferred_lft forever
eth4 is the DHCP leased IP, however when i check the resolv.conf
[root@labpc1 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search domain.name
nameserver 192.168.1.1
Now i am aware 192.168.1.1 is my routes IP address and it shoudl relay any DNS requests into the real DNS servers but its simply not working
[root@labpc1 ~]# ping google.com
ping: unknown host google.com
But if i use 8.8.8.8 it responds hinting internt is there iits just the name resolution taht's not workking
[root@labpc1 ~]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=55 time=97.2 ms
^C
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 931ms
rtt min/avg/max/mdev = 97.248/97.248/97.248/0.000 ms
Now i've used all the skills i had but it simply refuses it work, i am sure its something very subtle and may be very silly but at the point in time its like climbing a mountain and can use extra pair of legs.. any guidance appreciated and please let me know if anthing is reuqired from this end to debug.
Amit