[Olsr-dev] OLSRd V2 - ethernet-Links

Bastian Bittorf (spam-protected)
Fri May 23 13:44:24 CEST 2014


* Henning Rogge <(spam-protected)> [23.05.2014 08:45]:
> Hi,
> 
> I think this should work now, can you test it in your setup?

still no success with ethernet-speed and this version.

(spam-protected):~ olsrd2 --version
 OLSRd2 version 0.4.1
 Application commit: 71d0cc7
 Library commit: v0.4.1-19-gc90fa36

some thought about your approach asking the kernel for the speed:
this is a typical router: X_XXXX

(1 x wan-port, a gap and 4 x LAN-port).
All ports are connected to the CPU, an internal switch
and divided by software. Each port can has another Linkspeed, e.g.

(spam-protected):~ swconfig dev switch0 port 4 show | grep 'link:'
link: port:4 link:up speed:100baseT full-duplex txflow rxflow 

so maybe it's a bad idea asking the kernel for eth0.1 or eth0,
because you dont know which port it is. (all 4 LAN-ports are eth0.1)

anyway, here the output after some minutes:

(spam-protected):~ echo "/nhdp iflink"    | nc 127.0.0.1 2007
Interface 'eth0.1': hello_interval=2 hello_vtime=20
        Address: 10.63.22.97 
        Address: fe80::f6ec:38ff:fefd:74b4
Interface 'eth0.2': hello_interval=2 hello_vtime=20
        Address: 10.63.22.89 
        Address: fe80::f6ec:38ff:fefd:74b4
        Link: status=symmetric localif=eth0.2 vtime=38.609 heard=18.609
symmetric=18.509 dualstack
                Originator: 10.63.21.97
                Metric 'ff_dat_metric' (0): in=1020  bit/s (2105088),
out=1020  bit/s (2105088)
                Link addresses: 10.63.21.97
                Mac addresses: 74:ea:3a:e4:4a:96
                Other addresses: 10.63.21.65
                Other addresses: 169.254.206.140
                2-Hop addresses: 10.63.20.65
                2-Hop addresses: 10.63.20.89
                2-Hop addresses: 10.63.20.97
         IPv6 status=symmetric localif=eth0.2 vtime=38.609 heard=18.609
symmetric=18.509 dualstack
                Originator: fdf7:a0df:ccbb::1
                Metric 'ff_dat_metric' (0): in=1020  bit/s (2105088),
out=1020  bit/s (2105088)
                Link addresses: fe80::76ea:3aff:fee4:4a96
                Mac addresses: 74:ea:3a:e4:4a:96
                2-Hop addresses: fe80::b248:7aff:fea5:962e
        Link: status=symmetric localif=eth0.2 vtime=38.109 heard=18.109
symmetric=18.009
                Originator: 10.63.20.97
                Metric 'ff_dat_metric' (0): in=2.438 Mbit/s (840),
out=128  bit/s (16776960)
                Link addresses: 10.63.20.89
                Mac addresses: b0:48:7a:a5:96:2e
                Other addresses: 10.63.20.65
                Other addresses: 10.63.20.97
                2-Hop addresses: 10.63.21.65
                2-Hop addresses: 10.63.21.97
                2-Hop addresses: 10.63.82.65
                2-Hop addresses: 10.63.82.89
                2-Hop addresses: 10.63.82.97
                2-Hop addresses: 169.254.206.140
        Link: status=symmetric localif=eth0.2 vtime=38.109 heard=18.109
symmetric=18.009 
                Metric 'ff_dat_metric' (0): in=2.438 Mbit/s (840),
out=128  bit/s (16776960)
                Link addresses: fe80::b248:7aff:fea5:962e
                Mac addresses: b0:48:7a:a5:96:2e
                2-Hop addresses: fe80::76ea:3aff:fee4:4a96
                2-Hop addresses: fe80::f6ec:38ff:fe9d:7a1e




More information about the Olsr-dev mailing list