Skip to content

Instantly share code, notes, and snippets.

@euoia
Created March 28, 2014 18:00
Show Gist options
  • Save euoia/9839001 to your computer and use it in GitHub Desktop.
Save euoia/9839001 to your computer and use it in GitHub Desktop.
[root@00-0c-29-fb-5a-03 ~]# cat /zones/zone.json
{
"brand": "joyent",
"dataset_uuid": "81223438-7874-11e3-9edf-8f1e15269924",
"nics": [{
"nic_tag": "admin",
"ip": "192.168.1.197",
"netmask": "255.255.255.0",
"gateway": "192.168.1.1"
}]
}
[root@00-0c-29-fb-5a-03 ~]# zlogin 9f262751-50ed-4717-80c3-faa31c99ff41
[Connected to zone '9f262751-50ed-4717-80c3-faa31c99ff41' pts/2]
Last login: Fri Mar 28 17:59:14 on pts/2
__ . .
_| |_ | .-. . . .-. :--. |-
|_ _| ;| || |(.-' | | |
|__| `--' `-' `;-| `-' ' ' `-'
/ ; Instance (nodejs 13.3.1)
`-' http://wiki.joyent.com/jpc2/Node.JS+Instance
[root@9f262751-50ed-4717-80c3-faa31c99ff41 ~]# ping 192.168.1.197
192.168.1.197 is alive
[root@9f262751-50ed-4717-80c3-faa31c99ff41 ~]# ping 192.168.1.1
192.168.1.1 is alive
[root@9f262751-50ed-4717-80c3-faa31c99ff41 ~]# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.1 UG 1 0 net0
127.0.0.1 127.0.0.1 UH 2 46 lo0
192.168.1.0 192.168.1.197 U 3 1 net0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
::1 ::1 UH 2 46 lo0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment