how to manually configure IP address using command line in debian lenny

I know most of the guys have very well idea how to do this thing but many would be looking for this piece of information on internet and it is available too but I just like to give you few short steps and you are ready to go with your Debian system. Most of the writer just give the IP address configuration but no one share this secret that you have to enter something in resolv.conf file. Lets configure an Ethernet card on Debian manually and use the internet on command line.

Configure the Network Manually

You can use ifconfig command to configure IP address and other information and you can also enter all this configuration in a file given at the location specified below;

/etc/network/interfaces

Save Network Settings to a Configuration File

To change the current network configuration setting you’ll need to edit /etc/network/interfaces file using a text editor such as vi. This is the only way to save device setting to a configuration file so that system can remember changes after a reboot.

Read more