4035b7a2c90f1cd5d2f1b354fc688e5fb5378a77
[kuberef.git] / hw_config / intel / setup_network.sh
1 #!/bin/bash
2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c)
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 # Adapt this script according to your network setup
12 # TODO Get networking info from PDF & IDF
13 # TODO Add support in infra engine to update nameserver, etc
14 # files with correct info
15
16 echo nameserver 8.8.8.8 > /etc/resolv.conf
17 sed -i 's/NM_CONTROLLED=yes/NM_CONTROLLED=no/g' \
18 /etc/sysconfig/network-scripts/ifcfg-eth2
19 echo GATEWAY=10.10.190.1 >> /etc/sysconfig/network-scripts/ifcfg-eth2
20 ifup eth2