Skip to content

Instantly share code, notes, and snippets.

@tumf
Created February 8, 2011 14:11
Show Gist options
  • Save tumf/816487 to your computer and use it in GitHub Desktop.
Save tumf/816487 to your computer and use it in GitHub Desktop.
cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
NETMASK=255.255.255.0
IPADDR=$1
ONBOOT=yesEOF
cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-eth2
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment