[Resolved] VB on Windows 2012R2 Server Bridged Network fails

Discussions related to using VirtualBox on Windows hosts.
Post Reply
gkasica
Posts: 7
Joined: 19. May 2018, 09:00
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Ubuntu, Debian, Microsoft
Location: Jackson, WI

[Resolved] VB on Windows 2012R2 Server Bridged Network fails

Post by gkasica »

I'm running VB VirtualBox-5.2.12-122591-Win.exe here on a 2012 R2 server. NAT Networking with VB DHCP works perfectly under Kali-Linux and Ubuntu 18LTS.
I cannot get Bridged to work fully to allow me to assign my static public IPs.

I'm selecting Bridged Adapter Intel Pro/100 MT Server, and the Host Adapter is a Realtek PCI GBE Family Controller.
I've Updated its drivers to latest from the Driver Update in Windows. I've reinstalled VB and reloaded Extensions.

Here are my settings in the VM interface, DNS, route, etc.

Code: Select all

ifconfig 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 64.250.105.241  netmask 255.255.255.224  broadcast 64.250.105.255
        inet6 fe80::a00:27ff:fe27:6d4  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:27:06:d4  txqueuelen 1000  (Ethernet)
        RX packets 1991  bytes 150421 (146.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 206  bytes 14138 (13.8 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 305  bytes 27454 (26.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 305  bytes 27454 (26.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

DNS
# Generated by NetworkManager
nameserver 64.250.105.227
nameserver 64.250.105.228
nameserver 8.8.8.8

route
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    100    0        0 eth0
64.250.105.224  0.0.0.0         255.255.255.224 U     100    0        0 eth0
_gateway        0.0.0.0         255.255.255.255 UH    100    0        0 eth0
Here's what happened with an update:

Code: Select all

# apt-get update
Err:1 XXXXXXXXXXXXXXXXXXXXX InRelease
  Could not connect to XXXXXXXXXX:80 (192.99.200.113). - connect (113: No route to host)
Reading package lists... Done                    
W: Failed to fetch XXXXXXXXXXXXXXXXXXX  Could not connect to XXXXXXXXXXXX (192.99.200.113). - connect (113: No route to host)
W: Some index files failed to download. They have been ignored, or old ones used instead.
if I do SSH to a local machine on the LAN by IP is works and by DNS as well so locally things seem OK.

What do I have wrong here?? I want to build an Ubuntu 18LTS VM for a mail server, but until I can get networking running properly, I'm stuck.

What can I do to fix this?
Last edited by socratis on 20. May 2018, 15:57, edited 2 times in total.
Reason: Marked as [Resolved].
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: VB on Windows 2012R2 Server Bridged Network fails

Post by andyp73 »

We need to establish whether this is a VirtualBox problem or a network configuration problem in the guest. Within the guest can you run the following commands:
ping 64.250.105.224
ping 64.250.105.227
ping 8.8.8.8
ping download.virtualbox.org
nslookup download.virtualbox.org
traceroute download.virtualbox.org
Post the results.

-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.
gkasica
Posts: 7
Joined: 19. May 2018, 09:00
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Ubuntu, Debian, Microsoft
Location: Jackson, WI

Re: VB on Windows 2012R2 Server Bridged Network fails

Post by gkasica »

UGH Cant post URLS See Attachment. odd the post didn't stick...reply again: GRR URLs prohibited in post

GUEST

Code: Select all

root@kali:~# ping 64.250.105.224
Do you want to ping broadcast? Then -b. If not, check your local firewall rules.
root@kali:~# ping -b 64.250.105.224
WARNING: pinging broadcast address
PING 64.250.105.224 (64.250.105.224) 56(84) bytes of data.
^C
--- 64.250.105.224 ping statistics ---
19 packets transmitted, 0 received, 100% packet loss, time 18454ms

Code: Select all

root@kali:~# ping -b 64.250.105.227
PING 64.250.105.227 (64.250.105.227) 56(84) bytes of data.
64 bytes from 64.250.105.227: icmp_seq=1 ttl=64 time=0.744 ms
64 bytes from 64.250.105.227: icmp_seq=2 ttl=64 time=0.520 ms
64 bytes from 64.250.105.227: icmp_seq=3 ttl=64 time=0.587 ms
64 bytes from 64.250.105.227: icmp_seq=4 ttl=64 time=0.531 ms
^C
--- 64.250.105.227 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3094ms
rtt min/avg/max/mdev = 0.520/0.595/0.744/0.092 ms

Code: Select all

root@kali:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 64.250.105.241 icmp_seq=1 Destination Host Unreachable
From 64.250.105.241 icmp_seq=2 Destination Host Unreachable
From 64.250.105.241 icmp_seq=3 Destination Host Unreachable
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4074ms
pipe 4

Code: Select all

root@kali:~# ping download.virtualbox.org
PING e14618.d.akamaiedge.net (23.208.216.118) 56(84) bytes of data.
From kali.netwrx1.com (64.250.105.241) icmp_seq=1 Destination Host Unreachable
From kali.netwrx1.com (64.250.105.241) icmp_seq=2 Destination Host Unreachable
From kali.netwrx1.com (64.250.105.241) icmp_seq=3 Destination Host Unreachable
^C
--- e14618.d.akamaiedge.net ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5091ms
pipe 4

Code: Select all

root@kali:~# nslookup download.virtualbox.org
Server:     64.250.105.227
Address:    64.250.105.227#53

Non-authoritative answer:
download.virtualbox.org          canonical name = download.oracle.com.edgekey.net.
download.oracle.com.edgekey.net  canonical name = e14618.d.akamaiedge.net.
Name:       e14618.d.akamaiedge.net
Address:    23.208.216.118

Code: Select all

root@kali:~# traceroute download.virtualbox.org
traceroute to download.virtualbox.org (23.208.216.118), 30 hops max, 60 byte packets
 1  kali.netwrx1.com (64.250.105.241)  3079.837 ms !H  3079.796 ms !H  3079.791 ms !H
root@kali:~# 
root@kali:~# traceroute download.virtualbox.org
traceroute to download.virtualbox.org (23.208.216.118), 30 hops max, 60 byte packets
 1  kali.netwrx1.com (64.250.105.241)  3105.884 ms !H  3105.802 ms !H  3105.789 ms !H
HOST

Code: Select all

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>ping 64.250.105.224

Pinging 64.250.105.224 with 32 bytes of data:
Reply from 64.250.105.233: Destination host unreachable.
Reply from 64.250.105.233: Destination host unreachable.
Reply from 64.250.105.233: Destination host unreachable.
Reply from 64.250.105.233: Destination host unreachable.

Ping statistics for 64.250.105.224:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Code: Select all

C:\Windows\system32>ping 64.250.105.227

Pinging 64.250.105.227 with 32 bytes of data:
Reply from 64.250.105.227: bytes=32 time<1ms TTL=64
Reply from 64.250.105.227: bytes=32 time<1ms TTL=64
Reply from 64.250.105.227: bytes=32 time<1ms TTL=64
Reply from 64.250.105.227: bytes=32 time<1ms TTL=64

Ping statistics for 64.250.105.227:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

Code: Select all

C:\Windows\system32>ping 8.8.8.8

Pinging 8.8.8.8 with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=21ms TTL=58
Reply from 8.8.8.8: bytes=32 time=8ms TTL=58
Reply from 8.8.8.8: bytes=32 time=8ms TTL=58
Reply from 8.8.8.8: bytes=32 time=8ms TTL=58

Ping statistics for 8.8.8.8:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 8ms, Maximum = 21ms, Average = 11ms

Code: Select all

C:\Windows\system32>ping download.virtualbox.org

Pinging e14618.d.akamaiedge.net [23.208.216.118] with 32 bytes of data:
Reply from 23.208.216.118: bytes=32 time=8ms TTL=56
Reply from 23.208.216.118: bytes=32 time=7ms TTL=56
Reply from 23.208.216.118: bytes=32 time=7ms TTL=56
Reply from 23.208.216.118: bytes=32 time=8ms TTL=56

Ping statistics for 23.208.216.118:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 7ms, Maximum = 8ms, Average = 7ms

Code: Select all

C:\Windows\system32>nslookup download.virtualbox.org
Server:  ntp1.netwrx1.com
Address:  64.250.105.227
Aliases:  227.105.250.64.in-addr.arpa

Non-authoritative answer:
Name:    e14618.d.akamaiedge.net
Address:  23.208.216.118
Aliases:  download.virtualbox.org
          download.oracle.com.edgekey.net

Code: Select all

C:\Windows\system32>tracert download.virtualbox.org

Tracing route to e14618.d.akamaiedge.net [23.208.216.118]
over a maximum of 30 hops:

  1     2 ms     1 ms     1 ms  r7000.netwrx1.com [64.250.105.225]
  2     4 ms     5 ms     2 ms  rtr-324.ethoplex.com [208.87.125.2]
  3     7 ms     4 ms     2 ms  gi0-5-0-2.rcr21.mke02.atlas.cogentco.com [38.122.82.81]
  4     6 ms     9 ms     7 ms  te0-1-0-18.ccr42.ord01.atlas.cogentco.com [154.54.82.6]
  5     5 ms     8 ms     6 ms  be2766.ccr41.ord03.atlas.cogentco.com [154.54.46.178]
  6     7 ms    10 ms     7 ms  ae-11.r08.chcgil09.us.bb.gin.ntt.net [129.250.9.121]
  7    28 ms    35 ms    20 ms  ae-0.a01.chcgil09.us.bb.gin.ntt.net [129.250.4.218]
  8    10 ms     7 ms     7 ms  a23-208-216-118.deploy.static.akamaitechnologies.com [23.208.216.118]

Trace complete.
Last edited by socratis on 19. May 2018, 18:41, edited 1 time in total.
Reason: Replaced attachment with actual text.
socratis
Site Moderator
Posts: 27330
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: VB on Windows 2012R2 Server Bridged Network fails

Post by socratis »

Let me start with the basics:
inet 64.250.105.241  netmask 255.255.255.224  broadcast 64.250.105.255
Such a setup gives you:
Address:   64.250.105.241        01000000.11111010.01101001.111 10001
Netmask:   255.255.255.224 = 27  11111111.11111111.11111111.111 00000
Wildcard:  0.0.0.31              00000000.00000000.00000000.000 11111
=>
Network:   64.250.105.224/27     01000000.11111010.01101001.111 00000 (Class A)
Broadcast: 64.250.105.255        01000000.11111010.01101001.111 11111
HostMin:   64.250.105.225        01000000.11111010.01101001.111 00001
HostMax:   64.250.105.254        01000000.11111010.01101001.111 11110
Hosts/Net: 30
which means that if you have setup your gateway as 64.250.105.224, that would be outside of your range. That's why you can't even ping your gateway...
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.
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: VB on Windows 2012R2 Server Bridged Network fails

Post by andyp73 »

Out of curiosity, if you run
ipconfig /all
on the host what does it say the default gateway is?

-Andy.

All that is left after writing many words similar to those of Socratis who hit submit first! :evil:
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.
gkasica
Posts: 7
Joined: 19. May 2018, 09:00
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Ubuntu, Debian, Microsoft
Location: Jackson, WI

Re: VB on Windows 2012R2 Server Bridged Network fails

Post by gkasica »

see attached
Attachments
Bridged-Testing-2018051902.txt
(6.57 KiB) Downloaded 8 times
2018-05-19_17-12-38.jpg
2018-05-19_17-12-38.jpg (27.48 KiB) Viewed 6058 times
2018-05-19_17-12-18.jpg
2018-05-19_17-12-18.jpg (29.28 KiB) Viewed 6058 times
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: VB on Windows 2012R2 Server Bridged Network fails

Post by andyp73 »

According to the image, the gateway in Kali is set as 65.250.105.225 whereas all the other IP addresses on both host and guest are 64.250.105.xxx

-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.
socratis
Site Moderator
Posts: 27330
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: VB on Windows 2012R2 Server Bridged Network fails

Post by socratis »

And that's why you need a second pair of eyes! I was reading that the gateway was 64.250.105.255. And I was about to reply "You don't put your .255 broadcast address as your gateway!" :shock:

That's what a more competent eye-sight (Andy) does... :D

BTW, gkasica, Andy asked you for your host "ipconfig /all", not your guest, but it turned out that's where the problem was...
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.
gkasica
Posts: 7
Joined: 19. May 2018, 09:00
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Ubuntu, Debian, Microsoft
Location: Jackson, WI

Re: VB on Windows 2012R2 Server Bridged Network fails

Post by gkasica »

OK I feel; extremely stupid!

I've been staring at this thing for literally a week here and NEVER saw it.

Thank you very much. I'm going to change that and - it works! Let me reconfigure the other 2 VMs and see where those go, but I anticipate we're done.
gkasica
Posts: 7
Joined: 19. May 2018, 09:00
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Ubuntu, Debian, Microsoft
Location: Jackson, WI

Re: VB on Windows 2012R2 Server Bridged Network fails

Post by gkasica »

Have the other Ubuntu 18 system working as well after some hacking around to learn the new netplan yaml configuration.

Thank you all very much. This can get marked solved.
socratis
Site Moderator
Posts: 27330
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: VB on Windows 2012R2 Server Bridged Network fails

Post by socratis »

Glad you got it going. Marking as [Resolved].
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.
Post Reply