ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Update Debian on USB

To:
Subject: Re: [ts-7000] Re: Update Debian on USB
From: Jim Jackson <>
Date: Fri, 17 Nov 2006 16:31:48 +0000 (GMT)
Hi,

Tom (the OP) has an ADSL router that does NAT/Masquerade. We've been
emailing off list and I think he is close to being sorted.

The "hub" he mentioned was his ethernet switch - so technically he was
correct, it doesn't do NAT - switches tend not to :-) He's on a learning
curve but getting there.

cheers
Jim

On Tue, 14 Nov 2006, Jason Stahls wrote:

> Without someone doing NAT for you that won't be possible (If you want a
> explanation of why then read below).  Get another NIC, install it in
> your PC and use Internet Connection Sharing (I'm assuming you're using
> Windows of some sort) that's probably the cheapest way to get on the net
> with your TS7250 and still have your PC talk to it.  That or buy a
> <vendor or your choice> router.
>
> Jason
>
> Why it won't work this way -
>
> 192.168.0.0/16 is a non-routable IP network that was set aside eons ago
> for private use, it goes with 10.0.0.0/8 and 172.16.0.0/12.
>
> When you try and talk to someone outside of that network (IP's from
> 192.168.0.0 to 192.168.254.254) the IP stack in the TS looks up in the
> routing table who it should talk to to pass the traffic along (a
> router), in your case you only have one route set (which is normal) the
> default route.
>
> $ route -n
> Kernel IP routing table
> Destination  Gateway    Genmask        Flags Metric Ref   Use Iface
> 0.0.0.0      192.168.0.10    0.0.0.0   UG    0      0      0 eth0
>
>
> This says that all traffic not for 192.168.0.0/16 should goto
> 192.168.0.10 to be passed on somewhere.  Now, as long as we're not
> heading to the internet, we don't have to do anything, routers could
> pass this around all over and everything would be fine, _but_
> 192.168.0.0/16 is non-routable on the internet so we need someone to
> translate out non-routed address into a routable address.  This is where
> NAT comes in, we "masquarade" as the router doing NAT to get on the
> internet then traffic coming back to the NAT box gets translated back to
> it's real IP address and sent to the owner.
>
> Since you don't have NAT setup anywhere you will never be able to get on
> the internet.  Most ISP's will allow you to purchase a second IP
> address, or the cheaper way as listed above is to use ICS and a second
> network card.
>
> And if any of this is wrong/my writing is confusing it's the end of the
> day and I needed to get this typed out before my ride leaves.
>
> chentom60 wrote:
> > Jim,
> >
> > My simple hub can not do any fancy NAT, it just makes PC and 7250
> > shared the same DSL modem. My PC has only one ethernet card,
> > therefore, I can not browse internet while working on the board. So, I
> > use the hub that connects both PC and 7250 and its uplink connects to
> > DSL modem. Then PC can communicate with 7250 and browse internet no
> > problem.
> >
> > I use loadUSB.sh to change root to USB with debian, however, can not
> > use apt-get to install anything. It looks like 7250 can not
> > communicate with internet. "ping www.yahoo.com" from board does not
> > work. I am not sure whether I should config either board or PC. I am
> > quite new on network, please help me, thanks!
> >
> >
> > Thanks.
> >
> > Tom
> >
> > --- In  Jim Jackson <> wrote:
> >
> >> On Tue, 14 Nov 2006, chentom60 wrote:
> >>
> >>
> >>> Thanks, here is the result:
> >>>
> >>> $ /sbin/ifconfig
> >>> eth0      Link encap:Ethernet  HWaddr 00:D0:69:40:1F:01
> >>>           inet addr:192.168.0.50  Bcast:192.168.0.255
> >>>
> > Mask:255.255.255.0
> >
> >>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >>>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >>>           TX packets:0 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
> >>>
> >>> lo        Link encap:Local Loopback
> >>>           inet addr:127.0.0.1  Mask:255.0.0.0
> >>>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
> >>>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >>>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> >>>           collisions:0 txqueuelen:0
> >>>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> >>>
> >>>
> >>> $ route -n
> >>> Kernel IP routing table
> >>> Destination  Gateway    Genmask        Flags Metric Ref   Use Iface
> >>> 192.168.0.0  0.0.0.0   255.255.255.0   U     0      0      0 eth0
> >>> 127.0.0.0    0.0.0.0   255.0.0.0       U     0      0      0 lo
> >>> 0.0.0.0      192.168.0.10    0.0.0.0   UG    0      0      0 eth0
> >>> $
> >>>
> >> looks fine.
> >>
> >>
> >>> My PC and 7250 all connect to a 10/100 hub whose Uplink connects a DSL
> >>> modem output.
> >>>
> >>> Maybe 7250 should have a public IP address rather than the default
> >>> 192.168.0.50, but how do I config the board to force it get public IP
> >>> from DSL modem?
> >>>
> >> why? It will work just like any other computer connected to your 10/100
> >> hub. The DSL router will do NAT/Masquerading for you.
> >>
> >>
> >>> Tom
> >>> --- In  "Yan Seiner" <yan@> wrote:
> >>>
> >>>> --- In  "chentom60" <chentom60@> wrote:
> >>>>
> >>>>> Hello Jim
> >>>>>
> >>>>> I am using debian256-5-6-2005.tar.gz I downloaded from
> >>>>>
> > Embedded Arm
> >
> >>>>> for my 7250 ts8 board.
> >>>>>
> >>>>> My /etc/resolv.conf is very strange:
> >>>>> #nameserver 192.168.0.1
> >>>>> but even if I updated (as I find in an old post), still does not
> >>>>>
> >>> work.
> >>>
> >>>>> nameserver 194.165.130.227
> >>>>> nameserver 213.186.185.245
> >>>>>
> >>>>> After checking old posts, I note that libresolv.so.2 may also
> >>>>>
> > be an
> >
> >>>>> issue, here is mine.
> >>>>>
> >>>>> #ls -l /lib/libresolv.so.2
> >>>>> lrwxrwxrwx    1 root     root           18 Oct 19  2006
> >>>>> /lib/libresolv.so.2 -> libresolv-2.2.5.so
> >>>>>
> >> err. that's a link - not a file. What does
> >>
> >> ls -l libresolv-2.2.5.so
> >>
> >> give?
> >> Also what does /etc/nsswitch.conf contain.
> >> It should have a line containing....
> >>
> >> hosts:     files dns
> >>
> >>
> >>
> >>>>> Is it too old? others people mentioned libresolv-2.3.2.so and name
> >>>>> resolution works.
> >>>>>
> >>>>>
> >>>> Your networking is hosed for some reason.  Please post the output of
> >>>> '/sbin/ifconfig' and '/sbin/route -n'
> >>>>
> >>>> --Yan
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
>



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU