[SOLVED] Ethernet from Ubuntu to a laptop to get Internet with?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ethernet from Ubuntu to a laptop to get Internet with?
I run "Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release i386 (20140722.2)", on which I do not have root privileges.
How can I connect a laptop via Ethernet to get on the Internet with?
laptop-3@laptop3-Latitude-E5500:~$ ifconfig -a | grep 'eth'
eth0 Link encap:Ethernet HWaddr 00:25:64:66:d0:dd
laptop-3@laptop3-Latitude-E5500:~$ ifconfig eth0 up
SIOCSIFFLAGS: Operation not permitted
laptop-3@laptop3-Latitude-E5500:~$
As far as I know, there is no way to configure the network settings without root access.
A few questions:
- Is there an IP address assigned to this interface?
- Do you know whether it is using DHCP or not?
- How are you planning through the internet - through a router that you control?
If there is a static IP or a DHCP client on the laptop, and you have control of the router/gateway, you might be able to get online with the appropriate settings on that device, without changing anything on the laptop.
Ubuntu does not have a root password by default. Do you know if one was created?
Did you or someone else install Ubuntu on the laptop?
The first created user by default has sudo rights. This is the password you need to use.
I would expect the interface to be automatically configured for DHCP so unless it was changed it should just work when you plug in the cable. If you examine the entire output of the ifconfig command it is the second line that contains the IP address and if working should look something below. The actual values will be different.
Quote:
eth0 Link encap:Ethernet HWaddr BC:30:5B:B91:5A
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
...
How exactly are you trying to connect to the internet: through another computer, through a wired connection to a router, through a wireless connection to a wireless router or hotspot?
I get the Internet per WiFi on my Ubuntu machine. I have sudo access. I need to get Ethernet in order to install Debian stable on my notebook, because per WiFi there are issues of missing driver while installing Debian OS. I was thinking that there might be some way of getting Ethernet from my Ubuntu machine.
ifconfig:
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16
If you have a standard router, it should have ethernet ports on it. I'll echo michaelk's suggestion. The best course of action would be to hook up the laptop to a wired connection at least until you get everything working.
That would be much easier than configuring your Debian machine to serve as a router, which for all practical purposes is what "internet connection sharing" is.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.