HOW TO CREATE VNIC OVER INTERFACES SOLARIS 11.X



HOW TO CREATE VNIC OVER INTERFACES SOLARIS 11.X

 
 
1.- The first that you need to know is what interfaces is available  

#dladm show-phys
LINK              MEDIA      STATE      SPEED  DUPLEX    DEVICE
net0              Ethernet    up        0      unknown   vnet0
 2.- You will need to plumb the interface, in previous solaris release you can use "ifconfig net0 plumb", however in Solaris 11.X, we will need to use the command ipadm

#ipadm create-ip net0


3.- Now you need to assign ip address to the net0 and add the Default GW 
#ipadm create-addr -T static -a 10.1.1.3/24 net0/ipv4
#route -p add default 10.1.1.1

4.-Finally you can create VNIC's or Virtual Interfaces with the aliases 

#ipadm create-addr -T static -a 10.1.1.4/24 net0/prote

#ipadm create-addr -T static -a 10.1.1.5/24 net0/prder


#ipadm create-addr -T static -a 10.1.1.6/24 net0/prder1


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/ipv4      static     ok           --         10.1.1.3/24
Virtual Interfaces
   net0/prote static    ok           --         10.1.1.4/24
   net0/prder static    ok           --         10.1.1.5/24
   net0/prder1 static   ok           --         10.1.1.6/24

In order to check them do the following to, validate interfaces
 
 #ifconfig -a

or

# ipadm

 

Regards
Roger

Comments