I am new user on Solaris and also use from 5 years FreeBSD.
At beginning I would say that very enjoy working on Solaris but I can’t jump of the problem with multiple IP address in one non-global zone.
In FreeBSD when I want set tree IP address in jail
Adding IP address to network interfaces
/sbin/ifconfig nfe1 192.168.3.3 alias
/sbin/ifconfig nfe1 192.168.3.4 alias
/sbin/ifconfig nfe1 192.168.3.5 alias
and start jail with these IP:
/usr/sbin/jail /usr/jails/testjail test.com 192.168.3.3,192.168.3.4,192.168.3.5 /bin/sh /usr/local/ssh/sbin/sshd.sh start &
But on Solaris I can’t figure out how set two ip addresses to one interface.
I tried configuring zone with IP shared but always I can set only one IP.
Thanks for any help : )
In Solaris almost everything around the network stack has been abstracted and virtualized. Each NIC can be bonded into aggregates. Each NIC or aggregate can be splintered into any number of virtual NICs. The dladm command manages these links. Each link has various IP properties bound to it. The ipadm command manages these properties. Each zone has a network configuration profile which determines how the links are plumbed and managed. The netcfg command manages the network configuration.
While it takes a while to wrap your head around the new network management commands, they are much easier to use than ifconfig. Start with dladm.