-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A Newbie question. curious to know more about networking. When I digging
into my new hardy, I didn't see /dev/eth0 file. But everything works
perfectly. below are some findings.

[EMAIL PROTECTED]:~$ lspci | grep 'Ethernet'
00:0a.0 Ethernet controller: nVidia Corporation MCP67 Ethernet (rev a2)

[EMAIL PROTECTED]:~$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:24:9b:49:0b
          inet addr:192.168.1.25  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:24ff:fe9b:490b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:45706 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:60497368 (57.6 MB)  TX bytes:3664246 (3.4 MB)
          Interrupt:220 Base address:0x4000

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

But,

[EMAIL PROTECTED]:~$ cat proc/devices | grep eth*
cat: proc/devices: No such file or directory

and

[EMAIL PROTECTED]:~$ find /dev -name '*eth*'
[EMAIL PROTECTED]:~$

gives nothing about eth0 interface. but /sys tells the different story,

[EMAIL PROTECTED]:~$ find /sys -name '*eth*'
/sys/devices/pci0000:00/0000:00:0a.0/net/eth0
/sys/bus/pci/drivers/forcedeth
/sys/class/net/eth0
/sys/module/forcedeth
/sys/module/forcedeth/drivers/pci:forcedeth
[EMAIL PROTECTED]:~$ udevinfo --attribute-walk
- --path=/sys/devices/pci0000:00/0000:00:0a.0/net/eth0

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:0a.0/net/eth0':
    KERNEL=="eth0"
    SUBSYSTEM=="net"
    DRIVER==""
    ATTR{addr_len}=="6"
    ATTR{iflink}=="2"
    ATTR{ifindex}=="2"
    ATTR{features}=="0x20"
    ATTR{type}=="1"
    ATTR{link_mode}=="0"
    ATTR{address}=="00:1b:24:9b:49:0b"
    ATTR{broadcast}=="ff:ff:ff:ff:ff:ff"
    ATTR{carrier}=="1"
    ATTR{dormant}=="0"
    ATTR{operstate}=="up"
    ATTR{mtu}=="1500"
    ATTR{flags}=="0x1003"
    ATTR{tx_queue_len}=="1000"

  looking at parent device '/devices/pci0000:00/0000:00:0a.0/net':
    KERNELS=="net"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:0a.0':
    KERNELS=="0000:00:0a.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="forcedeth"
    ATTRS{vendor}=="0x10de"
    ATTRS{device}=="0x054c"
    ATTRS{subsystem_vendor}=="0x103c"
    ATTRS{subsystem_device}=="0x30cf"
    ATTRS{class}=="0x020000"
    ATTRS{irq}=="220"
    ATTRS{local_cpus}=="ff"
    ATTRS{modalias}=="pci:v000010DEd0000054Csv0000103Csd000030CFbc02sc00i00"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

In /dev/net there is on 'tun' interface. But `udevinfo` tells nothing
about it.

[EMAIL PROTECTED]:~$ udevinfo --query=all --name=/dev/net/tun
node name not found
[EMAIL PROTECTED]:~$ ls /dev/net/
tun

I am confused with these informations. I googled to know more about
tun/tap But my knowledge in networking is not enough to grab it. It will
be helpful to me if gurus in our mailing-list teach me (or guide me to
some links) how the networking subsystem in 2.6 kernal works( in layman
term).

Thanks in advance.

Mohan R


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIqy3Tbp5uAkEIRoRAiRkAJ4/9rDJl8bJvk+WjL7eAngIRhInTQCghhbo
MLRt8QSLnpy8iAaENFDRKHE=
=nPcK
-----END PGP SIGNATURE-----
_______________________________________________
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to