Skip to content

Instantly share code, notes, and snippets.

@jhosteny
Created June 28, 2017 02:40
Show Gist options
  • Save jhosteny/f38490d505b30742ab577c22524841e7 to your computer and use it in GitHub Desktop.
Save jhosteny/f38490d505b30742ab577c22524841e7 to your computer and use it in GitHub Desktop.
root@stretch:/home/vagrant# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:8d:c0:4d brd ff:ff:ff:ff:ff:ff
inet 10.0.2.15/24 brd 10.0.2.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::a00:27ff:fe8d:c04d/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 08:00:27:3c:47:de brd ff:ff:ff:ff:ff:ff
inet 10.0.0.38/24 brd 10.0.0.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 2601:547:500:d1a2:a00:27ff:fe3c:47de/64 scope global mngtmpaddr dynamic
valid_lft 275168sec preferred_lft 275168sec
inet6 fe80::a00:27ff:fe3c:47de/64 scope link
valid_lft forever preferred_lft forever
root@stretch:/home/vagrant# ip route get 8.8.8.8
8.8.8.8 via 10.0.2.2 dev eth0 src 10.0.2.15
cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment