LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-16-2016, 06:57 AM   #1
hearthstone
Member
 
Registered: Dec 2005
Distribution: Debian Stable
Posts: 109

Rep: Reputation: 4
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:~$

Thank you, Hearthstone.
 
Old 04-16-2016, 10:16 AM   #2
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi there,

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.
 
Old 04-16-2016, 11:16 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,827

Rep: Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965
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
...

Last edited by michaelk; 04-16-2016 at 11:18 AM.
 
Old 04-16-2016, 07:50 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,407
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
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?

These articles from Ubuntu might help:

https://help.ubuntu.com/16.04/ubuntu...d-connect.html

https://help.ubuntu.com/16.04/ubuntu...s-connect.html
 
Old 04-18-2016, 06:53 AM   #5
hearthstone
Member
 
Registered: Dec 2005
Distribution: Debian Stable
Posts: 109

Original Poster
Rep: Reputation: 4
Additional information.

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

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:20349 errors:0 dropped:0 overruns:0 frame:0
TX packets:20349 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5610254 (5.6 MB) TX bytes:5610254 (5.6 MB)

wlan0 Link encap:Ethernet HWaddr 0c:ee:e6:95:0e:9c
inet addr:192.168.88.83 Bcast:192.168.88.255 Mask:255.255.255.0
inet6 addr: fe80::eee:e6ff:fe95:e9c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:111667 errors:0 dropped:0 overruns:0 frame:47875
TX packets:97653 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:139298478 (139.2 MB) TX bytes:9890289 (9.8 MB)
Interrupt:17 Base address:0xc000

Thanks, Hearthstone.
 
Old 04-18-2016, 06:57 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,827

Rep: Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965Reputation: 5965
What happens when you plug the ethernet cable into your computer? I would expect it to automatically switch from wireless to wired.
 
Old 04-18-2016, 09:16 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,407
Blog Entries: 28

Rep: Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166Reputation: 6166
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.
 
  


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
Ubuntu 10.04 Ethernet Connects To Network, But Not To Internet jsaravana87 Linux - Server 3 06-14-2012 06:14 AM
Sending Internet To Another Compiter Via Ethernet, Ubuntu 11.10 Zssfssz Linux - Networking 1 04-10-2012 03:23 AM
Connecting laptop to the internet via ethernet cable plugged into router. okelaye Linux - Networking 2 04-13-2009 10:32 AM
problems with ethernet internet connection and sound on laptop with OS suse 10/ winXP elena06 Linux - Networking 4 02-08-2006 08:47 AM
PCI card with ethernet jack for laptop internet in Ubuntu fakie_flip Linux - Hardware 3 12-02-2005 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:14 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
Open Source Consulting | Domain Registration