Skip to content

Instantly share code, notes, and snippets.

@martinisoft
Created September 3, 2012 05:52
Show Gist options
  • Save martinisoft/3607072 to your computer and use it in GitHub Desktop.
Save martinisoft/3607072 to your computer and use it in GitHub Desktop.
ohai network output
[
[
"interfaces",
{
"lo": {
"mtu": "16436",
"flags": [
"LOOPBACK",
"UP",
"LOWER_UP"
],
"encapsulation": "Loopback",
"addresses": {
"127.0.0.1": {
"family": "inet",
"prefixlen": "8",
"netmask": "255.0.0.0",
"scope": "Node"
},
"::1": {
"family": "inet6",
"prefixlen": "128",
"scope": "Node"
}
},
"state": "unknown"
},
"eth0": {
"type": "eth",
"number": "0",
"mtu": "1500",
"flags": [
"BROADCAST",
"MULTICAST",
"UP",
"LOWER_UP"
],
"encapsulation": "Ethernet",
"addresses": {
"F2:3C:91:93:20:AB": {
"family": "lladdr"
},
"74.207.228.137": {
"family": "inet",
"prefixlen": "24",
"netmask": "255.255.255.0",
"broadcast": "74.207.228.255",
"scope": "Global"
},
"2600:3c02::f03c:91ff:fe93:20ab": {
"family": "inet6",
"prefixlen": "64",
"scope": "Global"
},
"fe80::f03c:91ff:fe93:20ab": {
"family": "inet6",
"prefixlen": "64",
"scope": "Link"
}
},
"state": "up",
"arp": {
"74.207.228.1": "00:00:0c:9f:f0:01"
},
"routes": [
{
"destination": "default",
"family": "inet",
"via": "74.207.228.1",
"metric": "100"
},
{
"destination": "74.207.228.0/24",
"family": "inet",
"scope": "link",
"proto": "kernel",
"src": "74.207.228.137"
},
{
"destination": "2600:3c02::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
},
{
"destination": "fe80::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
},
{
"destination": "default",
"family": "inet6",
"via": "fe80::1",
"metric": "1024",
"proto": "kernel"
}
],
"neighbour_inet6": {
"fe80::1": "00:05:73:a0:0f:ff",
"fe80::ca4c:75ff:fef5:f03f": "c8:4c:75:f5:f0:3f"
}
},
"eth0:0": {
"addresses": {
"192.168.133.33": {
"family": "inet",
"prefixlen": "24",
"netmask": "255.255.255.0",
"broadcast": "192.168.133.255",
"scope": "Global"
}
}
},
"tunl0": {
"type": "tunl",
"number": "0",
"mtu": "1480",
"state": "down"
},
"gre0": {
"type": "gre",
"number": "0",
"mtu": "1476",
"state": "down"
},
"sit0": {
"type": "sit",
"number": "0",
"mtu": "1480",
"state": "down"
}
}
],
[
"default_interface",
"eth0"
],
[
"default_gateway",
"74.207.228.1"
],
[
"default_inet6_interface",
"eth0"
],
[
"default_inet6_gateway",
"fe80::1"
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment