You are not logged in.
Pages: 1
This is what i want
Or am i completly wrong when i want to use the virtual guest machine as a server.
I try this configuration
/etc/conf.d/bridge
bridge_br0="eth0"
control_br0="setfd br0 0"
BRIDGE_INTERFACES=(br0)/etc/rc.conf
interface=eth0
address=192.168.0.50
netmask=255.255.255.0
broadcast=192.168.0.255
gateway=192.168.0.50/etc/network.d/br0
INTERFACE="br0"
CONNECTION="bridge"
DESCRIPTION="bridge br0 static"
BRIDGE_INTERFACES="eth0"
IP='static'
ADDR='10.0.0.10'
GATEWAY='10.0.0.1'
DNS='10.0.0.1'First i do /etc/rc.d/network start, then netcfg br0
Virtualbox guest machine i startet in bridge mode and chose the br0 interface.
I give the guest machine the same ip as the br0 nic in the host machine.
I can ping the br0 interface, but this is not the guest machine i guess, because i can't ssh into it.
Any ideas?
Offline
Why do you give the guest machine the same IP as the host? The idea behind briding is that the guest gets its own IP in your local network, otherwhise you would have to use NAT/host-only networking for the guest.
Also, with VirtualBox you do not really need to setup a bridge interface in the host, as VirtualBox can use your default eth0 interface for bridging. Just select bridged network and eth0 in the guests setup dialog.
Last edited by teekay (2012-04-13 10:25:27)
Offline
Why do you give the guest machine the same IP as the host? The idea behind briding is that the guest gets its own IP in your local network,...
You mean e.g.
Host: 192.168.0.1
Bridge: 192.168.0.2
Guest: 192.168.0.3
?
Also, with VirtualBox you do not really need to setup a bridge interface in the host, as VirtualBox can use your default eth0 interface for bridging. Just select bridged network and eth0 in the guests setup dialog.
i've already tried this. guest machine said then that the network is unreachable and guest is not reachable too ![]()
Offline
You mean e.g.
Host: 192.168.0.1
Bridge: 192.168.0.2
Guest: 192.168.0.3
?
Almost. The bridge ip == host ip. eth0 is in promisc mode without ip assigned to it.
Here it looks like this:
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1
inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::92e6:baff:fec8:1ee6 prefixlen 64 scopeid 0x20<link>
ether 90:e6:ba:c8:1e:e6 txqueuelen 0 (Ethernet)
...
eth0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500 metric 1
ether 90:e6:ba:c8:1e:e6 txqueuelen 1000 (Ethernet)
....i've already tried this. guest machine said then that the network is unreachable and guest is not reachable too
Was that with DHCP or static IP? If static, was it the same subnet as the host?
Offline
Almost. The bridge ip == host ip. eth0 is in promisc mode without ip assigned to it.
Here it looks like this:br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::92e6:baff:fec8:1ee6 prefixlen 64 scopeid 0x20<link> ether 90:e6:ba:c8:1e:e6 txqueuelen 0 (Ethernet) ... eth0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500 metric 1 ether 90:e6:ba:c8:1e:e6 txqueuelen 1000 (Ethernet) ....Let me try this at home this evening.
i've already tried this. guest machine said then that the network is unreachable and guest is not reachable too
Was that with DHCP or static IP? If static, was it the same subnet as the host?
It was a stand alone PC. Host was not connected with eth0 on any kind of network. So i give the guest a static ip.
Offline
Also, with VirtualBox you do not really need to setup a bridge interface in the host, as VirtualBox can use your default eth0 interface for bridging. Just select bridged network and eth0 in the guests setup dialog.
Yay... if i booting the guest with bridge interface eth0, it don't work.
Host eth0 looks like that
interface=eth0
address=192.168.0.50
netmask=255.255.255.0
broadcast=192.168.0.255
gateway=192.168.0.1And guest eth0 looks like that
interface=eth0
address=192.168.0.3
netmask=255.255.255.0
broadcast=192.168.0.255
gateway=192.168.0.1And both direction looks like that
# ping 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
From 192.168.0.50 icmp_seq=1 Destination Host Unreachable
From 192.168.0.50 icmp_seq=2 Destination Host Unreachable
From 192.168.0.50 icmp_seq=3 Destination Host Unreachableany other ideas what exactly went wrong?
Offline
I'm using dhcp, here is my confs
$ cat /etc/network.d/bridge
INTERFACE="br0"
CONNECTION="bridge"
DESCRIPTION="Bridge"
BRIDGE_INTERFACES="eth0"
IP="dhcp"$ cat /etc/rc.conf
...
#interface=eth0
#address=
#netmask=
#broadcast=
#gateway=
...
NETWORKS=(bridge)
...
DAEMONS=(... net-profiles ...) # make sure there is no network/networkmanager daemonsVM is bridged to br0.
So, i guess, you simply have to change
INTERFACE="br0"
CONNECTION="bridge"
DESCRIPTION="bridge br0 static"
BRIDGE_INTERFACES="eth0"
IP='static'
ADDR='10.0.0.10'
GATEWAY='10.0.0.1'
DNS='10.0.0.1'to
INTERFACE="br0"
CONNECTION="bridge"
DESCRIPTION="bridge br0 static"
BRIDGE_INTERFACES="eth0"
IP='static'
ADDR='192.168.0.50'
GATEWAY='192.168.0.50'
DNS='192.168.0.50'and remove eth0 configuration from rc.conf.
Offline
Just out of curiosity,
How would you set this up with the new systemd? So, would I follow the wiki, but then remove dhcpcd@eth0 and add dhcpcd@br0?
Also, would the rc.local and netcfg settings still apply?
I am running on a fresh install of Arch, so most of the files mentioned in the wiki don't exist, so i have to create them. Just wanted to know if the instructions still apply.
Thanks!
Joe
Offline
Pages: 1