/
Zone configuration for NET test script
Zone configuration for NET test script
cat > cz-orig.cfg <<EOT
create
set zonepath=/zones/cz-orig
set autoboot=false
set ip-type=exclusive
add net
set physical=int1
set global-nic="vsw0"
add property (name="ip",value="dhcp")
add property (name="primary",value="true")
end
commit
exit
EOT
sudo zonecfg -z cz-orig -f cz-orig.cfg && sudo zoneadm -z cz-orig install
cat > sz-orig.cfg <<EOT
create
set zonepath=/zones/sz-orig
set autoboot=false
set ip-type=exclusive
add net
set physical=int2
set global-nic="vsw0"
add property (name="ip",value="dhcp")
add property (name="primary",value="true")
end
commit
exit
EOT
sudo zonecfg -z sz-orig -f sz-orig.cfg && sudo zoneadm -z sz-orig install
cat > rz-orig.cfg <<EOT
create
set zonepath=/zones/rz-orig
set autoboot=false
set ip-type=exclusive
add net
set physical=int3
set global-nic="vsw0"
add property (name="ip",value="dhcp")
add property (name="primary",value="true")
end
commit
exit
EOT
sudo zonecfg -z rz-orig -f rz-orig.cfg && sudo zoneadm -z rz-orig install
cat > cz.cfg <<EOT
create
set zonepath=/zones/cz
set autoboot=false
set ip-type=exclusive
add net
set physical=int1
set global-nic="vsw0"
add property (name="ip",value="dhcp")
add property (name="primary",value="true")
end
commit
exit
EOT
sudo zonecfg -z cz -f cz.cfg
cat > sz.cfg <<EOT
create
set zonepath=/zones/sz
set autoboot=false
set ip-type=exclusive
add net
set physical=int2
set global-nic="vsw0"
add property (name="ip",value="dhcp")
add property (name="primary",value="true")
end
commit
exit
EOT
sudo zonecfg -z sz -f sz.cfg
cat > rz.cfg <<EOT
create
set zonepath=/zones/rz
set autoboot=false
set ip-type=exclusive
add net
set physical=int3
set global-nic="vsw0"
add property (name="ip",value="dhcp")
add property (name="primary",value="true")
end
commit
exit
EOT
sudo zonecfg -z rz -f rz.cfg
apt download socat
sudo apt -y -o Dir=/zones/cz-orig/root update
sudo apt -y -o Dir=/zones/cz-orig/root upgrade
sudo dpkg -i --root=/zones/cz-orig/root socat_*.deb
sudo apt -y -o Dir=/zones/sz-orig/root update
sudo apt -y -o Dir=/zones/sz-orig/root upgrade
sudo dpkg -i --root=/zones/sz-orig/root socat_*.deb
sudo apt -y -o Dir=/zones/rz-orig/root update
sudo apt -y -o Dir=/zones/rz-orig/root upgrade
sudo dpkg -i --root=/zones/rz-orig/root socat_*.deb
sudo reboot
, multiple selections available,
Related content
NET test script
NET test script
More like this
How to run NET tests on VM environment
How to run NET tests on VM environment
Read with this
net tests 2.0.3.19 VMW
net tests 2.0.3.19 VMW
More like this
net test 2.0.3.17 VMW
net test 2.0.3.17 VMW
More like this
net tests 2.0.3.18-20231025-1-0+int2-fixperms VMW
net tests 2.0.3.18-20231025-1-0+int2-fixperms VMW
More like this
net tests 2.0.3.17-20231021-4-0+int2 VMW
net tests 2.0.3.17-20231021-4-0+int2 VMW
More like this