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/)

ErevRav 09-17-2010 03:34 AM

unable to get internet to work
 
I’m new to linux

Im having trouble setting up my internet connection

I have cable internet. The laptop is connected directly to the modem (no router, no wireless).

I just installed suse 10.0 from dvd onto my laptop

When I use YAST to go network devices->network card, an Ethernet card is detected.

It said it was unconfigured so I chose to edit:

Device Type: Ethernet

Setup method: Autom. Addr. Sett (via DHCp)

Host Name and Name Serv Conf:
Checked “change host name via DHCP”
Checked “update name servers and search list via dhcp”

Routing: didn’t do anything here

Advanced-> Hardware Details: checked pcmcia

Advanced-> DHCP client options: checked request broadcast response

Advanced->Detailed Settings: selected “at boot time”; checked “user controlled”; selected “external zone”

Advanced-> Additional addresses: nothing

I have no internet, googled for solutions here and there, no luck.

I’m hoping to get some tips.

prayag_pjs 09-17-2010 03:54 AM

hi

run
Quote:

ifconfig
wats the ip you are getting?
you are getting ip or not?

run
Quote:

route -n
at the end you should get gateway ip

0.0.0.0 Some IP? 0.0.0.0 UG 0 0 0 eth0

run
Quote:

cat /etc/resolv.conf
you should get dns ip

try to ping gateway and dns ;when u get reply from ping then you have internet connection.
if you cant see ip in ifonfig,/etc/resolv.conf and gateway ip network configuration is not done properly using yast

Kenny_Strawn 09-17-2010 03:58 AM

Since it's an Ethernet card, have you tried configuring it from the command line? Try this:

Code:

ifconfig eth0 add <your address>
ifconfig eth0 hw slip <your address>
ifconfig eth0 up


ErevRav 09-17-2010 04:28 AM

First off, tnx for the replies.

In Suse-> run command>ifconfig>"could not run specified command"

Same for "route -n"

Same for "cat /etc/resolv.conf

Running ipconfig on my win machinge gets me:

IP adress: 83.81.49.69
Subnet mask: 255.255.248.0
Default gateway: 83.81.48.1

cheers

Kenny_Strawn 09-17-2010 04:34 AM

<removed, as I thought something that wasn't true>

jmc1987 09-17-2010 04:35 AM

I don't know who your cable provider is and Im not sure if you done this. But most cable providers bind your mac to their network. So make sure you restart your modem to make sure thats not your problem. If you modem has a gui you may sometimes need to login to it and do a soft reset or use the physical reset button to reset it. If you do a physical reset besure that the power does not get cut off during the reset process or you can corrupt your firmware.

jdkaye 09-17-2010 04:38 AM

I'm not familiar with the Suse set up but in Debian I have to run both ifconfig and route as root (or use sudo). Maybe that's your problem.
ciao,
jdk

sem007 09-17-2010 04:41 AM

use sudo to run command as root

Code:

sudo ifconfig
sudo route -n


prayag_pjs 09-17-2010 04:42 AM

hi

try to disable firewall and selinux using yast or yast2

jmc1987 09-17-2010 04:45 AM

Oh just to add you have to run like this

/sbin/ifconfig

Works for me
Quote:

james@linux-i38y:~> /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:15:CA:99:85
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::222:15ff:feca:9985/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:60 (60.0 b) TX bytes:4437 (4.3 Kb)
Interrupt:253 Base address:0x6000

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:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:340 (340.0 b) TX bytes:340 (340.0 b)


evo2 09-17-2010 05:12 AM

Are you sure that your modem uses dhcp to assign your ip? Often these things use pppoe.

Evo2.

ErevRav 09-17-2010 07:00 AM

Ok.

Got ifconfig result:

Link Encap: Local Loopback
Inet addr 127.0.0.1 Mask 255.0.0.0

Route -n:
Destination 127.0.0.0
Gateway 0.0.0.0
Genmask 255.0.0.0

cat /etc/resolv.conf
search site

Tnx for the help

P.S. Tried resetting modem, no result.
P.P.S. No, I'm not sure my modem uses DHCP (not sure 'bout much of anything at the mo). Will try to find out.

prayag_pjs 09-17-2010 07:13 AM

Hi,

How you access internet on windows?

From above ifconfig result of your we can conclude that your system not getting ip from ISP.
The reason may be incorrect network configuration.

If you let us know how you get internet on your windows system then we can figure out the solution for you...

ErevRav 09-17-2010 07:20 AM

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.

hughetorrance 09-17-2010 07:22 AM

Another easy thing to check your hardware is try a live distro and see if it connects you,all the major distros are pretty good at it... !

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?

sem007 09-17-2010 09:08 AM

Quote:

Originally Posted by prayag_pjs (Post 4100615)
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

@prayag_pjs

please read carefully.

in post #26 evo2 explain how to find loaded modules.

in post #27 OP said there is no such module


let me know how OP access ethernet card with out modules(driver) and how it configure interface to access internat?

without network module can OP follow your two easy steps?

Regards,

ErevRav 09-17-2010 09:15 AM

Ok.

Kernel 2.6.13-15-default

I'm running Suse on an Aspire 7111WSMi, a handmedown from a relative. I guess it's about 4 years old.

cheers,

sem007 09-17-2010 09:16 AM

Quote:

Originally Posted by ErevRav (Post 4100602)
Ok.

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

cheers,

evo2 is correct. There is no ethernet module installed on your system.

And as i know suse 10 support also expire.
Why you are not use latest version of OpenSuSE (i think 11.4 is available)?

Regards,

ErevRav 09-17-2010 09:21 AM

My train of thought went something like this,

Let's install suse 10, got the dvd lying around anyway, then patch it up till the latest version over the internet.

Much did I know, the internet part was gonna screw me over.

Thank you all so much for the time invested, really really appreciate it.

Guess ill try to download suse 11.3 and try again.

cheers

evo2 09-17-2010 09:24 AM

Good to hear that you are going to download a newer distro. After some googling I've not been able to find a clear reference but it seems that this driver was introduced to the kernel shortly after version 2.6.13, so you should have no problem with opensuse 11.3.

Good luck! And let us know how you get on.

Cheers,

Evo2

sem007 09-17-2010 09:26 AM

I suggest you download Opensuse :)

BTW Opensuse 11.4 is also availbale

Regards,

ErevRav 09-17-2010 09:59 AM

Well,

Im downloading open suse 11.3 right now.

Btw, out of curiosity and perhaps to save myself some time in the future, whence did you get the information that the particular kernel module was not included in the kernel i had?

cheers,

ErevRav 09-17-2010 12:53 PM

update:

11.3 and it works!

Tnx again,

jmc1987 09-17-2010 01:04 PM

Awsome. Linux can be tough for starters but it gets easier. Every distro is different in its own ways so find the one you like and stick with it. Also besure to mark the thread as solved so others know.

gdejonge 09-17-2010 01:18 PM

As JMC1987 said some ISPs bind your access to the mac-address of your PC. You have to verify this with your ISP.
If this is the case, You can only use one machine (the one with the registered mac) at the internet connection and use that one to forward to other machine's.

There is however a second option if your network card supports it. Some network cards allow to change the default mac-addres (see ifconfig hw).
In that case write down the mac-address of the working card and use that for the other network card.

_________________________
Gerrard

evo2 09-17-2010 05:43 PM

Hi,

Quote:

Originally Posted by ErevRav (Post 4100700)
Well,
Btw, out of curiosity and perhaps to save myself some time in the future, whence did you get the information that the particular kernel module was not included in the kernel i had?

When you ran the following command it did't return any filename.
Code:

find /lib/modules -name r8168.ko
What that command does is look for a file called r8168.ko under the directory /lib/modules. If your kernel had that module (driver) it should have been located under that directory.

I was't able to find a definitive reference on the web, but I did find a significant number of forum and email list posts of people discussing the absence driver in the 2.6.13 kernel, but did not find similar posts with reference to the 2.6.14 kernel.

Evo2.

jmc1987 09-17-2010 09:17 PM

Quote:

Originally Posted by evo2 (Post 4101092)
Hi,



When you ran the following command it did't return any filename.
Code:

find /lib/modules -name r8168.ko
What that command does is look for a file called r8168.ko under the directory /lib/modules. If your kernel had that module (driver) it should have been located under that directory.

I was't able to find a definitive reference on the web, but I did find a significant number of forum and email list posts of people discussing the absence driver in the 2.6.13 kernel, but did not find similar posts with reference to the 2.6.14 kernel.

Evo2.

I think ErevRav meant where did you get your research from. Where did you find out the kernel didn't support it. Website example.

evo2 09-17-2010 09:22 PM

Quote:

Originally Posted by jmc1987 (Post 4101202)
I think ErevRav meant where did you get your research from. Where did you find out the kernel didn't support it. Website example.

As stated in the last sentence of my post I was not able to find such a website.

Evo2.


All times are GMT -5. The time now is 09:53 AM.