Skip to content

Instantly share code, notes, and snippets.

@mathewpeterson
Last active April 28, 2022 21:23
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 mathewpeterson/4447679 to your computer and use it in GitHub Desktop.
Save mathewpeterson/4447679 to your computer and use it in GitHub Desktop.
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:13:8e:91 brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth1
inet6 fe80::a00:27ff:fe13:8e91/64 scope link
valid_lft forever preferred_lft forever
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 08:00:27:d6:a1:60 brd ff:ff:ff:ff:ff:ff
inet 192.168.56.103/24 brd 192.168.56.255 scope global eth0
inet6 fe80::a00:27ff:fed6:a160/64 scope link
valid_lft forever preferred_lft forever
default via 10.0.2.2 dev eth1 metric 100
10.0.2.0/24 dev eth1 proto kernel scope link src 10.0.2.15
192.168.56.0/24 dev eth0 proto kernel scope link src 192.168.56.103
[
[
"ohai",
{
"version": "6.14.0",
"ohai_root": "/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.14.0/lib/ohai"
}
],
[
"chef",
{
"version": "10.16.2",
"chef_root": "/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib"
}
]
]
[
[
"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"
},
"eth1": {
"type": "eth",
"number": "1",
"mtu": "1500",
"flags": [
"BROADCAST",
"MULTICAST",
"UP",
"LOWER_UP"
],
"encapsulation": "Ethernet",
"addresses": {
"08:00:27:13:8E:91": {
"family": "lladdr"
},
"10.0.2.15": {
"family": "inet",
"prefixlen": "24",
"netmask": "255.255.255.0",
"broadcast": "10.0.2.255",
"scope": "Global"
},
"fe80::a00:27ff:fe13:8e91": {
"family": "inet6",
"prefixlen": "64",
"scope": "Link"
}
},
"state": "up",
"arp": {
"10.0.2.2": "52:54:00:12:35:02"
},
"routes": [
{
"destination": "default",
"family": "inet",
"via": "10.0.2.2",
"metric": "100"
},
{
"destination": "10.0.2.0/24",
"family": "inet",
"scope": "link",
"proto": "kernel",
"src": "10.0.2.15"
},
{
"destination": "fe80::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
}
]
},
"eth0": {
"type": "eth",
"number": "0",
"mtu": "1500",
"flags": [
"BROADCAST",
"MULTICAST",
"UP",
"LOWER_UP"
],
"encapsulation": "Ethernet",
"addresses": {
"08:00:27:D6:A1:60": {
"family": "lladdr"
},
"192.168.56.103": {
"family": "inet",
"prefixlen": "24",
"netmask": "255.255.255.0",
"broadcast": "192.168.56.255",
"scope": "Global"
},
"fe80::a00:27ff:fed6:a160": {
"family": "inet6",
"prefixlen": "64",
"scope": "Link"
}
},
"state": "up",
"arp": {
"192.168.56.1": "0a:00:27:00:00:00"
},
"routes": [
{
"destination": "192.168.56.0/24",
"family": "inet",
"scope": "link",
"proto": "kernel",
"src": "192.168.56.103"
},
{
"destination": "fe80::/64",
"family": "inet6",
"metric": "256",
"proto": "kernel"
}
]
}
}
],
[
"default_interface",
"eth1"
],
[
"default_gateway",
"10.0.2.2"
]
]
@1littlefrog
Copy link

beautiful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment