WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Not able to connect to internet eth0 (dhcp)  (Read 3102 times)

Offline bpelleri

  • Newbie
  • *
  • Posts: 3
Not able to connect to internet eth0 (dhcp)
« on: July 01, 2009, 09:14:00 AM »
Hello folks,

I am a non-geek. I booted up the system, but the internet connection is not working. I have an ethernet cable and I assume it uses this "dhcp" thing and "broadcasts for IP".

The internet works well with DSL; I got it started there by clicking the control button "iwconfig" (I think). I am guessing that I have to type something either at boot or in a terminal in the JWM environment.

Thanks in advance,
Brian

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Not able to connect to internet eth0 (dhcp)
« Reply #1 on: July 01, 2009, 02:30:58 PM »
iwconfig would be for wireless.
If you typically use an ethernet cable, then open a shell and type ifconfig.
Do you see an entry for etho? Post results from ifconfig here.
10+ Years Contributing to Linux Open Source Projects.

Offline bpelleri

  • Newbie
  • *
  • Posts: 3
Re: Not able to connect to internet eth0 (dhcp)
« Reply #2 on: July 01, 2009, 04:22:03 PM »
Sure, here is the ifconfig result:


eth0      Link encap:Ethernet  HWaddr 00:A0:CC:21:23:B7 
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2365 errors:4 dropped:0 overruns:0 frame:0
          TX packets:2409 errors:1 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000
          RX bytes:1459673 (1.3 MiB)  TX bytes:448061 (437.5 KiB)
          Interrupt:10 Base address:0xd800

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:100 (100.0 B)  TX bytes:100 (100.0 B)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Not able to connect to internet eth0 (dhcp)
« Reply #3 on: July 01, 2009, 07:17:46 PM »
It looks like it is working to me.
Cat /etc/resolv.conf and see if the right nameserver is listed.
run 'route -n' and make sure your default gateway is your DSL router.

glc@sharp-glc:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.0.254   0.0.0.0         UG    100    0        0 eth0
glc@sharp-glc:~$

Here my gateway is 192.168.0.254

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: Not able to connect to internet eth0 (dhcp)
« Reply #4 on: July 03, 2009, 03:16:02 AM »
maybe a suggestion:cpanel, netcard config, choose DHCP and hit yes. it should run udhcpc which will get an ip for your machine.

Offline bpelleri

  • Newbie
  • *
  • Posts: 3
Re: Not able to connect to internet eth0 (dhcp)
« Reply #5 on: July 03, 2009, 04:51:10 AM »
Quote
Cat /etc/resolv.conf and see if the right nameserver is listed.

I'm not sure what you mean by that...

Here is my kernel IP routing table:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0           255.255.255.0  U       0        0        0 eth0
0.0.0.0         192.168.1.1       0.0.0.0             UG    100     0        0 eth0

Sometimes it works (especially if I boot up TC after I just had DSL or some other OS working the internet connection properly), but it is certainly not a reliable thing.

I'll try netcard config - DHCP (even though I don't have a wireless net card).

BTW, I have the same trouble when using Slitaz and PCLOS, too.