Guest not receiving IP in Bridged Mode

Discussions related to using VirtualBox on Linux hosts.
Post Reply
karthick87
Posts: 9
Joined: 15. Mar 2017, 08:55
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Linux
Location: India

Guest not receiving IP in Bridged Mode

Post by karthick87 »

Hello,

I am running a Guest (RHEL7) in VirtualBox (5.1.18 r114002 (Qt5.6.2)). The Guest has two NIC Cards (eth0,eth1) where eth0 (Adapter1) is connected to 'Nat Network' and I have assigned a static IP to it. And eth1 (Adapter2) is connected in Bridged Mode. But eth1 is not receiving ip address. I have given the configuration details below. Any pointers would be helpful.

Code: Select all

Adapter 1: Paravirtualized Network (NAT Network, 'NatNetwork')
Adapter 2: Intel PRO/1000 T Server (Bridged Adapter, Intel(R) Dual Band Wireless-AC 7260)

[root@rhelseven ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth0
UUID=c92e2076-1607-46b1-b029-5b609d6619a3
DEVICE=eth0
IPADDR=192.168.2.6
NETMASK=255.255.255.0
GATEWAY=192.168.2.1
DNS1=192.168.2.1
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes

[root@rhelseven ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth1
UUID=527dc76d-05fc-48ef-8cee-c6a317928ed3
DEVICE=eth1
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes

[root@rhelseven ~]# dhclient -r eth1

[root@rhelseven ~]# dhclient -v eth1
Internet Systems Consortium DHCP Client 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/08:00:27:55:54:76
Sending on   LPF/eth1/08:00:27:55:54:76
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7 (xid=0x74ecc278)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10 (xid=0x74ecc278)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 12 (xid=0x74ecc278)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 9 (xid=0x74ecc278)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14 (xid=0x74ecc278)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 (xid=0x74ecc278)
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 1 (xid=0x74ecc278)
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo RHEL7-New --details
Name:            RHEL7-New
Groups:          /Active Machines
Guest OS:        Red Hat (64-bit)
UUID:            06df6102-eb56-4198-a036-f6f0516a5762
Config file:     C:\Users\test1\VirtualBox VMs\Active Machines\RHEL7-New\RHEL7-New.vbox
Snapshot folder: C:\Users\test1\VirtualBox VMs\Active Machines\RHEL7-New\Snapshots
Log folder:      C:\Users\test1\VirtualBox VMs\Active Machines\RHEL7-New\Logs
Hardware UUID:   06df6102-eb56-4198-a036-f6f0516a5762
Memory size:     2048MB
Page Fusion:     off
VRAM size:       16MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       on
Triple Fault Reset: off
APIC:            on
X2APIC:          on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): HardDisk
Boot Device (2): DVD
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
BIOS APIC mode:  APIC
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
Effective Paravirt. Provider: KVM
State:           powered off (since 2017-03-21T05:46:54.000000000)
Monitor count:   1
3D Acceleration: off
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): Empty
SATA (0, 0): C:\Users\test1\VirtualBox VMs\Active Machines\RHEL7-New\RHEL7-New.vdi (UUID: 6370e1e1-cee9-4f6b-872a-f83bf68667c2)
NIC 1:           MAC: 08002760FEF1, Attachment: NAT Network 'NatNetwork', Cable connected: on, Trace: off (file: none), Type: virtio, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:           MAC: 080027555476, Attachment: Bridged Interface 'Intel(R) Dual Band Wireless-AC 7260', Cable connected: on, Trace: off (file: none), Type: 82543GC, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
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:  Bidirectional
Drag and drop Mode: Bidirectional
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:       C:\Users\test1\VirtualBox VMs\Active Machines\RHEL7-New\RHEL7-New.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB

C:\Program Files\Oracle\VirtualBox>
Just because something doesn’t do what you planned it to do doesn’t mean it’s useless.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Guest not receiving IP in Bridged Mode

Post by socratis »

karthick87 wrote:eth1 (Adapter2) is connected in Bridged Mode
karthick87 wrote:eth1 is not receiving ip address
karthick87 wrote:NIC 2: ... Bridged Interface 'Intel(R) Dual Band Wireless-AC 7260'
Bridged and wireless don't always play nice. Bridged networking is outside the WLAN specification. Bridging to wireless is not really bridging. The guest shares the MAC of the host and the host does a sort of MAC-NAT translation based on IP addresses. Promiscuous mode doesn't exist in the official WLAN specifications. It may or may not work. Some combinations of Routers/Access Points, WLAN cards and drivers work, some don't. See: Bridging & Wifi - Supported hardware and add your experience.

See also: https://www.virtualbox.org/ticket/10019#comment:18
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