LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to connect with ethernet (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-connect-with-ethernet-4175423891/)

pratik pashte 08-24-2012 11:00 PM

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.

Wim Sturkenboom 08-24-2012 11:11 PM

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?

pratik pashte 08-27-2012 10:38 PM

im using ubuntu server 12.04 and i wanted to connect lan cable to it so that i can share internet of lan cable.

btmiller 08-28-2012 11:04 PM

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.

pratik pashte 08-29-2012 03:16 AM

there is no problem in machine just i am unable to connect Ethernet to it....
give me some commands to connect it

evo2 08-29-2012 03:21 AM

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.


All times are GMT -5. The time now is 06:24 AM.