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 11:50] 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 +nmcli con add type vlan con-name vlan2 dev team0 id 2 connection.interface-name vlan2 
-nmcli con add type vlan con-name vlan11 dev team0 id 11+nmcli con add type vlan con-name vlan11 dev team0 id 11 connection.interface-name vlan11
  
 # disable ip addresses on vlan11 interface. we are going to use this as an external network in openstack # disable ip addresses on vlan11 interface. we are going to use this as an external network in openstack
Line 58: Line 73:
 hostnamectl set-hostname hp1.mngt.bh.helux.nl hostnamectl set-hostname hp1.mngt.bh.helux.nl
 </code> </code>
 +=====Configure firewalld=====
 +Use my [[firewalld-zones-centos7|Using firewalld to create zones with subnets on CentOS 7]] howto to create the zones and rules.
  
 =====Configure disks===== =====Configure disks=====
docker_host_on_centos_7.1493293830.txt.gz · Last modified: by herwarth