Re: us network and Uuntu 8.10 - is there a better way?

2008-12-26 Thread Joel Newkirk
On Fri, 26 Dec 2008 16:47:46 +0100, "Torfinn Ingolfsen" 
wrote:

> Thanks!
> It seems that it still works by using the ifdown / ifup scripts.
> annoying that good old ifconfig doesn't work anymore, but I can live
> with that.
> 
>> PS And consider using "ip addr" and friends instead of venerable
>> "ifconfig". "ip" command is newer way of operating network
>> interfaces.
> 
> Hmm, I found that one. What's up with that? Whay are they changing the
> established way of doing things?
> AFAICT, the ip command is a Linuxism.
> Not everything is better just because it is new.

It's not exactly new, "ip" has been around since kernel 2.2. (ten years?
Early 1999 IIRC)  "ip" together with "tc" (Traffic Control) comprise
iproute2 and expose a vast array of networking options within the kernel,
including basic networking setup but also various advanced routing
scenarios like tunnels, multiroute setups, route failovers, bandwidth
management, etc.  Basically use iptables/ip6tables/arptables/ebtables for
firewall, tc for bandwidth management, ip for everything else networking.

If you're interested in what it offers beyond basic network controls take a
look at lartc.org - Linux Advanced Routing & Traffic Control.  They have
the manpages and primary documentation as well as extensive tutorials and
howtos, cookbook for things like a gateway router load-balancing multiple
uplinks (IE dual T1), 'wondershaper' bandwidth management script, etc.

As far as the basics, "ip route add default via 10.11.12.254 dev eth0
metric 20", "ip link set eth0 down" (=="ifconfig eth0 down"), "ip address
add 192.168.0.202/30 dev usb0" are some examples of common tasks.  Almost
all keywords can be abbreviated, leading to "ip l s eth0 up" and "ip a a
192.168.0.202/30 dev usb0" for example, and other portions can be omitted
sometimes, like "ip r a default via 10.11.12.254" which will determine the
interface needed for the given gateway and use default metric. (more
advanced, "ip tunnel add netb mode gre remote 172.19.20.21 local
172.16.17.18 ttl 2" would try to create a GRE tunnel to 172.19.20.21 named
"netb")

When you use "ip a a 192.168.0.202/30 dev usb0" to set that IP and subnet
on device usb0 it also implicitly performs "ip route add 192.168.0.202/30
dev usb0 src 192.168.0.202 table 254" (254="main")

On the informative rather than configuration side of things, "ip a" shows
all interfaces with their statuses and their addresses/subnets (ipv4, ipv6
and MAC), "ip r" shows main routing table (short for "ip route show table
main", "ip r s t local" shows the "local" routing table, etc - uses numbers
for tables, or names if they're defined in /etc/iproute2/rt_tables), "ip n"
shows neighbor table with IP, MAC, interface and status, "ip ru" shows
routing rules ("ip rules show"), which specify which routing table to use
for various conditions.


j

PS - be aware that the "ip" functions in busybox are a small subset of the
full command's capabilities - everything is still there in the kernel, but
busybox doesn't expose much of it.

-- 
Joel Newkirk
http://jthinks.com  (blog)
http://newkirk.us/om (FR stuff)


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-12-26 Thread Torfinn Ingolfsen
Hello,

On Sun, Nov 30, 2008 at 5:35 PM, Alexander Chemeris
 wrote:
> What is wrong here? What you've shown is a correct operation
> as far as I can see. May be you wanted "ifup"/"ifdown" instead
> of "ifconfig up"/"ifconfig down"? Former are scripts which parse
> "interfaces" file and setup things as described, while latter
> are simple commands to bring interface up/down.

Aha, you're on to something:

ti...@kg-home:~$ sudo ifdown usb0
ifdown: interface usb0 not configured
ti...@kg-home:~$ sudo ifup usb0
 * Stopping NTP server ntpd
   ...done.
ti...@kg-home:~$  * Starting NTP server ntpd
   ...done.

ti...@kg-home:~$ ifconfig usb0
usb0  Link encap:Ethernet  HWaddr 1e:2f:4c:2b:d2:53
  inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::1c2f:4cff:fe2b:d253/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:14 errors:0 dropped:0 overruns:0 frame:0
  TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:1620 (1.6 KB)  TX bytes:3679 (3.6 KB)

Thanks!
It seems that it still works by using the ifdown / ifup scripts.
annoying that good old ifconfig doesn't work anymore, but I can live
with that.

> PS And consider using "ip addr" and friends instead of venerable
> "ifconfig". "ip" command is newer way of operating network
> interfaces.

Hmm, I found that one. What's up with that? Whay are they changing the
established way of doing things?
AFAICT, the ip command is a Linuxism.
Not everything is better just because it is new.

Continued Happy Holidays to all!
-- 
Regards,
Torfinn Ingolfsen

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-30 Thread Alexander Chemeris
On Sat, Nov 29, 2008 at 3:26 PM, Torfinn Ingolfsen <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 10:33 PM, Torfinn Ingolfsen <[EMAIL PROTECTED]> wrote:
>> For now, I'm back to the manual method.
>
> Today there were (X)ubuntu updates for NetworkManager and more. After
> these updates (which included a necessary restart), even the manual
> method doesn't work anymore.
> [EMAIL PROTECTED]:~$ ifconfig usb0
> usb0  Link encap:Ethernet  HWaddr 12:ed:86:b0:6c:4c
>  inet6 addr: fe80::10ed:86ff:feb0:6c4c/64 Scope:Link
>  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:1000
>  RX bytes:0 (0.0 B)  TX bytes:936 (936.0 B)
>
> [EMAIL PROTECTED]:~$ sudo ifconfig usb0 down
> [sudo] password for tingo:
> [EMAIL PROTECTED]:~$ ifconfig usb0
> usb0  Link encap:Ethernet  HWaddr 12:ed:86:b0:6c:4c
>  BROADCAST MULTICAST  MTU:1500  Metric:1
>  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:1000
>  RX bytes:0 (0.0 B)  TX bytes:936 (936.0 B)
>
> [EMAIL PROTECTED]:~$ sudo ifconfig usb0 up
> [EMAIL PROTECTED]:~$ ifconfig usb0
> usb0  Link encap:Ethernet  HWaddr 12:ed:86:b0:6c:4c
>  inet6 addr: fe80::10ed:86ff:feb0:6c4c/64 Scope:Link
>  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>  TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
>  collisions:0 txqueuelen:1000
>  RX bytes:0 (0.0 B)  TX bytes:1174 (1.1 KB)
>

What is wrong here? What you've shown is a correct operation
as far as I can see. May be you wanted "ifup"/"ifdown" instead
of "ifconfig up"/"ifconfig down"? Former are scripts which parse
"interfaces" file and setup things as described, while latter
are simple commands to bring interface up/down.

PS And consider using "ip addr" and friends instead of venerable
"ifconfig". "ip" command is newer way of operating network
interfaces.

-- 
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-29 Thread Torfinn Ingolfsen
More updates.

On Tue, Nov 25, 2008 at 10:33 PM, Torfinn Ingolfsen <[EMAIL PROTECTED]> wrote:
> For now, I'm back to the manual method.

Today there were (X)ubuntu updates for NetworkManager and more. After
these updates (which included a necessary restart), even the manual
method doesn't work anymore.
[EMAIL PROTECTED]:~$ ifconfig usb0
usb0  Link encap:Ethernet  HWaddr 12:ed:86:b0:6c:4c
  inet6 addr: fe80::10ed:86ff:feb0:6c4c/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:936 (936.0 B)

[EMAIL PROTECTED]:~$ sudo ifconfig usb0 down
[sudo] password for tingo:
[EMAIL PROTECTED]:~$ ifconfig usb0
usb0  Link encap:Ethernet  HWaddr 12:ed:86:b0:6c:4c
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:936 (936.0 B)

[EMAIL PROTECTED]:~$ sudo ifconfig usb0 up
[EMAIL PROTECTED]:~$ ifconfig usb0
usb0  Link encap:Ethernet  HWaddr 12:ed:86:b0:6c:4c
  inet6 addr: fe80::10ed:86ff:feb0:6c4c/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:1174 (1.1 KB)

Sigh...
Has anybody tested IPv6 between their machine and a Neo FreeRunner (or 1973)?
-- 
Regards,
Torfinn Ingolfsen

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-25 Thread Torfinn Ingolfsen
Update on my Xubuntu 8.10 story.

On Mon, Nov 24, 2008 at 8:19 PM, Torfinn Ingolfsen <[EMAIL PROTECTED]> wrote:
> - Network Manager setup (with /etc/udev/rules.d/80-freerunner.rules
> and /usr/local/sbin/freerunner-usb-add.sh) doesn't work.

Today there were some updates to Xubuntu (a new kernel among others).
After a reboot the Network Manager method now works.
It have the following drawbacks:
1) When I plug in my FreeRunner (or 1973) Network Manager rewrites
/etc/resolv.conf, removing all lines. This (as others have
already pointed out) effectively disables dns on my laptop. Not
good, not acceptable.
2) If I plug in first the FreRunner, then the 1973 both usb0 and usb1
gets the ip address 192.168.0.200. Not good, but this can
probably be fixed.

Issue number 1 is a showstopper for the Network Manager method, unless
Network Manager can be told to only add ip adresses for usb[0-9]
intefaces and leave the routing alone.

For now, I'm back to the manual method.
-- 
Regards,
Torfinn Ingolfsen

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-25 Thread kimaidou
Could be great indeed !!
Thanks for the information
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-25 Thread Pander
A request has been made to integrate this in Ubuntu here:
  https://bugs.launchpad.net/ubuntu/+bug/289548

Already NeoTool has been packaged for Ubuntu, perhaps that package or a
new one could be used to autoconfigure and setup USB network with an
OpenMoko device.

kimaidou wrote:
> Hi guys
> 
> could you please add the procedure on the wiki so that every ubuntero
> could easily plug/unplug his FR ?
> thanks in advance
> 
> 2008/11/25 Alexander Chemeris <[EMAIL PROTECTED]
> >
> 
> On Tue, Nov 25, 2008 at 11:50 AM, Cédric Berger
> <[EMAIL PROTECTED] > wrote:
> > On Tue, Nov 25, 2008 at 02:46, Joel Newkirk <[EMAIL PROTECTED]
> > wrote:
> >> Also be aware that the Network Manager in Ubuntu Intrepid is
> currently
> >> buggy.  If you have it running, it is prone to do friendly things
> like
> >> automatically add the static IP and route for eth0 to usb0 when
> it comes
> >> up. Either it controls all interfaces, or it's not running, right
> now it
> >> refuses to leave any interface alone and hopelessly bungles anything
> >> statically defined in /etc/network/interfaces, ignoring the 'ignore
> >> interface' flag and claiming all interfaces.
> >>
> >> (yeah, same IP and route on two interfaces, and default tries to
> go out the
> >> wrong interface so the desktop is effectively off the network, and it
> >> leaves behind an empty /etc/resolv.conf - sounds like a FreeRunner :)
> >>
> >
> > Thanks, I did wonder what I did wrong on my computer to have default
> > network route directed to freerunner as soon as I plugged it in ! (so
> > no more internet access)
> > I am not used to linux networking, so it took me a while to figure how
> > to manually delete this rule... (and the network manager UI was not of
> > a great help... not so user friendly !)
> 
> Network manager also rewrites /etc/resolv.conf with empty line,
> effectively
> preventing DNS from working. So I just uninstaled it and now I feel
> much safer.
> It's not needed on a standalone computer anyway.
> 
> 
> --
> Regards,
> Alexander Chemeris.
> 
> SIPez LLC.
> SIP VoIP, IM and Presence Consulting
> http://www.SIPez.com
> tel: +1 (617) 273-4000
> ___
> Openmoko community mailing list
> community@lists.openmoko.org 
> http://lists.openmoko.org/mailman/listinfo/community
> 
> 
> 
> 
> 
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-25 Thread kimaidou
Hi guys

could you please add the procedure on the wiki so that every ubuntero could
easily plug/unplug his FR ?
thanks in advance

2008/11/25 Alexander Chemeris <[EMAIL PROTECTED]>

> On Tue, Nov 25, 2008 at 11:50 AM, Cédric Berger
> <[EMAIL PROTECTED]> wrote:
> > On Tue, Nov 25, 2008 at 02:46, Joel Newkirk <[EMAIL PROTECTED]>
> wrote:
> >> Also be aware that the Network Manager in Ubuntu Intrepid is currently
> >> buggy.  If you have it running, it is prone to do friendly things like
> >> automatically add the static IP and route for eth0 to usb0 when it comes
> >> up. Either it controls all interfaces, or it's not running, right now it
> >> refuses to leave any interface alone and hopelessly bungles anything
> >> statically defined in /etc/network/interfaces, ignoring the 'ignore
> >> interface' flag and claiming all interfaces.
> >>
> >> (yeah, same IP and route on two interfaces, and default tries to go out
> the
> >> wrong interface so the desktop is effectively off the network, and it
> >> leaves behind an empty /etc/resolv.conf - sounds like a FreeRunner :)
> >>
> >
> > Thanks, I did wonder what I did wrong on my computer to have default
> > network route directed to freerunner as soon as I plugged it in ! (so
> > no more internet access)
> > I am not used to linux networking, so it took me a while to figure how
> > to manually delete this rule... (and the network manager UI was not of
> > a great help... not so user friendly !)
>
> Network manager also rewrites /etc/resolv.conf with empty line, effectively
> preventing DNS from working. So I just uninstaled it and now I feel much
> safer.
> It's not needed on a standalone computer anyway.
>
>
> --
> Regards,
> Alexander Chemeris.
>
> SIPez LLC.
> SIP VoIP, IM and Presence Consulting
> http://www.SIPez.com
> tel: +1 (617) 273-4000
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-25 Thread Alexander Chemeris
On Tue, Nov 25, 2008 at 11:50 AM, Cédric Berger
<[EMAIL PROTECTED]> wrote:
> On Tue, Nov 25, 2008 at 02:46, Joel Newkirk <[EMAIL PROTECTED]> wrote:
>> Also be aware that the Network Manager in Ubuntu Intrepid is currently
>> buggy.  If you have it running, it is prone to do friendly things like
>> automatically add the static IP and route for eth0 to usb0 when it comes
>> up. Either it controls all interfaces, or it's not running, right now it
>> refuses to leave any interface alone and hopelessly bungles anything
>> statically defined in /etc/network/interfaces, ignoring the 'ignore
>> interface' flag and claiming all interfaces.
>>
>> (yeah, same IP and route on two interfaces, and default tries to go out the
>> wrong interface so the desktop is effectively off the network, and it
>> leaves behind an empty /etc/resolv.conf - sounds like a FreeRunner :)
>>
>
> Thanks, I did wonder what I did wrong on my computer to have default
> network route directed to freerunner as soon as I plugged it in ! (so
> no more internet access)
> I am not used to linux networking, so it took me a while to figure how
> to manually delete this rule... (and the network manager UI was not of
> a great help... not so user friendly !)

Network manager also rewrites /etc/resolv.conf with empty line, effectively
preventing DNS from working. So I just uninstaled it and now I feel much safer.
It's not needed on a standalone computer anyway.


-- 
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-25 Thread Cédric Berger
On Tue, Nov 25, 2008 at 02:46, Joel Newkirk <[EMAIL PROTECTED]> wrote:
> Also be aware that the Network Manager in Ubuntu Intrepid is currently
> buggy.  If you have it running, it is prone to do friendly things like
> automatically add the static IP and route for eth0 to usb0 when it comes
> up. Either it controls all interfaces, or it's not running, right now it
> refuses to leave any interface alone and hopelessly bungles anything
> statically defined in /etc/network/interfaces, ignoring the 'ignore
> interface' flag and claiming all interfaces.
>
> (yeah, same IP and route on two interfaces, and default tries to go out the
> wrong interface so the desktop is effectively off the network, and it
> leaves behind an empty /etc/resolv.conf - sounds like a FreeRunner :)
>

Thanks, I did wonder what I did wrong on my computer to have default
network route directed to freerunner as soon as I plugged it in ! (so
no more internet access)
I am not used to linux networking, so it took me a while to figure how
to manually delete this rule... (and the network manager UI was not of
a great help... not so user friendly !)

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-25 Thread kimaidou
Hi all

Personaly I lauch this script after pluging the FR:

#! /bin/sh
sudo iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
sudo sysctl -w net.ipv4.ip_forward=1
sudo ip addr add 192.168.0.200/24 dev usb0
sudo ifconfig usb0 up
ssh [EMAIL PROTECTED]
echo nameserver 208.67.222.222 > /etc/resolv.conf


I collect the different lines on the wiki, and it works well for me. Could
you give it a try ?

kimaidou
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-24 Thread polz
On Monday 24 November 2008 20:19:55 Torfinn Ingolfsen wrote:
> Hello,
>
> I recently upgraded my laptop to Xubuntu 8.10, and now I run into the
> issues described in USB Networking[1] on the wiki:
... same here
> Manual setup still works, but it is cumbersome.
> Is there a better way?

It's possible to use NetworkManager to connect to your Neo1973 or Freerunner.
I've created the files /etc/udev/rules.d/80-freeruner.rules and 
/usr/local/sbin/freerunner-usb-add.sh as described in the wiki. The phone now 
connects automatically whenever I plug it in.

I still have to run /etc/network/freerunner manually once per session in order 
to set up masquerading and DNS forwarding, but that's still much better than
having to run ifdown usb0; ifup usb0 every time the phone is plugged in.

Hope this helps.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-24 Thread Joel Newkirk
Also be aware that the Network Manager in Ubuntu Intrepid is currently
buggy.  If you have it running, it is prone to do friendly things like
automatically add the static IP and route for eth0 to usb0 when it comes
up. Either it controls all interfaces, or it's not running, right now it
refuses to leave any interface alone and hopelessly bungles anything
statically defined in /etc/network/interfaces, ignoring the 'ignore
interface' flag and claiming all interfaces.

(yeah, same IP and route on two interfaces, and default tries to go out the
wrong interface so the desktop is effectively off the network, and it
leaves behind an empty /etc/resolv.conf - sounds like a FreeRunner :)

j

On Tue, 25 Nov 2008 01:08:14 +0100, Pander <[EMAIL PROTECTED]>
wrote:
> Can you contribute the result to
> http://wiki.openmoko.org/wiki/USB_Networking under a Ubuntu 8.10 header?
> 
> Torfinn Ingolfsen wrote:
>> Hello,
>>
>> On Mon, Nov 24, 2008 at 9:07 PM, Joerg Lippmann <[EMAIL PROTECTED]>
> wrote:
>>
>> I have 'auto usb0' first, then the rest of the lines are the same as
> yours
>>
>>> iface usb0 inet static
>>> address 192.168.0.200
>>> netmask 255.255.255.0
>>> network 192.168.0.0
>>> up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
>>> up echo 1 > /proc/sys/net/ipv4/ip_forward &
>>> up iptables -P FORWARD ACCEPT &
>>> down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
>>
>>
>>> After plugging in the NEO, just
>>>
>>>sudo ifup usb0
>>
>> Hmm, after I did a 'sudo idown usb0' first it works:
>> [EMAIL PROTECTED]:~$ sudo ifup usb0
>>  * Stopping NTP server ntpd
>> [EMAIL PROTECTED]:~$...done.
>>  * Starting NTP server ntpd
>>...done.
>>
>> (the ntpd part looks scary)
>>
>> Hmm, when I replug my Freerunner, this is what happens:
>> [EMAIL PROTECTED]:~$ ifconfig usb0
>> usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
>>   inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
>>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>   TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>>   collisions:0 txqueuelen:1000
>>   RX bytes:0 (0.0 B)  TX bytes:1152 (1.1 KB)
>>
>> [EMAIL PROTECTED]:~$ sudo ifup usb0
>> ifup: interface usb0 already configured
>> [EMAIL PROTECTED]:~$ ifconfig usb0
>> usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
>>   inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
>>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>   TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>>   collisions:0 txqueuelen:1000
>>   RX bytes:0 (0.0 B)  TX bytes:1152 (1.1 KB)
>>
>> Huh? where did that IPv6 address come from?
>>
>>> does the job quite fine. You may have to change /etc/resolv.conf on the
> NEO
>>> manually.
>>>
>>> When you re-insert the NEO, just issue
>>>
>>>sudo ifdown usb0 && ifup usb0
>>
>> I still don't know why the Freerunner gets a IPv6 address, but the above
> works:
>> [EMAIL PROTECTED]:~$ sudo ifdown usb0
>> RTNETLINK answers: No such process
>> [EMAIL PROTECTED]:~$ sudo ifup usb0
>>  * Stopping NTP server ntpd
>> [EMAIL PROTECTED]:~$...done.
>>  * Starting NTP server ntpd
>>...done.
>>
>> [EMAIL PROTECTED]:~$ ifconfig usb0
>> usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
>>   inet addr:192.168.0.200  Bcast:192.168.0.255 
> Mask:255.255.255.0
>>   inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
>>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>   TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
>>   collisions:0 txqueuelen:1000
>>   RX bytes:0 (0.0 B)  TX bytes:5558 (5.5 KB)
>>
>>
>>> Hope it helps
>>
>> It did - many thanks!
> 
> 
> ___
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-24 Thread Pander
Can you contribute the result to
http://wiki.openmoko.org/wiki/USB_Networking under a Ubuntu 8.10 header?

Torfinn Ingolfsen wrote:
> Hello,
> 
> On Mon, Nov 24, 2008 at 9:07 PM, Joerg Lippmann <[EMAIL PROTECTED]> wrote:
> 
> I have 'auto usb0' first, then the rest of the lines are the same as yours
> 
>> iface usb0 inet static
>> address 192.168.0.200
>> netmask 255.255.255.0
>> network 192.168.0.0
>> up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
>> up echo 1 > /proc/sys/net/ipv4/ip_forward &
>> up iptables -P FORWARD ACCEPT &
>> down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
> 
> 
>> After plugging in the NEO, just
>>
>>sudo ifup usb0
> 
> Hmm, after I did a 'sudo idown usb0' first it works:
> [EMAIL PROTECTED]:~$ sudo ifup usb0
>  * Stopping NTP server ntpd
> [EMAIL PROTECTED]:~$...done.
>  * Starting NTP server ntpd
>...done.
> 
> (the ntpd part looks scary)
> 
> Hmm, when I replug my Freerunner, this is what happens:
> [EMAIL PROTECTED]:~$ ifconfig usb0
> usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
>   inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:0 (0.0 B)  TX bytes:1152 (1.1 KB)
> 
> [EMAIL PROTECTED]:~$ sudo ifup usb0
> ifup: interface usb0 already configured
> [EMAIL PROTECTED]:~$ ifconfig usb0
> usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
>   inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:0 (0.0 B)  TX bytes:1152 (1.1 KB)
> 
> Huh? where did that IPv6 address come from?
> 
>> does the job quite fine. You may have to change /etc/resolv.conf on the NEO
>> manually.
>>
>> When you re-insert the NEO, just issue
>>
>>sudo ifdown usb0 && ifup usb0
> 
> I still don't know why the Freerunner gets a IPv6 address, but the above 
> works:
> [EMAIL PROTECTED]:~$ sudo ifdown usb0
> RTNETLINK answers: No such process
> [EMAIL PROTECTED]:~$ sudo ifup usb0
>  * Stopping NTP server ntpd
> [EMAIL PROTECTED]:~$...done.
>  * Starting NTP server ntpd
>...done.
> 
> [EMAIL PROTECTED]:~$ ifconfig usb0
> usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
>   inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
>   inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:1000
>   RX bytes:0 (0.0 B)  TX bytes:5558 (5.5 KB)
> 
> 
>> Hope it helps
> 
> It did - many thanks!


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-24 Thread Torfinn Ingolfsen
Hello,

On Mon, Nov 24, 2008 at 9:07 PM, Joerg Lippmann <[EMAIL PROTECTED]> wrote:

I have 'auto usb0' first, then the rest of the lines are the same as yours

> iface usb0 inet static
> address 192.168.0.200
> netmask 255.255.255.0
> network 192.168.0.0
> up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
> up echo 1 > /proc/sys/net/ipv4/ip_forward &
> up iptables -P FORWARD ACCEPT &
> down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &


> After plugging in the NEO, just
>
>sudo ifup usb0

Hmm, after I did a 'sudo idown usb0' first it works:
[EMAIL PROTECTED]:~$ sudo ifup usb0
 * Stopping NTP server ntpd
[EMAIL PROTECTED]:~$...done.
 * Starting NTP server ntpd
   ...done.

(the ntpd part looks scary)

Hmm, when I replug my Freerunner, this is what happens:
[EMAIL PROTECTED]:~$ ifconfig usb0
usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
  inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:1152 (1.1 KB)

[EMAIL PROTECTED]:~$ sudo ifup usb0
ifup: interface usb0 already configured
[EMAIL PROTECTED]:~$ ifconfig usb0
usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
  inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:1152 (1.1 KB)

Huh? where did that IPv6 address come from?

>
> does the job quite fine. You may have to change /etc/resolv.conf on the NEO
> manually.
>
> When you re-insert the NEO, just issue
>
>sudo ifdown usb0 && ifup usb0

I still don't know why the Freerunner gets a IPv6 address, but the above works:
[EMAIL PROTECTED]:~$ sudo ifdown usb0
RTNETLINK answers: No such process
[EMAIL PROTECTED]:~$ sudo ifup usb0
 * Stopping NTP server ntpd
[EMAIL PROTECTED]:~$...done.
 * Starting NTP server ntpd
   ...done.

[EMAIL PROTECTED]:~$ ifconfig usb0
usb0  Link encap:Ethernet  HWaddr 00:00:22:55:bb:00
  inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::200:22ff:fe55:bb00/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:5558 (5.5 KB)


> Hope it helps

It did - many thanks!
-- 
Regards,
Torfinn Ingolfsen

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: us network and Uuntu 8.10 - is there a better way?

2008-11-24 Thread Joerg Lippmann
Am Montag 24 November 2008 schrieb Torfinn Ingolfsen:
> Hello,
>
> I recently upgraded my laptop to Xubuntu 8.10, and now I run into the
> issues described in USB Networking[1] on the wiki:
> - editing /etc/network/interfaces doesn't work
> - Network Manager setup (with /etc/udev/rules.d/80-freerunner.rules
> and /usr/local/sbin/freerunner-usb-add.sh) doesn't work.
>
> Manual setup still works, but it is cumbersome.
> Is there a better way?

Hmm, I have also Intrepid and I use the following lines at the end of my 
/etc/network/interfaces: (instructions from the very wiki)

iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.0
network 192.168.0.0
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &
up echo 1 > /proc/sys/net/ipv4/ip_forward &
up iptables -P FORWARD ACCEPT &
down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 &

After plugging in the NEO, just 

sudo ifup usb0

does the job quite fine. You may have to change /etc/resolv.conf on the NEO 
manually.

When you re-insert the NEO, just issue

sudo ifdown usb0 && ifup usb0

Hope it helps
-- 
[EMAIL PROTECTED]

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


us network and Uuntu 8.10 - is there a better way?

2008-11-24 Thread Torfinn Ingolfsen
Hello,

I recently upgraded my laptop to Xubuntu 8.10, and now I run into the
issues described in USB Networking[1] on the wiki:
- editing /etc/network/interfaces doesn't work
- Network Manager setup (with /etc/udev/rules.d/80-freerunner.rules
and /usr/local/sbin/freerunner-usb-add.sh) doesn't work.

Manual setup still works, but it is cumbersome.
Is there a better way?

References:
1) http://wiki.openmoko.org/wiki/USB_Networking
-- 
Regards,
Torfinn Ingolfsen

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community