pattagghiu
ubus call network.interface.wan6 status
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 63263,
"l3_device": "eth1.836",
"proto": "dhcpv6",
"device": "eth1.836",
"updated": [
"prefixes"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
{
"address": "2a01:e11:::::",
"mask": 128,
"preferred": 602773,
"valid": 2589973
}
],
"ipv6-prefix": [
{
"address": "2a01:e11::::",
"mask": 60,
"preferred": 602773,
"valid": 2589973,
"class": "wan6",
"assigned": {
"lan": {
"address": "2a01:::::",
"mask": 60
}
}
}
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "2a01:e11::::",
"mask": 64,
"nexthop": "::",
"metric": 256,
"source": "::/0"
},
{
"target": "2a01:e11::::",
"mask": 64,
"nexthop": "::",
"metric": 256,
"source": "::/0"
},
{
"target": "::",
"mask": 0,
"nexthop": "fe80:::::",
"metric": 384,
"source": "2a01:e11::::/60"
},
{
"target": "::",
"mask": 0,
"nexthop": "fe80::207:::",
"metric": 384,
"source": "2a01:e11:::::/128"
}
],
"dns-server": [
"2a01:e10:f::2",
"2a01:e10:f::1"
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"passthru": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
ubus call network.interface.wan6_4 status
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": true,
"uptime": 63272,
"l3_device": "map-wan6_4",
"proto": "map",
"updated": [
"addresses",
"routes",
"data"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "81.56.XXX.XXX",
"mask": 32
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "0.0.0.0",
"source": "0.0.0.0/0"
}
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"zone": "wan",
"firewall": [
{
"type": "nat",
"target": "SNAT",
"family": "inet",
"snat_ip": "81.56.XXX.XXX"
}
],
"zone": "wan"
}
}
spero di aver cancellato abbastanza da anonimizzare i dati e non abbastanza per rendere inutile l'output