Skip to content

Instantly share code, notes, and snippets.

@jtimberman
Created February 3, 2009 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtimberman/57785 to your computer and use it in GitHub Desktop.
Save jtimberman/57785 to your computer and use it in GitHub Desktop.
"interfaces": {
"vmnet1": {
"flags": [
"UP",
"BROADCAST",
"SMART",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"number": "1",
"addresses": [
{
"broadcast": "192.168.157.255",
"netmask": "255.255.255.0",
"family": "inet",
"address": "192.168.157.1"
},
{
"family": "lladdr",
"address": "00:50:56:c0:00:01"
}
],
"mtu": "1500",
"type": "vmnet",
"counters": {
"tx": {
"packets": "0",
"bytes": "0",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "0",
"bytes": "0",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"encapsulation": "Ethernet"
},
"stf0": {
"flags": [
],
"number": "0",
"addresses": [
],
"mtu": "1280",
"type": "stf",
"counters": {
"tx": {
"packets": "0",
"bytes": "0",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "0",
"bytes": "0",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"encapsulation": "6to4"
},
"lo0": {
"flags": [
"UP",
"LOOPBACK",
"RUNNING",
"MULTICAST"
],
"number": "0",
"addresses": [
{
"scope": "Link",
"prefixlen": "64",
"family": "inet6",
"address": "fe80::1"
},
{
"netmask": "255.0.0.0",
"family": "inet",
"address": "127.0.0.1"
},
{
"scope": "Node",
"prefixlen": "128",
"family": "inet6",
"address": "::1"
}
],
"mtu": "16384",
"type": "lo",
"counters": {
"tx": {
"packets": "3427",
"bytes": "295105",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "3427",
"bytes": "295105",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"encapsulation": "Loopback"
},
"gif0": {
"flags": [
"POINTOPOINT",
"MULTICAST"
],
"number": "0",
"addresses": [
],
"mtu": "1280",
"type": "gif",
"counters": {
"tx": {
"packets": "0",
"bytes": "0",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "0",
"bytes": "0",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"encapsulation": "IPIP"
},
"vmnet8": {
"flags": [
"UP",
"BROADCAST",
"SMART",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"number": "8",
"addresses": [
{
"broadcast": "192.168.51.255",
"netmask": "255.255.255.0",
"family": "inet",
"address": "192.168.51.1"
},
{
"family": "lladdr",
"address": "00:50:56:c0:00:08"
}
],
"mtu": "1500",
"type": "vmnet",
"counters": {
"tx": {
"packets": "0",
"bytes": "0",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "0",
"bytes": "0",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"encapsulation": "Ethernet"
},
"en0": {
"flags": [
"UP",
"BROADCAST",
"SMART",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"number": "0",
"addresses": [
{
"scope": "Link",
"prefixlen": "64",
"family": "inet6",
"address": "fe80::222:41ff:fe35:3369"
},
{
"broadcast": "10.13.37.255",
"netmask": "255.255.255.0",
"family": "inet",
"address": "10.13.37.105"
},
{
"family": "lladdr",
"address": "00:22:41:35:33:69"
}
],
"mtu": "1500",
"media": {
"supported": [
{
"autoselect": {
"options": [
]
}
},
{
"10baseT\/UTP": {
"options": [
"half-duplex"
]
}
},
{
"10baseT\/UTP": {
"options": [
"full-duplex"
]
}
},
{
"10baseT\/UTP": {
"options": [
"full-duplex",
"hw-loopback"
]
}
},
{
"10baseT\/UTP": {
"options": [
"full-duplex",
"flow-control"
]
}
},
{
"100baseTX": {
"options": [
"half-duplex"
]
}
},
{
"100baseTX": {
"options": [
"full-duplex"
]
}
},
{
"100baseTX": {
"options": [
"full-duplex",
"hw-loopback"
]
}
},
{
"100baseTX": {
"options": [
"full-duplex",
"flow-control"
]
}
},
{
"1000baseT": {
"options": [
"full-duplex"
]
}
},
{
"1000baseT": {
"options": [
"full-duplex",
"hw-loopback"
]
}
},
{
"1000baseT": {
"options": [
"full-duplex",
"flow-control"
]
}
},
{
"none": {
"options": [
]
}
}
]
},
"type": "en",
"counters": {
"tx": {
"packets": "60758",
"bytes": "6030901",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "120947",
"bytes": "148497477",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"arp": {
"10.13.37.110": "0:1e:8c:50:df:b9",
"10.13.37.255": "ff:ff:ff:ff:ff:ff",
"10.13.37.102": "0:23:6c:69:9a:ec",
"10.13.37.1": "0:1e:58:8e:6:8f",
"10.13.37.40": "0:d0:b7:49:d2:90",
"10.13.37.106": "0:17:ab:c8:42:be"
},
"encapsulation": "Ethernet"
},
"en1": {
"status": "active",
"flags": [
"UP",
"BROADCAST",
"SMART",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"number": "1",
"addresses": [
{
"scope": "Link",
"prefixlen": "64",
"family": "inet6",
"address": "fe80::222:41ff:fefa:eed0"
},
{
"broadcast": "10.13.37.255",
"netmask": "255.255.255.0",
"family": "inet",
"address": "10.13.37.115"
},
{
"family": "lladdr",
"address": "00:22:41:fa:ee:d0"
}
],
"mtu": "1500",
"media": {
"supported": [
{
"autoselect": {
"options": [
]
}
}
],
"selected": [
{
"autoselect": {
"options": [
]
}
}
]
},
"type": "en",
"counters": {
"tx": {
"packets": "184",
"bytes": "25332",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "2700",
"bytes": "869297",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"encapsulation": "Ethernet"
},
"fw0": {
"status": "inactive",
"flags": [
"UP",
"BROADCAST",
"SMART",
"RUNNING",
"SIMPLEX",
"MULTICAST"
],
"number": "0",
"addresses": [
{
"family": "lladdr",
"address": "00:22:41:ff:fe:ef:4a:02"
}
],
"mtu": "4078",
"media": {
"supported": [
{
"autoselect": {
"options": [
"full-duplex"
]
}
}
],
"selected": [
{
"autoselect": {
"options": [
"full-duplex"
]
}
}
]
},
"type": "fw",
"counters": {
"tx": {
"packets": "0",
"bytes": "346",
"collisions": "0",
"compressed": 0,
"carrier": 0,
"drop": 0,
"errors": "0",
"overrun": 0
},
"rx": {
"packets": "0",
"bytes": "0",
"compressed": 0,
"drop": 0,
"errors": "0",
"overrun": 0,
"multicast": 0,
"frame": 0
}
},
"encapsulation": "1394"
}
}
}
$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::222:41ff:fe35:3369%en0 prefixlen 64 scopeid 0x4
inet 10.13.37.105 netmask 0xffffff00 broadcast 10.13.37.255
ether 00:22:41:35:33:69
media: autoselect (1000baseT <full-duplex,flow-control>) status: active
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078
lladdr 00:22:41:ff:fe:ef:4a:02
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::222:41ff:fefa:eed0%en1 prefixlen 64 scopeid 0x6
inet 10.13.37.115 netmask 0xffffff00 broadcast 10.13.37.255
ether 00:22:41:fa:ee:d0
media: autoselect status: active
supported media: autoselect
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.51.1 netmask 0xffffff00 broadcast 192.168.51.255
ether 00:50:56:c0:00:08
vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.157.1 netmask 0xffffff00 broadcast 192.168.157.255
ether 00:50:56:c0:00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment