﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
13656,host eth0 interface changes to 192.168.56.1 after first run of virtualbox GUI  breaking host network,Luis Nunes,,"Host runs Oracle Linux 6.2
Virtual Box 4.3.18, but also affects previous versions 4.2.

Upon Host boot the default active network is ""eth0"" with IP 192.168.1.50.
{{{
eth0      Link encap:Ethernet  ...
          inet addr:192.168.1.50  Bcast:192.168.1.255  Mask:255.255.255.0
}}}
The first time running virtualbox, or vboxmanage, or vboxheadless the interface ""vboxnet0"" is created and it becomes the default active network, and the interface eth0 IP is changed to 192.168.56.1, breaking the host network access.
{{{
eth0      Link encap:Ethernet  ...
          inet addr:192.168.56.1  Bcast:192.168.56.255  Mask:255.255.255.0

vboxnet0  Link encap:Ethernet  HWaddr 0A:00:27:00:00:00
}}}
The host is not reachable remotely. The workaround, if near to the host to login, is to switch the active interface ""vboxnet0"" to ""eth0"".
The local access is not always possible if the host is on remote site.
The result of switching back to ""eth0"" from the host GUI, is the IPs are corrected:
{{{
eth0      Link encap:Ethernet  ...
          inet addr:192.168.1.50  Bcast:192.168.1.255  Mask:255.255.255.0

vboxnet0  Link encap:Ethernet  HWaddr 0A:00:27:00:00:00
          inet addr:192.168.56.1  Bcast:192.168.56.255  Mask:255.255.255.0
}}}
After the interface switch, all other further runs of ""virtualbox"" GUI will not affect the interfaces. Need some clue how to solve this situation.
Before the switch, If I work locally from the host, I can run the GUI and start the VMs. But I also have to switch the interfaces if I want to access the outside world from either the host or the guests.

Additional Host network info:
{{{
# cat ifcfg-eth0
DEVICE=eth0
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=""System eth0""
IPADDR=192.168.1.50
PREFIX=24
GATEWAY=192.168.1.254
DNS1=192.168.1.254
HWADDR=C8:60:00:??:??:??
USERCTL=no

# cat ifcfg-vboxnet0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.56.1
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=vboxnet0
ONBOOT=yes
GATEWAY=192.168.1.254
DEVICE=vboxnet0
USERCTL=no
}}}

Network rules
{{{
# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM==""net"", ACTION==""add"", DRIVERS==""?*"", ATTR{address}==""c8:60:00:??:??:??"", ATTR{type}==""1"", KERNEL==""eth*"", NAME=""eth0""

# USB device 0x07d1:0x3c09 (usb)
SUBSYSTEM==""net"", ACTION==""add"", DRIVERS==""?*"", ATTR{address}==""00:1c:f0:??:??:??"", ATTR{dev_id}==""0x0"", ATTR{type}==""1"", KERNEL==""wlan*"", NAME=""wlan0""
}}}

Appreciate help, solution.
Thanks",defect,closed,network/hostif,VirtualBox 4.3.18,invalid,,,Linux,Linux
