Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
lenovo# zoneadm -z zone01 boot
zone 'zone01': /zones/zone01/root
lenovo#

After the zone booted we can login into its console:

Code Block
lenovo# zlogin zone01
[Connected to zone 'zone01' pts/2]
zlogin from global

The programs included with the DilOS 2.0.2 system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

DilOS 2.0.2 comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@zone01:~# 

Test the network:

Code Block
root@zone01:~# ifconfig 
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
iz0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 9000 index 2
        inet 10.68.0.2 netmask ffffff00 broadcast 10.68.0.255
        ether 2:8:20:80:1e:99 
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128 

Ping the name server we specified in the zone configuration:

Code Block
root@zone01:~# ping 192.168.0.1
192.168.0.1 is alive

Ping google’s DNS (as the external resource):

Code Block
root@zone01:~# ping 8.8.8.8
8.8.8.8 is alive

So, the NAT and the IP forwarding are working perfectly!

Let’s install the second zone (zone02) using the same template: