The 'dnet' utility lists the primary IP on each interface, including the subnet mask in CIDR notation.  But I don't see any subnet masks for the alias/secondary interfaces.  I tried it with the Python extentions and saw the same results.

Am I missing something?  Can 'libdnet' get the alias subnets, or do the 'dnet' utility and the 'python' functions implement the limit of functionality?  Basically, I'm wondering whether this is a problem with how I'm using the library, or whether the functionality just isn't there.

Any help would be much appreciated.

-Ryan


For reference, here's the output I get from the 'dnet' utility:
    {{{
[ryan.b.lynch@caffeine ~]# dnet intf show
lo: flags=0x3<UP,LOOPBACK> mtu 16436
        inet 127.0.0.1/8
        alias ::1
eth1: flags=0x30<BROADCAST,MULTICAST> mtu 1500
        link 00:0e:35:b3:aa:a7
eth0: flags=0x31<UP,BROADCAST,MULTICAST> mtu 1500
        inet 10.163.96.86/24
        link 00:11:43:65:e5:b5
        alias 10.162.0.2
        alias 10.163.96.87
        alias 10.163.96.88
        alias fe80::211:43ff:fe65:e5b5/64
pan0: flags=0x30<BROADCAST,MULTICAST> mtu 1500
        link 12:b6:b7:36:9d:7e
    }}}

And here's what 'ip addr' has to say:
    {{{
[rryan.b.lynch@caffeine ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:0e:35:b3:aa:a7 brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:11:43:65:e5:b5 brd ff:ff:ff:ff:ff:ff
    inet 10.163.96.86/24 brd 10.163.96.255 scope global eth0
    inet 10.162.0.2/16 scope global eth0
    inet 10.163.96.87/24 brd 10.163.96.255 scope global secondary eth0:0
    inet 10.163.96.88/24 brd 10.163.96.255 scope global secondary eth0:1
    inet6 fe80::211:43ff:fe65:e5b5/64 scope link
       valid_lft forever preferred_lft forever
4: pan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 12:b6:b7:36:9d:7e brd ff:ff:ff:ff:ff:ff
    }}}