Jump to content
Sign in to follow this  
nokheat

Virtualbox bridged Networking on mandriva

Recommended Posts

I have followed the instructions to build a temp bridge and virtual interface for the virtual machine.

 

the network didnt work then. what have i probably missed out?

 

any ideas?

 

here is teh script i used to get the network

 

script:

#!/bin/bash

#buld a tap adapter

tunctl -t tap1 -u <username>

#set a bridge and named br0

brctl addbr br0

#make eth0 promisc

ifconfig eth0 0.0.0.0 promisc

#connect the real interface to bridge

brctl addif br0 eth0

#give br0 the existing ip

ifconfig br0 192.168.1.60

# connect the virtual interface to bridge

brctl addif br0 tap1

# activate tap1

ifconfig tap1 up

# set permission

chmod 0666 /dev/net/tun

Share this post


Link to post
Share on other sites

You have to do all the above as root, and reboot (as your ethernet connection will stop working after "ifconfig eth0 0.0.0.0 promisc").

Also,

ifconfig br0 192.168.1.60

Doers this mean that you are using static addresses at your router?

Edited by scarecrow

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...