Announcement

Collapse
No announcement yet.

Simple networking help for Linux

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple networking help for Linux

    I just got a new embedded Linux board, the igepv2. It comes with Poky Linux and I'm trying to get it online but can't figure out what the problem is. Right now it is plugged into my router via ethernet cable but won't show up as an attached device.

    I'm able to iwconfig and iwlist and the if config reports:

    Code:
    eth0  Link encap:Ethernet  HWaddr 76:09:B3:FF:F5:05
            inet addr: 192.168.1.100  Bcast:192.168.1.255 Mask:255.255.255.0
            inet6 addr: fe80::7409:b3ff:feff:f505/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets: 176 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelan:1000
            RX bytes:0 (0.0 B)   TX bytes:17831  (17.4KiB)
            Interrupt: 80
    I was able to set the IP address to the 192.168.1.100 and it took it just fine. I can actually ping 192.168.1.255 and get a response. But when I try to ping one of my home pc's FROM the igep terminal, I get nothing. It sends the ping and then waits.

    The web browser built into Poky won't connect to anything either.

    If I enter:

    ifup eth0 <--the ethernet device, then I get:

    udhcpc (v1.9.1) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing

    Any help is appreciated!
    Originally posted by ghettocruzer
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  • #2
    Edit - I've been trying to add my default gateway as I think that might be the problem but I haven't been able to. Here is my netstat -nr output:

    Code:
    Kernel IP routing table
    Destination      Gateway           Genmask         Flags    MSS Window  irtt Iface
    192.168.254.0  0.0.0.0             255.255.255.0   U             0  0             0 eth0
    0.0.0.0        192.168.254.19      0.0.0.0            UG           0  0             0 eth0
    
    route add default fw 192.168.1.1 eth0
    route SIOCADDRT: Network is unreachable
    Originally posted by ghettocruzer
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

    Comment


    • #3
      I wouldn't mess too much with the stock poky.
      Former author of LinuxICE, nghost, nobdy.
      Current author of Automotive Message Broker (AMB).
      Works on Tizen IVI. Does not represent anyone or anything but himself.

      Comment


      • #4
        Bugbyte,

        Why did you *set* the ip address? Doesn't poky support dhcp? I would reboot the machine and then try 'dhclient' from a command line and see what happens...

        edit:

        NM -- just noted it uses udhcpc.... did you set an ip address prior to the 'ifup' command? And is your subnet '1' or '0' ?

        Comment


        • #5
          Didin't messed with poky but

          - Check if any firewall service is started like iptables or shorewall
          - Check the content of the files /etc/hosts.allow and btw the content of hosts.deny if they are present in the directory /etc/

          you could take a look in some log files like tail -f /var/log/messages or eventually dmesg.

          Comment


          • #6
            Originally posted by Bugbyte View Post
            Edit - I've been trying to add my default gateway as I think that might be the problem but I haven't been able to. Here is my netstat -nr output:

            Code:
            Kernel IP routing table
            Destination      Gateway           Genmask         Flags    MSS Window  irtt Iface
            192.168.254.0  0.0.0.0             255.255.255.0   U             0  0             0 eth0
            0.0.0.0        192.168.254.19      0.0.0.0            UG           0  0             0 eth0
            
            route add default fw 192.168.1.1 eth0
            route SIOCADDRT: Network is unreachable
            Edit your /etc/sysconfig/network file with the default gateway

            Comment


            • #7
              Thanks for the tips. No joy on any of them.

              I think it is a gateway problem, too but there is no /etc/sysconfig directory. I tried to set the default gateway using a command I can't recall, but it did not help.
              Originally posted by ghettocruzer
              I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
              Want to:
              -Find out about the new iBug iPad install?
              -Find out about carPC's in just 5 minutes? View the Car PC 101 video

              Comment


              • #8
                Originally posted by Bugbyte View Post
                Edit - I've been trying to add my default gateway as I think that might be the problem but I haven't been able to. Here is my netstat -nr output:

                Code:
                Kernel IP routing table
                Destination      Gateway           Genmask         Flags    MSS Window  irtt Iface
                192.168.254.0  0.0.0.0             255.255.255.0   U             0  0             0 eth0
                0.0.0.0        192.168.254.19      0.0.0.0            UG           0  0             0 eth0
                
                route add default fw 192.168.1.1 eth0
                route SIOCADDRT: Network is unreachable
                The above command should probably be
                route add default gw 192.168.1.1 eth0

                not: route add default fw 192.168.1.1 eth0 (gw for gateway instead of fw)

                Comment

                Working...
                X