Skip to content

Instantly share code, notes, and snippets.

@danmcd
Created October 15, 2018 17:17
Show Gist options
  • Save danmcd/eaa914b138e608a71810351ce8f851b5 to your computer and use it in GitHub Desktop.
Save danmcd/eaa914b138e608a71810351ce8f851b5 to your computer and use it in GitHub Desktop.
# ifconfig e1000g2 plumb 10.51.50.1/32 up
# ifconfig e1000g2
e1000g2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.51.50.1 netmask ffffffff broadcast 10.51.50.1
ether 0:c:29:1a:65:e5
# route add 10.51.50.2/32 -interface 10.51.50.1
add host 10.51.50.2/32: gateway 10.51.50.1
# route get 10.51.50.2
route to: 10.51.50.2
destination: 10.51.50.2
mask: 255.255.255.255
interface: e1000g2
flags: <UP,HOST,DONE>
recvpipe sendpipe ssthresh rtt,ms rttvar,ms hopcount mtu expire
0 0 0 0 0 0 1500 0
# netstat -rnc | grep 51.50
10.51.50.1 10.51.50.1 UH 2 0 e1000g2
10.51.50.2 10.51.50.1 UH 1 0 e1000g2
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment