]>
Commit | Line | Data |
---|---|---|
9a25910a TL |
1 | Here's an example configuration for your /etc/network/interfaces |
2 | using a simple ovsbr0 bridge for eth0, with dhcp for ipv4 and ipv6. | |
3 | This was taken from https://bugs.debian.org/860786. | |
4 | ||
5 | allow-ovs ovsbr0 | |
6 | iface ovsbr0 inet dhcp | |
7 | ovs_type OVSBridge | |
8 | ovs_ports eth0 | |
9 | ||
10 | allow-ovs ovsbr0 | |
11 | iface ovsbr0 inet6 dhcp | |
12 | ovs_type OVSBridge | |
13 | ovs_ports eth0 | |
14 | ||
15 | allow-ovsbr0 eth0 | |
16 | iface eth0 inet manual | |
17 | ovs_bridge ovsbr0 | |
18 | ovs_type OVSPort | |
19 | ||
20 | However, this didn't work for me. Instead, this worked: | |
21 | ||
22 | allow-ovs br0 | |
23 | iface br0 inet dhcp | |
24 | ovs_type OVSBridge | |
25 | ovs_port enp0s3 | |
26 | ||
27 | auto enp0s3 | |
28 | iface enp0s3 inet manual | |
29 | ovs_bridge br0 | |
30 | ovs_type OVSPort | |
31 | up ip address add 0/0 dev enp0s3 | |
32 | up ip link set enp0s3 up | |
33 | up dhclient br0 | |
34 | down ip link set enp0s3 down | |
35 | ||
36 | -- Thomas Goirand <zigo@debian.org> Mon, 29 Jan 2018 11:33:40 +0100 |