LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-26-2015, 11:44 AM   #1
Nitup
LQ Newbie
 
Registered: Dec 2014
Posts: 13

Rep: Reputation: Disabled
Virtual Box Bridged network failed to get IP (DHCP) No DHCPOFFERS received


I am newbie in networking and virtual box configuration, I have spent several days dealing with this problem. My goal is to get Bridged network working.
When I try to UP interface in my Virtual Box VM, it tries some DHCPDISCOVER messages, but eventually I get No DHCPOFFERS received.
I find where is the problem.
On my host machine I have following network interface configuration (interface I want to have bridge with).

Quote:
HWADDR=5c:9a:d8:68:45:ff
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=enp3s0
DEVICE=enp3s0
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=195.XX.YY.ZZ
NETMASK=255.255.255.0
NETWORK=195.XX.YY.0
GATEWAY=195.XX.YY.GGG
BROADCAST=195.XX.YY.255
DNS1=195.XX.YY.DDD
DNS2=8.8.8.8
DOMAIN=some.domain.com
So configuration is static.
If use BridgedAdapter on interface that in turn uses dhcp to get access to the Internet everything works great. as expected.
I guess that I have missed something or configuration should be done in another way, to be honest, I don't really understand how bridged network works internally.
Maybe problem can easily solved, but have not enough knowledge know to fix it by myself, so I am asking here.
Please help to solve this problem. Thanks everyone in advance for any help
 
Old 05-26-2015, 11:49 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
So you're saying that when the host uses a static IP, and the guest uses "bridged adapter" set to DHCP, the guest can't get an IP, but when the host is also using DHCP the guest can? You are bridging the enp3s0 interface, yes?

I run DHCP VMs with bridged adapter on a static host all the time, I've never had an issue.

What does the rest of your network look like (router, NAT, DHCP server, etc.)?

Last edited by suicidaleggroll; 05-26-2015 at 11:52 AM.
 
Old 05-26-2015, 08:43 PM   #3
Nitup
LQ Newbie
 
Registered: Dec 2014
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
So you're saying that when the host uses a static IP, and the guest uses "bridged adapter" set to DHCP, the guest can't get an IP, but when the host is also using DHCP the guest can? You are bridging the enp3s0 interface, yes?

I run DHCP VMs with bridged adapter on a static host all the time, I've never had an issue.

What does the rest of your network look like (router, NAT, DHCP server, etc.)?
You are absolutely rigth. There is no other network configuration only static on the host and I need to bridge it from Virtual Box VM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhclient takes ages to connect to wpa-secured network, then "no dhcpoffers received" solitaira Linux - Wireless Networking 5 05-01-2010 04:49 AM
no dhcp connection/ no DHCPOFFERS received greengirl Slackware 2 01-01-2010 04:09 AM
Cannot get DHCP address - "No DHCPOFFERS received." pwabrahams Linux - Wireless Networking 17 09-06-2008 11:46 AM
No DHCPOFFERS received antonucc Linux - Networking 8 12-07-2006 04:06 AM
NO DHCPOFFERS received ekdya Debian 7 04-27-2006 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration