solaris 11 virtual interface configuration

solaris 11 virtual interface configuration

Here is an example of creating a virtual interface on net1 for the address of 10.0.0.2

# dladm create-vnic -l net1 vnic1

# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
vnic1 net1 1000 2:8:20:cf:85:e9 random 0

# ipadm create-ip vnic1

# ipadm create-addr -T static -a 10.0.0.2/24 vnic1/v4static1

# ifconfig -a4
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ipmp0: flags=8001000843 mtu 1500 index 2
inet 172.16.10.169 netmask ffffff00 broadcast 192.168.10.255
groupname ipmp0
net0: flags=1000843 mtu 1500 index 3
inet 0.0.0.0 netmask ff000000 broadcast 0.255.255.255
groupname ipmp0
ether 0:21:28:45:e5:ee
net1: flags=4009040842 mtu 1500 index 4
inet 10.0.0.2 netmask ff000000 broadcast 10.255.255.255
groupname ipmp0
ether 0:21:28:44:e5:ef
vnic1: flags=4001000842 mtu 1500 index 5
inet 10.0.0.2 netmask ffffff00 broadcast 10.0.0.255
ether 2:8:20:cf:85:e9
#

Leave a Reply

Your email address will not be published. Required fields are marked *