r...@gz# egrep 'hosts|netmask' /etc/nsswitch.conf
hosts: files nis dns
netmasks: files nis
r...@gz# grep taddr2 /etc/hosts
12.2.3.4 taddr2
r...@gz# grep 12 /etc/netmasks
12.2.0.0 255.255.0.0
tz1 will be booted as
r...@gz# zoneadm -z tz1 boot
r...@gz# zlogin tz1 ipadm show-addr
ADDROBJ TYPE STATE ADDR
vnic0/? static ok 11.1.1.1/24
vnic0/? static ok 12.2.3.4/16
lo0/v4 static ok 127.0.0.1/8
lo0/v6 static ok ::1/128
A nit:
If the daemon associated with the ip-interface-management service is used to
configure above addresses on zone boot and address object names were not
explicitly provided then an address object name will be generated for that
address by the daemon.
Therefore in your examples above you will never see '?' and instead you will see
address object names, starting with '_', such as vnic0/_a, vnic0/_b, et al. So
the example above has to be corrected.
There is a difference between vnic0/? and vnic0/_a. vnic0/? means that the
address was created outside libipadm/ipmgmtd and therefore cannot be managed by
ipadm(1M) (ipadm show-addrprop, set-addrprop and reset-addrprop). However
vnic0/_a can be managed by ipadm.
~Girish
_______________________________________________
opensolaris-arc mailing list
[email protected]