Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 03-03-2013, 10:53 AM   #1
Registered: Jan 2004
Posts: 786

Rep: Reputation: 45
Question Missing eth0 when changing type of networking under VirtualBox

Mods: If this needs to move to Virtulization, then ok.

I'm running Fedora 18 in Virtual Box 4.2.6 and when I changed the networking from NAT to Bridged, I have lost my Internet Connection.

The nic shows up as P2P1, instead of eth0.

When doing some research online, I found that I need to go under /etc/networking/sysconfig/networking-scripts

Once I go there, I don't see eth0 file, however I don't see a way to add a file there. I do see P2P1 though..

Under this thread, it is stating to go under /etc/udev to make the modification


Wanted to update, that I put Fedora 18 back to NAT and the NIC shows up as P2P1.

However when I go under /etc/udev I don't see any entries for eth0.

Is there a way to get eth0 added?

Last edited by JockVSJock; 03-03-2013 at 11:27 AM. Reason: New information
Old 03-03-2013, 03:19 PM   #2
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 96

There has been a modification to change the naming convention of the ethernet ports to differentiate between on-board and PCI NICS. P2P1 stands for p<slot#>p<port#> (for PCI NICS), and ethX has benn changed to emX for on board NICS. You can change this back to ethX by removing the package biosdevname and reconfigiguring the /etc/udev/rules.d/70-persistent-net.rules (Red Hat - Fedora may be a little different) to say ethX rather than p2p1. I believe a restart is required for this change to take minimum, a service netowrk restart. I have read that you can alos override this by adding biosdevname=0 to the grub.conf, but I have not tested this myself. Here is a link to the WIKI regarding these changes:
Old 03-03-2013, 05:37 PM   #3
Registered: Jan 2004
Posts: 786

Original Poster
Rep: Reputation: 45
I'm stumped.

I've tried using all of the Network Adapters, and to no avail, still not able to get an ip address and get out onto the Internet.

Right now, my goal is to get Fedora 18 and Ubuntu 12.04 to talk to each other in VirtualBox.

I am trying to assign an ip address to Fedora 18 manually, based on the ip address of Ubuntu.

Ubuntu has the following:
-ip address
-bcast address

There is no gateway address listed and I don't see one from the GUI.

For the Fedora Box, I gave it the following:

-ip address

From Fedora box, I am unable to ping (DNS Server), getting destination unreachable.

I'm not sure what to do to fix this.

Old 03-03-2013, 06:47 PM   #4
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 96
Well, the reason that they will not currently talk to one another is that they are in two different networks, and if they do not hava gateway, they do not how to get out of or back into their own networks. If these machines are running on the same host, I woulod suggest putting them in the same network unless they are in seperate networks for a reason. If you want either of these machines to access the internet, they will need their own individual gateways set. By the IP address, they LOOK like they are in the same network, but the subnet mask tells what networks they are REALLY in.

UBUNTU - (this is a /23 subnet)
Fedora - (this is a /8 subnet)

If you give both machines the same subnet mask, they will talk to each other. They will not talk to the DNS (or internet) without a gateway.

If you give both machines a gateway, they will talk to each other and the internet, even though they are in different networks (different subnet masks).


eth0, fedora 18, p2p1, virtualbox

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
changing file system type to another filesystem type,does it effect on data? janakiramulu Ubuntu 1 02-04-2011 02:58 AM
networking in virtualbox r_s Linux - Newbie 2 01-23-2011 08:29 PM
[SOLVED] Interface eth0 doesn't exist. LFS 6.5 on VirtualBox guodah Linux From Scratch 5 11-18-2010 10:39 PM
VirtualBox and networking AQG Linux - Software 2 06-02-2008 01:50 PM

All times are GMT -5. The time now is 09:53 PM.

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