thats the simple ! this is fedora commands so may not working for all linux version

simply type in telnet /ssh terminal or shell terminal

configuring ip address :-

ifconfig eth0 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

or

ifconfig eth0 xxx.xxx.xxx.xxx/xx (/xx is network bit)

configure gateway :-

route add default gateway xxx.xxx.xxx.xxx

then final if you want to cinfigure DNS address:-

vi /etc/resolv.conf

then add your name server ip

example Embarrassed

ifconfig eth1 172.16.144.3 netmask 255.255.248.0

or

ifconfig eth1 172.16.144.3/21

route add default gateway 172.16.144.1

vi /etc/resolv.conf ( required knowledge of vi editor)

nameserver=172.16.144.1