Page 1 of 1

Can I use a non-existant ethernet port?

Posted: 6. Jul 2009, 01:52
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

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

Posted: 6. Jul 2009, 14:42
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.

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

Posted: 6. Jul 2009, 18:24
by ToddAndMargo
I have not found a way, other than bridge, to force the guest through iptables.
-T

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

Posted: 6. Jul 2009, 18:52
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

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

Posted: 6. Jul 2009, 21:11
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.

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

Posted: 6. Jul 2009, 21:59
by ToddAndMargo
If I can not get VLAN to work, I will switch to TAP. Thank you!
-T