cf40
![]() |
|
|
|
|
|||||||
| Networking Network related discussions (including general TCP/IP stuff, routing, etc). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi. I've got an odd situation here on 8.2-STABLE with virtualbox-ose-4.0.4 and a guest built from the same /usr/obj. Upgraded to VirtualBox 4.0.8 (including rebuilding/reloading the kmod) with no change.
Host rc.conf: Code:
vlans_bge0="100" ifconfig_bge0="inet 10.0.0.1/24" ifconfig_bge0_100="inet 192.168.0.1/24" ifconfig_bge0_101=... ... Bridge the guest to bge0 and tcpdump -eni em0 on the guest shows vlan100 traffic natively (incorrect - it should be .1q encapsulated now) but no other vlans. Outgoing traffic from the guest is not tagged (correct) Even stranger is when I create a vlan interface on the guest, packets sent through that also come out untagged (should be double-tagged?), and there's no packets received on the guest's subinterface. Previously with VLANs out of the equation, Virtualbox worked perfectly. Any ideas? Last edited by DutchDaemon; June 20th, 2011 at 16:03. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#2
|
||||
|
||||
|
Your VLAN interfaces aren't set up correctly. Contrary to what you might think ifconfig_bge0_100 doesn't refer to VLAN100.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
I used to use cloned_interfaces and
Code:
ifconfig_vlan100="vlandev bge0 vlan 100 192.168.2.1/24" Quote:
Last edited by DutchDaemon; June 14th, 2011 at 13:36. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#4
|
|||
|
|||
|
If you try something at layer2 in VirtualBox and you are sure the setup is correct, then try your settings on a real machine and not in VirtualBox. I had lots of problems trying to simulate a bridge of two virtual box FreeBSD guests (on an Apple OSX Host). The configuration worked ok in real settings. I don't know if this happens for all VirtualBox hosts, mine was OSX.
Last edited by DutchDaemon; June 19th, 2011 at 01:33. |
|
#5
|
|||
|
|||
|
Looking into how VirtualBox does its bridging - via netgraph - it became apparent something on the FreeBSD-side was wrong. Netgraph uses a period for its path separator and was choking on the new-style interface naming.
This was discussed a few months ago on the freebsd-net mailing list, but nothing seems to have made it to -STABLE: http://www.mail-archive.com/freebsd-.../msg35895.html Reverting to an old-style configuration where I'm calling the vlan interfaces "vlan100" and so on appears to fix everything as far as bridging vlans to guests is concerned. Bridging (in VirtualBox) the parent NIC is still broken in the same strange way - something is untagging vlan100 frames before sending just them to the guest. Perhaps something in if_vlan or if_bge land is interfering with netgraph's access to the NIC? This would appear to mean it's impossible to use a trunked configuration in a guest on FreeBSD, at least where the host is using vlans on a bge nic... :/ Last edited by DutchDaemon; June 20th, 2011 at 16:02. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] vlans over lagg | vbelousov | Networking | 48 | December 15th, 2010 01:12 |
| [Solved] Bridging Problems | UnixUser | Networking | 2 | July 3rd, 2010 18:05 |
| Pfsync + bridging | stardot | Networking | 0 | June 28th, 2010 20:54 |
| FreeBSD 8 if_bridge does not pass 802.1q vlans | tea | Networking | 6 | March 11th, 2010 12:09 |
| Filter on vlans with PF | bloodhound | Firewalls | 2 | March 19th, 2009 10:50 |