connect Olimex CS-9302 to internet?

Hi,

i am booting CS-e9302 from USB memory has Debian rootfs.

how can i connect board to internet to install packages. I want to connect the board to Ethernet cable directly to my DSL modem, and give commands via serial cable to the board using (hyperterminal).

what r the configurations i need??

thanks

What protocol is used by your ISP?

Is it raw IP (possibly with DHCP) or do you need PPPoE?

Hi,

how can i know that?

here is my eth0 details:

http://i276.photobucket.com/albums/kk5/ … titled.jpg

regards

hi denial,

i found that my connection is DHCP.

any hints now?

thanks

first of all you need connection to your network… use:

  1. ethernet switch or 2) second network card + linux software ethernet bridge

I use variant 2) :slight_smile:

then on your board execure command:

route add default gw

get default route from your screenshot :slight_smile: (81.98.96.1)

then open file /etc/resolv.conf and add lines:

nameserver

nameserver

where DNS IP address get from your screenshot :slight_smile:

and then configure IP address of your board:

ifconfig eth0 netmask up

I dont know correct IP address in your situation =(

in my case:

netmask 255.255.255.0

ip address 192.168.0.20 on board, main computer 192.168.0.1, router IP - 192.168.0.5

I use my router IP as default gw… and this works FINE :)))

I’m also using Debian and it allows me to install *.deb packages from internet :slight_smile:

Hi FPGA,

can it be done wothout switch or bridge, i mean connect the board directly to my modem?

thanks

raedbenz:
Hi FPGA,

can it be done wothout switch or bridge, i mean connect the board directly to my modem?

thanks

YES, of course

It can be connected in ANY way

If you can connect your computer to internet => your Linux computer/board also can do that

Hi,

i did all the steps. (connecting ethernet from my modem to board directly)

but in the beginning when :

cs-e9302:~# route add default gw 81.98.96.1
SIOCADDRT: Network is unreachable

any hints?

FPGA:
and then configure IP address of your board:

ifconfig eth0 netmask up

I dont know correct IP address in your situation =(

how could i know mine? is it different than 81.98.99.175 (according to image when connected to PC)

at the end i tried to ping:

cs-e9302:/etc# ping -c 2 www.google.com
ping: unknown host www.google.com

any hints?

Thanks

Just search internet about configuring network in Linux…

Your questions is not about internet on cs-ep9302 - your question just about Linux…

Hi,

the cable should be straight or cross over?

when i plug the cable (straight) into board from modem directly: the green and orange leds tutn on, then i type:

cs-e9302:/# ifconfig -a                                                                                         
eth0      Link encap:Ethernet  HWaddr 00:DE:AD:B0:05:00                                                         
          inet6 addr: fe80::2de:adff:feb0:500/64 Scope:Link                                                     
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                     
          RX packets:6 errors:0 dropped:6 overruns:0 frame:0                                                     
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0                                                 
          collisions:0 txqueuelen:1000                                                                           
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)                                                                 
          Interrupt:39

and

cs-e9302:/# dmesg | grep -i Eth                                                                                 
drivers/net/usb/catc.c: v2.8 CATC EL1210A NetMate USB Ethernet driver                                           
drivers/net/usb/rtl8150.c: rtl8150 based usb-ethernet driver v0.6.2 (2004/08/27)                                 
Driver 'sd' needs updating - please use bus_type methods                                                         
Using buffer write method                                                                                       
eth0: No network cable detected!

how come?

thanks

kernel:
Hi,

the cable should be straight or cross over?

when i plug the cable (straight) into board from modem directly: the green and orange leds tutn on

eth0: No network cable detected!

Use the cable that came with your cable modem. Those are usually (straight or crossed) the right one to connect to a PC, and your board is probably the same.

“No network cable detected!” tends to mean that you’ve got the wrong cable. Since you’re using a straight one, that means you need a crossed one.

Generally, straight cables are only good for going between a node and a hub/switch/router. Going between two ports of the same type (such as between two hosts) requires a crossover. A cable modem could be wired either way. In this case, it appears your cable modem may be wired like a host is.