summaryrefslogtreecommitdiffstats
path: root/hw_config/intel/setup_network.sh
blob: 4035b7a2c90f1cd5d2f1b354fc688e5fb5378a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c)
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

# Adapt this script according to your network setup
# TODO Get networking info from PDF & IDF
# TODO Add support in infra engine to update nameserver, etc
# files with correct info

echo nameserver 8.8.8.8 > /etc/resolv.conf
sed -i 's/NM_CONTROLLED=yes/NM_CONTROLLED=no/g' \
/etc/sysconfig/network-scripts/ifcfg-eth2
echo GATEWAY=10.10.190.1 >> /etc/sysconfig/network-scripts/ifcfg-eth2
ifup eth2