LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2007, 03:46 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
virtual box networking


How can I configure this? I want to use it instead of NAT.

http://img296.imageshack.us/img296/8...ettingsch6.png
 
Old 10-21-2007, 04:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
what's that picture got to do with anything... doesn't seem to relate to virtual box in any way... i guess you probably want a bridged network, so 5 seconds on google gives me this... http://www.virtualbox.org/wiki/Automatic_Bridge_Ubuntu which should help.
 
Old 10-21-2007, 12:16 PM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
I want to be able to ssh or ping from my host os to the guest os. Bridge shouldn't be required for that, so why am I not able to ping or ssh when using NAT?
 
Old 10-21-2007, 12:32 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
if this is between the host and the guest, then NAT isn't even going to be involved. they both have an ip on a seperate private network. do they have suitable addresses on both operating systems?
 
Old 10-21-2007, 12:47 PM   #5
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
This is what I mean.

http://img48.imageshack.us/img48/916...orking2xe5.png

http://img48.imageshack.us/img48/722/networkingkr4.png
 
Old 10-21-2007, 12:54 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
i'd really reather you actually explained things that provide screenshots with little context... anyway. so on the ubuntu host box there should be another network adapter which is also on 10.0.2.0/24. then the machiens will be able to hit each other on a private network inside your single bit of tin. the NAT side then comes into play when and internal machine wants to get out pastr the host system, so the host system then NAT's the IP packets to it's own external ip address.
 
Old 10-21-2007, 12:57 PM   #7
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Should I change the subnet mask on the guest to be the same as the host?
 
Old 10-21-2007, 01:01 PM   #8
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by acid_kewpie View Post
so on the ubuntu host box there should be another network adapter which is also on 10.0.2.0/24.
No, there's not. Here's what I have on the Ubuntu host.

Code:
$ sudo ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:14:2A:BD:89:A2  
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::214:2aff:febd:89a2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4664862 errors:10 dropped:0 overruns:0 frame:10
          TX packets:4677190 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3348243647 (3.1 GB)  TX bytes:561228538 (535.2 MB)
          Interrupt:20 Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:C0:26:7D:4C:DF  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:17 Base address:0x6000 

ham0      Link encap:Ethernet  HWaddr 00:FF:1B:16:81:EB  
          inet addr:5.181.26.158  Bcast:5.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1200  Metric:1
          RX packets:23628 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44716 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:1654437 (1.5 MB)  TX bytes:54219615 (51.7 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:52492 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52492 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2738673 (2.6 MB)  TX bytes:2738673 (2.6 MB)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08  
          inet addr:192.168.106.1  Bcast:192.168.106.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:85 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
 
Old 10-21-2007, 01:16 PM   #9
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Does that mean I must used bridge networking?
 
Old 10-21-2007, 01:42 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
where did the 10.0.2.0/24 network come from in the first place? you have vmnet8, which is the NAT virtual NIC on the host in 192.168.160.0/24, so your guests should also be in that network.
 
Old 10-21-2007, 02:52 PM   #11
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
vmnet8 is a virtual nic created by vmware server. In other words, you are saying that I could network VMware Server and Virtualbox together. Screw Virtualbox. I'm removing it and using VMware Server instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
virtual box alf_frommars Ubuntu 6 08-14-2007 09:30 AM
virtual box.. cant start vm alf_frommars Linux - Software 1 08-03-2007 01:13 PM
Virtual Box Blackbar Linux - Software 1 06-05-2007 08:25 PM
Virtual Box. Removing a shared folder inside virtual xp. glore2002 Linux - Software 2 05-20-2007 12:12 PM
I need help networking a linux box to a win98 box... philfighter Linux - Networking 0 11-13-2001 10:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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