Can I use a non-existant ethernet port?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
ToddAndMargo
Posts: 306
Joined: 6. Aug 2007, 02:24

Can I use a non-existant ethernet port?

Post by ToddAndMargo »

Hi All,

I am running 2.2.4 and CentOS 5.3 (RHEL 5.3 clone). I have two Ethernet cards: eth0 and eth1. Eth1 is connected to the Internet; eth0 is connected to all my virtual machines; iptables connects eth1 to eth0.

A new machine I am adding needs to be off eth0 and eth1 (security reasons). I noticed four Ethernet cards in my VM network settings.

Question: is there a way to make up a third fake Ethernet card that I do not physically have (eth2) and assign it to my new VM? How do I do this? And, it needs to be a "bridged adapter".

Many thanks,
-T
frank
Oracle Corporation
Posts: 3362
Joined: 7. Jun 2007, 09:11
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows
Location: Dresden, Germany
Contact:

Re: Can I use a non-existant ethernet port?

Post by frank »

A non-existant physical network adapter which is also a bridged adapter does IMHO not make sense because bridged means that this adapter is somehow connected to the outside. Wouldn't a host-only adapter fulfil your requirements? Btw, you setup up to 8 network cards for one VM, the remaining 4 adapters have to be set up using VBoxManage controlvm.
ToddAndMargo
Posts: 306
Joined: 6. Aug 2007, 02:24

Re: Can I use a non-existant ethernet port?

Post by ToddAndMargo »

I have not found a way, other than bridge, to force the guest through iptables.
-T
ToddAndMargo
Posts: 306
Joined: 6. Aug 2007, 02:24

Re: Can I use a non-existant ethernet port?

Post by ToddAndMargo »

The CentOS gave me a tip on VLAN's: http://www.cyberciti.biz/tips/howto-con ... -vlan.html

I will be trying this tomorrow at my customer's site. Please stop me it there is a problem with this!

Many thanks,
-T
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Can I use a non-existant ethernet port?

Post by Sasquatch »

You can also create virtual interfaces, called TAP interfaces. You need the package uml-utilities to get the tunctl program, which can create those tap interfaces.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ToddAndMargo
Posts: 306
Joined: 6. Aug 2007, 02:24

Re: Can I use a non-existant ethernet port?

Post by ToddAndMargo »

If I can not get VLAN to work, I will switch to TAP. Thank you!
-T
Post Reply