Friday Mar 26, 2010

Solaris now has a new CLI utility called ipadm(1M) that can be used to perform: \* IP interfaces management (creation/deletion) \* IP address management (add, delete, show) for static IPv4 & IPv6 addresses, DHCP, stateless/stateful IPv6 Address configuraiton \* protocol (IP/TCP/UDP/SCTP/ICMP) tunable management (set, get, reset) global (ndd(1M)) tunables, as well as per-interface tunables. \* provide persistence for all of the three features above so that on reboot the configuration is reapplied.

From the above output, one can infer that the state of, lo0, loopback IP interface is ok and can handle both IPv4 and IPv6 packets. 'm' means multicast capability and 'v' means it's a virtual interface. For other flags, please read ipadm(1M) man page. Note: lo0 IP interface is always created on boot by the svc:/network/loopback:default SMF service.

'ipadm show-addr' displays all the configured addresses on the system.

The static address that was created is marked 'inaccessible' because the underlying data-link on which the address was created did not have IFF_RUNNING flag set. Probably it did not have a cable plugged into the NIC.

You can see all the interface related properties using 'ipadm show-ifprop'. You can enable forwarding for both ipv4 and ipv6 packets on this interface as shown below.