echo "DEVICE=eth0" > /etc/sysconfig/ifcfg-eth0 echo "BOOTPROTO=static" >> ifcfg-eth0 echo "BROADCAST=192.168.42.255" >> ifcfg-eth0 echo "IPADDR=192.168.42.198" >> ifcfg-eth0 echo "NETMASK=255.255.255.0" >> ifcfg-eth0 echo "NETWORK=192.168.42.0" >> ifcfg-eth0 echo "ONBOOT=yes" >> ifcfg-eth0 echo "TYPE=Ethernet" >> ifcfg-eth0 echo "GATEWAY=192.168.42.1" >> ifcfg-eth0 /etc/init.d/network restart