Debian und Ubuntu Integration: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 6: | Zeile 6: | ||
iface vmbr-int inet manual | iface vmbr-int inet manual | ||
ovs_type OVSBridge | ovs_type OVSBridge | ||
| + | ovs_ports l2port | ||
</pre> | </pre> | ||
*auto is necessary to allow an automatic start (Ubuntu 16.04 using systemd) | *auto is necessary to allow an automatic start (Ubuntu 16.04 using systemd) | ||
| Zeile 11: | Zeile 12: | ||
*iface is the well known /etc/network/interfaces identifier to start an interface configuration | *iface is the well known /etc/network/interfaces identifier to start an interface configuration | ||
*ovs_type defines the interface type for ovs. OVSBridge identifies an Openvswitch bridge | *ovs_type defines the interface type for ovs. OVSBridge identifies an Openvswitch bridge | ||
| + | |||
=Define a L2 port (untagged)= | =Define a L2 port (untagged)= | ||
<pre> | <pre> | ||
| Zeile 44: | Zeile 46: | ||
ovs_type OVSPort | ovs_type OVSPort | ||
ovs_options trunks=2101,2102,2110,2120,2999,3000 | ovs_options trunks=2101,2102,2110,2120,2999,3000 | ||
| + | </pre> | ||
| + | *A trunking port does not require an additional definition. In the example above, we want to limit the vlans on the port. This requires a trunk definition using the ovs_options line. | ||
| + | =Define a tagged LACP bond port= | ||
| + | <pre> | ||
| + | allow-vmbr-int bondpub | ||
| + | iface bondpub inet manual | ||
| + | ovs_bridge vmbr-int | ||
| + | ovs_type OVSBond | ||
| + | ovs_bonds eth4 eth5 | ||
| + | ovs_options other_config:lacp-port-id=103 bond_fake_iface=true bond_mode=balance-slb lacp=active other_config:lacp-time=fast bond_updelay=2000 bond_downdelay=400 trunks=2101,2102,2110,2120,2999,3000 | ||
</pre> | </pre> | ||
=Links= | =Links= | ||
*http://docs.openvswitch.org/en/latest/tutorials/ovs-advanced/ | *http://docs.openvswitch.org/en/latest/tutorials/ovs-advanced/ | ||
Aktuelle Version vom 12. Oktober 2017, 11:47 Uhr
!!!/etc/network/interface!!!
Define a bridge
auto vmbr-int allow-ovs vmbr-int iface vmbr-int inet manual ovs_type OVSBridge ovs_ports l2port
- auto is necessary to allow an automatic start (Ubuntu 16.04 using systemd)
- allow-ovs is the marker for an Openvswitch bridge. The bridge name follows, here vmbr-int
- iface is the well known /etc/network/interfaces identifier to start an interface configuration
- ovs_type defines the interface type for ovs. OVSBridge identifies an Openvswitch bridge
Define a L2 port (untagged)
allow-vmbr-int l2port iface l2port inet manual ovs_bridge vmbr-int ovs_type OVSPort ovs_options tag=444
- allow-[name of the bridge to attach the port] defines the name of the bridge, to which the port should be attached to. In our example this is vmbr-int. The name of the port follows (here l2port)
- iface is the well known /etc/network/interfaces identifier to start an interface configuration — set the config to manual
- ovs-bridge holds the name of the bridge to which the port should be attached to. In our example this is vmbr-int.
- ovs_type defines the interface type for ovs. OVSPort identifies an Openvswitch port not seen by the Linux Operating system
- ovs_options defines additional options for the port – here define an untagged port, which is member of Vlan 444. If this option is not set, a port may use all vlan tags on the interfaces, because all ports transport vlan tags by default.
Define a L3 interface
allow-vmbr-int l3port iface l3port inet static ovs_bridge vmbr-int ovs_type OVSIntPort ovs_options tag=444 address 192.168.1.254 netmask 255.255.255.0
- iface — set the mode to static — because an IP address is configured on this interface
- ovs_type — an L3 port must be defined as an internal port — must be set to OVSIntPort
- address and netmask are the well known parameters for IPV4 an address/netmask combination
Define a L2 port (tagged/trunking)
allow-vmbr-int l2taggedport iface l2taggedport inet manual ovs_bridge vmbr-int ovs_type OVSPort ovs_options trunks=2101,2102,2110,2120,2999,3000
- A trunking port does not require an additional definition. In the example above, we want to limit the vlans on the port. This requires a trunk definition using the ovs_options line.
Define a tagged LACP bond port
allow-vmbr-int bondpub iface bondpub inet manual ovs_bridge vmbr-int ovs_type OVSBond ovs_bonds eth4 eth5 ovs_options other_config:lacp-port-id=103 bond_fake_iface=true bond_mode=balance-slb lacp=active other_config:lacp-time=fast bond_updelay=2000 bond_downdelay=400 trunks=2101,2102,2110,2120,2999,3000