I have Oracle Solaris 11.3 installed on my system. I have changed the network configuration profile to DefaultFixed
. After that, I have assigned IPs to NIC interfaces by giving below commands:
# ipadm create-addr -T dhcp net0/v4
# ipadm create-addr -T static -a 172.21.67.40 net1/v4
Till this point everything is fine:
root@DellPowerEdge:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok -- --
lo0/v4 static ok -- 127.0.0.1/8
lo0/v6 static ok -- ::1/128
net0 ip ok -- --
net0/v4 dhcp ok -- 172.21.67.37/24
net1 ip ok -- --
net1/v4 static ok -- 172.21.67.40/16
I tried the below commands:
# ipadm create-addr -T dhcp net0/addr
# ipadm create-addr -T dhcp net1/addr
Now, it is showing me two different IPs for a single interface as below:
root@DellPowerEdge:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok -- --
lo0/v4 static ok -- 127.0.0.1/8
lo0/v6 static ok -- ::1/128
net0 ip ok -- --
net0/addr dhcp ok -- 172.21.67.97/24
net0/v4 dhcp ok -- 172.21.67.37/24
net1 ip ok -- --
net1/addr dhcp ok -- 172.21.67.47/24
net1/v4 static ok -- 172.21.67.40/16
All these IPs are accessible.
How are different IPs assigned to single NIC interface? Is it an expected behavior? What is the difference between net0/v4
and net0/addr