Debian und Ubuntu Integration: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 24: | Zeile 24: | ||
*ovs_type defines the interface type for ovs. OVSPort identifies an Openvswitch port not seen by the Linux Operating system | *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. | *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= | ||
| + | <pre> | ||
| + | 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 | ||
| + | </pre> | ||
=Links= | =Links= | ||
*http://docs.openvswitch.org/en/latest/tutorials/ovs-advanced/ | *http://docs.openvswitch.org/en/latest/tutorials/ovs-advanced/ | ||
Version vom 12. Oktober 2017, 11:29 Uhr
!!!/etc/network/interface!!!
Define a bridge
auto vmbr-int allow-ovs vmbr-int iface vmbr-int inet manual ovs_type OVSBridge
- 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