3. Set up the undercloud for installationΒΆ

  • Configure external interface
sudo ifconfig eth2 10.0.0.1 netmask 255.255.255.0
  • Get mac address of external interface
MAC_ADDR_EXT_INTERFACE=$( ifconfig | grep -n3 eth2 | grep -A1 ether | cut -d " " -f 10 )
  • Set up external interface
sudo bash -c 'cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-eth2
NAME=eth2
IPADDR=10.0.0.1
NETMASK=255.255.255.0
NM_CONTROLLED=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
ONBOOT=yes
HWADDR=$MAC_ADDR_EXT_INTERFACE
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
EOF'
  • Set MTU values
ip link set eth0 mtu 1350
echo "MTU=1350" >> /etc/sysconfig/network-scripts/ifcfg-eth0
ip link set eth1 mtu 1350
echo "MTU=1350" >> /etc/sysconfig/network-scripts/ifcfg-eth1
ip link set eth2 mtu 1350
echo "MTU=1350" >> /etc/sysconfig/network-scripts/ifcfg-eth2
  • Add nameserver to resolv.conf
cat <<EOF >> /etc/resolv.conf
nameserver 10.34.32.1
EOF