LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2008, 11:30 AM   #31
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61

Quote:
Originally Posted by shivcharan View Post
OK, How I can configure for ethernet?
Follow the instructions you linked to. The only things you need to be aware of is that if you connect it to eth1, then you need to substitute eth1 where it says eth0 in the instructions. And make sure your other ethernet interface does not have an address on the same subnet. I.e., either take the other interface down or give it an address other than 192.168.1.x.

Last edited by blackhole54; 01-23-2008 at 11:32 AM.
 
Old 01-23-2008, 07:41 PM   #32
Jirka11
LQ Newbie
 
Registered: Jan 2008
Posts: 24

Rep: Reputation: 15
Quote:
Originally Posted by blackhole54 View Post
Follow the instructions you linked to. The only things you need to be aware of is that if you connect it to eth1, then you need to substitute eth1 where it says eth0 in the instructions. And make sure your other ethernet interface does not have an address on the same subnet. I.e., either take the other interface down or give it an address other than 192.168.1.x.
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


_____________________________________________
My IP address
 
Old 01-23-2008, 11:28 PM   #33
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Jirka11 View Post
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.
 
Old 01-27-2008, 01:05 AM   #34
shivcharan
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks a lot blackhole54 i connect successfully to internet in Linux-Ubuntu.
Actually I have problem with cable of my ethernet so could not connect through it (Sorry I detect it later) and try to connect with usb. Now I planning to totally shift for Linux-Ubuntu. by by windows. Totally freedam.
Thanks again blackhole54.
 
  


Reply

Tags
connection, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
quick and easy way to get internet connection sharing erklaerbaer LinuxAnswers Discussion 1 12-05-2009 10:49 PM
Easy-use, easy-install, fast, minimal KDE distro? lukeprog Linux - Distributions 8 09-08-2007 05:21 PM
Which distro for PC without Internet connection t2000 Linux - Distributions 3 12-17-2006 12:21 PM
Which distro is best/good for setting up Internet connection clean_sweep Linux - Hardware 2 12-04-2004 06:16 PM
What is the best distro for someone without an internet connection? samwh Linux - Distributions 2 03-04-2004 10:23 PM


All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration