LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to get internet to work (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-get-internet-to-work-832763/)

sem007 09-17-2010 07:28 AM

Quote:

Originally Posted by ErevRav (Post 4100524)
Ok.

I have no router lying around. When I unplug my laptop (with suse) and plug in my win mac, i've an internet connection without doing anything else. For ipconfig result see post above.

I wanted to get to know linux, so i installed it on my laptop to play around with. If i could just get internet to run, id have a solid starting position.

I realize i'm lacking general IT (orwhathaveyou) knowledge here, but hey gotta start somewhere.

open command prompt on windows machine and run below command and paste output here.

i.e
Code:

c:\ipconfig /all
Regards,

jmc1987 09-17-2010 07:28 AM

First off does your modem have a gui (a ip that allows you to log into your modem like 192.168.1.1. If so its on your modem or should be). If it does not then you also have an internet light on your modem. Is it on when you have the linux machine plugged in. How do you connect with windows. Just plug in an go or do you have to go to start>connect to> your connection here?

Its possible you do have a PPPoE connection which requires a login and password to connect to the internet. What would really help look on your modem and tell us what make and model it is.

ErevRav 09-17-2010 07:38 AM

Ok.

Taking a cue from your advice to try a live distro, im now running Slax. At the network interfaces-info center it says the following:

Name: Io
Ip Add: 127.0.0.1
Netwrk Mask: 255.0.0.0.
Type: Loopback Up

No internets for me.

ErevRav 09-17-2010 07:45 AM

Ok.

The modem is a Motorola Surfboard.

The modem does not have a gui. It does, however, have shiny lights that go blink/blink ;)

Whether the modem is plugged into my laptop (with Suse) or my win mac, the lights do their thing (no change).

When I plug it into my win mac, its plug 'n go.

Really appreciating all the feedback,

sem007 09-17-2010 07:51 AM

there might be your ethernet card not detected or driver not supported
second thing is your network card not configured

give some H/W detail here

below command display ethernet card

Code:

lspci | grep -i ethernet
run below command to view network module loaded or not?

Code:

lsmod
Note: If you are login non root user run sudo before each command

Regards,

ErevRav 09-17-2010 07:52 AM

Ok.

ipconfig /all:

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : NVIDIA nForce Netw
Physical Address. . . . . . . . . : 00-04-61-93-87-F0
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 83.81.49.69
Subnet Mask . . . . . . . . . . . : 255.255.248.0
Default Gateway . . . . . . . . . : 83.81.48.1
DHCP Server . . . . . . . . . . . : 212.54.40.146
DNS Servers . . . . . . . . . . . : 212.54.40.25
212.54.35.25

cheers,

sem007 09-17-2010 07:54 AM

OK it seems you get ip address from your ISP through DHCP.

see this line in your output.

Quote:

Dhcp Enabled. . . . . . . . . . . : Yes
now paste some details which i said in above post.

Regards,

ErevRav 09-17-2010 08:04 AM

Ok.

lspci | grep -i ethernet:
02:00.0 Ethernet Controller: Realtek Semiconduction Co., Ltd.: Unknown device 8168 (rev 01)

lsmod returns a host of data, in which I know not what to look for.

cheers,

sem007 09-17-2010 08:09 AM

Quote:

Originally Posted by ErevRav (Post 4100568)
Ok.

lspci | grep -i ethernet:
02:00.0 Ethernet Controller: Realtek Semiconduction Co., Ltd.: Unknown device 8168 (rev 01)

lsmod returns a host of data, in which I know not what to look for.

cheers,

hmmm your ethernet card model is r8168.
I assume (not confirm) you need to install driver.( previously i had face problem with this model in centos)

for confirmation can you paste all output of lsmod command.

Regards,

ErevRav 09-17-2010 08:23 AM

Well,

I'm unable to paste the lsmod data. Figured i'd save it to usb device then connect to win mac, but open office is giving me the "saving using protocol "media" is not supported" error.

Sigh.

Seems I can't even save to the harddisk on the laptop right now.

What did I get myself into!? ;)

evo2 09-17-2010 08:37 AM

Hi,

as sem007 was alluding to, the driver (kernel module) that you need seems to be r8168.

To see if your kernel has that module please run the following command:

Code:

find /lib/modules -name r8168.ko
If it returns nothing then you don't have it.

If it returns something like
Code:

/lib/modules/2.6.26-2-amd64/kernel/drivers/net/r8168.ko
then we are getting somewhere.

Next see if that module has been loaded
Code:

lsmod | grep r8168
If this returns nothing, then the module is not loaded. So, you should load it. As root:
Code:

modprobe r8168
Please try the above and let us know what happens.

Evo2.

ErevRav 09-17-2010 08:43 AM

Ok.

find /lib/modules -name r8168.ko, no output; returns me to command line prompt.

cheers,

prayag_pjs 09-17-2010 08:58 AM

hey hi that means you dont have to do anything to get connected... good.. that means you get ip dynamically and in suse you are facing problem in configuring Ethernet

use yast or yast2 to configure ethernet card and slect Automatically connect via DHCP

also use yast or yast2 to disable firewall

if you follow these two steps you will get connected

also let us know the output of

Code:

iptables -L

ErevRav 09-17-2010 09:05 AM

Well,

(Re)configuring the ethernet card with setup via dhcp and no firewall does not work for me.

Iptable -L is returning lots of data, that I cant paste for reason stated earlier.

Cheers,

evo2 09-17-2010 09:08 AM

Quote:

Originally Posted by ErevRav (Post 4100602)
find /lib/modules -name r8168.ko, no output; returns me to command line prompt.

Ok, that's not so good. I just checked and it seems suse 10 is from circa 2005 which may be before this driver even existed. Can you please let us know what your kernel version is? You can find out with the following command:
Code:

uname -r
Evo2.

PS. Suse experts: please correct me if I'm wrong about the age of suse 10.

PPS. OP: how old/new is your hardware?


All times are GMT -5. The time now is 10:45 AM.