On 2021-05-19 18:45, Manuel Mely wrote:

On 04/27/2021 3:45 PM Yunel del Toro Montoya <yunelt...@gmail.com> wrote:

Hola:

Alguien ha trabajado con Open vSwitch en RHEL/CentOS

que me ayude a crear una configuraciones de Red, bridges sobre vlan y bonds

Gracias

_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu

Con RHEL/CentOS no, pero con Debian 10 si.

Esta configuracion (/etc/network/interfaces), hace un bond con las interfaces fisicas enp2s0, enp3s0 para 3 VLANs, 20, 90 y 192.

Este host (proxmox server), es accesible via vlan20.

auto enp2s0
iface enp2s0 inet manual

auto enp3s0
iface enp3s0 inet manual

allow-vmbr0 vlan20
iface vlan20 inet static
address 10.60.30.228/26
gateway 10.60.30.254
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_mtu 1503
ovs_options tag=20

allow-vmbr0 vlan90
iface vlan90 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_mtu 1503
ovs_options tag=90

allow-vmbr0 vlan192
iface vlan192 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_mtu 1503
ovs_options tag=192

allow-vmbr0 bond0
iface bond0 inet manual
ovs_bonds enp2s0 enp3s0
ovs_type OVSBond
ovs_bridge vmbr0
ovs_mtu 1503
ovs_options trunks=20,90,192 bond_mode=balance-tcp lacp=active other_config:lacp-time=fast tag=1 vlan_mode=native-untagged

allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports vlan20 vlan90 vlan192 bond0
ovs_mtu 1503

Esto de abajo es un resumen del switch, los puertos tap* y veth* son creados automaticamente por proxmox.

root@shuttle01:~# ovs-vsctl show
6743cae5-5342-4d65-8080-d43b4f48076f
Bridge "vmbr0"
Port "veth102i0"
tag: 20
Interface "veth102i0"
Port "vmbr0"
Interface "vmbr0"
type: internal
Port "vlan90"
tag: 90
Interface "vlan90"
type: internal
Port "veth115i0"
tag: 20
Interface "veth115i0"
Port "bond0"
tag: 1
trunks: [20, 90, 192]
Interface "enp3s0"
Interface "enp2s0"
Port "veth105i0"
tag: 20
Interface "veth105i0"
Port "tap112i0"
tag: 20
Interface "tap112i0"
Port "veth104i0"
tag: 20
Interface "veth104i0"
Port "tap100i1"
tag: 192
Interface "tap100i1"
Port "veth101i0"
tag: 20
Interface "veth101i0"
Port "vlan192"
tag: 192
Interface "vlan192"
type: internal
Port "veth103i0"
tag: 20
Interface "veth103i0"
Port "tap107i1"
tag: 192
Interface "tap107i1"
Port "tap100i2"
tag: 90
Interface "tap100i2"
Port "veth108i0"
tag: 20
Interface "veth108i0"
Port "veth103i1"
tag: 192
Interface "veth103i1"
Port "veth110i0"
tag: 20
Interface "veth110i0"
Port "tap114i0"
tag: 20
Interface "tap114i0"
Port "veth113i0"
tag: 20
Interface "veth113i0"
Port "tap100i0"
tag: 20
Interface "tap100i0"
Port "vlan20"
tag: 20
Interface "vlan20"
type: internal
Port "veth115i1"
tag: 192
Interface "veth115i1"
Port "veth104i1"
tag: 192
Interface "veth104i1"
Port "tap107i0"
tag: 20
Interface "tap107i0"
Port "tap109i0"
tag: 20
Interface "tap109i0"
Port "veth113i1"
tag: 192
Interface "veth113i1"
Port "veth106i0"
tag: 20
Interface "veth106i0"
ovs_version: "2.12.0"
_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu

Usa network manager para eso, busca en "apropos nmcli" hay un man que se llama examples.d o algo asi, leete ese man que tiene muy buenos ejemplos

--
Salu2, Ulinx
"En un problema con n ecuaciones
siempre habrá al menos n+1 incógnitas"
Linux user 366775
Quieres saber de Cuba o visitar Cuba, revisa mi canal Youtube (en español) http://bit.ly/Alocubano
_______________________________________________
Gutl-l mailing list -- gutl-l@listas.jovenclub.cu
To unsubscribe send an email to gutl-l-le...@listas.jovenclub.cu

Responder a