Computing.Net > Forums > Linux > internet doesnt work on ether or wi

internet doesnt work on ether or wi

Reply to Message Icon

Original Message
Name: GaPeLo
Date: April 11, 2007 at 00:07:55 Pacific
Subject: internet doesnt work on ether or wi
OS: OpenSuse10.2
CPU/Ram: 1G
Model/Manufacturer: Toshiba
Comment:

Hi, im the typical student who is new to linux and having problems using it.

I installed ubuntu, fedora, and opensuse and none of those want to do internet. I know it detects the NIC card but no internet.

I already try using
acpi=off and noapic noalpic
or somehting like that

my pc its a toshiba laptop, A135-S4527

any help will be gladly appriciated


Report Offensive Message For Removal


Response Number 1
Name: Fist (by fmwap)
Date: April 11, 2007 at 02:00:56 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

Any idea what kind of NIC is in the box??

Newer hardware usually has bad support on linux -- w/ *nix it's usually a good idea to go w/ slightly older hardware, becuase the support is usually better.

What output do you get from an 'ifconfig' command?

Also, post your 'dmesg' output


Report Offensive Follow Up For Removal

Response Number 2
Name: GaPeLo
Date: April 11, 2007 at 07:28:29 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

According to network card configuration the name of the NIC is

"Toshiba America Info Ethernet Controller"

where do i use those commands... try it on the terminal but it says command not found...Lol!!

Im sorry im kind of new to this... any help will be gladly appriciated...


Report Offensive Follow Up For Removal

Response Number 3
Name: Fist (by fmwap)
Date: April 11, 2007 at 07:48:14 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

Try /sbin/ifconfig intead of just 'ifconfig', it should output something like:

[erikp@redhat9] ~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:27:D1:A9:72
inet addr:172.16.65.248 Bcast:172.16.65.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22339551 errors:0 dropped:0 overruns:2051 frame:0
TX packets:31102540 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100

Are you statically assigning the IP addy or using DHCP??

For statically assigned:
/sbin/ifconfig eth0 inet <ipaddr> netmask <mask> up

like: /sbin/ifconfig eth0 inet 192.168.1.101 netmask 255.255.255.0 up

For DHCP-assigned just do:
/sbin/dhclient eth0


Oh and btw, if you're not running as root, you need to preceed those commands w/ sudo, like this:

sudo /sbin/dhclient eth0

& type your password


Good luck



Report Offensive Follow Up For Removal

Response Number 4
Name: GaPeLo
Date: April 11, 2007 at 12:40:32 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

Thank you for your kind information...

I unninstalled opensuse and installed mandriva one... same thing happened.

this time it only gives me two options for the ethernet card, a RTL8101E PCI Express Fast Ethernet controller. and a firewire one,,, also there is one that says null. and its telling me that media class is network_ethernet... maybe that is the reason is not connecting...

if config gives me,,,

up broacast running multicast
mtu:1500 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frames:0
TX is the same as RX
collisions:0 txqueuelen:1000
rx bytes:0 (0.0 b) tx bytes:0 (0.0 b)

i think is getting an IP via DHCP.

so i try dhclient eth0

and it tells me
NO DHCPOFFERS recieved.
No working leases in persistent database - sleeping.

Thank you for your nformation once again...

Hope i can solve this...


Report Offensive Follow Up For Removal

Response Number 5
Name: dmj2
Date: April 11, 2007 at 15:12:15 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

Hey,

It doesn't look like there's an IP address assigned to eth0, it would normally show up under 'inet'

Need to get an IP address assigned to the interface so it can communicate on the network...but first you've gotta pick one out & get the rest of your settings...the 'NO DHCPOFFERS' message indicates there's no DHCP server on your network, or it's not answering.

Is this box connected to a switch/router, or directly connected to the internet??

If you're on a router, then go to one of your other PC's. Copy the network setup from it. For example, in Windows you would:

go start / run / cmd
typein: ipconfig /all

Copy down the IP address, subnet mask, default gateway, and both DNS servers

Your IP address for the linux box must be unique, so add 1 to it. (I.e., if it's 192.168.1.101, make the linux box 192.168.1.102).

Here's how to configure it via the terminal:

sudo /sbin/ifconfig eth0 inet <ip address> netmask <subnet mask> up

example:
sudo /sbin/ifconfig eth0 inet 192.168.1.102 netmask 255.255.255.0 up

Next add ur default gateway:

sudo /sbin/route add default gw <default gateway>

i.e.:
sudo /sbin/route add default gw 192.168.1.1

Lastly, configure your DNS servers, by putting them into the /etc/resolv.conf file. You should be able to edit the file just with a 'edit /etc/resolv.conf' or try 'pico /etc/resolv.conf' if edit doesn't work.

Make the file look like this:

nameserver <dns server 1>
nameserver <dns server 2>

So for example, mine looks like:

nameserver 68.87.69.146
nameserver 68.87.85.98


And that's it. Try to 'ping google.com' & see if you can get a reply.

Just so you know, this is the 'standard' way of bringing up the network in linux -- all linux distro's should follow the above. But, you can usually also do it via the Window system -- which is a little bit easier sometimes than hammering out ifconfig commands. But each distro's windowing system can be differnet & there's no real 'standard' way of doing it.

Here's a page from the Mandriva site covering the network setup using the GUI:

http://doc.mandrivalinux.com/Mandra...

Skip down to the 'Setting up a LAN connection' -- just copy the IP settings from another box, like I'd described above.

Good luck.


Report Offensive Follow Up For Removal


Response Number 6
Name: GaPeLo
Date: April 11, 2007 at 22:54:10 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

Thank you for your reply. here is whot happened.

Apparetly the mandriva OS didnt work to well with my PC. I had random reboots and screen freezes with mandriva. SO i switch back to open suse 10.2 but know using the gnome gui interface.

Thank yu to all of the replies i got im getting good experience using linux. i learned alot about using the terminal and understanding the file system. thank you so much... But getting back to my poblem i did the acpi=off and the noapic and nolapic.

i also did as you told me in the response #5 and no internet. Maybe because my PC is behind a switch?

ifconfig shows me this...

ethn0 Link encap: Ethernet HWaddr 00:16:D4:95:C3:12
inet addr: 169.254.243.98 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr:fe80::216:d4ff:fe95:c312/64 Scope:link
Up Broadcast Multicast MTU :1500 metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX same as RX carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0b) TX bytes: (0.0b)
interrupt:185 Base addres:0x4000

no pingning google.com doesnt work either. I did this proceduce twice so i didnt do a typo, but no its not working...

any more ideas??? i know a lot of people had problems with toshiba laptops before but any of the solututions haven;t worked...

any other hep will be gladly appriciated...

Thank you all for your help!!

GL!!


Report Offensive Follow Up For Removal

Response Number 7
Name: ernie
Date: April 12, 2007 at 12:20:59 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

Your computer is behind a switch, and NOT a
router? If this is so, your issue may be
that you are trying to use a second IP
address that has not been assigned to you by
your ISP. Your switch will not provide NAT
or DHCP services as a router would. There is
also no hardware firewall. You may need to
check with your ISP to see if you can get a
second address assigned, or failing that get
a router (or set up a computer to use as a
router / firewall).

HTH,

Ernie Registered Linux User 247790
ICQ 41060744


Report Offensive Follow Up For Removal

Response Number 8
Name: GaPeLo
Date: April 12, 2007 at 14:57:12 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

I tried a couple of live cds and dvds on my other computer (ubuntu, gentoo, knoppix, and mandriva one) to see if by any chance its a driver support compability. So i used all of those live cds on my desktop and i got internet connection. I didn't configure a thing (DHCP). used the same setup as my laptop and it worked on my desktop.

any ideas? should i give up installing linux on my laptop? (but i actually need it for a class, instructor doesnt help much either)

Thank you for your response...

any ideas??

for your time thank you


Report Offensive Follow Up For Removal

Response Number 9
Name: ernie
Date: April 12, 2007 at 17:37:34 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

I need better information about your
Internet connection to be of any help.

Is your Internet connection broadband or
dial-up?

You said in an earlier post that your
computer is behind a switch. Is this true,
or is your computer behind a router?

A few bits of information about Networking
(please do not be offended if you already
know this):

Most ISP's (Internet service Provider's)
provide one IP address to each customer
account.

Each computer on a network must have a
unique IP address (no other computer on the
network can have the same address). Much as
your home address defines the location of
your home on your street in your community,
your computer's IP address defines its
logical location on the network.

If your computers are connected to the ISP's
network with a switch, each one will be
visible on the network. Each computer will
need an IP address for the ISP's network
(such IP addresses must be provided by the
ISP). Most ISP's will not do this, or they
will charge extra for each additional IP
address.

The usual method of connecting more than one
computer to an ISP's network is to use a
router. The router is connected to the ISP's
WAN (Wide Area Network). It will use the one
IP address provided by the ISP. You connect
your computers to the router, creating a LAN
(Local Area Network). The router acts as a
gateway device to connect your computers to
the ISP's network. The router will usually
provide NAT (Network Address Translation)
and DHCP (Dynamic Host Configuration
Protocol) services to the LAN, providing IP
addresses to your computers. It will handle
DNS (Domain Name Server) services in one of
two ways. It will pass the ISP's DNS server
IP addresses to your computers in the DHCP
configuration, or it will act as the DNS
server. Finally, a router will act as a
hardware firewall, providing one more layer
of security for your LAN.

HTH,

Ernie Registered Linux User 247790
ICQ 41060744


Report Offensive Follow Up For Removal

Response Number 10
Name: GaPeLo
Date: April 12, 2007 at 20:25:06 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

No i dont feel offended (I appriciate peoples help and time). Thank you for your information.

MY ISP gave me a router with a cd (to program a broadband connection). This CD configures my program to acces the internet. I have a PC connnected to the router via USB and 1 ethernet connection to a switch. This switch has 3 computers connected 1 using windows vista and 2 using windows xp. MY router recevies a max of 1mb connection. The computer i mention using linux cds that could access the internet its one of this computers within the workgroup.

Im using a CNET with the following specs.
http://www.cnetusa.com/product/spec...

and the router 2Wire Home Portal DSL Modem , model 1070-B GATEWAY.

i dont know what else i can provide... If i need more info please let me know...

Thank you for your time...


Report Offensive Follow Up For Removal

Response Number 11
Name: ernie
Date: April 13, 2007 at 06:28:40 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

I looked on the 2-Wire WEB site, and they
are unclear as to the exact configuration of
your model (1070-B Gateway). I have a few
more questions:

Does the 2-Wire modem have 1 Ethernet port
or are there 4 ports?

You say you have three computers connected
to the switch and one to USB.

Do all the Windows computers connect OK (Is
it just the Linux computer that is unable to
connect)?

What is the make and model of the switch?


Ernie Registered Linux User 247790
ICQ 41060744


Report Offensive Follow Up For Removal

Response Number 12
Name: Fist (by fmwap)
Date: April 13, 2007 at 06:29:35 Pacific
Subject: internet doesnt work on ether or wi
Reply: (edit)

From your 'ifconfig' output:
inet addr: 169.254.243.98

Is that the IP you assigned?? That address is normally reserved for auto-discovery

Go to your XP computer, & go to CMD window then run 'ipconfig /all' -- copy down the IP address, subnet mask, default gateway & both DNS servers -- post that data back in here so we can verify the IP settings.


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: internet doesnt work on ether or wi

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge