Quote:
Originally Posted by Jirka11
The easiest and the fastest way to test it is to run in terminal:
For example:
To give IP address to eth0
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
To set the GW:
route add default gw 192.168.1.1
|
Those commands need to be run as
root. The traditional way of doing this in Ubuntu is with
sudo. (Yes, I know there are other ways -- I am trying to be gentle with a newbie.
) So your commands become:
Code:
sudo ifconfig eth0 192.168.1.2
sudo route add default gw 192.168.1.1
(I truncated the
ifconfig command because, by default, the
netmask and
up are implied.)
@shivcharan,
After doing the above, you should be aple to ping 192.168.1.1 and bring 192.168.1.1 up in a browser. If you have entered the DNS information into
/etc/resolv.conf as the linked article described, you should be able to get to the Internet. If this works, you can make it permanent so you don't have to enter it each time you boot. I'll describe the graphical (GUI) way to do it in Ubuntu 6.10. It probably works the same or very similar in your version.
Go to System -> Administration -> Networking. Select the interface (eth0 or eth1) you are using and click
properties. Check the
Enable this Connection box and select
Static IP Address . Then fill out the boxes as follows:
Code:
IP address: 192.168.1.2
Subnet mask: 255.255.255.0
Gatewasy address: 192.168.1.1
Then click
OK.