Your machine has 4 network interfaces.
Adapter 1 is configured up.
1. View the dladm subcommands.
   # dladm
    usage:  dladm 
    rename-link      
    (output skipped)
2. View your physical network interfaces.
   # dladm show-phys
   NK    MEDIA       STATE      SPEED  DUPLEX    DEVICE
   net1   Ethernet    unknown    1000   full      e1000g1
   net2   Ethernet    unknown    0      unknown   e1000g2
   net0   Ethernet    up         1000   full      e1000g0
   net3   Ethernet    unknown    0      unknown   e1000g3
  View your links.
# dladm show-link
  LINK                CLASS     MTU    STATE    OVER
  net1                phys      1500   unknown  --
  net2                phys      1500   unknown  --
  net0                phys      1500   up       --
  net3                phys      1500   unknown  --
  vnic1               vnic      1500   up       net0
  zone1/vnic1         vnic      1500   up       net0
  zone1/net0          vnic      1500   up       net0
  View your interfaces
  # ipadm show-if
  IFNAME     CLASS    STATE    ACTIVE OVER
  lo0        loopback ok       yes    --
  net0       ip       ok       yes    --
  View your addresses
  # ipadm show-addr
  ADDROBJ           TYPE     STATE        ADDR
  lo0/v4            static   ok           127.0.0.1/8
  net0/v4           static   ok           192.168.4.154/24
  lo0/v6            static   ok           ::1/128
  net0/v6           addrconf ok           fe80::250:56ff:fe96:d471/10
  How is your network service configured?
  # svcs network/physical
  STATE          STIME    FMRI
  disabled       17:34:14 svc:/network/physical:nwam
  online         17:34:19 svc:/network/physical:upgrade
  online         17:34:21 svc:/network/physical:default
3. Pick a free physical interface to create an ip-interface.
   # ipadm create-ip net1
   # ipadm show-if|grep net1
   net1       ip       down     no     --
   Configure an ip-address on the new interface.
   Make sure you select a unique address in your network.
   # ipadm create-addr -T static -a 192.168.4.140/24 net1/v4
  # ipadm show-addr
  ADDROBJ           TYPE     STATE        ADDR
  lo0/v4            static   ok           127.0.0.1/8
  net0/v4           static   ok           192.168.4.154/24
  net1/v4           static   ok           192.168.4.140/24
  lo0/v6            static   ok           ::1/128
  net0/v6           addrconf ok           fe80::250:56ff:fe96:d471/10
  Down the interface and remove it.
  # ipadm down-addr net1/v4
  # ipadm delete-ip net1
4. Create a vnic, create an ip-interface on it and address.
  # dladm create-vnic -l net1 vnic10
  # ipadm create-ip vnic10
  # ipadm create-addr -T static -a 192.168.4.140/24 vnic10/v4
  # ipadm down-addr
  # ipadm delete-ip vnic10
  # dladm delete-vnic vnic10
5. Setup Link Aggragation.
   You use 2 of the available physical interface to create an aggregate
  # dladm create-aggr -l net2 -l net3 aggr1
  # dladm show-aggr
  LINK     POLICY   ADDRPOLICY           LACPACTIVITY  LACPTIMER   FLAGS
  aggr1    L4       auto                 off           short       -----
  Setup an ip-address on the aggregate.
  # ipadm create-addr -T static -a 192.168.4.140/24 aggr1/v4aggr
  # ipadm show-if|grep aggr1
  aggr1      ip       ok       yes    --
  Remove the link-aggregation
  # ipadm down-addr aggr1/v4aggr
  # ipadm delete-addr aggr1/v4aggr
  # ipadm delete-ip aggr1
  # dladm delete-aggr aggr1
6. Create an etherstub and connect vnics to the stub.
   These vnics could be connected to zones.
  # dladm create-etherstub stub0
  # dladm create-vnic -l stub0 vnic5
  # dladm create-vnic -l stub0 vnic10
  # dladm create-vnic -l stub0 vnic1
  # dladm show-vnic
  LINK                OVER         SPEED  MACADDRESS        MACADDRTYPE       VID
  vnic1               net0         1000   2:8:20:25:26:38   random            0
  zone1/vnic1         net0         1000   2:8:20:25:26:38   random            0
  zone1/net0          net0         1000   2:8:20:80:87:6    random            0
  vnic0               stub0        0      2:8:20:46:6a:77   random            0
  vnic5               stub0        0      2:8:20:9b:e1:3b   random            0
  vnic10              stub0        0      2:8:20:7:6e:5d    random            0
7. Setup two zones to use vnic5 and vnic10
   (setup zone5 and zone6 and set the zonepath in /software)
   # zonecfg -z zone5
   zonecfg:zone5> add net
   zonecfg:zone5:net> set physical=vnic5
   zonecfg:zone5:net> end
   zonecfg:zone5> commit
   zonecfg:zone5> exit
Repeat this for zone6
   Login to zone5 and setup an ip-address
   # zlogin zone5
   # dladm show-link
   LINK                CLASS     MTU    STATE    OVER
   vnic5               vnic      9000   up       ?
   # ipadm create-addr -T static -a 192.168.4.140/24 vnic5/v4
Repeat this in zone6.
   Login to zone5 and ping the zone6 ip-address.
   Can you also ping your global zone?
8. Optional exercise: NWAM
In this exercise you will create a classroom ncp and with a physical
interface and ipaddress.
Create a new ncp called classncp
root@solaris11-1:~# netcfg
netcfg> create ncp classncp
netcfg:ncp:classncp> create ncu phys net1
Created ncu 'net1'.  Walking properties ...
activation-mode (manual) [manual|prioritized]> manual
link-mac-addr>enter
link-autopush>enter
link-mtu>enter
netcfg:ncp:classncp:ncu:net1> end
Committed changes
netcfg:ncp:classncp> create ncu ip net1
Created ncu 'net1'.  Walking properties ...
ip-version (ipv4,ipv6) [ipv4|ipv6]> ipv4
ipv4-addrsrc (dhcp) [dhcp|static]> static
ipv4-addr> 192.168.4.110  (Note, ask your instructor for the ipaddress)
ipv4-default-route>enter
netcfg:ncp:classncp:ncu:net1> end
Committed changes
netcfg:ncp:classncp> end
netcfg> end
root@solaris11-1:~#
2. Enable the new ncp
root@solaris11-1:~# netadm enable -p ncp classncp
Do you still have connection to your system?