WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: No internet access...  (Read 4387 times)

Offline whitelines2

  • Newbie
  • *
  • Posts: 15
No internet access...
« on: July 04, 2011, 02:39:10 PM »
I have microcore latest version running on a usb stick. I am using an Ethernet cable, not wireless. When i try something like wget or tce-load i see this:

http://imagebin.org/161417

I took a look in /etc/resolv.conf and it was empty (and read-only). I added nameserver 8.8.8.8 to it but still not working. I do not have nodhcp set as a boot option... anyone have a clue how i can fix this? Thank you.
« Last Edit: July 04, 2011, 02:41:14 PM by whitelines2 »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: No internet access...
« Reply #1 on: July 04, 2011, 02:40:36 PM »
Run the "Network" utility in cpanel.

Offline whitelines2

  • Newbie
  • *
  • Posts: 15
Re: No internet access...
« Reply #2 on: July 04, 2011, 02:42:45 PM »
Where is cpanel? I'm using cli only.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: No internet access...
« Reply #3 on: July 04, 2011, 02:44:43 PM »
Right. microcore.
Then you need to use ifconfig to set your ipaddress,
and route to set your default gateway. Then edit /etc/resolv.conf for your nameservers.

Offline whitelines2

  • Newbie
  • *
  • Posts: 15
Re: No internet access...
« Reply #4 on: July 04, 2011, 02:54:05 PM »
eth0 doesn't even show up when i do ifconfig...

only have lo.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: No internet access...
« Reply #5 on: July 04, 2011, 03:33:10 PM »
Perhaps your ethernet card requires firmware, or is too new. Check dmesg for a firmware request.
The only barriers that can stop you are the ones you create yourself.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: No internet access...
« Reply #6 on: July 04, 2011, 11:15:35 PM »
Hi whitelines2
Here are the commands I use in a script to set up eth0 on my file server.

pkill udhcpc
ifconfig eth0 192.168.1.47 netmask 255.255.255.0 broadcast 192.168.1.255 up
route add default gw 192.168.1.1
echo nameserver 192.168.1.1 > /etc/resolv.conf
echo nameserver 192.168.1.1 >> /etc/resolv.conf


192.168.1.47 is the address I assign to my network card, adjust the address to match your network.
192.168.1.1 is the address of my router that connects me to the Internet.

If you want to enter them on the command line, precede the commands with the word  sudo.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: No internet access...
« Reply #7 on: July 05, 2011, 01:15:26 AM »
There is no reason to put the same nameserver twice in /etc/resolv.conf.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: No internet access...
« Reply #8 on: July 05, 2011, 01:29:26 AM »
Hi gerald_clark
Yeah, I know. I think the script might have come with TC2.1 and I just never removed the extra entry.