LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-24-2012, 11:00 PM   #1
pratik pashte
LQ Newbie
 
Registered: Aug 2012
Location: mumbai
Posts: 3

Rep: Reputation: Disabled
Unhappy unable to connect with ethernet


as i am doing my project in Ubuntu Linux and for that purpose i want a connection through Ethernet so how do i enable Ethernet to use internet through it.
 
Old 08-24-2012, 11:11 PM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Probably not being able to help you, but your post is lacking some information for anybody to be able to help.

Which version of Ubuntu (12.04, 11.10, ...)?
What 'device' do you normally use? Wifi to connect to router; cable to connect to router? 3G USB modem (which one)? Analog modem? Other?
For those local to your area, which provider?
 
1 members found this post helpful.
Old 08-27-2012, 10:38 PM   #3
pratik pashte
LQ Newbie
 
Registered: Aug 2012
Location: mumbai
Posts: 3

Original Poster
Rep: Reputation: Disabled
Question

im using ubuntu server 12.04 and i wanted to connect lan cable to it so that i can share internet of lan cable.
 
Old 08-28-2012, 11:04 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
What exactly is not working? Is the machine connected to the Internet via some other method? Does your Ethernet connect into a local LAN or into something like a DSL modem?

You need to provide details on your setup before anyoen can help.
 
1 members found this post helpful.
Old 08-29-2012, 03:16 AM   #5
pratik pashte
LQ Newbie
 
Registered: Aug 2012
Location: mumbai
Posts: 3

Original Poster
Rep: Reputation: Disabled
there is no problem in machine just i am unable to connect Ethernet to it....
give me some commands to connect it
 
Old 08-29-2012, 03:21 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

if it is dhcp, and assuming the device is eth0, you need to have a line like the following in your /etc/network/interfaces file
Code:
iface eth0 inet dhcp
Then run the command
Code:
sudo ifup eth0
If you want it to automatically come up at boot time you can add the "auto" declaration for eth0 in you interfaces file.
Ie.
Code:
auto eth0
iface eth0 inet dhcp
Evo2.
 
  


Reply


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
Mint 11 won't recognize my ethernet connection/unable to connect to internet travellindaze Linux - Newbie 14 08-28-2011 04:08 PM
unable to connect to my wireless eth1, yes using my ethernet eth0 antonio fernandez Linux - Laptop and Netbook 3 01-04-2011 08:40 AM
Unable to connect to internet via ethernet after tweaking interfaces and hosts file ylawayjdp Linux - Newbie 2 02-27-2009 11:12 AM
Unable to connect to internet via ethernet xav.vijay Linux - Networking 3 06-06-2008 03:57 PM
Mandrake 10.2 Realtek 8139 Ethernet unable to connect SgC.9711 Linux - Newbie 20 10-11-2005 01:33 AM


All times are GMT -5. The time now is 03:45 PM.

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