aboutsummaryrefslogtreecommitdiffstats
path: root/chapter9/network.sh
blob: 6eeead96a3276e6c0a9000bb3741bf6fb1f96d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash 

pushd /etc/sysconfig/ >/dev/null || exit 1
cat > ifconfig.eth0 << "EOF"
ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.196
GATEWAY=192.168.1.1
PREFIX=24
BROADCAST=192.168.1.255
EOF
popd >/dev/null || exit 1