Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Networking

Sun T-Series ILOM and Solaris 11 Network Configuration

Submitted by on February 20, 2017 – 11:16 am

Just some quick notes on setting up Oracle Sun T-series server ILOM and network aggregation with LACP. I don’t get to do this very often, so every time it’s a struggle to remember, with much googling required.

ILOM Network Configuration

show /SP/network
set /SP/network pendingipdiscovery=static
set /SP/network pendingipaddress=192.168.10.22
set /SP/network pendingipgateway=192.168.10.1
set /SP/network pendingipnetmask=255.255.255.0
show /SP/network
set /SP/network commitpending=true
set /SP/network state=enabled
show /SP/network
set /SP hostname=host02b-ilo system_identifier="host02b-ilo" system_location="rack c12"
show /SP
start /SYS
start /SP/console

OS Network Information
dladm show-phys
dladm show-link
dladm show-aggr
ipadm show-if
ipadm show-addr
route -p show

[spoiler title=”Sample output”]
root@sunspot:~# dladm show-phys
LINK              MEDIA                STATE      SPEED  DUPLEX    DEVICE
net3              Ethernet             unknown    0      unknown   igb3
net2              Ethernet             unknown    0      unknown   igb2
net4              Ethernet             up         10     full      usbecm2
net0              Ethernet             up         1000   full      igb0
net1              Ethernet             up         1000   full      igb1

root@sunspot:~# dladm show-link
LINK                CLASS     MTU    STATE    OVER
net3                phys      1500   unknown  --
net2                phys      1500   unknown  --
net4                phys      1500   up       --
net0                phys      9000   up       --
net1                phys      9000   up       --
aggr0               aggr      9000   up       net0 net1

root@sunspot:~# dladm show-aggr
LINK              MODE  POLICY   ADDRPOLICY           LACPACTIVITY LACPTIMER
aggr0             trunk L4       auto                 active       short

root@sunspot:~# ipadm show-if
IFNAME     CLASS    STATE    ACTIVE OVER
lo0        loopback ok       yes    --
aggr0      ip       ok       yes    --
net4       ip       ok       yes    --
aggr1      ip       disabled no     --

root@sunspot:~# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
aggr0/v4          static   ok           192.168.122.10/24
net4/v4           static   ok           169.254.182.77/24
lo0/v6            static   ok           ::1/128
aggr1/v4          static   disabled     192.168.122.11/24

root@sunspot:~# route -p show
persistent: route add default 192.168.122.1 -ifp aggr0 -static

[/spoiler]

Unconfigure NICs and Existing Aggregations

route -p delete default 192.168.122.1 -ifp aggr0
ipadm delete-ip aggr0
dladm delete-aggr aggr0
ipadm delete-ip net0
ipadm delete-ip net1
ifconfig net0 unplumb
ifconfig net1 unplumb

Configure NICs and Aggregations
ifconfig net0 plumb mtu 9000 up
ifconfig net1 plumb mtu 9000 up
dladm set-linkprop -p mtu=9000 net0
dladm set-linkprop -p mtu=9000 net1
dladm create-aggr -L active -T short -l net0 -l net1 aggr0
ipadm create-ip aggr0
ipadm create-addr -T static -a 192.168.122/24 aggr0
route -p add default 192.168.122.1 -ifp aggr0 -static

Don’t forget to update /etc/hosts after you’re done.

Print Friendly, PDF & Email

Leave a Reply