Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: whitelines2 on July 04, 2011, 02:39:10 PM

Title: No internet access...
Post by: whitelines2 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.
Title: Re: No internet access...
Post by: gerald_clark on July 04, 2011, 02:40:36 PM
Run the "Network" utility in cpanel.
Title: Re: No internet access...
Post by: whitelines2 on July 04, 2011, 02:42:45 PM
Where is cpanel? I'm using cli only.
Title: Re: No internet access...
Post by: gerald_clark 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.
Title: Re: No internet access...
Post by: whitelines2 on July 04, 2011, 02:54:05 PM
eth0 doesn't even show up when i do ifconfig...

only have lo.
Title: Re: No internet access...
Post by: curaga on July 04, 2011, 03:33:10 PM
Perhaps your ethernet card requires firmware, or is too new. Check dmesg for a firmware request.
Title: Re: No internet access...
Post by: Rich 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.
Title: Re: No internet access...
Post by: gerald_clark on July 05, 2011, 01:15:26 AM
There is no reason to put the same nameserver twice in /etc/resolv.conf.
Title: Re: No internet access...
Post by: Rich 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.