Wednesday, May 25, 2011

Configuring network manually on Linux

Sometimes, it may happen that our Linux OS does not detect the Internet connection despite connectivity [ It generally happens in Proxy servers ]

Open terminal and type

decapsulatingabstraction@ubuntu:~$ sudo -s 
[sudo] password for decapsulatingabstraction:
root@ubuntu:~# ifconfig eth0 your IP netmask your subnet mask
root@ubuntu:~# route add default gateway IP v4/v6 Gateway
root@ubuntu:~# sh -c "echo nameserver IP v4 DNS > /etc/resolv.conf"

 You can view your network configuration using ifconfig


If you hate terminal then also there's a way out, here it is:

1. Click on the network applet, select edit connections




2.  Select a pre-existing connection or simply add a new, then click on edit,


3. Give a connection name, add Auto in front of it, if you want that connection to be connected automatically.

4. In IPv4 tab, make the method manual.


5. After making the method Manual, click on add, and edit the present addresses to desired ones



5. Save it !


For NIT Durgapur students, 


IPv4 Gateway 172.16.40.1
IPv4 DNS        172.16.1.90
Subnet Mask   255.255.254.0


for Manual DHCP,  DHCP = 172.16.1.90

Enjoy Networking !!!

No comments:

Post a Comment