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... !


All times are GMT -5. The time now is 05:46 AM.