...
Code Block | ||||
---|---|---|---|---|
| ||||
$ sudo dladm create-etherstub stub2
$ sudo dladm create-vnic -l stub2 vz1 # for global zone and will be using as gateway for zones with exclusive interface
# do skip step below because zone will up vnic with zone boot, just add 'vz2' to zone and primary link to 'stub2'
#$ sudo dladm create-vnic -l stub2 vz2 # for zone - look it, save mac address for exclusive ip-type and remove it
$ sudo routeadm -u -e ipv4-forwarding # enable port forwarding
$ sudo ndd -get /dev/tcp ip_forwarding # check it - it should be 1 |
...