N/APosted on - 09/28/2011
I started using UBUNTU OS Ver.10.04I started using UBUNTU OS Ver.10.04 a few days ago and I faced a problem that I am first time successful setting of my LAN network setting , but soon after using that setting gone bad but I tried again. And I failed to set this setting of Lane Network, why not work this again and I also restarted several times my pc but it does not work. Please reply in detail will be appreciated. Thanks.
UBUNTU Ver.10.04 LAN NETWORK SETTING PROBLEM.
Open “Terminal” and enter the following command:
it will ask for root password. Enter the root password and the terminal prompt will change into Root.
Now let’s consider that the network interface card which is used to connect to the internet is “eth0”. So issue the following commands.
First of all, let’s disable the NIC:
ifconfig eth0 down
let us assume that we need to assign 192.168.0.100 IP and netmask 255.255.255 with eth0. To do this:
ifconfig eth0 inet 192.168.0.100 netmask 255.255.255.0 up
lets add the default gateway (suppose 192.168.0.1) by issuing:
route add default gw 192.168.0.1
let us add a DNS server, to do this edit the file /etc/resolv.conf and insert the DNS server address, such as 22.214.171.124
now you should be able to surf the internet.