Change IP, Netmask, Default GW on linux

How can I permenantly change the IP, netmask and default GW
for Linux server on Apatchi.

[root@test root]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1������localhost.localdomain������localhost
192.168.1.1����linux001
192.168.1.2����linux002
192.168.1.3����linux003
.........
.........
192.168.1.255��linux25

[root@test root]# vi /etc/resolv.conf
nameserver xxx.xx.x.x
nameserver xx.xx.xx.xx

[root@test root]# vi /etc/sysconfig/network
GATEWAY=
GATEWAYDEV=eth0

Or you can use command:

To set interface, ip number, broadcast, netmask

#ifconfig $iface $ip_number broadcast $broadcast_number netmask $netmask

To set default gw:

#route add -net default gw $gateway netmask 0.0.0.0 1 $iface

Good Luck