-
-
Save MerlinDMC/e18d343cde4509afaa51 to your computer and use it in GitHub Desktop.
add an etherstub to the config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@00-0c-29-63-79-54 ~]# dladm show-etherstub | |
LINK | |
switch0 | |
[root@00-0c-29-63-79-54 ~]# dladm show-vnic | |
LINK OVER SPEED MACADDRESS MACADDRTYPE VID ZONE | |
net0 e1000g0 0 b2:f5:cd:46:e0:59 fixed 0 9a301cc2-8666-4500-a787-b379b6861d8c | |
net1 switch0 0 b2:f5:cd:46:de:e1 fixed 0 9a301cc2-8666-4500-a787-b379b6861d8c | |
net0 e1000g0 0 b2:f5:cf:e4:c:f9 fixed 0 822bc844-bc95-4238-acca-a86d1532b7db | |
net1 switch0 0 b2:f5:cf:e4:d:b0 fixed 0 822bc844-bc95-4238-acca-a86d1532b7db | |
[root@00-0c-29-63-79-54 ~]# vmadm list | |
UUID TYPE RAM STATE ALIAS | |
822bc844-bc95-4238-acca-a86d1532b7db OS 256 running zone2 | |
9a301cc2-8666-4500-a787-b379b6861d8c OS 256 running zone1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Zone1 -> Zone2 | |
[root@9a301cc2-8666-4500-a787-b379b6861d8c ~]# ping 192.168.1.242 | |
192.168.1.242 is alive | |
[root@9a301cc2-8666-4500-a787-b379b6861d8c ~]# ping 10.0.1.2 | |
10.0.1.2 is alive | |
Zone2 -> Zone1 | |
[root@822bc844-bc95-4238-acca-a86d1532b7db ~]# ping 192.168.1.241 | |
192.168.1.241 is alive | |
[root@822bc844-bc95-4238-acca-a86d1532b7db ~]# ping 10.0.1.1 | |
10.0.1.1 is alive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
etherstub="switch0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"alias": "zone1", | |
"brand": "joyent", | |
"dataset_uuid": "a93fda38-80aa-11e1-b8c1-8b1f33cd9007", | |
"nics": [ | |
{ | |
"nic_tag": "admin", | |
"ip": "192.168.1.241", | |
"netmask": "255.255.255.0", | |
"gateway": "192.168.1.1" | |
}, | |
{ | |
"nic_tag": "switch0", | |
"ip": "10.0.1.1", | |
"netmask": "255.255.0.0" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"alias": "zone2", | |
"brand": "joyent", | |
"dataset_uuid": "a93fda38-80aa-11e1-b8c1-8b1f33cd9007", | |
"nics": [ | |
{ | |
"nic_tag": "admin", | |
"ip": "192.168.1.242", | |
"netmask": "255.255.255.0", | |
"gateway": "192.168.1.1" | |
}, | |
{ | |
"nic_tag": "switch0", | |
"ip": "10.0.1.2", | |
"netmask": "255.255.0.0" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment