Skip to content

Instantly share code, notes, and snippets.

@tas50
Created December 17, 2015 01:16
Show Gist options
  • Save tas50/dbb18c4644f8281b29a4 to your computer and use it in GitHub Desktop.
Save tas50/dbb18c4644f8281b29a4 to your computer and use it in GitHub Desktop.
IPv6 only output
"counters": {
"network": {
"interfaces": {
"eth1": {
"rx": {
"bytes": "0",
"drop": "0",
"errors": "0",
"overrun": "0",
"packets": "0"
},
"tx": {
"bytes": "856",
"carrier": "0",
"collisions": "0",
"drop": "0",
"errors": "0",
"packets": "10",
"queuelen": "1000"
}
},
"lo": {
"rx": {
"bytes": "0",
"drop": "0",
"errors": "0",
"overrun": "0",
"packets": "0"
},
"tx": {
"bytes": "0",
"carrier": "0",
"collisions": "0",
"drop": "0",
"errors": "0",
"packets": "0"
}
}
}
}
},
"ip6address": "2607:f0d0:1002:11::2",
"ipaddress": "127.0.0.1",
"macaddress": null,
"network": {
"default_inet6_gateway": "2607:f0d0:1002:11::1",
"default_inet6_interface": "eth1",
"interfaces": {
"eth1": {
"addresses": {
"08:00:27:7C:7B:6D": {
"family": "lladdr"
},
"2607:f0d0:1002:11::2": {
"family": "inet6",
"prefixlen": "64",
"scope": "Global"
},
"fe80::a00:27ff:fe7c:7b6d": {
"family": "inet6",
"prefixlen": "64",
"scope": "Link"
}
},
"encapsulation": "Ethernet",
"flags": [
"BROADCAST",
"MULTICAST",
"UP",
"LOWER_UP"
],
"mtu": "1500",
"number": "1",
"routes": [
{
"destination": "169.254.0.0/16",
"family": "inet",
"scope": "link",
"metric": "1002"
},
{
"destination": "2607:f0d0:1002:11::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
},
{
"destination": "fe80::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
},
{
"destination": "default",
"family": "inet6",
"via": "2607:f0d0:1002:11::1",
"metric": "1"
}
],
"state": "up",
"type": "eth"
},
"lo": {
"addresses": {
"127.0.0.1": {
"family": "inet",
"netmask": "255.0.0.0",
"prefixlen": "8",
"scope": "Node"
},
"::1": {
"family": "inet6",
"prefixlen": "128",
"scope": "Node"
}
},
"encapsulation": "Loopback",
"flags": [
"LOOPBACK",
"UP",
"LOWER_UP"
],
"mtu": "65536",
"routes": [
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
},
{
"destination": "unreachable",
"family": "inet6",
"metric": "1024"
}
],
"state": "unknown"
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment