LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-03-2013, 09:53 AM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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

EDIT:

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

http://forums.fedoraforum.org/showthread.php?t=288900

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 10:27 AM. Reason: New information
 
Old 03-03-2013, 02:19 PM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
JockVSJock,

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 effect...at 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:

http://fedoraproject.org/wiki/Featur...rkDeviceNaming
 
Old 03-03-2013, 04:37 PM   #3
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
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 74.204.128.237
-bcast address 74.204.129.255
-mask 255.255.254.0

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 74.204.128.238
-netmask 255.0.0.0
-bcast 74.255.255.255

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

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

thanks
 
Old 03-03-2013, 05:47 PM   #4
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
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 - 255.255.254.0 (this is a /23 subnet)
Fedora - 255.0.0.0 (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).
 
  


Reply

Tags
eth0, fedora 18, p2p1, virtualbox



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 01:58 AM
networking in virtualbox r_s Linux - Newbie 2 01-23-2011 07:29 PM
[SOLVED] Interface eth0 doesn't exist. LFS 6.5 on VirtualBox guodah Linux From Scratch 5 11-18-2010 09:39 PM
VirtualBox and networking AQG Linux - Software 2 06-02-2008 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:57 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