[ninux-dev] Aiuto per output JSONDoc generato da BATMAN/ALFRED
Germano Massullo
germano.massullo at gmail.com
Sat Oct 10 16:48:25 CEST 2015
Nella mia attività di implementazione dell'output in formato NetJSON
all'interno di {BATMAN/ALFRED}-vis ho creato un ambiente con tre
macchine virtuali, dopodiché ho fatto generare a batman-adv un output
JSONDoc che descrive la topologia della rete (allegato jsondoc_commented)
Tuttavia, vedendo all'interno del file indirizzi MAC a me sconosciuti,
ho mandato un messaggio [1] alla mailing list di BATMAN/ALFRED. La
risposta [2] è stata molto chiara, tuttavia rimangono dei dubbi che
vorrei chiarire con voi prima di mandare un altro eventuale messaggio
alla sopracitata mailing list.
Dopo aver letto il messaggio [2], ho pensato: "ok, gli indirizzi MAC che
non capivo sono così classificati
33:33:00:00:00:01 (mcast) IPv6 neighbor discovery protocol;
33:33:ff:75:15:f2 è (mcast) some other IPv6 multicast;
01:00:5e:00:00:01 è (mcast) IP multicast
tuttavia, come mai 33:33:ff:75:15:f2 e 01:00:5e:00:00:01 appaiono
solamente nelle proprietà della macchina virtuale 08:00:27:83:e5:59 ???"
[1]
https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2015-October/013719.html
[2]
https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2015-October/013720.html
-------------- next part --------------
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1532 qdisc fq_codel master bat0 state UP group default qlen 1000
link/ether 08:00:27:83:e5:59 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.119/24 brd 192.168.1.255 scope global dynamic enp0s3
valid_lft 42000sec preferred_lft 42000sec
inet6 fdd7:4778:df22::d99/128 scope global dynamic
valid_lft 85202sec preferred_lft 85202sec
inet6 fdd7:4778:df22:0:a00:27ff:fe83:e559/64 scope global noprefixroute dynamic
valid_lft 7108sec preferred_lft 1708sec
inet6 fe80::a00:27ff:fe83:e559/64 scope link
valid_lft forever preferred_lft forever
3: bat0 at NONE: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether 2a:d7:37:c6:84:fa brd ff:ff:ff:ff:ff:ff
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1532 qdisc fq_codel master bat0 state UP group default qlen 1000
link/ether 08:00:27:8f:b1:c2 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.237/24 brd 192.168.1.255 scope global dynamic enp0s3
valid_lft 41678sec preferred_lft 41678sec
inet6 fdd7:4778:df22::a3d/128 scope global dynamic
valid_lft 84879sec preferred_lft 84879sec
inet6 fdd7:4778:df22:0:a00:27ff:fe8f:b1c2/64 scope global noprefixroute dynamic
valid_lft 6966sec preferred_lft 1566sec
inet6 fe80::a00:27ff:fe8f:b1c2/64 scope link
valid_lft forever preferred_lft forever
3: bat0 at NONE: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether c6:84:ae:77:3e:f1 brd ff:ff:ff:ff:ff:ff
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1532 qdisc fq_codel master bat0 state UP group default qlen 1000
link/ether 08:00:27:a9:8d:af brd ff:ff:ff:ff:ff:ff
inet 192.168.1.182/24 brd 192.168.1.255 scope global dynamic enp0s3
valid_lft 39217sec preferred_lft 39217sec
inet6 fdd7:4778:df22::1dd/128 scope global dynamic
valid_lft 86019sec preferred_lft 86019sec
inet6 fdd7:4778:df22:0:a00:27ff:fea9:8daf/64 scope global noprefixroute dynamic
valid_lft 6883sec preferred_lft 1483sec
inet6 fe80::a00:27ff:fea9:8daf/64 scope link
valid_lft forever preferred_lft forever
3: bat0 at NONE: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether a2:7f:aa:75:15:f2 brd ff:ff:ff:ff:ff:ff
inet6 fe80::a07f:aaff:fe75:15f2/64 scope link
valid_lft forever preferred_lft forever
-------------- next part --------------
{
"source_version" : "2015.1-2-g4384c2b-dirty",
"algorithm" : 4,
"vis" : [
{ "primary" : "08:00:27:8f:b1:c2", # enp0s3 2nd virtual machine
"neighbors" : [
{ "router" : "08:00:27:8f:b1:c2", # enp0s3 2nd virtual machine
"neighbor" : "08:00:27:a9:8d:af", # enp0s3 3rd virtual machine
"metric" : "1.000" },
{ "router" : "08:00:27:8f:b1:c2", # enp0s3 2nd virtual machine
"neighbor" : "08:00:27:83:e5:59", # enp0s3 1st virtual machine
"metric" : "1.000" }
],
"clients" : [
"33:33:00:00:00:01", # non existing in file ip_addr
"c6:84:ae:77:3e:f1" # bat0 2nd virtual machine
]
},
{ "primary" : "08:00:27:83:e5:59", # enp0s3 1st virtual machine
"neighbors" : [
{ "router" : "08:00:27:83:e5:59", # enp0s3 1st virtual machine
"neighbor" : "08:00:27:a9:8d:af", # enp0s3 3rd virtual machine
"metric" : "1.000" },
{ "router" : "08:00:27:83:e5:59", # enp0s3 1st virtual machine
"neighbor" : "08:00:27:8f:b1:c2", # enp0s3 2nd virtual machine
"metric" : "1.000" }
],
"clients" : [
"33:33:00:00:00:01",
"2nd:d7:37:c6:84:fa" # bat0 1st virtual machine
]
},
{ "primary" : "08:00:27:a9:8d:af", # enp0s3 3rd virtual machine
"neighbors" : [
{ "router" : "08:00:27:a9:8d:af", # enp0s3 3rd virtual machine
"neighbor" : "08:00:27:8f:b1:c2", # enp0s3 2nd virtual machine
"metric" : "1.000" },
{ "router" : "08:00:27:a9:8d:af", # enp0s3 3rd virtual machine
"neighbor" : "08:00:27:83:e5:59", # enp0s3 1st virtual machine
"metric" : "1.016" }
],
"clients" : [
"33:33:ff:75:15:f2", # non existing in file ip_addr
"33:33:00:00:00:01", # non existing in file ip_addr
"a2:7f:aa:75:15:f2", # bat0 3rd virtual machine
"01:00:5e:00:00:01" # non existing in file ip_addr
]
}
]
}
More information about the ninux-dev
mailing list