On Wed, May 24, 2017 at 6:11 PM, Toshiaki Makita
<makita.toshiaki at lab.ntt.co.jp> wrote:> On 2017/05/25 3:05, Manohar Kumar wrote:
>> Thanks, Toshiaki.
>>
>> What is the right way to set the default_pvid using the bridge command
>> ? I tried this, which fails..
>>
>> root at net-3:~# ip link set dev vxlan0 name untagged type vlan id 0
>> RTNETLINK answers: Operation not supported
>> root at net-3:~#
>>
>> All the interfaces in the bridge are untagged.
>
> # ip link set br0 down
> # echo 0 > /sys/class/net/br0/bridge/default_pvid
>
I have the bridge inside a network namespace. There is no
/sys/class/net entry for the bridge interface inside the namespace.
I see online references to this concept of 'tagged' sysfs directories
to support namespaces. But its not clear how to access the sysfs
entries for a particular namespace.
Is there any other way to set the default_pvid for the bridge
interface inside namespace ?
thanks for the help.
Manohar.
>
> Toshiaki Makita
>