virtual network interface for VirtualBox

Leonard Chatagnier lenc5570 at sbcglobal.net
Fri Nov 21 14:02:33 UTC 2008


--- On Fri, 11/21/08, Nguyễn Hoàng Lân <somewheremylove.nh87 at gmail.com> wrote:
Snip.
>   By default the
> 'interfaces' file is empty so
> > >>  that Network Manager can manage all network
> cards in your machine.
> >
> 
> Thanks you! so I add  an interface into
> /etc/network/interfaces:
>            auto eth0
>            iface eth0 inet dhcp
> 
> can I add a virtual interface for my ethernet card:
 
I don't know about virtual interfaces; perhaps someone else can help here.

I want
> use it for
> VirtualBox:
>            auto eth0:1
>            ifcace eth0:1 inet static
>
Note the "ifcace" above, it should be "iface". If you actually have "ifcace" in your /etc/network/interfaces file that may be some of your problem.

                    address 192.168.0.10
>                    network 192.168.0.0
>                    netmask 255.255.255.0
> 
> I have tried, then restart, after long time to wait while
> starting (find a
> DHCP server?), my machine starts with static ip:
> 192.168.0.10, and Network
> icon don't show on gnome bar any more. How can I use
> dhcp for my NIC while a
> virtual interface (static ip) exits for using with
> VirtualBox ? I am using
> Ubuntu 8.10.
> 
I also don't know anything about VirtualBox either or if it has its own /etc/network/interfaces file or not. Maybe worth a check.
What do you have in your /etc/resolv.conf? That info may be of help to the list to determine your problem. All I know is that when I changes from DHCP to static IPs my nameserver IP changed as pointed out to me by NoOp. This may be at the heart of your problem, I'm not sure, but the info requested will help others smarter than me in networking to resolve your issue.  HTH

Leonard Chatagnier
lenc5570 at sbcglobal.net

-




More information about the ubuntu-users mailing list