Unnecessary rant - Was: Re: USB networking in Ubuntu

Richard Cooke richard.mallender at gmail.com
Wed Aug 6 13:24:15 CEST 2008

Aaron Sowry wrote:
> I know Ubuntu handles interfaces in a weird way and references them by 
> MAC address. If Arne's suggestion doesn't help, run 'sudo ifconfig -a' 
> at the terminal and post the output, along with the contents of 
> /etc/iftab - you might find that the interface is not even called usb0.
> Aaron
richard at ubuntu:~$ sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:50:8d:ef:d1:72  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::250:8dff:feef:d172/64 Scope:Link
          RX packets:7280 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4710 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3353886 (3.1 MB)  TX bytes:1267116 (1.2 MB)
          Interrupt:22 Base address:0xb400 

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2570 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2570 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:128500 (125.4 KB)  TX bytes:128500 (125.4 KB)

The /etc/iftab file strangely consists entirely of comments and looks like

# This file is no longer used and has been automatically replaced.
# See /etc/udev/rules.d/70-persistent-net.rules for more information.

# This file assigns persistent names to network interfaces.  See iftab(5).
#eth0 mac 00:50:8d:ef:d1:72

/etc/udev/rules.d/70-persistent-net.rules contains the following:

# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# Converted from /etc/iftab on upgrade
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:8d:ef:d1:72",
ATTR{type}=="1", NAME="eth0"

View this message in context: http://n2.nabble.com/USB-networking-in-Ubuntu-tp666197p675600.html
Sent from the Openmoko Support mailing list archive at Nabble.com.

More information about the support mailing list