OpenVZ Forum


Home » Mailing lists » Users » Veth mac generation
Re: AW: AW: Veth mac generation [message #31023 is a reply to message #31020] Fri, 13 June 2008 17:03 Go to previous message
Kirill Korotaev is currently offline  Kirill Korotaev
Messages: 137
Registered: January 2006
Senior Member
Dietmar Maurer wrote:
>  
>> If I got your problem right then I can advise you a possible 
>> solution - in RHEL5 kernel we have a functionality called 
>> "via_phys_dev" (triggered by BRCTL_SET_VIA_ORIG_DEV ioctl). 
>> This forces kernel to work with original interface ethX 
>> (first added to bridge) and pass the traffic to it. This 
>> allows to add ethX to bridge w/o need to propogate it's 
>> netfilter rules and other settings to brX.
> 
> Looking at the openvz-2.6.24 sources that via_phys_dev is
> already there. I just wonder how to use it:
> 
> brctl addbr vmbr0
> echo 1 > /sys/class/net/vmbr0/bridge/via_phys_dev
> brctl addif eth0
> 
> But looks like ip setting of eth0 gets lost (or what is 
> meant by 'and other settings'?). Maybe you have further info
> How to use that feature?

Sorry, I can't check right now. So can only say what I remember.
The idea was really to make traffic going through original ethX device
so you don't need to reconfigure anything in the host after bridge creation.

in general command look right. I guess you also need to make vmbr0 interface up before adding eth0.
plz check.

Thanks,
Kirill
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: /usr/bin/hostid in VPS
Next Topic: Socket app hang in VE
Goto Forum:
  


Current Time: Mon Sep 16 23:57:40 GMT 2024

Total time taken to generate the page: 0.04738 seconds