It is currently Wed Jun 19, 2019 9:05 pm


All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Virtual Box e0 interface greyed out
PostPosted: Sun Apr 07, 2013 6:25 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
Hi,

I've just started playing with VIrtualBox with GNS3 (and beginning to wonder why I PAID for VMware!!!). But I understand how VMware interfaces work.

Does anyone know what the deal is with the fact that you need to add a second interface to your VM to be able to talk to GNS3 devices? And why does it have to be configured as host-only? (Thanks to Khaled's video: http://www.youtube.com/watch?v=l6BjEIin2Jw)

I did notice that if i DIDN'T add a second adapter, GNS3 added one for me that was a UDP tunnel adapter but it didn't work. I had to configure it as host-only to make it able to communicate with a GNS3 (cisco) router.

So what is going on with interface e0? Why does it need to be greyed out?

(I know the answer may well be buried in the 41 pages of topic3262-10.html, but I didn't find it)

Any help appreciated.



_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Sun Apr 07, 2013 9:41 am 
Offline

Joined: Fri Mar 11, 2011 7:39 pm
Posts: 603
Location: Israel
I have designed this whole story with GNS3 0.8.0 series (and VirtualBox 4.1 series).

1st interface (VBox vNIC 1) is reserved for use for out-of-band VM management + Internet access (over NAT or Bridge).
2nd interface is GNS3 (VBox vNIC 1) is used to connect to our virtual network.

The original idea is this:
GNS3 cloud often simulates a private LAN or WAN (without internet access), so I wanted a way to make an "out-of-band" so-called stealth connection to the Internet for my VBox VMs.
The most elegant way to do this with VirtualBox is to reserve one virtual network card, so I reserved vNIC1 for Internet, while vNIC 2-8 are for virtual network simulation.

Why do I need Internet in VM ?
To download extra applications into the VM: WinSCP, FireFox, various debuggers (like Firebug) etc...
This reserve vNIC trick adds convenience, at a slight penalty of more confusion.

If you don't need it, just disable 1st vNIC in VirtualBox, and use vNIC 2-8 for your lab.
VBox VM->Settings->Network->Adapter 1->uncheck Enable Network Adapter


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Sun Apr 07, 2013 9:59 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
Thanks - I thought it was something like that.

What I don't get now is why my guest gets an IP address of 10.0.2.15 DG 10.0.2.2, when in VirtualBox the first adapter is set up as a DHCP server handing out addresses from 192.168.56.101~254. Why is it the guest gets a 10.0.2.x address rather than a 192.168.56.1xx address (which is how it works in VMware)

I've also seen there is an option to enable the first interface anyway, but I can now see good reason for not doing that if the guest OS is one that needs to receive updates.

Thanks again.

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Sun Apr 07, 2013 10:27 am 
Offline

Joined: Fri Mar 11, 2011 7:39 pm
Posts: 603
Location: Israel
VirtualBox DHCP server controls *ONLY* "Host-only" network mode.

VirtualBox has 8 network modes:
-NAT (works differently than VMware) - client gets 10.0.2.15 <-- Recommended for most newbie users. (pass-though at layer 3)
-Internal
-Bridge (pass-though at layer 2) -- completely bypasses Host OS TCP/IP stack but still uses Host's NIC drivers.
-Host-only
-UDP Tunnel
-VDE (Virtual Distributed Ethernet; Linux host only)
-Disabled (disconnected)
+a secret mode: VT-d (pass-though at layer 1) -- completely bypasses Host OS TCP/IP stack _and_ NIC drivers. (Requires special hardware+Linux host only)


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Sun Apr 07, 2013 10:50 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
Got it. NAT always uses the 10.0.2.x/24 subnet, with DG 10.0.2.2. Kind of strange to not be able to specify what IPs to use, but I can live with it.

Thanks again.

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Tue Apr 09, 2013 11:32 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Quote:
So what is going on with interface e0? Why does it need to be greyed out?


Have you noticed the option "Do not use first NIC for connections with the host OS"? (now I think I should rephrase this sentence, any suggestion?). This will allow you to use your first network interface in your guest OS, i.e. with Linux you can use eth0 to connect to other GNS3 nodes.

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Wed Apr 10, 2013 12:50 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
@Jeremy
Yep - found that option and got it worked out. It was the way the NAT worked that threw me.

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Wed Apr 10, 2013 1:30 am 
Offline

Joined: Tue Jul 17, 2012 1:34 pm
Posts: 214
grossmj wrote:
Have you noticed the option "Do not use first NIC for connections with the host OS"? (now I think I should rephrase this sentence, any suggestion?). This will allow you to use your first network interface in your guest OS, i.e. with Linux you can use eth0 to connect to other GNS3 nodes.

I think would find it less confusing if it stated what the option does in GNS3, rather than what is doesn't do in VirtualBox. The fist time I read this I had to decipher what host it was referring to.

Maybe it should be reworded to an "allow." statement. Perhaps something like "Allow first VirtualBox NIC to be used in GNS3." Any thoughts?

_________________
J.Neumann, GNS3 Contributor & Forum Moderator (Minion ID: sin.zx81.1981ad)
Author: Cisco Routers for Small Business (Apress)


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Wed Apr 10, 2013 2:53 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
I agree with Jason, but how about:

[x] Reserve first NIC for VirtualBox NAT to host OS

And the default state of ON

However, either wording would be better than having an option stated in the negative

Rule #27: RedNectar's guide to programming user interfaces
Never state an option in the negative.

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: Virtual Box e0 interface greyed out
PostPosted: Wed Apr 10, 2013 4:35 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Quote:
Rule #27: RedNectar's guide to programming user interfaces


I'll "borrow" this rule ;)

Thanks guys



_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO