New IT forum Follow us on Twitter
17 May 2012, 04:38:37 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: DreamPlug tutorial in Linux Format issue 145!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: problem connecting Dreamplug to internet  (Read 2682 times)
shivaraj
Newbie
*
Posts: 4


« on: 11 April 2011, 04:52:33 am »

Hi,
   I just got a few Dreamplugs for my experiment (data collection). I am having hard time connecting them to internet via ethernet (both eth0 and eth1) ports. I am not much familiar with network settings, but learning.
   I wanted to have static IPs for the plugs so I changed the dhcp to static and assigned IP , subnet mask, Gateway of my router etc., to dream plug. My router does see the plug (the 'attached devices' list show the IP I assigned). But I am not able to ping the router or anything from the Plug. Any help is very appreciated.
Thanks
shiva
Logged
MessedUpHare
Newbie
*
Posts: 6


« Reply #1 on: 11 April 2011, 07:02:55 pm »

How did you configure your network settings?
e.g.

Altering /etc/sysconfig/network-scripts/ifcfg-eth0
to say
# ETC..ETC...ETC
Logged
varkey
Newbie
*
Posts: 15


« Reply #2 on: 11 April 2011, 09:12:59 pm »

Looks like you didn't set the gateway or the DNS servers.
Logged
shivaraj
Newbie
*
Posts: 4


« Reply #3 on: 11 April 2011, 11:47:37 pm »

I did set everything correct. The problem seems to with leaving other eth* connection on while nothing connected to it. For example when I use eth0 port
with 'ifconfig eth1 down' and 'ifconfig uap0 down' it works. But if I keep them on, it doesn't. May the packets are being sent to wrong ports.
Logged
ghat
Newbie
*
Posts: 15



« Reply #4 on: 13 April 2011, 07:19:11 pm »

hi

unless you post what you actually did on the config files its hard to debug...

BTW, I have setup multiple ip addresses on each of the gbE ports, through /etc/network/interfaces, and it was all working....
(with my 400Mhz plug), I now have my rma'd plug which is 1.2G however still not played with it. Actually its the same box, so I guess
they changed something on the board to update it from 400Mhz to 1.2G, or may be they changed the board itself.

anyways, please post your /etc/network/interfaces so we can help you

G
Quote
Here is mine

Code:
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto eth0:1
iface eth0:1 inet static
        address 192.168.2.254
        netmask 255.255.255.0
        broadcast 192.168.2.255
        network 192.168.2.0

auto eth1
iface eth1 inet static
        address 172.16.39.90
        netmask 255.255.255.0
        network 172.16.39.0
        broadcast 172.16.39.255

this sets up 2 ip address' on eth0 and one on eth1...  note that there is no gateway configured here as the default comes for the dhcp server


« Last Edit: 13 April 2011, 07:28:33 pm by ghat » Logged
shivaraj
Newbie
*
Posts: 4


« Reply #5 on: 15 April 2011, 05:33:49 am »

Hi,
  Here is my /etc/network/interfaces file.
Quote
auto lo                                                                         
iface lo inet loopback                                                         
                                                                               
auto eth0                                                                       
iface eth0 inet static                                                           
address 192.168.1.10                                                           
netmask 255.255.255.0                                                         
gateway 192.168.1.1                                                           
                                                                               
auto eth1                                                                       
iface eth1 inet static                                                           
address 192.168.1.11                                                           
netmask 255.255.255.0                                                         
gateway 192.168.1.1         
I can connect to net via router, if eth0 is connected while booting, or otherwise it doesn't seem to work i.e., if I plug it in after boot.
Logged
ghat
Newbie
*
Posts: 15



« Reply #6 on: 15 April 2011, 02:57:26 pm »

hi
can you paste the output of

ip route

or

route -nv

G
Logged
donkies4u
Newbie
*
Posts: 2


« Reply #7 on: 01 May 2011, 01:08:48 am »

Hi

The following relates to debian on the dreamplug. i.e. not the standard ubutntu that the dreamplug comes installed with.

Just wanted to post this incase someone else spends hours trying to figure out how to assign a static
IP address to the dreamplug. Specifically eth0.


1. Stop ifplugd from mucking around with your ethernet port.

vi /etc/default/ifplugd

Remove eth0 from variables INTERFACES and HOTPLUG_INTERFACES. ie The variables should end up like this.

INTERFACES="eth1"
HOTPLUG_INTERFACES="eth1"


2. Add your ethernet port to /etc/network/interfaces

e.g.

auto eth0
iface eth0 inet static
       address 192.168.1.10
       netmask 255.255.255.0
       network 192.168.1.0
       broadcast 192.168.1.255
       gateway 192.168.1.1


3. In my case I had to stop the wireless interface from stuffing things up. It kept assigning 192.168.1.1 to its self.
In my case 192.168.1.1 is my ADSL modem/router.

/etc/rc.local runs /root/init_setup.sh. init_setup.sh has been used to hardcode the set up of the wireles interface.

In mycase I just changed the IP address uap0 was setup with, not to be 192.168.1.1

Reboot. And do and ifconfig to confirm Wink

Hope this helps someone

Cheers
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!