This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docker_host_on_centos_7 [2017/04/27 15:18] – herwarth | docker_host_on_centos_7 [2017/05/07 11:33] (current) – herwarth | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| =====Configure network===== | =====Configure network===== | ||
| + | # remove old interface config | ||
| + | nmcli con del eno1 | ||
| + | nmcli con del eno2 | ||
| + | |||
| + | ====Teaming==== | ||
| I am going to use vlans on a teaming interface of two network interfaces. It is easy to assign vlan interfaces to Openstack. This is the configuration for one server: | I am going to use vlans on a teaming interface of two network interfaces. It is easy to assign vlan interfaces to Openstack. This is the configuration for one server: | ||
| < | < | ||
| - | # remove old interface config | ||
| - | nmcli con del eno1 | ||
| - | nmcli con del eno2 | ||
| - | |||
| # create team device | # create team device | ||
| nmcli con add type team con-name team0 ifname team0 config ' | nmcli con add type team con-name team0 ifname team0 config ' | ||
| Line 40: | Line 41: | ||
| # finally | # finally | ||
| nmcli con up team0 | nmcli con up team0 | ||
| + | </ | ||
| + | ====Bonding==== | ||
| + | < | ||
| + | nmcli con add type bond con-name bond0 ifname bond0 mode 802.3ad | ||
| + | # disable IP on bond0 interface | ||
| + | nmcli c mod bond0 ipv4.method disabled | ||
| + | nmcli c mod bond0 ipv6.method link-local | ||
| + | |||
| + | # add slaves | ||
| + | nmcli con add type bond-slave ifname eno1 master bond0 | ||
| + | nmcli con add type bond-slave ifname eno2 master bond0 | ||
| + | </ | ||
| + | ====VLAN==== | ||
| + | < | ||
| # create vlan devices | # create vlan devices | ||
| nmcli con add type vlan con-name vlan2 dev team0 id 2 connection.interface-name vlan2 | nmcli con add type vlan con-name vlan2 dev team0 id 2 connection.interface-name vlan2 | ||