Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtualbox
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
xavierLoS
n00b
n00b


Joined: 02 Apr 2008
Posts: 23

PostPosted: Fri Apr 11, 2008 7:19 am    Post subject: Virtualbox Reply with quote

Buon giorno a tutti quanti...

Vi espongo il mio dubbio, ho installato virtualbox ed ora voglio mettere in comunicazione la mia macchina guest con la macchina host. Il problema è che il mio computer è scollegato fisicamente da qualsiasi altra apparecchiatura (router/modem) e di conseguenza internet.

la domanda è come posso fare una rete lan virtuale?

e poi però quando vado in giro, vorrei ripristinare nuovamente la configurazione attuale..

ale
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Fri Apr 11, 2008 11:49 am    Post subject: Reply with quote

La comunicazione tra macchina guest e host è indipendente dalla presenza o meno di una rete fisica sulla macchina host ...

A prescindere dalla configurazione della rete del mio portatile (e dal fatto che sia collegato o meno) comunico con la macchina guest ...

Il discorso è veramente vasto, ti consiglio caldamente di studiarti il manuale di virtualbox (quantomeno la sezione sulla rete) e magari fare qualche domanda sulle cose che non hai capito ...
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
xavierLoS
n00b
n00b


Joined: 02 Apr 2008
Posts: 23

PostPosted: Fri Apr 11, 2008 12:17 pm    Post subject: Reply with quote

ho provato questo pezzo di codice..

Quote:

#!/bin/sh
# set PATH for the case we are called via sudo or su root

PATH=/sbin:/usr/bin:/bin:/usr/bin

# create a tap
tunctl -t tap1 -u <user>
ip link set up dev tap1

# create the bridge
brctl addbr br0
brctl addif br0 tap1

# set the IP address and routing
ip link set up dev br0
ip addr add 10.1.1.1/24 dev br0
ip route add 10.1.1.0/24 dev br0


ma nulla i comandi che iniziano con ip non mi venivano riconosciuti

ho provato a leggere anche ciò che diceva la guida di virtualbox ed altri tutorial o script trovati per la rete.. eppure non sono riuscito..

ho provato anche questa serie di istruzzioni
Quote:

http://samiux.wordpress.com/2007/07/11/bridge-network-interface-on-virtualbox/


ma il device non mi viene creato ed il dhcp fallisce

tu come hai fatto? che procedimento hai seguito?
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Fri Apr 11, 2008 12:28 pm    Post subject: Reply with quote

i comandi non vengono ricnosciuti perchè non hai installato il pacchetto iproute2 ;-)

Coda
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Fri Apr 11, 2008 4:37 pm    Post subject: Reply with quote

xavierLoS wrote:
tu come hai fatto? che procedimento hai seguito?

ho abilitato per la macchina virtuale la rete come NAT e basta, da guest posso collegarmi al server su host ...
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum