Reply
Thread Tools
Posts: 268 | Thanked: 304 times | Joined on Oct 2009 @ Orlando, USA
#21
Originally Posted by pang View Post
Anyone having any luck for ubuntu 10.04?
USB Networking works flawlessly in 10.04. Now, the USB network interface comes up automatically when I plug in the N900.

I basically followed the instructions on the wiki. Here's my setup.

Ubuntu:

USB network-interface config section in /etc/network/interfaces
Code:
auto n900
iface n900 inet static
       address 192.168.2.14
       netmask 255.255.255.0
       broadcast 192.168.2.255
       up echo 1 > /proc/sys/net/ipv4/ip_forward
       up iptables -P FORWARD ACCEPT
       up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
       down echo 0 > /proc/sys/net/ipv4/ip_forward
       down iptables -t nat -F POSTROUTING
New file to bring up the interface when USB cable is connected and PC-Suite Mode is selected: /etc/udev/rules.d/99-nokia-n900.rules
Code:
SUBSYSTEM=="net", ACTION=="add", ENV{ID_USB_DRIVER}=="cdc_ether", ENV{ID_MODEL}="N900__PC-Suite_Mode", ENV{ID_VENDOR}=="Nokia", NAME="n900"
SUBSYSTEM=="net", ACTION=="add", ENV{ID_USB_DRIVER}=="cdc_phonet", ENV{ID_MODEL}="N900__PC-Suite_Mode", ENV{ID_VENDOR}=="Nokia", NAME="n900pn"
That's pretty much it. There is no config required on the N900 side.

This is how I get connected.
- Connect USB cable
- Select PC Suite Mode on the N900
- Open Xterm and execute 'ifup usb0' as root
- Start SSH if not running.
- SSH to the N900 from Ubuntu using 'ssh root@n900'

check the connection using ifconfig:
Code:
archebyte@archebyte:/etc/udev/rules.d$ ifconfig n900
n900      Link encap:Ethernet  HWaddr 66:ac:e5:48:13:9e  
          inet addr:192.168.2.14  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::64ac:e5ff:fe48:139e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2025 (2.0 KB)  TX bytes:367 (367.0 B)

Last edited by archebyte; 2011-01-02 at 15:41.
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:53.