[Solved] Guest Ubuntu - bridged adaptater no connection (noob)
[Solved] Guest Ubuntu - bridged adaptater no connection (noob)
Hi,
Host: Windows 8.1
Guest: Ubuntu
I hope it is the good topic, or let me know and I will change it and I am sorry about my rough english.
I have a noob issue, I can't get a connection after something.... an action but I don't know which one and I don't know what I have to do to fix it.
I am going to give some explaination:
That's happened twice.
When I install VB, install Ubuntu, I set up the bridged adapter, I start Ubuntu, the DHCP give me an address (like 192.168.0.20).
Everything is working.
I set up my own address IP: for this VM I wanted 192.168.0.150 (for example), I set up my own IP with mask, gateway... everything is fine, it is working.
I turn off my VM, then my pc... I sleep (may be the issue? xD)... and the morning the connection doesn't work anymore.
If I attach the Adapter to NAT, I can get a Internet connection, everything is fine.
But I would like set up my VM with a bridged adapter and with this option, I can't get a connection.
Exactly, in bridged adapter mode, from my VM (Ubuntu) I can ping my host but that's it.
I can't ping the gateway, my other pc, anything.
I don't know if the pb come from the VM, Ubuntu, or windows.... I have no clue...
Thanks for helping.
Host: Windows 8.1
Guest: Ubuntu
I hope it is the good topic, or let me know and I will change it and I am sorry about my rough english.
I have a noob issue, I can't get a connection after something.... an action but I don't know which one and I don't know what I have to do to fix it.
I am going to give some explaination:
That's happened twice.
When I install VB, install Ubuntu, I set up the bridged adapter, I start Ubuntu, the DHCP give me an address (like 192.168.0.20).
Everything is working.
I set up my own address IP: for this VM I wanted 192.168.0.150 (for example), I set up my own IP with mask, gateway... everything is fine, it is working.
I turn off my VM, then my pc... I sleep (may be the issue? xD)... and the morning the connection doesn't work anymore.
If I attach the Adapter to NAT, I can get a Internet connection, everything is fine.
But I would like set up my VM with a bridged adapter and with this option, I can't get a connection.
Exactly, in bridged adapter mode, from my VM (Ubuntu) I can ping my host but that's it.
I can't ping the gateway, my other pc, anything.
I don't know if the pb come from the VM, Ubuntu, or windows.... I have no clue...
Thanks for helping.
Last edited by Al3x on 3. May 2016, 22:44, edited 1 time in total.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Guest Ubuntu - bridged adaptater no connection (noob)
Why? That is absolutely the last thing a noob should be doing, unless you're a networking expert and only a noob at VMs.Al3x wrote: I set up my own address IP
Why would you expect the IP address to be persistent? Are you in control of the router or other DHCP server that normally assigns IP address leases?
Re: Guest Ubuntu - bridged adaptater no connection (noob)
On Ubuntu it doesn't seem very complicated,
Edit connection > Add >
Pick an IP Address to be identified
A submask to separate the network and the client park
and a gateway to connect to the router (to be conencted to a WAN... I think)
I am a noob but I am trying
Exactly I am trying to do that for fun, and in case I have to reboot my VM.
If you know what I have to check or if you need some information to help me, don't hesistate to ask
Edit connection > Add >
Pick an IP Address to be identified
A submask to separate the network and the client park
and a gateway to connect to the router (to be conencted to a WAN... I think)
I am a noob but I am trying
Exactly I am trying to do that for fun, and in case I have to reboot my VM.
If you know what I have to check or if you need some information to help me, don't hesistate to ask
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Guest Ubuntu - bridged adaptater no connection (noob)
That is configuring the Ubuntu side for a static network. None of that will cause an external DHCP server to honor your manually configured IP address. I'm surprised it even worked if a router is involved - on some routers it wouldn't. How does it even know what port to send an incoming packet to if it didn't assign the address? I guess some routers could, if they see an outgoing packet using an address they don't know, could add it to their tables at that point.
In general, unless you have an outstanding reason to assign IP addresses manually, then you should let the guest OS obtain an IP lease automatically. That is after all what DHCP is there for.
In general, unless you have an outstanding reason to assign IP addresses manually, then you should let the guest OS obtain an IP lease automatically. That is after all what DHCP is there for.
Re: Guest Ubuntu - bridged adaptater no connection (noob)
My connection doesn't work even if I ask an IP address to the DHCP automatically :/
I am learning so I need some explaination.
But I guess when you set up your own IP address, your computer, before to be connected, sends a 1st paquet to the gateway (router) to update its route table.
I am learning so I need some explaination.
But I guess when you set up your own IP address, your computer, before to be connected, sends a 1st paquet to the gateway (router) to update its route table.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Guest Ubuntu - bridged adaptater no connection (noob)
That isn't quite how it works. Your PC has no way of knowing what addresses are already in use on the network, so it asks the router to supply an address (DHCP). If your VM isn't getting a valid IP address via DHCP then you need to solve that problem rather than kludge around it.Al3x wrote:But I guess when you set up your own IP address, your computer, before to be connected, sends a 1st paquet to the gateway (router) to update its route table.
Btw: gateway is not a synonym for router. The gateway address is the address you should send a packet to when you don't know where to deliver it otherwise. It's like the local mail sorting office. It is true that a router often performs this function on a home network.
Re: Guest Ubuntu - bridged adaptater no connection (noob)
So on my LAN I am using the router as a switch, and to get a Internet conenction I need to set up the gateway.
So what I have to do?
Because even if my VM ask to the DHCP automatically, I don't get any connection.
I can't ping my gateway with bridged adpater. (with automatic or manually connection)
So what I have to do?
Because even if my VM ask to the DHCP automatically, I don't get any connection.
I can't ping my gateway with bridged adpater. (with automatic or manually connection)
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Guest Ubuntu - bridged adaptater no connection (noob)
First lets clarify something: the host adapter you are bridging to, is it wired or wireless?
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Guest Ubuntu - bridged adaptater no connection (noob)
Well, I'm just about out of ideas. Do you have the same problem with all VMs, or just this one?
And did you first start messing with guest OS networking before or after you first noticed the problem?
Any reason you can't just use NAT networking?
And did you first start messing with guest OS networking before or after you first noticed the problem?
Any reason you can't just use NAT networking?
Re: Guest Ubuntu - bridged adaptater no connection (noob)
Yes I have the same pb with all of them, now as soon as I install a new VM (I tested only with ubuntu), it is working with the NAT configuration but not with a brdiged adapter.
Btw, it doesn't work with host only adapter as well.
When I tried to ping something and I get message like this:
data unreachable.
But I think something block the connection, on my VM or on windows for several reason.
- When I set up my own IP address on my VM, I can only ping my host pc.
- The first time, it worked
- Now even a new VM can't find the network
- Host only adapter doesn't work
The problem came after the first start messing (but I think it was a good configuration, my VM worked while a time)
Yes, I want to see my machine on my network and I would like it works with this connection.
Btw, it doesn't work with host only adapter as well.
When I tried to ping something and I get message like this:
data unreachable.
But I think something block the connection, on my VM or on windows for several reason.
- When I set up my own IP address on my VM, I can only ping my host pc.
- The first time, it worked
- Now even a new VM can't find the network
- Host only adapter doesn't work
The problem came after the first start messing (but I think it was a good configuration, my VM worked while a time)
Yes, I want to see my machine on my network and I would like it works with this connection.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Guest Ubuntu - bridged adaptater no connection (noob)
I'll move your topic to "Linux Guests" in case the Linux network experts can help you. They generally won't hang out in "Windows Hosts".
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Guest Ubuntu - bridged adaptater no connection (noob)
With what you are wanting to achieve the only adapter to choose would be bridged, so I am not interested in discussing anything else.
Post the following from the hosts command window, and be sure that you have tried to run the guest in bridged mode and failed.
And from the guests terminal:
ifconfig -a
Post the following from the hosts command window, and be sure that you have tried to run the guest in bridged mode and failed.
- VBoxManage list bridgedifs
VBoxManage showvminfo <VM Name> --details. Replace <VM Name> with the actual name of the VM. Use " " if the name has a space in it.
And from the guests terminal:
ifconfig -a
Re: Guest Ubuntu - bridged adaptater no connection (noob)
Thanks for helping! 
VBoxManage list bridgedifs
C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo Linux_Ubuntu
ifconfig -a
VBoxManage list bridgedifs
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage list bridgedifs
Name: Intel(R) 82579V Gigabit Network Connection
GUID: bb6af90c-6e02-4ab5-87ed-58144b6130c4
DHCP: Enabled
IPAddress: 192.168.0.19
NetworkMask: 255.255.255.0
IPV6Address: 2a02:8084:6a81:5c00:0000:0000:0000:0004
IPV6NetworkMaskPrefixLength: 128
HardwareAddress: 40:16:7e:76:00:bd
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-Intel(R) 82579V Gigabit Network Connection
Name: Carte réseau sans fil Qualcomm Atheros AR9287
GUID: b53aaf8f-425c-4394-9e4f-dadc853d2982
DHCP: Enabled
IPAddress: 169.254.114.164
NetworkMask: 255.255.0.0
IPV6Address: fe80:0000:0000:0000:608f:993d:1f42:72a4
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: e8:94:f6:99:75:e9
MediumType: Ethernet
Status: Down
VBoxNetworkName: HostInterfaceNetworking-Carte réseau sans fil Qualcomm Atheros AR9287C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo Linux_Ubuntu
Code: Select all
C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo Linux_Ubuntu
Name: Linux_Ubuntu
Groups: /
Guest OS: Ubuntu (64-bit)
UUID: 7f7fab59-90f1-40c9-91c3-ace8099c82bc
Config file: D:\virtual_machine\Linux_Ubuntu\Linux_Ubuntu.vbox
Snapshot folder: D:\virtual_machine\Linux_Ubuntu\Snapshots
Log folder: D:\virtual_machine\Linux_Ubuntu\Logs
Hardware UUID: 7f7fab59-90f1-40c9-91c3-ace8099c82bc
Memory size: 4096MB
Page Fusion: off
VRAM size: 64MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: off
Long Mode: on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Nested Paging: on
Large Pages: on
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
State: powered off (since 2016-05-02T15:24:04.000000000)
Monitor count: 1
3D Acceleration: on
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0): IDE
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
Storage Controller Name (1): SATA
Storage Controller Type (1): IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 30
Storage Controller Port Count (1): 1
Storage Controller Bootable (1): on
IDE (1, 0): C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso (UUID: b5e77323-ca41-4923-bbc8-763e11452d48)
SATA (0, 0): D:\virtual_machine\Linux_Ubuntu\Linux_Ubuntu.vdi (UUID: 391d6072-e7b5-421a-8c85-d2dbb7a06002)
NIC 1: MAC: 0800270B91EE, Attachment: Bridged Interface 'Intel(R) 82579V Gigabit Network Connection', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-vms, Bandwidth group: n
one
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: DSOUND, Controller: AC97, Codec: AD1980)
Clipboard Mode: disabled
Drag and drop Mode: disabled
VRDE: disabled
USB: enabled
EHCI: disabled
XHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders: <none>
Video capturing: not active
Capture screens: 0
Capture file: D:\virtual_machine\Linux_Ubuntu\Linux_Ubuntu.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Guest:
Configured memory balloon size: 0 MB
ifconfig -a
Code: Select all
eth0 Link encap:Ethernet HWaddr 08:00:27:0b:91:ee
inet addr:192.168.0.150 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe0b:91ee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7808 (7.8 KB) TX bytes:13192 (13.1 KB)
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:700 errors:0 dropped:0 overruns:0 frame:0
TX packets:700 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:55109 (55.1 KB) TX bytes:55109 (55.1 KB)