OpenVZ Forum


Home » General » Support » Bridge inside VE???
Re: Bridge inside VE??? [message #16314 is a reply to message #16299] Fri, 31 August 2007 13:16 Go to previous messageGo to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
To achieve the ability to create bridges inside a VE you have at least:

1) add CAP_NET_ADMIN capability to this VE (via vzctl)
2) patch the kernel to add NETIF_F_VIRTUAL flag to bridge device
--- ./net/bridge/br_device.c.br 2007-06-25 13:36:46.000000000 +0400
+++ ./net/bridge/br_device.c    2007-08-31 17:12:39.000000000 +0400
@@ -216,5 +216,6 @@ void br_dev_setup(struct net_device *dev
        dev->priv_flags = IFF_EBRIDGE;

        dev->features = NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_HIGHDMA |
-                       NETIF_F_TSO | NETIF_F_NO_CSUM | NETIF_F_GSO_ROBUST;
+                       NETIF_F_TSO | NETIF_F_NO_CSUM | NETIF_F_GSO_ROBUST |
+                       NETIF_F_VIRTUAL;
 }


at the glance that should be enough.

But could you please tell me why do you want this???

Thanks!


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: strange errors
Next Topic: *SOLVED* How to mark an issue as "solved"
Goto Forum:
  


Current Time: Sat Aug 16 12:03:49 GMT 2025

Total time taken to generate the page: 0.28900 seconds