Hi,
I'm using Debian GNU/Linux as host machine and M$ WinXP as guest.
Initially i was write two scripts and i'm using it every day:
eth3 - separate network card for virtualbox
br0 - bridge
tap0 - software network interface, what is appointed in vbox settings of
VM
And now some settings of host machine and scripts:
==> /etc/network/interfaces
=======================================================
auto eth3
iface eth3 inet static
address 169.254.226.110
netmask 255.255.255.255
up /etc/vbox/netup.sh
down /etc/vbox/netdown.sh
=======================================================
==> /etc/vbox/netup.sh
=======================================================
#!/bin/bash
FIFACE="eth3"
BRIFACE="br0"
VIFACE="tap0"
USER="cutter"
TUNCTL="/usr/sbin/tunctl"
BRCTL="/usr/sbin/brctl"
IFCONFIG="/sbin/ifconfig"
$TUNCTL -t $VIFACE -u cutter
$BRCTL addbr $BRIFACE
$IFCONFIG $FIFACE 0.0.0.0 promisc
$BRCTL addif $BRIFACE $FIFACE
$IFCONFIG $BRIFACE 0.0.0.0 up
$BRCTL addif $BRIFACE $VIFACE
$IFCONFIG $VIFACE 0.0.0.0 up
echo "1" > /proc/sys/net/ipv4/conf/$VIFACE/proxy_arp
=======================================================
==> /etc/vbox/netdown.sh
=======================================================
#!/bin/bash
FIFACE="eth3"
BRIFACE="br0"
VIFACE="tap0"
USER="cutter"
TUNCTL="/usr/sbin/tunctl"
BRCTL="/usr/sbin/brctl"
IFCONFIG="/sbin/ifconfig"
$BRCTL delif $BRIFACE $VIFACE
$BRCTL delif $BRIFACE $FIFACE
ifconfig $BRIFACE down
$BRCTL delbr $BRIFACE
$TUNCTL -d $VIFACE
=======================================================
I don't pretend what it's a true way, but it works for me.
JD <[EMAIL PROTECTED]> writes:
> Anyone have any ideas on how to get bridging to
> work, or is no one on the list using bridging
> with fedora linux host and winXP guest?
>
> On the host I have:
>
> eth0 Link encap:Ethernet HWaddr 00:03:0D:15:2B:9E
> inet6 addr: fe80::203:dff:fe15:2b9e/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:336404 errors:0 dropped:0 overruns:0 frame:0
> TX packets:297719 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:369370982 (352.2 MiB) TX bytes:44588960 (42.5 MiB)
> Interrupt:19 Base address:0xd800
>
> 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:16356 errors:0 dropped:0 overruns:0 frame:0
> TX packets:16356 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:80820775 (77.0 MiB) TX bytes:80820775 (77.0 MiB)
>
> vbox0 Link encap:Ethernet HWaddr 00:FF:C7:01:B2:33
> inet6 addr: fe80::2ff:c7ff:fe01:b233/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:620 errors:0 dropped:0 overruns:0 frame:0
> TX packets:43 errors:0 dropped:565 overruns:1 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:71615 (69.9 KiB) TX bytes:9334 (9.1 KiB)
>
> vboxbr0 Link encap:Ethernet HWaddr 00:03:0D:15:2B:9E
> inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
> inet6 addr: fe80::203:dff:fe15:2b9e/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:15840 errors:0 dropped:0 overruns:0 frame:0
> TX packets:13023 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:12045177 (11.4 MiB) TX bytes:2359123 (2.2 MiB)
>
> virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
> inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
> inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:11985 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:2671336 (2.5 MiB)
>
> Notice that on the vbox0, there are 620 received packets, but only 43 sent.
> Windows guest is unable to bring up it's interface.
>
> # brctl show
> bridge name bridge id STP enabled interfaces
> vboxbr0 8000.00030d152b9e yes eth0
> vbox0
>
> Because i was not getting anywhere with bringin up windows's guest
> interface,
> I enabled spanning tree in the host for vboxbr0 - to no avail.
> Windows cannot bring up it's interface.
>
> PS: virbr0 is not attached to any interface. It got installed
> when I had accidentally selected xen kernel from the grub menu,
> and it has remained in the system. My VBOX bridge is vboxbr0.
>
> Cheers,
>
> JD
>
> _______________________________________________
> vbox-users mailing list
> [email protected]
> http://vbox.innotek.de/mailman/listinfo/vbox-users
>
>
--
best regards,
Alexander Popov mailto:[EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users