Solaris 11 network configuration
id : 3u4219mhef
category : computer
blog : unix
created : 02/20/12 - 15:04:24
Here is my little memo for Solaris 11 (EA) network administation. Please refer to http://docs.oracle.com/cd/E23824_01/html/821-1458/toc.html for full documentation by Oracle about this subject.
Aggregation
  • Link aggregation creation :
# dladm create-aggr -L passive -l net0 -l net1 -l net2 -l net3 -l net4 -l net5 -l net6 -l net7 aggr0

  • This command will create a new link aggregation called aggr0.
  • Link aggregation checking :
# dlstat show-aggr -Z -i 2
LINK      ZONE              PORT    IPKTS   RBYTES    OPKTS   OBYTES
aggr0     global              --    2.27M  259.06M   55.37K    6.92M
aggr0     global            net0  228.54K   28.34M    8.49K    1.00M
aggr0     global            net1  228.35K   28.32M    7.69K  953.19K
aggr0     global            net2  228.53K   28.34M    8.33K    1.05M
aggr0     global            net3  228.97K   28.37M    7.69K  953.56K
aggr0     global            net4  636.01K   66.68M    7.69K  984.21K
aggr0     global            net5  473.88K   46.49M    7.79K  998.69K
aggr0     global            net6    3.84K    1.08M        0        0
aggr0     global            net7  240.06K   31.45M    7.69K  984.06K
[...]

VLAN Tagging
  • Tagged interface creation :
# dladm create-vlan -l aggr0 -v 1122

  • This command will create a new tagged interface called aggr1122000
# dladm show-vlan
LINK                VID      OVER                FLAGS
aggr1122000         1122     aggr0               -----

IP Multipathing
  • IPMP creation :
# ipadm create-ipmp -i aggr1122000 -i aggr1122001 ipmp1122

  • This command wille create a new ipmp interface called ipmp1122
  • IPMP checking :
# GROUP     GROUPNAME   STATE      FDT        INTERFACES
ipmp1122    ipmp1122    ok         10.00s     aggr1122000 aggr1122001

Configuring an IP
  • Do not use ifconfig anymore, use ipadm instead :
# ipadm create-ip aggr1122000
# ipadm create-addr -T static -a 10.240.122.23/24 aggr1122000/v4
# ifconifg -au4
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
aggr1122000: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
        inet 10.240.122.46 netmask ffffff00 broadcast 10.240.122.255
net8: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
        inet 169.254.182.77 netmask ffffff00 broadcast 169.254.182.255

Physical link
  • Checking physical link (up or down) :
# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net5              Ethernet             up         1000   full      igb1
net3              Ethernet             up         1000   full      nxge3
net7              Ethernet             up         1000   full      igb3
net1              Ethernet             up         1000   full      nxge1
net4              Ethernet             up         1000   full      igb0
net2              Ethernet             up         1000   full      nxge2
net6              Ethernet             down       0      unknown   igb2
net0              Ethernet             up         1000   full      nxge0
net8              Ethernet             up         10     full      usbecm0