Setting up IBM pSeries p510Q. Networking with VLANs
Материал из RSU WiKi
Some time ago i've tryed to set-up a new server. I have some physical servers (PCs) and 2 LPARs with 2 VLAN interfaces on p510Q Machine.
My configuration is based on article, published on the ibm site: http://www-128.ibm.com/developerworks/eserver/library/es-pwr5-virtualvlan/index.html In my opinion it's the best article from IBM knowledge base about VLANs & VIO configuration.
One LPAR have 2 virtual network interfaces (vlan 2 & 3), other have only one (vlan 2)
This is what i have (exactly):
VIO:
ent0 (Physical adapter connected to the switch) ent2 (PVID=100, Trunk=yes, 802.1Q=yes, VLANs: 2,3) - for SEA ent3 (PVID=2, Trunk=no, 802.1Q=no) - for remote administration
LPAR1:
Virtual adapter 1 (PVID=2) Virtual adapter 2 (PVID=3)
LPAR2:
Vritual adapter (PVID=2)
On VIO i've done the following:
mkvdev -sea ent0 -vadapter ent2 -default ent2 -defaultid=101 mkvdev -vlan ent4 -tagid 2 mkvdev -vlan ent4 -tagid 3
mktcpip -hostname vio1 -inetaddr 172.16.250.1 -interface en3 -netmask 255.255.0.0
INFO: when applying mkvdev -vlan entX -tagid YY, entX must be the SEA adapter, you could find it with command:
$ lsdev | grep "Shared Ethernet Adapter" ent4 Available Shared Ethernet Adapter
On LPARs (I'm using SuSE):
lpar1:
eth0: 172.16.250.3/255.255.0.0 eth1: 172.30.0.1/255.255.0.0
lpar2:
eth0: 172.16.250.4/255.255.0.0
Also i have some physical machines from both subnets (172.16 & 172.30).
Everybody are able to see & ping each other. HOORAY! :)

