November 06, 2013

VLAN network connectivity test on pSeries

A small ‘howto’ make VLAN network connectivity test directly from VIO.

We have 10 Gb Ethernet Adapter with two ports

+ ent11            U78A0.001.XXXXXX0-P1-C3-T1         10 Gb Ethernet-SR PCI Express Dual Port Adapter (771000801410b003)
+ ent12            U78A0.001.XXXXXX0-P1-C3-T2         10 Gb Ethernet-SR PCI Express Dual Port Adapter (771000801410b003)

Link is Up on first port

# entstat -d ent11 |grep -i link\ status
Link Status: Up

Creating new network interface with VLAN 15 over port1 of 10 Gb Ethernet Adapter

$ mkvdev -vlan ent11 -tagid 15
ent14 Available
en14
et14

# lsattr -El ent14
base_adapter  ent11 VLAN Base Adapter True
vlan_priority 0     VLAN Priority     True
vlan_tag_id   15     VLAN Tag ID       True

VLAN 15 test

Obtained free IP in 10.254.15.0/24 subnet is 10.254.15.12

Going to initiate a ping to another server with the IP 10.254.15.231 in VLAN 15

# /usr/sbin/mktcpip -h'vioa' -a'10.254.15.12' -m'255.255.255.0' -i'en14' -A'no' -t'N/A'
# ping -o en14 -I 10.254.15.12 -r 10.254.15.231
# ifconfig en14 down detach

VLAN 20 test

Obtained free IP in 10.254.20.0/24 subnet is 10.254.20.25

Going to initiate a ping to another server with the IP 10.254.20.231 in VLAN 20

# chdev -l ent14 -a vlan_tag_id=20
# /usr/sbin/mktcpip -h'vioa' -a'10.254.20.25' -m'255.255.255.0' -i'en14' -A'no' -t'N/A'
# ping -o en14 -I 10.254.20.25 -r 10.254.20.231
# ifconfig en14 down detach

In the end of the test don’t forget to remove VLAN network interface that was temporary used.

# rmdev -dl en14 ; rmdev -dl ent14 ; rmdev -dl et14