network bridge, Suse 10.2 in Vbox under Ubuntu 7.04

Discussions related to using VirtualBox on Linux hosts.
Post Reply
arf
Posts: 3
Joined: 26. Jul 2007, 17:53
Contact:

network bridge, Suse 10.2 in Vbox under Ubuntu 7.04

Post by arf »

hi,

i tried to create a network-bridge in Ubuntu 7.04 , type host-interface.
Virtual Suse 10.2 in vbox should connect with the intra-net 192.168.113.0/24.
IP Ubuntu-Host: 192.168.113.122
IP Ubuntu-bridge: 192.168.113.1

Configuration shellscript for bridge tap0, listings:

#!/bin/bash
PATH=/sbin:/usr/bin:/bin:/usr/bin
#tap0
sudo tunctl -t tap0 -u arf
sudo ip link set up dev tap0
#bridge
sudo brctl addbr br0
sudo brctl addif br0 tap0
#IP adress, route
sudo ip link set up dev br0
ip addr add 192.168.113.1/24 dev br0
ip route add 192.168.113.0/24 dev br0
#rights vboxusers
sudo chown root.vboxusers /dev/net/tun
sudo chmod 660 /dev/net/tun
###### Listing von brctl-show
#bridge name bridge id STP enabled interfaces
#br0 8000.8eaf2014a5c1 no tap0
##########Listing ifconfig ubuntu
#br0 Protokoll:Ethernet Hardware Adresse 8E:AF:20:14:A5:C1
# inet Adresse:192.168.113.1 Bcast:0.0.0.0 Maske:255.255.255.0
# inet6 Adresse: fe80::8caf:20ff:fe14:a5c1/64 Gültigkeitsbereich:Verbindung
# UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
# RX packets:6 errors:0 dropped:0 overruns:0 frame:0
# TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
# Kollisionen:0 Sendewarteschlangenlänge:0
# RX bytes:384 (384.0 b) TX bytes:4103 (4.0 KiB)
#
#eth0 Protokoll:Ethernet Hardware Adresse 00:19:66:26:39:0D
# inet Adresse:192.168.113.122 Bcast:192.168.113.255 Maske:255.255.255.0
# inet6 Adresse: fe80::219:66ff:fe26:390d/64 Gültigkeitsbereich:Verbindung
# UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
# RX packets:66 errors:0 dropped:0 overruns:0 frame:0
# TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
# Kollisionen:0 Sendewarteschlangenlänge:1000
# RX bytes:7972 (7.7 KiB) TX bytes:5085 (4.9 KiB)
# Interrupt:16 Basisadresse:0xc000
# .......... etc. ....
### guest SUSE 10.2 shows network-interface eth1
### in SUSE: ifconfig eth1 192.168.113.3 up
#### ping 192.168.113.1 does not work, network unreachable
#### no success with activating ip-forwardin on SUSE
# in vbox GUI
#### configuration host-interface, name tap0

In virtual Suse i get the network interface eth1 (not eth0?), routing -n
shows the normal route to 192.168.113.0 over 0.0.0.0,It seems correct.
Activating ip-forwarding in Suse does not solve the problem.
Ping to the Ubuntu-Host does not work.
No firewall iptables is activated on Suse, iplables -L is empty.

I do not have any ideas, why the net 192.68.113.0 is not reachable from the virtual machine.

arf
Post Reply