You are not logged in.

#1 2022-11-03 19:34:45

djidji
Member
Registered: 2007-02-26
Posts: 57

openvswitch and netctl

I'm trying to understand how to bring up interfaces needed for my open vswitch config using netctl. I see an example profile here but I can't figure out what's what. Does "BindsToInterfaces" specify physical interfaces only? Why does bridge have an "IP=dhcp" entry - why would the bridge itself have an IP?

Here is my ovs config:

ovs-vsctl add-br ovs-br0
ovs-vsctl add-port ovs-br0 enp1s0
ovs-vsctl set port enp1s0 vlan_mode=native-untagged
ovs-vsctl set port enp1s0 tag=1 
ovs-vsctl set port enp1s0 trunks=15,25
ovs-vsctl add-port ovs-br0 vport15 tag=15 -- set interface vport15 type=internal

In short, the physical port (enp1s0) is set to VLAN trunk with VLANs 15 and 25 allowed (and VLAN 1 as native). Then an nterface (vport15) is created on VLAN 15.

Enabling ovs-vswitchd.service will take care of bringing back the switch after the reboot but I'd like to use netctl to bring up enp1s0 without any IPs and to assign a static IP to vport15. I can't figure out how to go from the example provided to what I want to achieve and the wiki has examples using systemd-networkd instead of netctl.

Anyone has any suggestions?

Thanks

Offline

Board footer

Powered by FluxBB