problem-network() {
	echo "domain example.com"         > /etc/resolv.conf;
	echo "nameserver 192.168.10.254" >> /etc/resolv.conf;

	ip="`ifconfig eth0 | grep "inet addr" | awk ' { print $2 } ' | awk -F. '{ print $4 }'`"
	ifcfg=/etc/sysconfig/network-scripts/ifcfg-eth0
	MAC=$(grep HWADDR $ifcfg)
	echo "DEVICE=eth0"            >  $ifcfg
	echo "ONBOOT=yes"             >> $ifcfg
	echo "BOOTPROTO=static"       >> $ifcfg
	echo "IPADDR=192.168.10.$ip"   >> $ifcfg
	echo "NETMASK=255.255.255.0"  >> $ifcfg
	echo "GATEWAY=192.168.10.254"  >> $ifcfg
	[ -n "$MAC" ] &&   echo $MAC  >> $ifcfg
	service network restart > /dev/null 2>&1
	nscd -i host -i passwd -i shadow
	instructions "Successfully ftp, anonymously, to instructor.remote.test. Do not invoke DHCP to fix this problem."
}
