On 28 Oct 2024, at 22:18, Heim, Dennis via discuss wrote:

> I am trying to do ERSPAN for the first time. My option vSwitch is running on 
> Oracle Linux 8 (kernel 5.18), and Open vSwitch 3.3.2. I have a single bridge 
> named data.
> Enter the following commands:
> ovs-vsctl add-port br0 at_erspan0 -- \
>         set int at_erspan0 type=erspan options:key=1 \
>         options:remote_ip=192.168.95.10 \
>         options:erspan_ver=1 options:erspan_idx=1
>
>
>
> [root@ovs01 wwt]# ovs-vsctl show
> adf03227-4174-4073-b934-5f11b700f241
>     Bridge data
>         Port gi2
>             tag: 10
>             Interface gi2
>         Port vlan10
>             tag: 10
>             Interface vlan10
>                 type: internal
>         Port at_erspan0
>             Interface at_erspan0
>                 type: erspan
>                 options: {erspan_idx="1", erspan_ver="1", key="1", 
> remote_ip="192.168.95.10"}
>         Port data
>             Interface data
>                 type: internal
>         Port vlan90
>             tag: 90
>             Interface vlan90
>                 type: internal
>         Port vlan1
>             tag: 1
>             Interface vlan1
>                 type: internal
>         Port gi3
>             tag: 10
>             Interface gi3
>         Port vlan95
>             tag: 95
>             Interface vlan95
>                 type: internal
>         Port gi5
>             tag: 95
>             Interface gi5
>         Port gi1
>             tag: 1
>             Interface gi1
>     ovs_version: "3.3.2"
>
> Is there any additional configuration required to make ERSPAN work? I have a 
> VLAN95 internal interface on the same subnet as the ERSPAN destination.

Assuming you set up the kernel part correctly, this should be it. Here is a 
link to our unit test with an example, I would suggest trying this 
configuration on your setup to verify it’s working:

https://github.com/openvswitch/ovs/blob/06b8b9ecc941a7e04550b69d2cbe22985ebe0409/tests/system-traffic.at#L654

> In the system logs, this is about all I am seeing:
> Oct 28 17:03:39 ovs01.wwtlabs.local ovs-vsctl[3394]: 
> ovs|00001|vsctl|INFO|Called as ovs-vsctl add-port data at_erspan0 -- set int 
> at_erspan0 type=erspan options:key=1 options:remote_ip=192.168.95.10 
> options:erspan_ver=1 options:erspan_>
> Oct 28 17:03:39 ovs01.wwtlabs.local kernel: device erspan_sys entered 
> promiscuous mode
> Oct 28 17:03:39 ovs01.wwtlabs.local systemd-udevd[3396]: link_config: 
> autonegotiation is unset or enabled, the speed and duplex are not writable.
> Oct 28 17:03:39 ovs01.wwtlabs.local systemd-udevd[3396]: Could not generate 
> persistent MAC address for erspan_sys: No such file or directory
>
>
>
> Dennis Heim | Technical Solutions Architect
>
>
>
> INTERNAL
>
>
> INTERNAL

> _______________________________________________
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to