Re: [ovs-discuss] change configuration of VLAN access port

2021-01-21 Thread Ben Pfaff
On Wed, Jan 20, 2021 at 05:25:49PM +0100, Matthias Waehlisch wrote:
> Hi,
> 
>   i'm wondering how to change the VLAN setting of an access-port 
> without deleting the port.
> 
>   when i already added a port to a switch (ovs-vsctl add-port ...), and 
> and want to change the VLAN setting via "ovs-vsctl add-port ..." (e.g., 
> to change the VLAN the port is assigned to), i get an error message that 
> ovs-vsctl: cannot create a port xyz because a port named xyz exists on 
> bridge br0.
> 
>   i can execute "ovs-vsctl set PORT_NAME tag=10" but then all Ethernet 
> frames are tagged.

ovs-vsctl clear port $name tag
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] change configuration of VLAN access port

2021-01-21 Thread Tonghao Zhang
On Thu, Jan 21, 2021 at 8:13 AM Matthias Waehlisch
 wrote:
>
>
> ... i was able to change the configuration using "ovs-vsctl set port
> xyz vlan_mode=native-untagged" but the virtual switch still sends
> packets that include a vlan tag on the access port instead of removing
> the tag. this is quite confusing ...
>
>
>
>
> thanks
>   matthias
>
> On Wed, 20 Jan 2021, Matthias Waehlisch wrote:
>
> > Hi,
> >
> >   i'm wondering how to change the VLAN setting of an access-port
> > without deleting the port.
> >
> >   when i already added a port to a switch (ovs-vsctl add-port ...), and
> > and want to change the VLAN setting via "ovs-vsctl add-port ..." (e.g.,
> > to change the VLAN the port is assigned to), i get an error message that
> > ovs-vsctl: cannot create a port xyz because a port named xyz exists on
> > bridge br0.
> >
> >   i can execute "ovs-vsctl set PORT_NAME tag=10" but then all Ethernet
> > frames are tagged.
Hi
the doc about vlan, may help you use the vlan. Thanks.
https://docs.openvswitch.org/en/latest/faq/vlan/
> >
> > thanks
> >   matthias
> >
> >
> > ps: if this is not the right list, any hint where to ask is highly
> > appreciated!
> >
> >
>
>
> --
> Matthias Waehlisch
> .  Freie Universitaet Berlin, Computer Science
> .. http://www.cs.fu-berlin.de/~waehl
> ___
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss



-- 
Best regards, Tonghao
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] change configuration of VLAN access port

2021-01-20 Thread Matthias Waehlisch


... i was able to change the configuration using "ovs-vsctl set port 
xyz vlan_mode=native-untagged" but the virtual switch still sends 
packets that include a vlan tag on the access port instead of removing 
the tag. this is quite confusing ...




thanks
  matthias

On Wed, 20 Jan 2021, Matthias Waehlisch wrote:

> Hi,
> 
>   i'm wondering how to change the VLAN setting of an access-port 
> without deleting the port.
> 
>   when i already added a port to a switch (ovs-vsctl add-port ...), and 
> and want to change the VLAN setting via "ovs-vsctl add-port ..." (e.g., 
> to change the VLAN the port is assigned to), i get an error message that 
> ovs-vsctl: cannot create a port xyz because a port named xyz exists on 
> bridge br0.
> 
>   i can execute "ovs-vsctl set PORT_NAME tag=10" but then all Ethernet 
> frames are tagged.
> 
> 
> thanks
>   matthias
> 
> 
> ps: if this is not the right list, any hint where to ask is highly 
> appreciated!
> 
> 


-- 
Matthias Waehlisch
.  Freie Universitaet Berlin, Computer Science
.. http://www.cs.fu-berlin.de/~waehl
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] change configuration of VLAN access port

2021-01-20 Thread Matthias Waehlisch
Hi,

  i'm wondering how to change the VLAN setting of an access-port 
without deleting the port.

  when i already added a port to a switch (ovs-vsctl add-port ...), and 
and want to change the VLAN setting via "ovs-vsctl add-port ..." (e.g., 
to change the VLAN the port is assigned to), i get an error message that 
ovs-vsctl: cannot create a port xyz because a port named xyz exists on 
bridge br0.

  i can execute "ovs-vsctl set PORT_NAME tag=10" but then all Ethernet 
frames are tagged.


thanks
  matthias


ps: if this is not the right list, any hint where to ask is highly 
appreciated!

-- 
Matthias Waehlisch
.  Freie Universitaet Berlin, Computer Science
.. http://www.cs.fu-berlin.de/~waehl
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss