Balachandran Sivakumar wrote:
Hello all,
On Jan 16, 2008 5:27 PM, mukesh yadav mak.gnu@gmail.com wrote:
hello friends. i'm using ubuntu...and xfce desktop environment. I'm not able to open the network manager to add the Ip address. and i dont know how to do this via terminal. so please help me how i can open network manager to change my static IP and gateway and other info...
This can be done using the ifconfig command (/sbin/ifconfig). For example, to set an IP to the interface eth0, you need to give something like this
#ifconfig eth0 192.168.1.1 up
One other way of doing it is by editing the /etc/network/interfaces file and adding the required information there. An example would be
auto eth0 iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.1
I use Debian Etch - Xfxe. Since the ip is static, the /etc/resolv.conf file should be edited too for adding DNS servers. Like
nameserver 203.94.227.70 nameserver 203.94.243.70
In case Xfce does not use vi, then use the nano editor which is easy on newbies. Eg.
sudo nano /etc/network/interfaces
and
sudo nano /etc/resolv.conf
After everything is edited, do a 'sudo /etc/init.d/networking restart' to apply your changes.