WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline whitelines2

  • Newbie
  • *
  • Posts: 15
No internet access...
« on: July 04, 2011, 11:39:10 AM »
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, 11:41:14 AM by whitelines2 »

Offline gerald_clark

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

Offline whitelines2

  • Newbie
  • *
  • Posts: 15
Re: No internet access...
« Reply #2 on: July 04, 2011, 11:42:45 AM »
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, 11:44:43 AM »
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, 11:54:05 AM »
eth0 doesn't even show up when i do ifconfig...

only have lo.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10961
Re: No internet access...
« Reply #5 on: July 04, 2011, 12: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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11220
Re: No internet access...
« Reply #6 on: July 04, 2011, 08: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 04, 2011, 10:15:26 PM »
There is no reason to put the same nameserver twice in /etc/resolv.conf.

Offline Rich

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