User Tools

Site Tools


docker_host_on_centos_7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker_host_on_centos_7 [2017/04/27 15:18] herwarthdocker_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:
 <code> <code>
-# 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 '{"runner": {"name": "lacp"}}' nmcli con add type team con-name team0 ifname team0 config '{"runner": {"name": "lacp"}}'
Line 40: Line 41:
 # finally  bring up team0 # finally  bring up team0
 nmcli con up team0 nmcli con up team0
 +</code>
 +====Bonding====
 +<code>
 +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
 +</code>
 +====VLAN====
 +<code>
 # 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
docker_host_on_centos_7.1493306299.txt.gz · Last modified: by herwarth