LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-07-2019, 12:15 PM   #1
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 53

Rep: Reputation: Disabled
Internet not working


I've tried setting netconfig. Still doesn't work.
 
Old 02-07-2019, 12:25 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,402

Rep: Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650
More details please. Your post is so void of information, you might want to reconsider.
 
3 members found this post helpful.
Old 02-07-2019, 12:48 PM   #3
trite
Member
 
Registered: Feb 2016
Location: Sweden
Distribution: Slackware64-current
Posts: 37

Rep: Reputation: 23
Try to get into root or use sudo:
Code:
su -
or
Code:
sudo <command>
Type:
Code:
ip a
That should list your network cards.

If it doesnt, try:
Code:
ifconfig -a
In this output you should see what name your NIC (Network Interface Card) has and then you can tell it to try and get an ip. Replace "eth0" with the name of your network card that you want to assign an ip to.
Code:
dhcpcd eth0
if that doesnt work you can try:
Code:
dhclient eth0
Then try your internet.

Last edited by trite; 02-07-2019 at 12:49 PM.
 
1 members found this post helpful.
Old 02-07-2019, 01:35 PM   #4
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
I can't find any NIC in the output of ip a or ifconfig. It is in a virtualbox, so I'm unable to copy the output.

Last edited by parotta36; 02-07-2019 at 01:37 PM.
 
Old 02-07-2019, 01:52 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,402

Rep: Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650Reputation: 5650
Did you actually add a NIC in the VirtualBox configuration of your VM? If so, what is the type/brand of that virtual NIC? More details please, you can configure VirtualBox so that you can copy text between host and guest.
 
1 members found this post helpful.
Old 02-07-2019, 01:57 PM   #6
svim
LQ Newbie
 
Registered: Feb 2015
Distribution: Slackware 14.2-64bit
Posts: 19

Rep: Reputation: Disabled
Have you already tried reading through VirtualBox's User Manual on networking? It's a good source to read through if you're having trouble initially setting things up.
https://download.virtualbox.org/virt....pdf#chapter.6
 
1 members found this post helpful.
Old 02-07-2019, 02:05 PM   #7
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 178

Rep: Reputation: Disabled
Quote:
Originally Posted by parotta36 View Post
I can't find any NIC in the output of ip a or ifconfig. It is in a virtualbox, so I'm unable to copy the output.
If you have not touched it:
Intel PRO/1000 MT Desktop (82540 OEM)

Which is standard NIC card recognized by default by Slackware kernel (4.9.x). However there are other options available.

It is easy to enable one-way or two-way clipboard. This will work without additional adjustements at least in KDE, Gnome, XFCE.

Openbox (and family requires)
Quote:
VBoxClient --clipboard
issued from cli to start working instantly (if clipboard is enabled in VM manager)

If you enable clipboard, you will be able to copy/paste screen output directly.
 
1 members found this post helpful.
Old 02-07-2019, 03:08 PM   #8
trite
Member
 
Registered: Feb 2016
Location: Sweden
Distribution: Slackware64-current
Posts: 37

Rep: Reputation: 23
The default looks like this for me
https://imgur.com/a/wSzmc2A

This one is for assigning an ip from your host machine into the vm and enable ip-forwarding for traffic from the vm to enable internet access through the host
https://imgur.com/a/nbTCBN5
 
1 members found this post helpful.
Old 02-07-2019, 04:14 PM   #9
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 178

Rep: Reputation: Disabled
Quote:
Originally Posted by trite View Post
The default looks like this for me
https://imgur.com/a/wSzmc2A

This one is for assigning an ip from your host machine into the vm and enable ip-forwarding for traffic from the vm to enable internet access through the host
https://imgur.com/a/nbTCBN5
You need to shut down VM client before being able to do anything in Vitrualbox Manager.

Unless you want your client to have direct access to the internet, not sure why you would need two NIC.

I have all this set up with Slackware -current. NIC is working and recognized by VM client
 
1 members found this post helpful.
Old 02-08-2019, 05:39 AM   #10
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
Intel PRO/1000 MT Desktop (8254OEM) is the network adapter, NAT, Cable connected is checked and Port forwarding is empty. I'm using Slackware 14.2 on Virtualbox 5.2.18_Ubuntu r123745.

I did enable the Share Clipboard and Drag'n'Drop option but both doesn't work.
 
Old 02-08-2019, 06:56 AM   #11
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 156

Rep: Reputation: 164Reputation: 164
What exactly does

Quote:
doesn't work
mean?

What are you doing that's leading you to believe it doesn't work? Can you ping google.com? Your host machine? Your router? Whatever you're doing, what messages are you getting?

"Doesn't work" is the equivalent of going to the doctor and saying "It hurts" and nothing else.
 
Old 02-08-2019, 08:18 AM   #12
parotta36
Member
 
Registered: Dec 2017
Location: Madurai
Distribution: Linux Mint | Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
The network icon has a red cross in the KDE task bar. I'm not able to ping any address. My host has internet connection.
I tried setting network settings, nothing gets it up.
 
Old 02-08-2019, 08:23 AM   #13
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 11.0
Posts: 156

Rep: Reputation: 164Reputation: 164
Network Manager (that icon) is typically disabled by default unless you choose it specifically on setup.

Try

Code:
chmod +x /etc/rc.d/rc.networkmanager
to make the startup script executable and give it a reboot.
 
1 members found this post helpful.
Old 02-08-2019, 10:36 AM   #14
Aeterna
Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, CRUX, FreeBSD, Funtoo, HardenedBSD, OpenIndiana
Posts: 178

Rep: Reputation: Disabled
Quote:
Originally Posted by parotta36 View Post
Intel PRO/1000 MT Desktop (8254OEM) is the network adapter, NAT, Cable connected is checked and Port forwarding is empty. I'm using Slackware 14.2 on Virtualbox 5.2.18_Ubuntu r123745.

I did enable the Share Clipboard and Drag'n'Drop option but both doesn't work.
Can open VM client and show the output of:
Quote:
lspci -k | grep Gigabit
Quote:
lsmod | grep e1000
Quote:
lsmod | grep vb
 
1 members found this post helpful.
Old 02-08-2019, 12:17 PM   #15
trite
Member
 
Registered: Feb 2016
Location: Sweden
Distribution: Slackware64-current
Posts: 37

Rep: Reputation: 23
Just on a general note, I would like to assure that you have installed the "VirtualBox 6.0.4 Oracle VM VirtualBox Extension Pack" and enabled it in settings for your virtualbox.

This will make a great impact, for example if you run a windows VM without it. It will make all the cpu-cores assigned to it at 100% CPU, since it doesnt even know what "idle" is before using that extension pack.

I would higly recommend you use it whatever you are doing in virtualbox. Maybe it will help with your clipboard issues?

Last edited by trite; 02-08-2019 at 12:19 PM.
 
  


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
Internet is not working on VMPlayer for Ubuntu10.04 but working for Fedora12 aluvalassuman185 Linux - Desktop 11 02-21-2011 08:25 AM
Internet not working on Kubuntu SBC Global internet Socratesway2534 Linux - Newbie 5 12-24-2007 11:35 PM
Internet not working, network working Vossy Linux - Networking 3 12-20-2005 06:20 PM
Internet is working/not working klemen Slackware 3 01-14-2005 07:58 AM
Internet working, network not working... phoenix07 Fedora 1 04-11-2004 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:33 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