% begin_ohpc_run
% ohpc_comment_header Complete basic Warewulf setup for master node \ref{sec:setup_ww}
%\begin{verbatim}

\begin{lstlisting}[language=bash,literate={-}{-}1,keywords={},upquote=true,keepspaces]
# Configure Warewulf provisioning to use desired internal interface
[sms](*\#*) perl -pi -e "s/device = eth1/device = ${sms_eth_internal}/" /etc/warewulf/provision.conf

# Enable internal interface for provisioning
[sms](*\#*) ip link set dev ${sms_eth_internal} up
[sms](*\#*) ip address add ${sms_ip}/${internal_netmask} broadcast + dev ${sms_eth_internal}

# Restart/enable relevant services to support provisioning
[sms](*\#*) systemctl enable httpd.service
[sms](*\#*) systemctl restart httpd
[sms](*\#*) systemctl enable dhcpd.service
[sms](*\#*) systemctl enable tftp.socket
[sms](*\#*) systemctl start tftp.socket
\end{lstlisting}
%\end{verbatim}
% end_ohpc_run
